]>
Commit | Line | Data |
---|---|---|
4cd4f509 RK |
1 | /* |
2 | * Copyright (C) 2013,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 | |
f4b5939d FE |
10 | * modify it under the terms of the GNU General Public License |
11 | * version 2 as published by the Free Software Foundation. | |
42919c5c | 12 | * |
13283626 | 13 | * This file is distributed in the hope that it will be useful, |
42919c5c RK |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
13283626 | 18 | * Or, alternatively, |
42919c5c RK |
19 | * |
20 | * b) Permission is hereby granted, free of charge, to any person | |
21 | * obtaining a copy of this software and associated documentation | |
22 | * files (the "Software"), to deal in the Software without | |
13283626 | 23 | * restriction, including without limitation the rights to use, |
42919c5c RK |
24 | * copy, modify, merge, publish, distribute, sublicense, and/or |
25 | * sell copies of the Software, and to permit persons to whom the | |
26 | * Software is furnished to do so, subject to the following | |
27 | * conditions: | |
28 | * | |
29 | * The above copyright notice and this permission notice shall be | |
30 | * included in all copies or substantial portions of the Software. | |
31 | * | |
13283626 | 32 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
42919c5c RK |
33 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
34 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
35 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
13283626 | 36 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
42919c5c RK |
37 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
38 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
39 | * OTHER DEALINGS IN THE SOFTWARE. | |
4cd4f509 | 40 | */ |
d1576b12 | 41 | #include <dt-bindings/sound/fsl-imx-audmux.h> |
4cd4f509 RK |
42 | |
43 | / { | |
6de57233 | 44 | /* Will be filled by the bootloader */ |
edc05819 FE |
45 | memory@10000000 { |
46 | reg = <0x10000000 0>; | |
6de57233 MF |
47 | }; |
48 | ||
4cd4f509 RK |
49 | chosen { |
50 | stdout-path = &uart1; | |
51 | }; | |
52 | ||
53 | ir_recv: ir-receiver { | |
54 | compatible = "gpio-ir-receiver"; | |
1041f98f | 55 | gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; |
4cd4f509 | 56 | pinctrl-names = "default"; |
af3f973b | 57 | pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>; |
4cd4f509 RK |
58 | }; |
59 | ||
64e593af | 60 | v_3v2: regulator-v-3v2 { |
97321ee7 | 61 | compatible = "regulator-fixed"; |
64e593af | 62 | regulator-always-on; |
97321ee7 | 63 | regulator-max-microvolt = <3300000>; |
64e593af RK |
64 | regulator-min-microvolt = <3300000>; |
65 | regulator-name = "v_3v2"; | |
66 | vin-supply = <&v_5v0>; | |
67 | }; | |
68 | ||
69 | v_5v0: regulator-v-5v0 { | |
70 | compatible = "regulator-fixed"; | |
97321ee7 | 71 | regulator-always-on; |
64e593af RK |
72 | regulator-max-microvolt = <5000000>; |
73 | regulator-min-microvolt = <5000000>; | |
74 | regulator-name = "v_5v0"; | |
97321ee7 | 75 | }; |
4cd4f509 | 76 | |
bf504ca7 RK |
77 | v_sd: regulator-v-sd { |
78 | compatible = "regulator-fixed"; | |
79 | gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>; | |
80 | pinctrl-names = "default"; | |
81 | pinctrl-0 = <&pinctrl_hummingboard_vmmc>; | |
82 | regulator-boot-on; | |
83 | regulator-max-microvolt = <3300000>; | |
84 | regulator-min-microvolt = <3300000>; | |
85 | regulator-name = "v_sd"; | |
86 | startup-delay-us = <1000>; | |
64e593af | 87 | vin-supply = <&v_3v2>; |
bf504ca7 RK |
88 | }; |
89 | ||
64e593af | 90 | v_usb2: regulator-v-usb2 { |
97321ee7 RK |
91 | compatible = "regulator-fixed"; |
92 | enable-active-high; | |
93 | gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>; | |
94 | pinctrl-names = "default"; | |
95 | pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>; | |
97321ee7 | 96 | regulator-max-microvolt = <5000000>; |
64e593af RK |
97 | regulator-min-microvolt = <5000000>; |
98 | regulator-name = "v_usb2"; | |
99 | vin-supply = <&v_5v0>; | |
97321ee7 | 100 | }; |
4cd4f509 | 101 | |
64e593af | 102 | v_usb1: regulator-v-usb1 { |
97321ee7 RK |
103 | compatible = "regulator-fixed"; |
104 | enable-active-high; | |
105 | gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; | |
106 | pinctrl-names = "default"; | |
107 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>; | |
97321ee7 | 108 | regulator-max-microvolt = <5000000>; |
64e593af RK |
109 | regulator-min-microvolt = <5000000>; |
110 | regulator-name = "v_usb1"; | |
111 | vin-supply = <&v_5v0>; | |
4cd4f509 RK |
112 | }; |
113 | ||
d1576b12 MP |
114 | audio: sound-sgtl5000 { |
115 | compatible = "simple-audio-card"; | |
116 | simple-audio-card,name = "On-board Codec"; | |
117 | simple-audio-card,format = "i2s"; | |
118 | simple-audio-card,bitclock-master = <&sound_codec>; | |
119 | simple-audio-card,frame-master = <&sound_codec>; | |
120 | simple-audio-card,widgets = | |
121 | "Microphone", "Headphone Jack", | |
122 | "Headphone", "Headphone Jack"; | |
123 | simple-audio-card,routing = | |
124 | "MIC_IN", "Headphone Jack", | |
125 | "Headphone Jack", "Mic Bias", | |
8e047c12 | 126 | "Headphone Jack", "HP_OUT"; |
d1576b12 MP |
127 | |
128 | sound_cpu: simple-audio-card,cpu { | |
129 | sound-dai = <&ssi1>; | |
130 | }; | |
131 | ||
132 | sound_codec: simple-audio-card,codec { | |
133 | sound-dai = <&sgtl5000>; | |
134 | }; | |
8e047c12 RK |
135 | }; |
136 | ||
4cd4f509 RK |
137 | sound-spdif { |
138 | compatible = "fsl,imx-audio-spdif"; | |
139 | model = "On-board SPDIF"; | |
140 | /* IMX6 doesn't implement this yet */ | |
141 | spdif-controller = <&spdif>; | |
142 | spdif-out; | |
143 | }; | |
144 | }; | |
145 | ||
8e047c12 RK |
146 | &audmux { |
147 | status = "okay"; | |
d1576b12 MP |
148 | |
149 | ssi1 { | |
150 | fsl,audmux-port = <0>; | |
151 | fsl,port-config = < | |
152 | (IMX_AUDMUX_V2_PTCR_SYN | | |
153 | IMX_AUDMUX_V2_PTCR_TFSEL(4) | | |
154 | IMX_AUDMUX_V2_PTCR_TCSEL(4) | | |
155 | IMX_AUDMUX_V2_PTCR_TFSDIR | | |
156 | IMX_AUDMUX_V2_PTCR_TCLKDIR) | |
157 | IMX_AUDMUX_V2_PDCR_RXDSEL(4) | |
158 | >; | |
159 | }; | |
160 | ||
161 | pins5 { | |
162 | fsl,audmux-port = <4>; | |
163 | fsl,port-config = < | |
164 | IMX_AUDMUX_V2_PTCR_SYN | |
165 | IMX_AUDMUX_V2_PDCR_RXDSEL(0) | |
166 | >; | |
167 | }; | |
8e047c12 RK |
168 | }; |
169 | ||
4cd4f509 RK |
170 | &can1 { |
171 | pinctrl-names = "default"; | |
172 | pinctrl-0 = <&pinctrl_hummingboard_flexcan1>; | |
173 | status = "okay"; | |
174 | }; | |
175 | ||
176 | &hdmi { | |
177 | pinctrl-names = "default"; | |
178 | pinctrl-0 = <&pinctrl_hummingboard_hdmi>; | |
179 | ddc-i2c-bus = <&i2c2>; | |
180 | status = "okay"; | |
181 | }; | |
182 | ||
183 | &i2c1 { | |
184 | pinctrl-names = "default"; | |
185 | pinctrl-0 = <&pinctrl_hummingboard_i2c1>; | |
4cd4f509 RK |
186 | status = "okay"; |
187 | ||
a931bbbc | 188 | /* Pro baseboard model */ |
6f95d85c | 189 | rtc@68 { |
4cd4f509 RK |
190 | compatible = "nxp,pcf8523"; |
191 | reg = <0x68>; | |
192 | }; | |
8e047c12 RK |
193 | |
194 | /* Pro baseboard model */ | |
6f95d85c | 195 | sgtl5000: codec@a { |
8e047c12 RK |
196 | clocks = <&clks IMX6QDL_CLK_CKO>; |
197 | compatible = "fsl,sgtl5000"; | |
198 | pinctrl-names = "default"; | |
199 | pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>; | |
d1576b12 | 200 | #sound-dai-cells = <0>; |
8e047c12 | 201 | reg = <0x0a>; |
64e593af RK |
202 | VDDA-supply = <&v_3v2>; |
203 | VDDIO-supply = <&v_3v2>; | |
8e047c12 | 204 | }; |
4cd4f509 RK |
205 | }; |
206 | ||
207 | &i2c2 { | |
208 | clock-frequency = <100000>; | |
209 | pinctrl-names = "default"; | |
210 | pinctrl-0 = <&pinctrl_hummingboard_i2c2>; | |
211 | status = "okay"; | |
212 | }; | |
213 | ||
214 | &iomuxc { | |
215 | hummingboard { | |
216 | pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 { | |
217 | fsl,pins = < | |
218 | MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000 | |
219 | MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000 | |
220 | >; | |
221 | }; | |
222 | ||
af3f973b | 223 | pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 { |
4cd4f509 | 224 | fsl,pins = < |
d56ac192 | 225 | MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1 |
4cd4f509 RK |
226 | >; |
227 | }; | |
228 | ||
229 | pinctrl_hummingboard_hdmi: hummingboard-hdmi { | |
230 | fsl,pins = < | |
231 | MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 | |
232 | >; | |
233 | }; | |
234 | ||
235 | pinctrl_hummingboard_i2c1: hummingboard-i2c1 { | |
236 | fsl,pins = < | |
237 | MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 | |
238 | MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 | |
239 | >; | |
240 | }; | |
241 | ||
242 | pinctrl_hummingboard_i2c2: hummingboard-i2c2 { | |
243 | fsl,pins = < | |
244 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 | |
245 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 | |
246 | >; | |
247 | }; | |
248 | ||
b49b9ee0 FE |
249 | pinctrl_hummingboard_pcie_reset: hummingboard-pcie-reset { |
250 | fsl,pins = < | |
251 | MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x1b0b1 | |
252 | >; | |
253 | }; | |
254 | ||
ffbae6b7 RK |
255 | pinctrl_hummingboard_pwm1: pwm1grp { |
256 | fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; | |
257 | }; | |
258 | ||
8e047c12 RK |
259 | pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000 { |
260 | fsl,pins = < | |
261 | MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0 | |
262 | MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0 | |
263 | MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0 | |
264 | MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0 | |
265 | MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0 | |
266 | >; | |
267 | }; | |
268 | ||
4cd4f509 RK |
269 | pinctrl_hummingboard_spdif: hummingboard-spdif { |
270 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; | |
271 | }; | |
272 | ||
273 | pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus { | |
274 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>; | |
275 | }; | |
276 | ||
277 | pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id { | |
278 | /* | |
c256bc42 | 279 | * We want it pulled down for a fixed host connection. |
4cd4f509 | 280 | */ |
67de124c | 281 | fsl,pins = <MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x13059>; |
4cd4f509 RK |
282 | }; |
283 | ||
284 | pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus { | |
285 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>; | |
286 | }; | |
287 | ||
288 | pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux { | |
289 | fsl,pins = < | |
290 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 | |
291 | >; | |
292 | }; | |
293 | ||
294 | pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 { | |
295 | fsl,pins = < | |
296 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | |
297 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 | |
298 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 | |
299 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 | |
300 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 | |
301 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 | |
302 | >; | |
303 | }; | |
bf504ca7 RK |
304 | pinctrl_hummingboard_vmmc: hummingboard-vmmc { |
305 | fsl,pins = < | |
306 | MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0 | |
307 | >; | |
308 | }; | |
4cd4f509 RK |
309 | }; |
310 | }; | |
311 | ||
b49b9ee0 FE |
312 | &pcie { |
313 | pinctrl-names = "default"; | |
314 | pinctrl-0 = <&pinctrl_hummingboard_pcie_reset>; | |
5cff48fc | 315 | reset-gpio = <&gpio3 4 GPIO_ACTIVE_LOW>; |
b49b9ee0 FE |
316 | status = "okay"; |
317 | }; | |
318 | ||
ffbae6b7 RK |
319 | &pwm1 { |
320 | pinctrl-names = "default"; | |
321 | pinctrl-0 = <&pinctrl_hummingboard_pwm1>; | |
322 | status = "okay"; | |
323 | }; | |
324 | ||
325 | &pwm2 { | |
326 | pinctrl-names = "default"; | |
327 | status = "okay"; | |
328 | }; | |
329 | ||
4cd4f509 RK |
330 | &spdif { |
331 | pinctrl-names = "default"; | |
332 | pinctrl-0 = <&pinctrl_hummingboard_spdif>; | |
333 | status = "okay"; | |
334 | }; | |
335 | ||
8e047c12 | 336 | &ssi1 { |
8e047c12 RK |
337 | status = "okay"; |
338 | }; | |
339 | ||
4cd4f509 RK |
340 | &usbh1 { |
341 | disable-over-current; | |
64e593af | 342 | vbus-supply = <&v_usb2>; |
4cd4f509 RK |
343 | status = "okay"; |
344 | }; | |
345 | ||
346 | &usbotg { | |
347 | disable-over-current; | |
348 | pinctrl-names = "default"; | |
349 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; | |
64e593af | 350 | vbus-supply = <&v_usb1>; |
4cd4f509 RK |
351 | status = "okay"; |
352 | }; | |
353 | ||
354 | &usdhc2 { | |
355 | pinctrl-names = "default"; | |
356 | pinctrl-0 = < | |
357 | &pinctrl_hummingboard_usdhc2_aux | |
358 | &pinctrl_hummingboard_usdhc2 | |
359 | >; | |
bf504ca7 | 360 | vmmc-supply = <&v_sd>; |
89c1a8cf | 361 | cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
4cd4f509 RK |
362 | status = "okay"; |
363 | }; | |
64e593af RK |
364 | |
365 | &vcc_3v3 { | |
366 | vin-supply = <&v_3v2>; | |
367 | }; |