]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm/boot/dts/imx6sx-udoo-neo.dtsi
spi-imx: Implements handling of the SPI_READY mode flag.
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / imx6sx-udoo-neo.dtsi
1 /*
2 * Copyright (c) 2016 Andreas Färber
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 library 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, or (at your option) any later version.
13 *
14 * This library 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 "AS IS", 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.
41 */
42
43 #include "imx6sx.dtsi"
44
45 / {
46 compatible = "fsl,imx6sx";
47
48 chosen {
49 stdout-path = "serial0:115200n8";
50 };
51
52 leds {
53 compatible = "gpio-leds";
54
55 red {
56 label = "udoo-neo:red:mmc";
57 gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>;
58 default-state = "off";
59 linux,default-trigger = "mmc0";
60 };
61
62 orange {
63 label = "udoo-neo:orange:user";
64 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>;
65 default-state = "keep";
66 };
67 };
68
69 reg_sdio_pwr: regulator-sdio-pwr {
70 compatible = "regulator-fixed";
71 gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
72 enable-active-high;
73 regulator-name = "SDIO_PWR";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 regulator-boot-on;
77 };
78
79 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
80 compatible = "regulator-fixed";
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_otg1_reg>;
83 regulator-name = "usb_otg1_vbus";
84 regulator-min-microvolt = <5000000>;
85 regulator-max-microvolt = <5000000>;
86 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
87 enable-active-high;
88 };
89
90 reg_usb_otg2_vbus: regulator-usb-otg2-vbus {
91 compatible = "regulator-fixed";
92 pinctrl-names = "default";
93 pinctrl-0 = <&pinctrl_otg2_reg>;
94 regulator-name = "usb_otg2_vbus";
95 regulator-min-microvolt = <5000000>;
96 regulator-max-microvolt = <5000000>;
97 gpio = <&gpio4 12 GPIO_ACTIVE_HIGH>;
98 enable-active-high;
99 };
100
101 reg_wlan: regulator-wlan {
102 compatible = "regulator-fixed";
103 regulator-name = "wlan-en-regulator";
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <1800000>;
106 gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
107 startup-delay-us = <70000>;
108 enable-active-high;
109 };
110
111 reg_bt: regulator-bt {
112 compatible = "regulator-fixed";
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_bt_reg>;
115 enable-active-high;
116 gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>;
117 regulator-name = "bt_reg";
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120 regulator-always-on;
121 };
122 };
123
124 &cpu0 {
125 arm-supply = <&sw1a_reg>;
126 soc-supply = <&sw1c_reg>;
127 };
128
129 &fec1 {
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_enet1>;
132 phy-mode = "rmii";
133 phy-reset-duration = <10>;
134 phy-reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
135 };
136
137 &i2c1 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_i2c1>;
140 clock-frequency = <100000>;
141 status = "okay";
142
143 pmic: pmic@08 {
144 compatible = "fsl,pfuze3000";
145 reg = <0x08>;
146
147 regulators {
148 sw1a_reg: sw1a {
149 regulator-min-microvolt = <700000>;
150 regulator-max-microvolt = <1475000>;
151 regulator-boot-on;
152 regulator-always-on;
153 regulator-ramp-delay = <6250>;
154 };
155
156 sw1c_reg: sw1b {
157 regulator-min-microvolt = <700000>;
158 regulator-max-microvolt = <1475000>;
159 regulator-boot-on;
160 regulator-always-on;
161 regulator-ramp-delay = <6250>;
162 };
163
164 sw2_reg: sw2 {
165 regulator-min-microvolt = <1500000>;
166 regulator-max-microvolt = <1850000>;
167 regulator-boot-on;
168 regulator-always-on;
169 };
170
171 sw3a_reg: sw3 {
172 regulator-min-microvolt = <900000>;
173 regulator-max-microvolt = <1650000>;
174 regulator-boot-on;
175 regulator-always-on;
176 };
177
178 swbst_reg: swbst {
179 regulator-min-microvolt = <5000000>;
180 regulator-max-microvolt = <5150000>;
181 };
182
183 snvs_reg: vsnvs {
184 regulator-min-microvolt = <1000000>;
185 regulator-max-microvolt = <3000000>;
186 regulator-boot-on;
187 regulator-always-on;
188 };
189
190 vref_reg: vrefddr {
191 regulator-boot-on;
192 regulator-always-on;
193 };
194
195 vgen1_reg: vldo1 {
196 regulator-min-microvolt = <1800000>;
197 regulator-max-microvolt = <3300000>;
198 regulator-always-on;
199 };
200
201 vgen2_reg: vldo2 {
202 regulator-min-microvolt = <800000>;
203 regulator-max-microvolt = <1550000>;
204 };
205
206 vgen3_reg: vccsd {
207 regulator-min-microvolt = <2850000>;
208 regulator-max-microvolt = <3300000>;
209 regulator-always-on;
210 };
211
212 vgen4_reg: v33 {
213 regulator-min-microvolt = <2850000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-always-on;
216 };
217
218 vgen5_reg: vldo3 {
219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <3300000>;
221 regulator-always-on;
222 };
223
224 vgen6_reg: vldo4 {
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <3300000>;
227 regulator-always-on;
228 };
229 };
230 };
231 };
232
233 &iomuxc {
234 pinctrl_bt_reg: btreggrp {
235 fsl,pins =
236 <MX6SX_PAD_KEY_ROW2__GPIO2_IO_17 0x15059>;
237 };
238
239 pinctrl_enet1: enet1grp {
240 fsl,pins =
241 <MX6SX_PAD_ENET1_CRS__GPIO2_IO_1 0xa0b1>,
242 <MX6SX_PAD_ENET1_MDC__ENET1_MDC 0xa0b1>,
243 <MX6SX_PAD_ENET1_MDIO__ENET1_MDIO 0xa0b1>,
244 <MX6SX_PAD_RGMII1_TD0__ENET1_TX_DATA_0 0xa0b1>,
245 <MX6SX_PAD_RGMII1_TD1__ENET1_TX_DATA_1 0xa0b1>,
246 <MX6SX_PAD_RGMII1_TX_CTL__ENET1_TX_EN 0xa0b1>,
247
248 <MX6SX_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x3081>,
249 <MX6SX_PAD_ENET2_TX_CLK__GPIO2_IO_9 0x3081>,
250 <MX6SX_PAD_RGMII1_RD0__ENET1_RX_DATA_0 0x3081>,
251 <MX6SX_PAD_RGMII1_RD1__ENET1_RX_DATA_1 0x3081>,
252 <MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x3081>,
253 <MX6SX_PAD_RGMII1_RXC__ENET1_RX_ER 0x3081>,
254
255 <MX6SX_PAD_ENET2_RX_CLK__ENET2_REF_CLK_25M 0x91>;
256 };
257
258 pinctrl_i2c1: i2c1grp {
259 fsl,pins =
260 <MX6SX_PAD_GPIO1_IO00__I2C1_SCL 0x4001b8b1>,
261 <MX6SX_PAD_GPIO1_IO01__I2C1_SDA 0x4001b8b1>;
262 };
263
264 pinctrl_uart1: uart1grp {
265 fsl,pins =
266 <MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1>,
267 <MX6SX_PAD_GPIO1_IO05__UART1_RX 0x1b0b1>;
268 };
269
270 pinctrl_uart2: uart2grp {
271 fsl,pins =
272 <MX6SX_PAD_GPIO1_IO06__UART2_TX 0x1b0b1>,
273 <MX6SX_PAD_GPIO1_IO07__UART2_RX 0x1b0b1>;
274 };
275
276 pinctrl_uart3: uart3grp {
277 fsl,pins =
278 <MX6SX_PAD_SD3_DATA4__UART3_RX 0x13059>,
279 <MX6SX_PAD_SD3_DATA5__UART3_TX 0x13059>,
280 <MX6SX_PAD_SD3_DATA6__UART3_RTS_B 0x13059>,
281 <MX6SX_PAD_SD3_DATA7__UART3_CTS_B 0x13059>;
282 };
283
284 pinctrl_uart5: uart5grp {
285 fsl,pins =
286 <MX6SX_PAD_SD4_DATA4__UART5_RX 0x1b0b1>,
287 <MX6SX_PAD_SD4_DATA5__UART5_TX 0x1b0b1>;
288 };
289
290 pinctrl_uart6: uart6grp {
291 fsl,pins =
292 <MX6SX_PAD_CSI_DATA00__UART6_RI_B 0x1b0b1>,
293 <MX6SX_PAD_CSI_DATA01__UART6_DSR_B 0x1b0b1>,
294 <MX6SX_PAD_CSI_DATA02__UART6_DTR_B 0x1b0b1>,
295 <MX6SX_PAD_CSI_DATA03__UART6_DCD_B 0x1b0b1>,
296 <MX6SX_PAD_CSI_DATA04__UART6_RX 0x1b0b1>,
297 <MX6SX_PAD_CSI_DATA05__UART6_TX 0x1b0b1>,
298 <MX6SX_PAD_CSI_DATA06__UART6_RTS_B 0x1b0b1>,
299 <MX6SX_PAD_CSI_DATA07__UART6_CTS_B 0x1b0b1>;
300 };
301
302 pinctrl_otg1_reg: otg1grp {
303 fsl,pins =
304 <MX6SX_PAD_GPIO1_IO09__GPIO1_IO_9 0x10b0>;
305 };
306
307
308 pinctrl_otg2_reg: otg2grp {
309 fsl,pins =
310 <MX6SX_PAD_NAND_RE_B__GPIO4_IO_12 0x10b0>;
311 };
312
313 pinctrl_usb_otg1: usbotg1grp {
314 fsl,pins =
315 <MX6SX_PAD_GPIO1_IO10__ANATOP_OTG1_ID 0x17059>,
316 <MX6SX_PAD_GPIO1_IO08__USB_OTG1_OC 0x10b0>;
317 };
318
319 pinctrl_usb_otg2: usbot2ggrp {
320 fsl,pins =
321 <MX6SX_PAD_QSPI1A_DATA0__USB_OTG2_OC 0x10b0>;
322 };
323
324 pinctrl_usdhc2: usdhc2grp {
325 fsl,pins =
326 <MX6SX_PAD_SD2_CMD__USDHC2_CMD 0x17059>,
327 <MX6SX_PAD_SD2_CLK__USDHC2_CLK 0x10059>,
328 <MX6SX_PAD_SD2_DATA0__USDHC2_DATA0 0x17059>,
329 <MX6SX_PAD_SD2_DATA1__USDHC2_DATA1 0x17059>,
330 <MX6SX_PAD_SD2_DATA2__USDHC2_DATA2 0x17059>,
331 <MX6SX_PAD_SD2_DATA3__USDHC2_DATA3 0x17059>,
332 <MX6SX_PAD_SD1_DATA0__GPIO6_IO_2 0x17059>; /* CD */
333 };
334
335 pinctrl_usdhc3: usdhc3grp {
336 fsl,pins =
337 <MX6SX_PAD_KEY_COL2__GPIO2_IO_12 0x15059>,
338 <MX6SX_PAD_KEY_ROW1__GPIO2_IO_16 0x13059>,
339 <MX6SX_PAD_SD3_DATA0__USDHC3_DATA0 0x17069>,
340 <MX6SX_PAD_SD3_DATA1__USDHC3_DATA1 0x17069>,
341 <MX6SX_PAD_SD3_DATA2__USDHC3_DATA2 0x17069>,
342 <MX6SX_PAD_SD3_DATA3__USDHC3_DATA3 0x17069>,
343 <MX6SX_PAD_SD3_CMD__USDHC3_CMD 0x17069>,
344 <MX6SX_PAD_SD3_CLK__USDHC3_CLK 0x10069>,
345 <MX6SX_PAD_CSI_MCLK__OSC32K_32K_OUT 0x10059>;
346 };
347 };
348
349 &uart1 {
350 pinctrl-names = "default";
351 pinctrl-0 = <&pinctrl_uart1>;
352 status = "okay";
353 };
354
355 /* Cortex-M4 serial */
356 &uart2 {
357 pinctrl-names = "default";
358 pinctrl-0 = <&pinctrl_uart2>;
359 status = "disabled";
360 };
361
362 &uart3 { /* Bluetooth */
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_uart3>;
365 uart-has-rtscts;
366 status = "okay";
367 };
368
369 /* Arduino serial */
370 &uart5 {
371 pinctrl-names = "default";
372 pinctrl-0 = <&pinctrl_uart5>;
373 status = "disabled";
374 };
375
376 &uart6 {
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_uart6>;
379 uart-has-rtscts;
380 status = "disabled";
381 };
382
383 &usbotg1 { /* J2 micro USB port */
384 vbus-supply = <&reg_usb_otg1_vbus>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&pinctrl_usb_otg1>;
387 status = "okay";
388 };
389
390 &usbotg2 { /* J3 host USB port */
391 vbus-supply = <&reg_usb_otg2_vbus>;
392 pinctrl-names = "default";
393 pinctrl-0 = <&pinctrl_usb_otg2>;
394 dr_mode = "host";
395 status = "okay";
396 };
397
398 &usdhc2 {
399 pinctrl-names = "default";
400 pinctrl-0 = <&pinctrl_usdhc2>;
401 vmmc-supply = <&reg_sdio_pwr>;
402 bus-width = <4>;
403 cd-gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
404 no-1-8-v;
405 keep-power-in-suspend;
406 wakeup-source;
407 status = "okay";
408 };
409
410 &usdhc3 { /* Wi-Fi */
411 pinctrl-names = "default";
412 pinctrl-0 = <&pinctrl_usdhc3>;
413 non-removable;
414 vmmc-supply = <&reg_wlan>;
415 cap-power-off-card;
416 wakeup-source;
417 keep-power-in-suspend;
418 #address-cells = <1>;
419 #size-cells = <0>;
420 status = "okay";
421
422 wlcore: wlcore@2 {
423 compatible = "ti,wl1831";
424 reg = <2>;
425 interrupt-parent = <&gpio2>;
426 interrupts = <16 IRQ_TYPE_EDGE_RISING>;
427 ref-clock-frequency = <38400000>;
428 tcxo-clock-frequency = <26000000>;
429 };
430 };