Commit | Line | Data |
---|---|---|
971488f1 RK |
1 | /* |
2 | * Copyright (C) 2014 Russell King | |
42919c5c RK |
3 | * |
4 | * This file is dual-licensed: you can use it either under the terms | |
5 | * of the GPL or the X11 license, at your option. Note that this dual | |
6 | * licensing only applies to this file, and not this project as a | |
7 | * whole. | |
8 | * | |
9 | * a) This file is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU General Public License as | |
11 | * published by the Free Software Foundation; either version 2 of the | |
12 | * License. | |
13 | * | |
14 | * This file is distributed in the hope that it will be useful | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * Or, alternatively | |
20 | * | |
21 | * b) Permission is hereby granted, free of charge, to any person | |
22 | * obtaining a copy of this software and associated documentation | |
23 | * files (the "Software"), to deal in the Software without | |
24 | * restriction, including without limitation the rights to use | |
25 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
26 | * sell copies of the Software, and to permit persons to whom the | |
27 | * Software is furnished to do so, subject to the following | |
28 | * conditions: | |
29 | * | |
30 | * The above copyright notice and this permission notice shall be | |
31 | * included in all copies or substantial portions of the Software. | |
32 | * | |
33 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND | |
34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY | |
38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
40 | * OTHER DEALINGS IN THE SOFTWARE. | |
971488f1 RK |
41 | */ |
42 | #include "imx6qdl-microsom.dtsi" | |
43 | #include "imx6qdl-microsom-ar8035.dtsi" | |
44 | ||
45 | / { | |
46 | ir_recv: ir-receiver { | |
47 | compatible = "gpio-ir-receiver"; | |
48 | gpios = <&gpio3 9 1>; | |
49 | pinctrl-names = "default"; | |
50 | pinctrl-0 = <&pinctrl_cubox_i_ir>; | |
51 | }; | |
52 | ||
eea53bb1 RK |
53 | pwmleds { |
54 | compatible = "pwm-leds"; | |
55 | pinctrl-names = "default"; | |
56 | pinctrl-0 = <&pinctrl_cubox_i_pwm1>; | |
57 | ||
58 | front { | |
59 | active-low; | |
60 | label = "imx6:red:front"; | |
61 | max-brightness = <248>; | |
62 | pwms = <&pwm1 0 50000>; | |
63 | }; | |
64 | }; | |
65 | ||
971488f1 RK |
66 | regulators { |
67 | compatible = "simple-bus"; | |
68 | ||
69 | reg_3p3v: 3p3v { | |
70 | compatible = "regulator-fixed"; | |
71 | regulator-name = "3P3V"; | |
72 | regulator-min-microvolt = <3300000>; | |
73 | regulator-max-microvolt = <3300000>; | |
74 | regulator-always-on; | |
75 | }; | |
76 | ||
77 | reg_usbh1_vbus: usb-h1-vbus { | |
78 | compatible = "regulator-fixed"; | |
79 | enable-active-high; | |
80 | gpio = <&gpio1 0 0>; | |
81 | pinctrl-names = "default"; | |
82 | pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>; | |
83 | regulator-name = "usb_h1_vbus"; | |
84 | regulator-min-microvolt = <5000000>; | |
85 | regulator-max-microvolt = <5000000>; | |
86 | }; | |
87 | ||
88 | reg_usbotg_vbus: usb-otg-vbus { | |
89 | compatible = "regulator-fixed"; | |
90 | enable-active-high; | |
91 | gpio = <&gpio3 22 0>; | |
92 | pinctrl-names = "default"; | |
93 | pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>; | |
94 | regulator-name = "usb_otg_vbus"; | |
95 | regulator-min-microvolt = <5000000>; | |
96 | regulator-max-microvolt = <5000000>; | |
97 | }; | |
98 | }; | |
99 | ||
971488f1 RK |
100 | sound-spdif { |
101 | compatible = "fsl,imx-audio-spdif"; | |
962af861 | 102 | model = "Integrated SPDIF"; |
971488f1 RK |
103 | /* IMX6 doesn't implement this yet */ |
104 | spdif-controller = <&spdif>; | |
105 | spdif-out; | |
106 | }; | |
107 | }; | |
108 | ||
f34d0d5d RK |
109 | &hdmi { |
110 | pinctrl-names = "default"; | |
111 | pinctrl-0 = <&pinctrl_cubox_i_hdmi>; | |
112 | ddc-i2c-bus = <&i2c2>; | |
113 | status = "okay"; | |
114 | }; | |
115 | ||
116 | &i2c2 { | |
117 | clock-frequency = <100000>; | |
118 | pinctrl-names = "default"; | |
119 | pinctrl-0 = <&pinctrl_cubox_i_i2c2>; | |
120 | status = "okay"; | |
121 | }; | |
122 | ||
971488f1 RK |
123 | &i2c3 { |
124 | pinctrl-names = "default"; | |
125 | pinctrl-0 = <&pinctrl_cubox_i_i2c3>; | |
126 | ||
127 | status = "okay"; | |
128 | ||
129 | rtc: pcf8523@68 { | |
130 | compatible = "nxp,pcf8523"; | |
131 | reg = <0x68>; | |
132 | }; | |
133 | }; | |
134 | ||
135 | &iomuxc { | |
136 | cubox_i { | |
f34d0d5d RK |
137 | pinctrl_cubox_i_hdmi: cubox-i-hdmi { |
138 | fsl,pins = < | |
139 | MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 | |
140 | >; | |
141 | }; | |
142 | ||
143 | pinctrl_cubox_i_i2c2: cubox-i-i2c2 { | |
144 | fsl,pins = < | |
145 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 | |
146 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 | |
147 | >; | |
148 | }; | |
149 | ||
971488f1 RK |
150 | pinctrl_cubox_i_i2c3: cubox-i-i2c3 { |
151 | fsl,pins = < | |
152 | MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1 | |
153 | MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 | |
154 | >; | |
155 | }; | |
156 | ||
157 | pinctrl_cubox_i_ir: cubox-i-ir { | |
158 | fsl,pins = < | |
159 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 | |
160 | >; | |
161 | }; | |
162 | ||
eea53bb1 RK |
163 | pinctrl_cubox_i_pwm1: cubox-i-pwm1-front-led { |
164 | fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0>; | |
165 | }; | |
166 | ||
971488f1 | 167 | pinctrl_cubox_i_spdif: cubox-i-spdif { |
87f9260b | 168 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; |
971488f1 RK |
169 | }; |
170 | ||
f9908c17 RK |
171 | pinctrl_cubox_i_usbh1: cubox-i-usbh1 { |
172 | fsl,pins = <MX6QDL_PAD_GPIO_3__USB_H1_OC 0x1b0b0>; | |
173 | }; | |
174 | ||
971488f1 RK |
175 | pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus { |
176 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>; | |
177 | }; | |
178 | ||
f9908c17 | 179 | pinctrl_cubox_i_usbotg: cubox-i-usbotg { |
589681b2 | 180 | /* |
f9908c17 | 181 | * The Cubox-i pulls ID low, but as it's pointless |
589681b2 RK |
182 | * leaving it as a pull-up, even if it is just 10uA. |
183 | */ | |
f9908c17 RK |
184 | fsl,pins = < |
185 | MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059 | |
186 | MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0 | |
187 | >; | |
589681b2 RK |
188 | }; |
189 | ||
971488f1 RK |
190 | pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus { |
191 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>; | |
192 | }; | |
193 | ||
194 | pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux { | |
195 | fsl,pins = < | |
196 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 | |
197 | MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071 | |
198 | >; | |
199 | }; | |
200 | ||
201 | pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 { | |
202 | fsl,pins = < | |
203 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | |
204 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 | |
205 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 | |
206 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 | |
207 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 | |
208 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 | |
209 | >; | |
210 | }; | |
211 | }; | |
212 | }; | |
213 | ||
7cdbec1f PZ |
214 | &pwm1 { |
215 | status = "okay"; | |
216 | }; | |
217 | ||
971488f1 | 218 | &spdif { |
87f9260b RK |
219 | pinctrl-names = "default"; |
220 | pinctrl-0 = <&pinctrl_cubox_i_spdif>; | |
971488f1 RK |
221 | status = "okay"; |
222 | }; | |
223 | ||
224 | &usbh1 { | |
f9908c17 RK |
225 | pinctrl-names = "default"; |
226 | pinctrl-0 = <&pinctrl_cubox_i_usbh1>; | |
971488f1 RK |
227 | vbus-supply = <®_usbh1_vbus>; |
228 | status = "okay"; | |
229 | }; | |
230 | ||
231 | &usbotg { | |
589681b2 | 232 | pinctrl-names = "default"; |
f9908c17 | 233 | pinctrl-0 = <&pinctrl_cubox_i_usbotg>; |
971488f1 RK |
234 | vbus-supply = <®_usbotg_vbus>; |
235 | status = "okay"; | |
236 | }; | |
237 | ||
238 | &usdhc2 { | |
239 | pinctrl-names = "default"; | |
240 | pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>; | |
241 | vmmc-supply = <®_3p3v>; | |
242 | cd-gpios = <&gpio1 4 0>; | |
243 | status = "okay"; | |
244 | }; |