Linux Audio

Check our new training course

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