xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-gw5910.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2019 Gateworks Corporation
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
7f126890aSEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h>
8f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/ {
11f126890aSEmmanuel Vadot	/* these are used by bootloader for disabling nodes */
12f126890aSEmmanuel Vadot	aliases {
13f126890aSEmmanuel Vadot		led0 = &led0;
14f126890aSEmmanuel Vadot		led1 = &led1;
15f126890aSEmmanuel Vadot		led2 = &led2;
16f126890aSEmmanuel Vadot	};
17f126890aSEmmanuel Vadot
18f126890aSEmmanuel Vadot	chosen {
19f126890aSEmmanuel Vadot		stdout-path = &uart2;
20f126890aSEmmanuel Vadot	};
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot	memory@10000000 {
23f126890aSEmmanuel Vadot		device_type = "memory";
24f126890aSEmmanuel Vadot		reg = <0x10000000 0x20000000>;
25f126890aSEmmanuel Vadot	};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot	gpio-keys {
28f126890aSEmmanuel Vadot		compatible = "gpio-keys";
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot		user-pb {
31f126890aSEmmanuel Vadot			label = "user_pb";
32f126890aSEmmanuel Vadot			gpios = <&gsc_gpio 2 GPIO_ACTIVE_LOW>;
33f126890aSEmmanuel Vadot			linux,code = <BTN_0>;
34f126890aSEmmanuel Vadot		};
35f126890aSEmmanuel Vadot
36f126890aSEmmanuel Vadot		user-pb1x {
37f126890aSEmmanuel Vadot			label = "user_pb1x";
38f126890aSEmmanuel Vadot			linux,code = <BTN_1>;
39f126890aSEmmanuel Vadot			interrupt-parent = <&gsc>;
40f126890aSEmmanuel Vadot			interrupts = <0>;
41f126890aSEmmanuel Vadot		};
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot		key-erased {
44f126890aSEmmanuel Vadot			label = "key-erased";
45f126890aSEmmanuel Vadot			linux,code = <BTN_2>;
46f126890aSEmmanuel Vadot			interrupt-parent = <&gsc>;
47f126890aSEmmanuel Vadot			interrupts = <1>;
48f126890aSEmmanuel Vadot		};
49f126890aSEmmanuel Vadot
50f126890aSEmmanuel Vadot		eeprom-wp {
51f126890aSEmmanuel Vadot			label = "eeprom_wp";
52f126890aSEmmanuel Vadot			linux,code = <BTN_3>;
53f126890aSEmmanuel Vadot			interrupt-parent = <&gsc>;
54f126890aSEmmanuel Vadot			interrupts = <2>;
55f126890aSEmmanuel Vadot		};
56f126890aSEmmanuel Vadot
57f126890aSEmmanuel Vadot		tamper {
58f126890aSEmmanuel Vadot			label = "tamper";
59f126890aSEmmanuel Vadot			linux,code = <BTN_4>;
60f126890aSEmmanuel Vadot			interrupt-parent = <&gsc>;
61f126890aSEmmanuel Vadot			interrupts = <5>;
62f126890aSEmmanuel Vadot		};
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot		switch-hold {
65f126890aSEmmanuel Vadot			label = "switch_hold";
66f126890aSEmmanuel Vadot			linux,code = <BTN_5>;
67f126890aSEmmanuel Vadot			interrupt-parent = <&gsc>;
68f126890aSEmmanuel Vadot			interrupts = <7>;
69f126890aSEmmanuel Vadot		};
70f126890aSEmmanuel Vadot	};
71f126890aSEmmanuel Vadot
72f126890aSEmmanuel Vadot	leds {
73f126890aSEmmanuel Vadot		compatible = "gpio-leds";
74f126890aSEmmanuel Vadot		pinctrl-names = "default";
75f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_gpio_leds>;
76f126890aSEmmanuel Vadot
77f126890aSEmmanuel Vadot		led0: led-user1 {
78f126890aSEmmanuel Vadot			label = "user1";
79f126890aSEmmanuel Vadot			gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
80f126890aSEmmanuel Vadot			default-state = "on";
81f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
82f126890aSEmmanuel Vadot		};
83f126890aSEmmanuel Vadot
84f126890aSEmmanuel Vadot		led1: led-user2 {
85f126890aSEmmanuel Vadot			label = "user2";
86f126890aSEmmanuel Vadot			gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
87f126890aSEmmanuel Vadot			default-state = "off";
88f126890aSEmmanuel Vadot		};
89f126890aSEmmanuel Vadot
90f126890aSEmmanuel Vadot		led2: led-user3 {
91f126890aSEmmanuel Vadot			label = "user3";
92f126890aSEmmanuel Vadot			gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
93f126890aSEmmanuel Vadot			default-state = "off";
94f126890aSEmmanuel Vadot		};
95f126890aSEmmanuel Vadot	};
96f126890aSEmmanuel Vadot
97f126890aSEmmanuel Vadot	pps {
98f126890aSEmmanuel Vadot		compatible = "pps-gpio";
99f126890aSEmmanuel Vadot		pinctrl-names = "default";
100f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_pps>;
101f126890aSEmmanuel Vadot		gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
102f126890aSEmmanuel Vadot		status = "okay";
103f126890aSEmmanuel Vadot	};
104f126890aSEmmanuel Vadot
105f126890aSEmmanuel Vadot	reg_3p3v: regulator-3p3v {
106f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
107f126890aSEmmanuel Vadot		regulator-name = "3P3V";
108f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
109f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
110f126890aSEmmanuel Vadot		regulator-always-on;
111f126890aSEmmanuel Vadot	};
112f126890aSEmmanuel Vadot
113f126890aSEmmanuel Vadot	reg_5p0v: regulator-5p0v {
114f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
115f126890aSEmmanuel Vadot		regulator-name = "5P0V";
116f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
117f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
118f126890aSEmmanuel Vadot		regulator-always-on;
119f126890aSEmmanuel Vadot	};
120f126890aSEmmanuel Vadot
121f126890aSEmmanuel Vadot	reg_wl: regulator-wl {
122f126890aSEmmanuel Vadot		pinctrl-names = "default";
123f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_reg_wl>;
124f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
125f126890aSEmmanuel Vadot		regulator-name = "wl";
126f126890aSEmmanuel Vadot		gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
127f126890aSEmmanuel Vadot		startup-delay-us = <100>;
128f126890aSEmmanuel Vadot		enable-active-high;
129f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
130f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
131f126890aSEmmanuel Vadot	};
132f126890aSEmmanuel Vadot};
133f126890aSEmmanuel Vadot
134f126890aSEmmanuel Vadot
135f126890aSEmmanuel Vadot&ecspi3 {
136f126890aSEmmanuel Vadot	cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
137f126890aSEmmanuel Vadot	pinctrl-names = "default";
138f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_ecspi3>;
139f126890aSEmmanuel Vadot	status = "okay";
140f126890aSEmmanuel Vadot};
141f126890aSEmmanuel Vadot
142f126890aSEmmanuel Vadot&fec {
143f126890aSEmmanuel Vadot	pinctrl-names = "default";
144f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_enet>;
145f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
146f126890aSEmmanuel Vadot	status = "okay";
147f126890aSEmmanuel Vadot};
148f126890aSEmmanuel Vadot
149f126890aSEmmanuel Vadot&gpmi {
150f126890aSEmmanuel Vadot	pinctrl-names = "default";
151f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_gpmi_nand>;
152f126890aSEmmanuel Vadot	status = "okay";
153f126890aSEmmanuel Vadot};
154f126890aSEmmanuel Vadot
155f126890aSEmmanuel Vadot&i2c1 {
156f126890aSEmmanuel Vadot	clock-frequency = <100000>;
157f126890aSEmmanuel Vadot	pinctrl-names = "default";
158f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_i2c1>;
159f126890aSEmmanuel Vadot	status = "okay";
160f126890aSEmmanuel Vadot
161f126890aSEmmanuel Vadot	gsc: gsc@20 {
162f126890aSEmmanuel Vadot		compatible = "gw,gsc";
163f126890aSEmmanuel Vadot		reg = <0x20>;
164f126890aSEmmanuel Vadot		interrupt-parent = <&gpio1>;
165f126890aSEmmanuel Vadot		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
166f126890aSEmmanuel Vadot		interrupt-controller;
167f126890aSEmmanuel Vadot		#interrupt-cells = <1>;
168f126890aSEmmanuel Vadot		#size-cells = <0>;
169f126890aSEmmanuel Vadot
170f126890aSEmmanuel Vadot		adc {
171f126890aSEmmanuel Vadot			compatible = "gw,gsc-adc";
172f126890aSEmmanuel Vadot			#address-cells = <1>;
173f126890aSEmmanuel Vadot			#size-cells = <0>;
174f126890aSEmmanuel Vadot
175f126890aSEmmanuel Vadot			channel@6 {
176f126890aSEmmanuel Vadot				gw,mode = <0>;
177f126890aSEmmanuel Vadot				reg = <0x06>;
178f126890aSEmmanuel Vadot				label = "temp";
179f126890aSEmmanuel Vadot			};
180f126890aSEmmanuel Vadot
181f126890aSEmmanuel Vadot			channel@8 {
182f126890aSEmmanuel Vadot				gw,mode = <3>;
183f126890aSEmmanuel Vadot				reg = <0x08>;
184f126890aSEmmanuel Vadot				label = "vdd_bat";
185f126890aSEmmanuel Vadot			};
186f126890aSEmmanuel Vadot
187f126890aSEmmanuel Vadot			channel@82 {
188f126890aSEmmanuel Vadot				gw,mode = <2>;
189f126890aSEmmanuel Vadot				reg = <0x82>;
190f126890aSEmmanuel Vadot				label = "vdd_vin";
191f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <22100 1000>;
192f126890aSEmmanuel Vadot				gw,voltage-offset-microvolt = <800000>;
193f126890aSEmmanuel Vadot			};
194f126890aSEmmanuel Vadot
195f126890aSEmmanuel Vadot			channel@84 {
196f126890aSEmmanuel Vadot				gw,mode = <2>;
197f126890aSEmmanuel Vadot				reg = <0x84>;
198f126890aSEmmanuel Vadot				label = "vdd_5p0";
199f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <22100 10000>;
200f126890aSEmmanuel Vadot			};
201f126890aSEmmanuel Vadot
202f126890aSEmmanuel Vadot			channel@86 {
203f126890aSEmmanuel Vadot				gw,mode = <2>;
204f126890aSEmmanuel Vadot				reg = <0x86>;
205f126890aSEmmanuel Vadot				label = "vdd_3p3";
206f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <10000 10000>;
207f126890aSEmmanuel Vadot			};
208f126890aSEmmanuel Vadot
209f126890aSEmmanuel Vadot			channel@88 {
210f126890aSEmmanuel Vadot				gw,mode = <2>;
211f126890aSEmmanuel Vadot				reg = <0x88>;
212f126890aSEmmanuel Vadot				label = "vdd_2p5";
213f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <10000 10000>;
214f126890aSEmmanuel Vadot			};
215f126890aSEmmanuel Vadot
216f126890aSEmmanuel Vadot			channel@8c {
217f126890aSEmmanuel Vadot				gw,mode = <2>;
218f126890aSEmmanuel Vadot				reg = <0x8c>;
219f126890aSEmmanuel Vadot				label = "vdd_3p0";
220f126890aSEmmanuel Vadot			};
221f126890aSEmmanuel Vadot
222f126890aSEmmanuel Vadot			channel@8e {
223f126890aSEmmanuel Vadot				gw,mode = <2>;
224f126890aSEmmanuel Vadot				reg = <0x8e>;
225f126890aSEmmanuel Vadot				label = "vdd_arm";
226f126890aSEmmanuel Vadot			};
227f126890aSEmmanuel Vadot
228f126890aSEmmanuel Vadot			channel@90 {
229f126890aSEmmanuel Vadot				gw,mode = <2>;
230f126890aSEmmanuel Vadot				reg = <0x90>;
231f126890aSEmmanuel Vadot				label = "vdd_soc";
232f126890aSEmmanuel Vadot			};
233f126890aSEmmanuel Vadot
234f126890aSEmmanuel Vadot			channel@92 {
235f126890aSEmmanuel Vadot				gw,mode = <2>;
236f126890aSEmmanuel Vadot				reg = <0x92>;
237f126890aSEmmanuel Vadot				label = "vdd_1p5";
238f126890aSEmmanuel Vadot			};
239f126890aSEmmanuel Vadot
240f126890aSEmmanuel Vadot			channel@98 {
241f126890aSEmmanuel Vadot				gw,mode = <2>;
242f126890aSEmmanuel Vadot				reg = <0x98>;
243f126890aSEmmanuel Vadot				label = "vdd_1p8";
244f126890aSEmmanuel Vadot			};
245f126890aSEmmanuel Vadot
246f126890aSEmmanuel Vadot			channel@9a {
247f126890aSEmmanuel Vadot				gw,mode = <2>;
248f126890aSEmmanuel Vadot				reg = <0x9a>;
249f126890aSEmmanuel Vadot				label = "vdd_1p0";
250f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <10000 10000>;
251f126890aSEmmanuel Vadot			};
252f126890aSEmmanuel Vadot
253f126890aSEmmanuel Vadot			channel@9c {
254f126890aSEmmanuel Vadot				gw,mode = <2>;
255f126890aSEmmanuel Vadot				reg = <0x9c>;
256f126890aSEmmanuel Vadot				label = "vdd_an1";
257f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <10000 10000>;
258f126890aSEmmanuel Vadot			};
259f126890aSEmmanuel Vadot
260f126890aSEmmanuel Vadot			channel@a2 {
261f126890aSEmmanuel Vadot				gw,mode = <2>;
262f126890aSEmmanuel Vadot				reg = <0xa2>;
263f126890aSEmmanuel Vadot				label = "vdd_gsc";
264f126890aSEmmanuel Vadot				gw,voltage-divider-ohms = <10000 10000>;
265f126890aSEmmanuel Vadot			};
266f126890aSEmmanuel Vadot		};
267f126890aSEmmanuel Vadot	};
268f126890aSEmmanuel Vadot
269f126890aSEmmanuel Vadot	gsc_gpio: gpio@23 {
270f126890aSEmmanuel Vadot		compatible = "nxp,pca9555";
271f126890aSEmmanuel Vadot		reg = <0x23>;
272f126890aSEmmanuel Vadot		gpio-controller;
273f126890aSEmmanuel Vadot		#gpio-cells = <2>;
274f126890aSEmmanuel Vadot		interrupt-parent = <&gsc>;
275f126890aSEmmanuel Vadot		interrupts = <4>;
276f126890aSEmmanuel Vadot	};
277f126890aSEmmanuel Vadot
278f126890aSEmmanuel Vadot	eeprom@50 {
279f126890aSEmmanuel Vadot		compatible = "atmel,24c02";
280f126890aSEmmanuel Vadot		reg = <0x50>;
281f126890aSEmmanuel Vadot		pagesize = <16>;
282f126890aSEmmanuel Vadot	};
283f126890aSEmmanuel Vadot
284f126890aSEmmanuel Vadot	eeprom@51 {
285f126890aSEmmanuel Vadot		compatible = "atmel,24c02";
286f126890aSEmmanuel Vadot		reg = <0x51>;
287f126890aSEmmanuel Vadot		pagesize = <16>;
288f126890aSEmmanuel Vadot	};
289f126890aSEmmanuel Vadot
290f126890aSEmmanuel Vadot	eeprom@52 {
291f126890aSEmmanuel Vadot		compatible = "atmel,24c02";
292f126890aSEmmanuel Vadot		reg = <0x52>;
293f126890aSEmmanuel Vadot		pagesize = <16>;
294f126890aSEmmanuel Vadot	};
295f126890aSEmmanuel Vadot
296f126890aSEmmanuel Vadot	eeprom@53 {
297f126890aSEmmanuel Vadot		compatible = "atmel,24c02";
298f126890aSEmmanuel Vadot		reg = <0x53>;
299f126890aSEmmanuel Vadot		pagesize = <16>;
300f126890aSEmmanuel Vadot	};
301f126890aSEmmanuel Vadot
302f126890aSEmmanuel Vadot	rtc@68 {
303f126890aSEmmanuel Vadot		compatible = "dallas,ds1672";
304f126890aSEmmanuel Vadot		reg = <0x68>;
305f126890aSEmmanuel Vadot	};
306f126890aSEmmanuel Vadot};
307f126890aSEmmanuel Vadot
308f126890aSEmmanuel Vadot&i2c2 {
309f126890aSEmmanuel Vadot	clock-frequency = <100000>;
310f126890aSEmmanuel Vadot	pinctrl-names = "default";
311f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_i2c2>;
312f126890aSEmmanuel Vadot	status = "okay";
313f126890aSEmmanuel Vadot};
314f126890aSEmmanuel Vadot
315f126890aSEmmanuel Vadot&i2c3 {
316f126890aSEmmanuel Vadot	clock-frequency = <100000>;
317f126890aSEmmanuel Vadot	pinctrl-names = "default";
318f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_i2c3>;
319f126890aSEmmanuel Vadot	status = "okay";
320f126890aSEmmanuel Vadot
321f126890aSEmmanuel Vadot	accel@19 {
322f126890aSEmmanuel Vadot		pinctrl-names = "default";
323f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_accel>;
324f126890aSEmmanuel Vadot		compatible = "st,lis2de12";
325f126890aSEmmanuel Vadot		reg = <0x19>;
326f126890aSEmmanuel Vadot		st,drdy-int-pin = <1>;
327f126890aSEmmanuel Vadot		interrupt-parent = <&gpio7>;
328f126890aSEmmanuel Vadot		interrupts = <13 0>;
329f126890aSEmmanuel Vadot	};
330f126890aSEmmanuel Vadot};
331f126890aSEmmanuel Vadot
332f126890aSEmmanuel Vadot&pcie {
333f126890aSEmmanuel Vadot	pinctrl-names = "default";
334f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pcie>;
335f126890aSEmmanuel Vadot	reset-gpio = <&gpio3 20 GPIO_ACTIVE_LOW>;
336f126890aSEmmanuel Vadot	status = "okay";
337f126890aSEmmanuel Vadot};
338f126890aSEmmanuel Vadot
339f126890aSEmmanuel Vadot&pwm2 {
340f126890aSEmmanuel Vadot	pinctrl-names = "default";
341f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
342f126890aSEmmanuel Vadot	status = "disabled";
343f126890aSEmmanuel Vadot};
344f126890aSEmmanuel Vadot
345f126890aSEmmanuel Vadot&pwm3 {
346f126890aSEmmanuel Vadot	pinctrl-names = "default";
347f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
348f126890aSEmmanuel Vadot	status = "disabled";
349f126890aSEmmanuel Vadot};
350f126890aSEmmanuel Vadot
351f126890aSEmmanuel Vadot/* off-board RS232 */
352f126890aSEmmanuel Vadot&uart1 {
353f126890aSEmmanuel Vadot	pinctrl-names = "default";
354f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart1>;
355f126890aSEmmanuel Vadot	status = "okay";
356f126890aSEmmanuel Vadot};
357f126890aSEmmanuel Vadot
358f126890aSEmmanuel Vadot/* serial console */
359f126890aSEmmanuel Vadot&uart2 {
360f126890aSEmmanuel Vadot	pinctrl-names = "default";
361f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart2>;
362f126890aSEmmanuel Vadot	status = "okay";
363f126890aSEmmanuel Vadot};
364f126890aSEmmanuel Vadot
365f126890aSEmmanuel Vadot/* cc1352 */
366f126890aSEmmanuel Vadot&uart3 {
367f126890aSEmmanuel Vadot	pinctrl-names = "default";
368f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart3>;
369f126890aSEmmanuel Vadot	uart-has-rtscts;
370f126890aSEmmanuel Vadot	status = "okay";
371f126890aSEmmanuel Vadot};
372f126890aSEmmanuel Vadot
373f126890aSEmmanuel Vadot/* Sterling-LWB Bluetooth */
374f126890aSEmmanuel Vadot&uart4 {
375f126890aSEmmanuel Vadot	pinctrl-names = "default";
376f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart4>,<&pinctrl_bten>;
377f126890aSEmmanuel Vadot	uart-has-rtscts;
378f126890aSEmmanuel Vadot	status = "okay";
379f126890aSEmmanuel Vadot
380f126890aSEmmanuel Vadot	bluetooth {
381f126890aSEmmanuel Vadot		compatible = "brcm,bcm4330-bt";
382f126890aSEmmanuel Vadot		shutdown-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
383f126890aSEmmanuel Vadot	};
384f126890aSEmmanuel Vadot};
385f126890aSEmmanuel Vadot
386f126890aSEmmanuel Vadot/* GPS */
387f126890aSEmmanuel Vadot&uart5 {
388f126890aSEmmanuel Vadot	pinctrl-names = "default";
389f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart5>;
390f126890aSEmmanuel Vadot	status = "okay";
391f126890aSEmmanuel Vadot};
392f126890aSEmmanuel Vadot
393f126890aSEmmanuel Vadot&usbotg {
394f126890aSEmmanuel Vadot	vbus-supply = <&reg_5p0v>;
395f126890aSEmmanuel Vadot	pinctrl-names = "default";
396f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usbotg>;
397f126890aSEmmanuel Vadot	disable-over-current;
398f126890aSEmmanuel Vadot	status = "okay";
399f126890aSEmmanuel Vadot};
400f126890aSEmmanuel Vadot
401f126890aSEmmanuel Vadot&usbh1 {
402f126890aSEmmanuel Vadot	status = "okay";
403f126890aSEmmanuel Vadot};
404f126890aSEmmanuel Vadot
405f126890aSEmmanuel Vadot/* Sterling-LWB SDIO WiFi */
406f126890aSEmmanuel Vadot&usdhc2 {
407f126890aSEmmanuel Vadot	pinctrl-names = "default";
408f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usdhc2>;
409f126890aSEmmanuel Vadot	vmmc-supply = <&reg_wl>;
410f126890aSEmmanuel Vadot	non-removable;
411f126890aSEmmanuel Vadot	bus-width = <4>;
412f126890aSEmmanuel Vadot	status = "okay";
413f126890aSEmmanuel Vadot};
414f126890aSEmmanuel Vadot
415f126890aSEmmanuel Vadot&usdhc3 {
416f126890aSEmmanuel Vadot	pinctrl-names = "default", "state_100mhz", "state_200mhz";
417f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usdhc3>;
418f126890aSEmmanuel Vadot	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
419f126890aSEmmanuel Vadot	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
420f126890aSEmmanuel Vadot	cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
421f126890aSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
422f126890aSEmmanuel Vadot	status = "okay";
423f126890aSEmmanuel Vadot};
424f126890aSEmmanuel Vadot
425f126890aSEmmanuel Vadot&wdog1 {
426f126890aSEmmanuel Vadot	pinctrl-names = "default";
427f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_wdog>;
428f126890aSEmmanuel Vadot	fsl,ext-reset-output;
429f126890aSEmmanuel Vadot};
430f126890aSEmmanuel Vadot
431f126890aSEmmanuel Vadot&iomuxc {
432f126890aSEmmanuel Vadot	pinctrl_accel: accelmuxgrp {
433f126890aSEmmanuel Vadot		fsl,pins = <
434f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_18__GPIO7_IO13		0x1b0b1
435f126890aSEmmanuel Vadot		>;
436f126890aSEmmanuel Vadot	};
437f126890aSEmmanuel Vadot
438f126890aSEmmanuel Vadot	pinctrl_bten: btengrp {
439f126890aSEmmanuel Vadot		fsl,pins = <
440f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_2__GPIO1_IO02		0x1b0b1
441f126890aSEmmanuel Vadot		>;
442f126890aSEmmanuel Vadot	};
443f126890aSEmmanuel Vadot
444f126890aSEmmanuel Vadot	pinctrl_ecspi3: escpi3grp {
445f126890aSEmmanuel Vadot		fsl,pins = <
446f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK	0x100b1
447f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI	0x100b1
448f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO	0x100b1
449f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24	0x100b1
450f126890aSEmmanuel Vadot		>;
451f126890aSEmmanuel Vadot	};
452f126890aSEmmanuel Vadot
453f126890aSEmmanuel Vadot	pinctrl_enet: enetgrp {
454f126890aSEmmanuel Vadot		fsl,pins = <
455f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_RXC__RGMII_RXC		0x1b030
456f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_RD0__RGMII_RD0		0x1b030
457f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_RD1__RGMII_RD1		0x1b030
458f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_RD2__RGMII_RD2		0x1b030
459f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_RD3__RGMII_RD3		0x1b030
460f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL	0x1b030
461f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_TXC__RGMII_TXC		0x1b030
462f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_TD0__RGMII_TD0		0x1b030
463f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_TD1__RGMII_TD1		0x1b030
464f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_TD2__RGMII_TD2		0x1b030
465f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_TD3__RGMII_TD3		0x1b030
466f126890aSEmmanuel Vadot			MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL	0x1b030
467f126890aSEmmanuel Vadot			MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK	0x1b0b0
468f126890aSEmmanuel Vadot			MX6QDL_PAD_ENET_MDIO__ENET_MDIO		0x1b0b0
469f126890aSEmmanuel Vadot			MX6QDL_PAD_ENET_MDC__ENET_MDC		0x1b0b0
470f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_16__ENET_REF_CLK	0x4001b0a8
471f126890aSEmmanuel Vadot			MX6QDL_PAD_ENET_TXD0__GPIO1_IO30	0x1b0b0
472f126890aSEmmanuel Vadot		>;
473f126890aSEmmanuel Vadot	};
474f126890aSEmmanuel Vadot
475f126890aSEmmanuel Vadot	pinctrl_gpio_leds: gpioledsgrp {
476f126890aSEmmanuel Vadot		fsl,pins = <
477f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_COL0__GPIO4_IO06  0x1b0b0
478f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_ROW0__GPIO4_IO07  0x1b0b0
479f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_ROW4__GPIO4_IO15  0x1b0b0
480f126890aSEmmanuel Vadot		>;
481f126890aSEmmanuel Vadot	};
482f126890aSEmmanuel Vadot
483f126890aSEmmanuel Vadot	pinctrl_gpmi_nand: gpminandgrp {
484f126890aSEmmanuel Vadot		fsl,pins = <
485f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_CLE__NAND_CLE		0xb0b1
486f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_ALE__NAND_ALE		0xb0b1
487f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_WP_B__NAND_WP_B	0xb0b1
488f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_RB0__NAND_READY_B	0xb000
489f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_CS0__NAND_CE0_B	0xb0b1
490f126890aSEmmanuel Vadot			MX6QDL_PAD_SD4_CMD__NAND_RE_B		0xb0b1
491f126890aSEmmanuel Vadot			MX6QDL_PAD_SD4_CLK__NAND_WE_B		0xb0b1
492f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D0__NAND_DATA00	0xb0b1
493f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D1__NAND_DATA01	0xb0b1
494f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D2__NAND_DATA02	0xb0b1
495f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D3__NAND_DATA03	0xb0b1
496f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D4__NAND_DATA04	0xb0b1
497f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D5__NAND_DATA05	0xb0b1
498f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D6__NAND_DATA06	0xb0b1
499f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_D7__NAND_DATA07	0xb0b1
500f126890aSEmmanuel Vadot		>;
501f126890aSEmmanuel Vadot	};
502f126890aSEmmanuel Vadot
503f126890aSEmmanuel Vadot	pinctrl_i2c1: i2c1grp {
504f126890aSEmmanuel Vadot		fsl,pins = <
505f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D21__I2C1_SCL		0x4001b8b1
506f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D28__I2C1_SDA		0x4001b8b1
507f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_4__GPIO1_IO04		0x0001b0b0
508f126890aSEmmanuel Vadot		>;
509f126890aSEmmanuel Vadot	};
510f126890aSEmmanuel Vadot
511f126890aSEmmanuel Vadot	pinctrl_i2c2: i2c2grp {
512f126890aSEmmanuel Vadot		fsl,pins = <
513f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_COL3__I2C2_SCL		0x4001b8b1
514f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_ROW3__I2C2_SDA		0x4001b8b1
515f126890aSEmmanuel Vadot		>;
516f126890aSEmmanuel Vadot	};
517f126890aSEmmanuel Vadot
518f126890aSEmmanuel Vadot	pinctrl_i2c3: i2c3grp {
519f126890aSEmmanuel Vadot		fsl,pins = <
520f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_3__I2C3_SCL		0x4001b8b1
521f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_6__I2C3_SDA		0x4001b8b1
522f126890aSEmmanuel Vadot		>;
523f126890aSEmmanuel Vadot	};
524f126890aSEmmanuel Vadot
525f126890aSEmmanuel Vadot	pinctrl_pcie: pciegrp {
526f126890aSEmmanuel Vadot		fsl,pins = <
527f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D20__GPIO3_IO20		0x1b0b0
528f126890aSEmmanuel Vadot		>;
529f126890aSEmmanuel Vadot	};
530f126890aSEmmanuel Vadot
531f126890aSEmmanuel Vadot	pinctrl_pps: ppsgrp {
532f126890aSEmmanuel Vadot		fsl,pins = <
533f126890aSEmmanuel Vadot			MX6QDL_PAD_DI0_DISP_CLK__GPIO4_IO16	0x1b0b1
534f126890aSEmmanuel Vadot		>;
535f126890aSEmmanuel Vadot	};
536f126890aSEmmanuel Vadot
537f126890aSEmmanuel Vadot	pinctrl_pwm2: pwm2grp {
538f126890aSEmmanuel Vadot		fsl,pins = <
539f126890aSEmmanuel Vadot			MX6QDL_PAD_SD1_DAT2__PWM2_OUT		0x1b0b1
540f126890aSEmmanuel Vadot		>;
541f126890aSEmmanuel Vadot	};
542f126890aSEmmanuel Vadot
543f126890aSEmmanuel Vadot	pinctrl_pwm3: pwm3grp {
544f126890aSEmmanuel Vadot		fsl,pins = <
545f126890aSEmmanuel Vadot			MX6QDL_PAD_SD1_DAT1__PWM3_OUT		0x1b0b1
546f126890aSEmmanuel Vadot		>;
547f126890aSEmmanuel Vadot	};
548f126890aSEmmanuel Vadot
549f126890aSEmmanuel Vadot	pinctrl_reg_wl: regwlgrp {
550f126890aSEmmanuel Vadot		fsl,pins = <
551f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_5__GPIO1_IO05		0x1b0b1
552f126890aSEmmanuel Vadot		>;
553f126890aSEmmanuel Vadot	};
554f126890aSEmmanuel Vadot
555f126890aSEmmanuel Vadot	pinctrl_uart1: uart1grp {
556f126890aSEmmanuel Vadot		fsl,pins = <
557f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA	0x1b0b1
558f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA	0x1b0b1
559f126890aSEmmanuel Vadot		>;
560f126890aSEmmanuel Vadot	};
561f126890aSEmmanuel Vadot
562f126890aSEmmanuel Vadot	pinctrl_uart2: uart2grp {
563f126890aSEmmanuel Vadot		fsl,pins = <
564f126890aSEmmanuel Vadot			MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA	0x1b0b1
565f126890aSEmmanuel Vadot			MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA	0x1b0b1
566f126890aSEmmanuel Vadot		>;
567f126890aSEmmanuel Vadot	};
568f126890aSEmmanuel Vadot
569f126890aSEmmanuel Vadot	pinctrl_uart3: uart3grp {
570f126890aSEmmanuel Vadot		fsl,pins = <
571f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D24__UART3_TX_DATA	0x1b0b1
572f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D25__UART3_RX_DATA	0x1b0b1
573f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D23__UART3_RTS_B		0x1b0b1
574f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_D31__UART3_CTS_B		0x1b0b1
575f126890aSEmmanuel Vadot			MX6QDL_PAD_EIM_A25__GPIO5_IO02		0x4001b0b1 /* DIO20 */
576f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT11__GPIO5_IO05	0x4001b0b1 /* DIO14 */
577f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT12__GPIO5_IO06	0x4001b0b1 /* DIO15 */
578f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT14__GPIO5_IO08	0x1b0b1 /* TMS */
579f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT15__GPIO5_IO09	0x1b0b1 /* TCK */
580f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT16__GPIO5_IO10	0x1b0b1 /* TDO */
581f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11	0x1b0b1 /* TDI */
582f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17	0x4001b0b1 /* RST# */
583f126890aSEmmanuel Vadot		>;
584f126890aSEmmanuel Vadot	};
585f126890aSEmmanuel Vadot
586f126890aSEmmanuel Vadot	pinctrl_uart4: uart4grp {
587f126890aSEmmanuel Vadot		fsl,pins = <
588f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA	0x1b0b1
589f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA	0x1b0b1
590f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B	0x1b0b1
591f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B	0x1b0b1
592f126890aSEmmanuel Vadot		>;
593f126890aSEmmanuel Vadot	};
594f126890aSEmmanuel Vadot
595f126890aSEmmanuel Vadot	pinctrl_uart5: uart5grp {
596f126890aSEmmanuel Vadot		fsl,pins = <
597f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_COL1__UART5_TX_DATA	0x1b0b1
598f126890aSEmmanuel Vadot			MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA	0x1b0b1
599f126890aSEmmanuel Vadot		>;
600f126890aSEmmanuel Vadot	};
601f126890aSEmmanuel Vadot
602f126890aSEmmanuel Vadot	pinctrl_usbotg: usbotggrp {
603f126890aSEmmanuel Vadot		fsl,pins = <
604f126890aSEmmanuel Vadot			MX6QDL_PAD_GPIO_1__USB_OTG_ID		0x13059
605f126890aSEmmanuel Vadot		>;
606f126890aSEmmanuel Vadot	};
607f126890aSEmmanuel Vadot
608f126890aSEmmanuel Vadot	pinctrl_usdhc2: usdhc2grp {
609f126890aSEmmanuel Vadot		fsl,pins = <
610f126890aSEmmanuel Vadot			MX6QDL_PAD_SD2_CMD__SD2_CMD		0x17059
611f126890aSEmmanuel Vadot			MX6QDL_PAD_SD2_CLK__SD2_CLK		0x10059
612f126890aSEmmanuel Vadot			MX6QDL_PAD_SD2_DAT0__SD2_DATA0		0x17059
613f126890aSEmmanuel Vadot			MX6QDL_PAD_SD2_DAT1__SD2_DATA1		0x17059
614f126890aSEmmanuel Vadot			MX6QDL_PAD_SD2_DAT2__SD2_DATA2		0x17059
615f126890aSEmmanuel Vadot			MX6QDL_PAD_SD2_DAT3__SD2_DATA3		0x17059
616f126890aSEmmanuel Vadot		>;
617f126890aSEmmanuel Vadot	};
618f126890aSEmmanuel Vadot
619f126890aSEmmanuel Vadot	pinctrl_usdhc3: usdhc3grp {
620f126890aSEmmanuel Vadot		fsl,pins = <
621f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_CMD__SD3_CMD		0x17059
622f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_CLK__SD3_CLK		0x10059
623f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT0__SD3_DATA0		0x17059
624f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT1__SD3_DATA1		0x17059
625f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT2__SD3_DATA2		0x17059
626f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT3__SD3_DATA3		0x17059
627f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT5__GPIO7_IO00		0x17059 /* CD */
628f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_CS1__SD3_VSELECT	0x17059
629f126890aSEmmanuel Vadot		>;
630f126890aSEmmanuel Vadot	};
631f126890aSEmmanuel Vadot
632*b2d2a78aSEmmanuel Vadot	pinctrl_usdhc3_100mhz: usdhc3-100mhz-grp {
633f126890aSEmmanuel Vadot		fsl,pins = <
634f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_CMD__SD3_CMD		0x170b9
635f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_CLK__SD3_CLK		0x170b9
636f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT0__SD3_DATA0		0x170b9
637f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT1__SD3_DATA1		0x170b9
638f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT2__SD3_DATA2		0x170b9
639f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT3__SD3_DATA3		0x170b9
640f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT5__GPIO7_IO00		0x170b9 /* CD */
641f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_CS1__SD3_VSELECT	0x170b9
642f126890aSEmmanuel Vadot		>;
643f126890aSEmmanuel Vadot	};
644f126890aSEmmanuel Vadot
645*b2d2a78aSEmmanuel Vadot	pinctrl_usdhc3_200mhz: usdhc3-200mhz-grp {
646f126890aSEmmanuel Vadot		fsl,pins = <
647f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_CMD__SD3_CMD		0x170f9
648f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_CLK__SD3_CLK		0x100f9
649f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT0__SD3_DATA0		0x170f9
650f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT1__SD3_DATA1		0x170f9
651f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT2__SD3_DATA2		0x170f9
652f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT3__SD3_DATA3		0x170f9
653f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT5__GPIO7_IO00		0x170f9 /* CD */
654f126890aSEmmanuel Vadot			MX6QDL_PAD_NANDF_CS1__SD3_VSELECT	0x170f9
655f126890aSEmmanuel Vadot		>;
656f126890aSEmmanuel Vadot	};
657f126890aSEmmanuel Vadot
658f126890aSEmmanuel Vadot	pinctrl_wdog: wdoggrp {
659f126890aSEmmanuel Vadot		fsl,pins = <
660f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT8__WDOG1_B		0x1b0b0
661f126890aSEmmanuel Vadot		>;
662f126890aSEmmanuel Vadot	};
663f126890aSEmmanuel Vadot};
664