xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx6ull-uti260b.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*7d0873ebSEmmanuel Vadot// Copyright (C) 2022-2024 Sebastian Reichel <sre@kernel.org>
3*7d0873ebSEmmanuel Vadot
4*7d0873ebSEmmanuel Vadot/dts-v1/;
5*7d0873ebSEmmanuel Vadot#include "imx6ull.dtsi"
6*7d0873ebSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
7*7d0873ebSEmmanuel Vadot#include <dt-bindings/input/input.h>
8*7d0873ebSEmmanuel Vadot#include <dt-bindings/clock/imx6ul-clock.h>
9*7d0873ebSEmmanuel Vadot#include <dt-bindings/leds/common.h>
10*7d0873ebSEmmanuel Vadot
11*7d0873ebSEmmanuel Vadot/ {
12*7d0873ebSEmmanuel Vadot	model = "UNI-T UTi260B Thermal Camera";
13*7d0873ebSEmmanuel Vadot	compatible = "uni-t,uti260b", "fsl,imx6ull";
14*7d0873ebSEmmanuel Vadot
15*7d0873ebSEmmanuel Vadot	chosen {
16*7d0873ebSEmmanuel Vadot		stdout-path = "serial0:115200n8";
17*7d0873ebSEmmanuel Vadot	};
18*7d0873ebSEmmanuel Vadot
19*7d0873ebSEmmanuel Vadot	memory@80000000 {
20*7d0873ebSEmmanuel Vadot		device_type = "memory";
21*7d0873ebSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
22*7d0873ebSEmmanuel Vadot	};
23*7d0873ebSEmmanuel Vadot
24*7d0873ebSEmmanuel Vadot	panel_backlight: backlight {
25*7d0873ebSEmmanuel Vadot		compatible = "pwm-backlight";
26*7d0873ebSEmmanuel Vadot		brightness-levels = <0 4 8 16 32 64 128 255>;
27*7d0873ebSEmmanuel Vadot		default-brightness-level = <6>;
28*7d0873ebSEmmanuel Vadot		enable-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
29*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
30*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_backlight_enable>;
31*7d0873ebSEmmanuel Vadot		power-supply = <&reg_vsd>;
32*7d0873ebSEmmanuel Vadot		pwms = <&pwm1 0 50000 0>;
33*7d0873ebSEmmanuel Vadot	};
34*7d0873ebSEmmanuel Vadot
35*7d0873ebSEmmanuel Vadot	battery: battery {
36*7d0873ebSEmmanuel Vadot		compatible = "simple-battery";
37*7d0873ebSEmmanuel Vadot		/* generic 26650 battery */
38*7d0873ebSEmmanuel Vadot		device-chemistry = "lithium-ion";
39*7d0873ebSEmmanuel Vadot		charge-full-design-microamp-hours = <5000000>;
40*7d0873ebSEmmanuel Vadot		voltage-max-design-microvolt = <4200000>;
41*7d0873ebSEmmanuel Vadot		voltage-min-design-microvolt = <3300000>;
42*7d0873ebSEmmanuel Vadot	};
43*7d0873ebSEmmanuel Vadot
44*7d0873ebSEmmanuel Vadot	tp5000: charger {
45*7d0873ebSEmmanuel Vadot		compatible = "gpio-charger";
46*7d0873ebSEmmanuel Vadot		charger-type = "usb-sdp";
47*7d0873ebSEmmanuel Vadot		gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
48*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
49*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_charger_stat1>;
50*7d0873ebSEmmanuel Vadot	};
51*7d0873ebSEmmanuel Vadot
52*7d0873ebSEmmanuel Vadot	fuel-gauge {
53*7d0873ebSEmmanuel Vadot		compatible = "adc-battery";
54*7d0873ebSEmmanuel Vadot		charged-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
55*7d0873ebSEmmanuel Vadot		io-channel-names = "voltage";
56*7d0873ebSEmmanuel Vadot		io-channels = <&adc1 7>;
57*7d0873ebSEmmanuel Vadot		monitored-battery = <&battery>;
58*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
59*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_charger_stat2>;
60*7d0873ebSEmmanuel Vadot		power-supplies = <&tp5000>;
61*7d0873ebSEmmanuel Vadot	};
62*7d0873ebSEmmanuel Vadot
63*7d0873ebSEmmanuel Vadot	gpio-keys {
64*7d0873ebSEmmanuel Vadot		compatible = "gpio-keys";
65*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
66*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_gpio_keys>;
67*7d0873ebSEmmanuel Vadot		autorepeat;
68*7d0873ebSEmmanuel Vadot
69*7d0873ebSEmmanuel Vadot		up-key {
70*7d0873ebSEmmanuel Vadot			label = "Up";
71*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
72*7d0873ebSEmmanuel Vadot			linux,code = <KEY_UP>;
73*7d0873ebSEmmanuel Vadot		};
74*7d0873ebSEmmanuel Vadot
75*7d0873ebSEmmanuel Vadot		down-key {
76*7d0873ebSEmmanuel Vadot			label = "Down";
77*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
78*7d0873ebSEmmanuel Vadot			linux,code = <KEY_DOWN>;
79*7d0873ebSEmmanuel Vadot		};
80*7d0873ebSEmmanuel Vadot
81*7d0873ebSEmmanuel Vadot		left-key {
82*7d0873ebSEmmanuel Vadot			label = "Left";
83*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
84*7d0873ebSEmmanuel Vadot			linux,code = <KEY_LEFT>;
85*7d0873ebSEmmanuel Vadot		};
86*7d0873ebSEmmanuel Vadot
87*7d0873ebSEmmanuel Vadot		right-key {
88*7d0873ebSEmmanuel Vadot			label = "Right";
89*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
90*7d0873ebSEmmanuel Vadot			linux,code = <KEY_RIGHT>;
91*7d0873ebSEmmanuel Vadot		};
92*7d0873ebSEmmanuel Vadot
93*7d0873ebSEmmanuel Vadot		ok-key {
94*7d0873ebSEmmanuel Vadot			label = "Ok";
95*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
96*7d0873ebSEmmanuel Vadot			linux,code = <KEY_ENTER>;
97*7d0873ebSEmmanuel Vadot		};
98*7d0873ebSEmmanuel Vadot
99*7d0873ebSEmmanuel Vadot		return-key {
100*7d0873ebSEmmanuel Vadot			label = "Return";
101*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
102*7d0873ebSEmmanuel Vadot			linux,code = <KEY_ESC>;
103*7d0873ebSEmmanuel Vadot		};
104*7d0873ebSEmmanuel Vadot
105*7d0873ebSEmmanuel Vadot		play-key {
106*7d0873ebSEmmanuel Vadot			label = "Media";
107*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
108*7d0873ebSEmmanuel Vadot			linux,code = <KEY_MEDIA>;
109*7d0873ebSEmmanuel Vadot		};
110*7d0873ebSEmmanuel Vadot
111*7d0873ebSEmmanuel Vadot		trigger-key {
112*7d0873ebSEmmanuel Vadot			label = "Trigger";
113*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
114*7d0873ebSEmmanuel Vadot			linux,code = <BTN_TRIGGER>;
115*7d0873ebSEmmanuel Vadot		};
116*7d0873ebSEmmanuel Vadot
117*7d0873ebSEmmanuel Vadot		power-key {
118*7d0873ebSEmmanuel Vadot			label = "Power";
119*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
120*7d0873ebSEmmanuel Vadot			linux,code = <KEY_POWER>;
121*7d0873ebSEmmanuel Vadot		};
122*7d0873ebSEmmanuel Vadot
123*7d0873ebSEmmanuel Vadot		light-key {
124*7d0873ebSEmmanuel Vadot			label = "Light";
125*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
126*7d0873ebSEmmanuel Vadot			linux,code = <KEY_LIGHTS_TOGGLE>;
127*7d0873ebSEmmanuel Vadot		};
128*7d0873ebSEmmanuel Vadot	};
129*7d0873ebSEmmanuel Vadot
130*7d0873ebSEmmanuel Vadot	leds {
131*7d0873ebSEmmanuel Vadot		compatible = "gpio-leds";
132*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
133*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_led_ctrl>;
134*7d0873ebSEmmanuel Vadot
135*7d0873ebSEmmanuel Vadot		led {
136*7d0873ebSEmmanuel Vadot			color = <LED_COLOR_ID_WHITE>;
137*7d0873ebSEmmanuel Vadot			function = LED_FUNCTION_FLASH;
138*7d0873ebSEmmanuel Vadot			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
139*7d0873ebSEmmanuel Vadot			default-state = "off";
140*7d0873ebSEmmanuel Vadot		};
141*7d0873ebSEmmanuel Vadot	};
142*7d0873ebSEmmanuel Vadot
143*7d0873ebSEmmanuel Vadot	poweroff {
144*7d0873ebSEmmanuel Vadot		compatible = "gpio-poweroff";
145*7d0873ebSEmmanuel Vadot		gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
146*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
147*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_poweroff>;
148*7d0873ebSEmmanuel Vadot	};
149*7d0873ebSEmmanuel Vadot
150*7d0873ebSEmmanuel Vadot	reg_vref: regulator-vref-4v2 {
151*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
152*7d0873ebSEmmanuel Vadot		regulator-name = "VREF_4V2";
153*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <4200000>;
154*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <4200000>;
155*7d0873ebSEmmanuel Vadot	};
156*7d0873ebSEmmanuel Vadot
157*7d0873ebSEmmanuel Vadot	reg_vsd: regulator-vsd {
158*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
159*7d0873ebSEmmanuel Vadot		regulator-name = "VSD_3V3";
160*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
161*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
162*7d0873ebSEmmanuel Vadot	};
163*7d0873ebSEmmanuel Vadot};
164*7d0873ebSEmmanuel Vadot
165*7d0873ebSEmmanuel Vadot&adc1 {
166*7d0873ebSEmmanuel Vadot	#io-channel-cells = <1>;
167*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
168*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_adc>;
169*7d0873ebSEmmanuel Vadot	vref-supply = <&reg_vref>;
170*7d0873ebSEmmanuel Vadot	status = "okay";
171*7d0873ebSEmmanuel Vadot};
172*7d0873ebSEmmanuel Vadot
173*7d0873ebSEmmanuel Vadot&csi {
174*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
175*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_csi>;
176*7d0873ebSEmmanuel Vadot	status = "okay";
177*7d0873ebSEmmanuel Vadot
178*7d0873ebSEmmanuel Vadot	port {
179*7d0873ebSEmmanuel Vadot		parallel_from_gc0308: endpoint {
180*7d0873ebSEmmanuel Vadot			remote-endpoint = <&gc0308_to_parallel>;
181*7d0873ebSEmmanuel Vadot		};
182*7d0873ebSEmmanuel Vadot	};
183*7d0873ebSEmmanuel Vadot};
184*7d0873ebSEmmanuel Vadot
185*7d0873ebSEmmanuel Vadot&ecspi3 {
186*7d0873ebSEmmanuel Vadot	cs-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
187*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
188*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_spi3>;
189*7d0873ebSEmmanuel Vadot	status = "okay";
190*7d0873ebSEmmanuel Vadot
191*7d0873ebSEmmanuel Vadot	panel@0 {
192*7d0873ebSEmmanuel Vadot		compatible = "inanbo,t28cp45tn89-v17";
193*7d0873ebSEmmanuel Vadot		reg = <0>;
194*7d0873ebSEmmanuel Vadot		backlight = <&panel_backlight>;
195*7d0873ebSEmmanuel Vadot		power-supply = <&reg_vsd>;
196*7d0873ebSEmmanuel Vadot		spi-cpha;
197*7d0873ebSEmmanuel Vadot		spi-cpol;
198*7d0873ebSEmmanuel Vadot		spi-max-frequency = <1000000>;
199*7d0873ebSEmmanuel Vadot		spi-rx-bus-width = <0>;
200*7d0873ebSEmmanuel Vadot
201*7d0873ebSEmmanuel Vadot		port {
202*7d0873ebSEmmanuel Vadot			panel_in: endpoint {
203*7d0873ebSEmmanuel Vadot				remote-endpoint = <&display_out>;
204*7d0873ebSEmmanuel Vadot			};
205*7d0873ebSEmmanuel Vadot		};
206*7d0873ebSEmmanuel Vadot	};
207*7d0873ebSEmmanuel Vadot};
208*7d0873ebSEmmanuel Vadot
209*7d0873ebSEmmanuel Vadot&gpio1 {
210*7d0873ebSEmmanuel Vadot	ir-reset-hog {
211*7d0873ebSEmmanuel Vadot		gpio-hog;
212*7d0873ebSEmmanuel Vadot		gpios = <3 GPIO_ACTIVE_LOW>;
213*7d0873ebSEmmanuel Vadot		line-name = "ir-reset-gpio";
214*7d0873ebSEmmanuel Vadot		output-low;
215*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
216*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_ir_reset>;
217*7d0873ebSEmmanuel Vadot	};
218*7d0873ebSEmmanuel Vadot};
219*7d0873ebSEmmanuel Vadot
220*7d0873ebSEmmanuel Vadot&gpio2 {
221*7d0873ebSEmmanuel Vadot	/* configuring this to output-high results in poweroff */
222*7d0873ebSEmmanuel Vadot	power-en-hog {
223*7d0873ebSEmmanuel Vadot		gpio-hog;
224*7d0873ebSEmmanuel Vadot		gpios = <6 GPIO_ACTIVE_HIGH>;
225*7d0873ebSEmmanuel Vadot		line-name = "power-en-gpio";
226*7d0873ebSEmmanuel Vadot		output-low;
227*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
228*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_poweroff2>;
229*7d0873ebSEmmanuel Vadot	};
230*7d0873ebSEmmanuel Vadot};
231*7d0873ebSEmmanuel Vadot
232*7d0873ebSEmmanuel Vadot&i2c1 {
233*7d0873ebSEmmanuel Vadot	clock-frequency = <100000>;
234*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
235*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_i2c1>;
236*7d0873ebSEmmanuel Vadot	status = "okay";
237*7d0873ebSEmmanuel Vadot
238*7d0873ebSEmmanuel Vadot	camera@21 {
239*7d0873ebSEmmanuel Vadot		compatible = "galaxycore,gc0308";
240*7d0873ebSEmmanuel Vadot		reg = <0x21>;
241*7d0873ebSEmmanuel Vadot		clocks = <&clks IMX6UL_CLK_CSI>;
242*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
243*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&mux_gc0308>;
244*7d0873ebSEmmanuel Vadot		powerdown-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
245*7d0873ebSEmmanuel Vadot		reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
246*7d0873ebSEmmanuel Vadot		vdd28-supply = <&reg_vsd>;
247*7d0873ebSEmmanuel Vadot
248*7d0873ebSEmmanuel Vadot		port {
249*7d0873ebSEmmanuel Vadot			gc0308_to_parallel: endpoint {
250*7d0873ebSEmmanuel Vadot				remote-endpoint = <&parallel_from_gc0308>;
251*7d0873ebSEmmanuel Vadot				bus-width = <8>;
252*7d0873ebSEmmanuel Vadot				data-shift = <2>; /* lines 9:2 are used */
253*7d0873ebSEmmanuel Vadot				hsync-active = <1>; /* active high */
254*7d0873ebSEmmanuel Vadot				vsync-active = <1>; /* active high */
255*7d0873ebSEmmanuel Vadot				data-active = <1>; /* active high */
256*7d0873ebSEmmanuel Vadot				pclk-sample = <1>; /* sample on rising edge */
257*7d0873ebSEmmanuel Vadot			};
258*7d0873ebSEmmanuel Vadot		};
259*7d0873ebSEmmanuel Vadot	};
260*7d0873ebSEmmanuel Vadot};
261*7d0873ebSEmmanuel Vadot
262*7d0873ebSEmmanuel Vadot&i2c2 {
263*7d0873ebSEmmanuel Vadot	clock-frequency = <100000>;
264*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
265*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_i2c2>;
266*7d0873ebSEmmanuel Vadot	status = "okay";
267*7d0873ebSEmmanuel Vadot
268*7d0873ebSEmmanuel Vadot	rtc@51 {
269*7d0873ebSEmmanuel Vadot		compatible = "nxp,pcf8563";
270*7d0873ebSEmmanuel Vadot		reg = <0x51>;
271*7d0873ebSEmmanuel Vadot	};
272*7d0873ebSEmmanuel Vadot};
273*7d0873ebSEmmanuel Vadot
274*7d0873ebSEmmanuel Vadot&lcdif {
275*7d0873ebSEmmanuel Vadot	assigned-clocks = <&clks IMX6UL_CLK_LCDIF_PRE_SEL>;
276*7d0873ebSEmmanuel Vadot	assigned-clock-parents = <&clks IMX6UL_CLK_PLL5_VIDEO_DIV>;
277*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
278*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_lcd_data>, <&mux_lcd_ctrl>;
279*7d0873ebSEmmanuel Vadot	status = "okay";
280*7d0873ebSEmmanuel Vadot
281*7d0873ebSEmmanuel Vadot	port {
282*7d0873ebSEmmanuel Vadot		display_out: endpoint {
283*7d0873ebSEmmanuel Vadot			remote-endpoint = <&panel_in>;
284*7d0873ebSEmmanuel Vadot		};
285*7d0873ebSEmmanuel Vadot	};
286*7d0873ebSEmmanuel Vadot};
287*7d0873ebSEmmanuel Vadot
288*7d0873ebSEmmanuel Vadot&pwm1 {
289*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
290*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_pwm>;
291*7d0873ebSEmmanuel Vadot	status = "okay";
292*7d0873ebSEmmanuel Vadot};
293*7d0873ebSEmmanuel Vadot
294*7d0873ebSEmmanuel Vadot&uart1 {
295*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
296*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_uart>;
297*7d0873ebSEmmanuel Vadot	status = "okay";
298*7d0873ebSEmmanuel Vadot};
299*7d0873ebSEmmanuel Vadot
300*7d0873ebSEmmanuel Vadot&usbotg1 {
301*7d0873ebSEmmanuel Vadot	/* USB-C connector */
302*7d0873ebSEmmanuel Vadot	disable-over-current;
303*7d0873ebSEmmanuel Vadot	dr_mode = "otg";
304*7d0873ebSEmmanuel Vadot	status = "okay";
305*7d0873ebSEmmanuel Vadot};
306*7d0873ebSEmmanuel Vadot
307*7d0873ebSEmmanuel Vadot&usbotg2 {
308*7d0873ebSEmmanuel Vadot	/* thermal sensor */
309*7d0873ebSEmmanuel Vadot	disable-over-current;
310*7d0873ebSEmmanuel Vadot	dr_mode = "host";
311*7d0873ebSEmmanuel Vadot	status = "okay";
312*7d0873ebSEmmanuel Vadot};
313*7d0873ebSEmmanuel Vadot
314*7d0873ebSEmmanuel Vadot&usbphy1 {
315*7d0873ebSEmmanuel Vadot	fsl,tx-d-cal = <106>;
316*7d0873ebSEmmanuel Vadot};
317*7d0873ebSEmmanuel Vadot
318*7d0873ebSEmmanuel Vadot&usbphy2 {
319*7d0873ebSEmmanuel Vadot	fsl,tx-d-cal = <106>;
320*7d0873ebSEmmanuel Vadot};
321*7d0873ebSEmmanuel Vadot
322*7d0873ebSEmmanuel Vadot&usdhc1 {
323*7d0873ebSEmmanuel Vadot	/* MicroSD */
324*7d0873ebSEmmanuel Vadot	cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
325*7d0873ebSEmmanuel Vadot	keep-power-in-suspend;
326*7d0873ebSEmmanuel Vadot	no-1-8-v;
327*7d0873ebSEmmanuel Vadot	pinctrl-names = "default", "state_100mhz", "state_200mhz";
328*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_sdhc1>, <&mux_sdhc1_cd>;
329*7d0873ebSEmmanuel Vadot	pinctrl-1 = <&mux_sdhc1_100mhz>, <&mux_sdhc1_cd>;
330*7d0873ebSEmmanuel Vadot	pinctrl-2 = <&mux_sdhc1_200mhz>, <&mux_sdhc1_cd>;
331*7d0873ebSEmmanuel Vadot	wakeup-source;
332*7d0873ebSEmmanuel Vadot	vmmc-supply = <&reg_vsd>;
333*7d0873ebSEmmanuel Vadot	status = "okay";
334*7d0873ebSEmmanuel Vadot};
335*7d0873ebSEmmanuel Vadot
336*7d0873ebSEmmanuel Vadot&usdhc2 {
337*7d0873ebSEmmanuel Vadot	/* eMMC */
338*7d0873ebSEmmanuel Vadot	keep-power-in-suspend;
339*7d0873ebSEmmanuel Vadot	no-1-8-v;
340*7d0873ebSEmmanuel Vadot	non-removable;
341*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
342*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_sdhc2>;
343*7d0873ebSEmmanuel Vadot	wakeup-source;
344*7d0873ebSEmmanuel Vadot	status = "okay";
345*7d0873ebSEmmanuel Vadot};
346*7d0873ebSEmmanuel Vadot
347*7d0873ebSEmmanuel Vadot&wdog1 {
348*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
349*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&mux_wdog>;
350*7d0873ebSEmmanuel Vadot};
351*7d0873ebSEmmanuel Vadot
352*7d0873ebSEmmanuel Vadot&iomuxc {
353*7d0873ebSEmmanuel Vadot	mux_adc: adcgrp {
354*7d0873ebSEmmanuel Vadot		fsl,pins = <
355*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO07__GPIO1_IO07		0xb0
356*7d0873ebSEmmanuel Vadot		>;
357*7d0873ebSEmmanuel Vadot	};
358*7d0873ebSEmmanuel Vadot
359*7d0873ebSEmmanuel Vadot	mux_backlight_enable: blenablegrp {
360*7d0873ebSEmmanuel Vadot		fsl,pins = <
361*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO09__GPIO1_IO09		0x3008
362*7d0873ebSEmmanuel Vadot		>;
363*7d0873ebSEmmanuel Vadot	};
364*7d0873ebSEmmanuel Vadot
365*7d0873ebSEmmanuel Vadot	mux_charger_stat1: charger1grp {
366*7d0873ebSEmmanuel Vadot		fsl,pins = <
367*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO01__GPIO1_IO01		0x3008
368*7d0873ebSEmmanuel Vadot		>;
369*7d0873ebSEmmanuel Vadot	};
370*7d0873ebSEmmanuel Vadot
371*7d0873ebSEmmanuel Vadot	mux_charger_stat2: charger2grp {
372*7d0873ebSEmmanuel Vadot		fsl,pins = <
373*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO02__GPIO1_IO02		0x3008
374*7d0873ebSEmmanuel Vadot		>;
375*7d0873ebSEmmanuel Vadot	};
376*7d0873ebSEmmanuel Vadot
377*7d0873ebSEmmanuel Vadot	mux_csi: csi1grp {
378*7d0873ebSEmmanuel Vadot		fsl,pins = <
379*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_PIXCLK__CSI_PIXCLK		0x1b088
380*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_VSYNC__CSI_VSYNC			0x1b088
381*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_HSYNC__CSI_HSYNC			0x1b088
382*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA00__CSI_DATA02		0x1b088
383*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA01__CSI_DATA03		0x1b088
384*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA02__CSI_DATA04		0x1b088
385*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA03__CSI_DATA05		0x1b088
386*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA04__CSI_DATA06		0x1b088
387*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA05__CSI_DATA07		0x1b088
388*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA06__CSI_DATA08		0x1b088
389*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_DATA07__CSI_DATA09		0x1b088
390*7d0873ebSEmmanuel Vadot		>;
391*7d0873ebSEmmanuel Vadot	};
392*7d0873ebSEmmanuel Vadot
393*7d0873ebSEmmanuel Vadot	mux_gc0308: gc0308grp {
394*7d0873ebSEmmanuel Vadot		fsl,pins = <
395*7d0873ebSEmmanuel Vadot			MX6UL_PAD_CSI_MCLK__CSI_MCLK			0x1e038
396*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO05__GPIO1_IO05		0x1b088
397*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO06__GPIO1_IO06		0x1b088
398*7d0873ebSEmmanuel Vadot		>;
399*7d0873ebSEmmanuel Vadot	};
400*7d0873ebSEmmanuel Vadot
401*7d0873ebSEmmanuel Vadot	mux_gpio_keys: gpiokeygrp {
402*7d0873ebSEmmanuel Vadot		fsl,pins = <
403*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11		0x3008
404*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_TX_DATA1__GPIO2_IO12		0x3008
405*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_TX_EN__GPIO2_IO13		0x3008
406*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_RX_EN__GPIO2_IO10		0x3008
407*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_RX_DATA1__GPIO2_IO09		0x3008
408*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15		0x3008
409*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08		0x3008
410*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14		0x3008
411*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET1_TX_DATA0__GPIO2_IO03		0x3008
412*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01		0x3008
413*7d0873ebSEmmanuel Vadot		>;
414*7d0873ebSEmmanuel Vadot	};
415*7d0873ebSEmmanuel Vadot
416*7d0873ebSEmmanuel Vadot	mux_i2c1: i2c1grp {
417*7d0873ebSEmmanuel Vadot		fsl,pins = <
418*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART4_TX_DATA__I2C1_SCL		0x4001b8b0
419*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART4_RX_DATA__I2C1_SDA		0x4001b8b0
420*7d0873ebSEmmanuel Vadot		>;
421*7d0873ebSEmmanuel Vadot	};
422*7d0873ebSEmmanuel Vadot
423*7d0873ebSEmmanuel Vadot	mux_i2c2: i2c2grp {
424*7d0873ebSEmmanuel Vadot		fsl,pins = <
425*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART5_TX_DATA__I2C2_SCL		0x4001f8a8
426*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART5_RX_DATA__I2C2_SDA		0x4001f8a8
427*7d0873ebSEmmanuel Vadot		>;
428*7d0873ebSEmmanuel Vadot	};
429*7d0873ebSEmmanuel Vadot
430*7d0873ebSEmmanuel Vadot	mux_ir_reset: irresetgrp {
431*7d0873ebSEmmanuel Vadot		fsl,pins = <
432*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO03__GPIO1_IO03		0x3008
433*7d0873ebSEmmanuel Vadot		>;
434*7d0873ebSEmmanuel Vadot	};
435*7d0873ebSEmmanuel Vadot
436*7d0873ebSEmmanuel Vadot	mux_lcd_ctrl: lcdifctrlgrp {
437*7d0873ebSEmmanuel Vadot		fsl,pins = <
438*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_CLK__LCDIF_CLK			0x79
439*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE		0x79
440*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC		0x79
441*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC		0x79
442*7d0873ebSEmmanuel Vadot		>;
443*7d0873ebSEmmanuel Vadot	};
444*7d0873ebSEmmanuel Vadot
445*7d0873ebSEmmanuel Vadot	mux_lcd_data: lcdifdatgrp {
446*7d0873ebSEmmanuel Vadot		fsl,pins = <
447*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA00__LCDIF_DATA00		0x79
448*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA01__LCDIF_DATA01		0x79
449*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA02__LCDIF_DATA02		0x79
450*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA03__LCDIF_DATA03		0x79
451*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA04__LCDIF_DATA04		0x79
452*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA05__LCDIF_DATA05		0x79
453*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA06__LCDIF_DATA06		0x79
454*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA07__LCDIF_DATA07		0x79
455*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA08__LCDIF_DATA08		0x79
456*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA09__LCDIF_DATA09		0x79
457*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA10__LCDIF_DATA10		0x79
458*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA11__LCDIF_DATA11		0x79
459*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA12__LCDIF_DATA12		0x79
460*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA13__LCDIF_DATA13		0x79
461*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA14__LCDIF_DATA14		0x79
462*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA15__LCDIF_DATA15		0x79
463*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA16__LCDIF_DATA16		0x79
464*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_DATA17__LCDIF_DATA17		0x79
465*7d0873ebSEmmanuel Vadot		>;
466*7d0873ebSEmmanuel Vadot	};
467*7d0873ebSEmmanuel Vadot
468*7d0873ebSEmmanuel Vadot	mux_led_ctrl: ledctrlgrp {
469*7d0873ebSEmmanuel Vadot		fsl,pins = <
470*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET1_RX_EN__GPIO2_IO02		0x3008
471*7d0873ebSEmmanuel Vadot		>;
472*7d0873ebSEmmanuel Vadot	};
473*7d0873ebSEmmanuel Vadot
474*7d0873ebSEmmanuel Vadot	mux_poweroff: poweroffgrp {
475*7d0873ebSEmmanuel Vadot		fsl,pins = <
476*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET1_TX_DATA1__GPIO2_IO04		0x3008
477*7d0873ebSEmmanuel Vadot		>;
478*7d0873ebSEmmanuel Vadot	};
479*7d0873ebSEmmanuel Vadot
480*7d0873ebSEmmanuel Vadot	mux_poweroff2: poweroff2grp {
481*7d0873ebSEmmanuel Vadot		fsl,pins = <
482*7d0873ebSEmmanuel Vadot			MX6UL_PAD_ENET1_TX_CLK__GPIO2_IO06		0x3008
483*7d0873ebSEmmanuel Vadot		>;
484*7d0873ebSEmmanuel Vadot	};
485*7d0873ebSEmmanuel Vadot
486*7d0873ebSEmmanuel Vadot	mux_pwm: pwm1grp {
487*7d0873ebSEmmanuel Vadot		fsl,pins = <
488*7d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO08__PWM1_OUT			0x110b0
489*7d0873ebSEmmanuel Vadot		>;
490*7d0873ebSEmmanuel Vadot	};
491*7d0873ebSEmmanuel Vadot
492*7d0873ebSEmmanuel Vadot	mux_sdhc1: sdhc1grp {
493*7d0873ebSEmmanuel Vadot		fsl,pins = <
494*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_CMD__USDHC1_CMD			0x17059
495*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_CLK__USDHC1_CLK			0x10071
496*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0		0x17059
497*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1		0x17059
498*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2		0x17059
499*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3		0x17059
500*7d0873ebSEmmanuel Vadot		>;
501*7d0873ebSEmmanuel Vadot	};
502*7d0873ebSEmmanuel Vadot
503*7d0873ebSEmmanuel Vadot	mux_sdhc1_100mhz: sdhc1-100mhz-grp {
504*7d0873ebSEmmanuel Vadot		fsl,pins = <
505*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_CMD__USDHC1_CMD			0x170b9
506*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_CLK__USDHC1_CLK			0x170b9
507*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0		0x170b9
508*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1		0x170b9
509*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2		0x170b9
510*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3		0x170b9
511*7d0873ebSEmmanuel Vadot		>;
512*7d0873ebSEmmanuel Vadot	};
513*7d0873ebSEmmanuel Vadot
514*7d0873ebSEmmanuel Vadot	mux_sdhc1_200mhz: sdhc1-200mhz-grp {
515*7d0873ebSEmmanuel Vadot		fsl,pins = <
516*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_CMD__USDHC1_CMD			0x170f9
517*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_CLK__USDHC1_CLK			0x170f9
518*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0		0x170f9
519*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1		0x170f9
520*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2		0x170f9
521*7d0873ebSEmmanuel Vadot			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3		0x170f9
522*7d0873ebSEmmanuel Vadot		>;
523*7d0873ebSEmmanuel Vadot	};
524*7d0873ebSEmmanuel Vadot
525*7d0873ebSEmmanuel Vadot	mux_sdhc1_cd: sdhc1-cd-grp {
526*7d0873ebSEmmanuel Vadot		fsl,pins = <
527*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART1_RTS_B__GPIO1_IO19		0x17059
528*7d0873ebSEmmanuel Vadot		>;
529*7d0873ebSEmmanuel Vadot	};
530*7d0873ebSEmmanuel Vadot
531*7d0873ebSEmmanuel Vadot	mux_sdhc2: sdhc2grp {
532*7d0873ebSEmmanuel Vadot		fsl,pins = <
533*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_RE_B__USDHC2_CLK			0x10069
534*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_WE_B__USDHC2_CMD			0x17059
535*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA00__USDHC2_DATA0		0x17059
536*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA01__USDHC2_DATA1		0x17059
537*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA02__USDHC2_DATA2		0x17059
538*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA03__USDHC2_DATA3		0x17059
539*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA04__USDHC2_DATA4		0x17059
540*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA05__USDHC2_DATA5		0x17059
541*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA06__USDHC2_DATA6		0x17059
542*7d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA07__USDHC2_DATA7		0x17059
543*7d0873ebSEmmanuel Vadot		>;
544*7d0873ebSEmmanuel Vadot	};
545*7d0873ebSEmmanuel Vadot
546*7d0873ebSEmmanuel Vadot	mux_spi3: ecspi3grp {
547*7d0873ebSEmmanuel Vadot		fsl,pins = <
548*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI		0x100b1
549*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK		0x100b1
550*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20		0x3008
551*7d0873ebSEmmanuel Vadot		>;
552*7d0873ebSEmmanuel Vadot	};
553*7d0873ebSEmmanuel Vadot
554*7d0873ebSEmmanuel Vadot	mux_uart: uartgrp {
555*7d0873ebSEmmanuel Vadot		fsl,pins = <
556*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX		0x1b0b1
557*7d0873ebSEmmanuel Vadot			MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX		0x1b0b1
558*7d0873ebSEmmanuel Vadot		>;
559*7d0873ebSEmmanuel Vadot	};
560*7d0873ebSEmmanuel Vadot
561*7d0873ebSEmmanuel Vadot	mux_wdog: wdoggrp {
562*7d0873ebSEmmanuel Vadot		fsl,pins = <
563*7d0873ebSEmmanuel Vadot			MX6UL_PAD_LCD_RESET__WDOG1_WDOG_ANY		0x30b0
564*7d0873ebSEmmanuel Vadot		>;
565*7d0873ebSEmmanuel Vadot	};
566*7d0873ebSEmmanuel Vadot};
567