1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2014 General Electric Company
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 *  a) This file is free software; you can redistribute it and/or
11 *     modify it under the terms of the GNU General Public License
12 *     version 2 as published by the Free Software Foundation.
13 *
14 *     This file 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/dts-v1/;
44
45#include "imx53.dtsi"
46#include <dt-bindings/input/input.h>
47
48/ {
49	model = "General Electric CS ONE";
50	compatible = "ge,imx53-cpuvo", "fsl,imx53";
51
52	aliases {
53		spi0 = &cspi;
54		spi1 = &ecspi1;
55		spi2 = &ecspi2;
56	};
57
58	chosen {
59		stdout-path = "serial0:115200n8";
60	};
61
62	memory@70000000 {
63		device_type = "memory";
64		reg = <0x70000000 0x20000000>,
65		      <0xb0000000 0x20000000>;
66	};
67
68	cko2_11M: sgtl-clock-cko2 {
69		compatible = "fixed-clock";
70		#clock-cells = <0>;
71		clock-frequency = <11289600>;
72	};
73
74	sgtlsound: sound {
75		compatible = "fsl,imx53-cpuvo-sgtl5000",
76			     "fsl,imx-audio-sgtl5000";
77		model = "imx53-cpuvo-sgtl5000";
78		ssi-controller = <&ssi2>;
79		audio-codec = <&sgtl5000>;
80		audio-routing =
81			"MIC_IN", "Mic Jack",
82			"Mic Jack", "Mic Bias",
83			"Headphone Jack", "HP_OUT";
84		mux-int-port = <2>;
85		mux-ext-port = <6>;
86	};
87
88	reg_sgtl5k: regulator-sgtl5k {
89		compatible = "regulator-fixed";
90		regulator-name = "regulator-sgtl5k";
91		regulator-min-microvolt = <3300000>;
92		regulator-max-microvolt = <3300000>;
93		regulator-always-on;
94	};
95
96	reg_usb_otg_vbus: regulator-usb-otg-vbus {
97		compatible = "regulator-fixed";
98		regulator-name = "usbotg_vbus";
99		regulator-min-microvolt = <5000000>;
100		regulator-max-microvolt = <5000000>;
101		pinctrl-0 = <&pinctrl_usb_otg_vbus>;
102		gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
103		enable-active-high;
104	};
105
106	reg_usb_vbus: regulator-usb-vbus {
107		compatible = "regulator-fixed";
108		regulator-name = "usbh1_vbus";
109		regulator-min-microvolt = <5000000>;
110		regulator-max-microvolt = <5000000>;
111		regulator-always-on;
112	};
113
114	reg_usbh2_vbus: regulator-usbh2-vbus {
115		compatible = "regulator-fixed";
116		regulator-name = "usbh2_vbus";
117		regulator-min-microvolt = <5000000>;
118		regulator-max-microvolt = <5000000>;
119		pinctrl-names = "default";
120		pinctrl-0 = <&pinctrl_usbh2_vbus>;
121		gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
122		enable-active-high;
123	};
124
125	reg_usbh3_vbus: regulator-usbh3-vbus {
126		compatible = "regulator-fixed";
127		regulator-name = "usbh3_vbus";
128		regulator-min-microvolt = <5000000>;
129		regulator-max-microvolt = <5000000>;
130		pinctrl-names = "default";
131		pinctrl-0 = <&pinctrl_usbh3_vbus>;
132		gpio = <&gpio5 27 GPIO_ACTIVE_HIGH>;
133		enable-active-high;
134	};
135
136	reg_tsiref: regulator-tsiref {
137		compatible = "regulator-fixed";
138		regulator-name = "tsiref";
139		regulator-min-microvolt = <2500000>;
140		regulator-max-microvolt = <2500000>;
141		regulator-always-on;
142	};
143
144	reg_3v3: regulator-3v3 {
145		/* TPS54320 */
146		compatible = "regulator-fixed";
147		regulator-name = "3V3";
148		regulator-min-microvolt = <3300000>;
149		regulator-max-microvolt = <3300000>;
150		regulator-always-on;
151	};
152
153	reg_3v3_lcd: regulator-3v3-lcd {
154		/* MIC2009 */
155		compatible = "regulator-fixed";
156		regulator-name = "LCD_3V3";
157		vin-supply = <&reg_3v3>;
158		regulator-min-microvolt = <3300000>;
159		regulator-max-microvolt = <3300000>;
160		regulator-always-on;
161	};
162
163	pwm_bl: backlight {
164		compatible = "pwm-backlight";
165		pwms = <&pwm2 0 50000>;
166		brightness-levels = <0 2 5 7 10 12 15 17 20 22 25 28 30 33 35
167				     38 40 43 45 48 51 53 56 58 61 63 66 68 71
168				     73 76 79 81 84 86 89 91 94 96 99 102 104
169				     107 109 112 114 117 119 122 124 127 130
170				     132 135 137 140 142 145 147 150 153 155
171				     158 160 163 165 168 170 173 175 178 181
172				     183 186 188 191 193 196 198 201 204 206
173				     209 211 214 216 219 221 224 226 229 232
174				     234 237 239 242 244 247 249 252 255>;
175		default-brightness-level = <0>;
176		enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
177		power-supply = <&reg_3v3_lcd>;
178	};
179
180	leds {
181		compatible = "pwm-leds";
182
183		alarm-brightness {
184			pwms = <&pwm1 0 100000>;
185			max-brightness = <255>;
186		};
187	};
188
189	gpio-poweroff {
190		compatible = "gpio-poweroff";
191		gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
192	};
193
194	gpio-restart {
195		compatible = "gpio-restart";
196		gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
197		active-delay = <100>;
198		inactive-delay = <10>;
199		wait-delay = <100>;
200	};
201
202	power-gpio-keys {
203		compatible = "gpio-keys";
204
205		power-button {
206			label = "Power button";
207			gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
208			linux,code = <KEY_POWER>;
209		};
210	};
211
212	touch-lock-key {
213		compatible = "gpio-keys";
214
215		touch-lock-button {
216			label = "Touch lock button";
217			gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
218			linux,code = <KEY_F12>;
219		};
220	};
221
222	usbphy2: usbphy-2 {
223		compatible = "usb-nop-xceiv";
224		vcc-supply = <&reg_3v3>;
225		reset-gpios = <&gpio4 4 GPIO_ACTIVE_LOW>;
226		clock-names = "main_clk";
227		clock-frequency = <24000000>;
228		clocks = <&clks IMX5_CLK_CKO2>;
229		assigned-clocks = <&clks IMX5_CLK_CKO2_SEL>, <&clks IMX5_CLK_OSC>;
230		assigned-clock-parents = <&clks IMX5_CLK_OSC>;
231	};
232
233	usbphy3: usbphy-3 {
234		compatible = "usb-nop-xceiv";
235		vcc-supply = <&reg_3v3>;
236		reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
237		clock-names = "main_clk";
238
239		clock-frequency = <24000000>;
240		clocks = <&clks IMX5_CLK_CKO2>;
241		assigned-clocks = <&clks IMX5_CLK_CKO2_SEL>, <&clks IMX5_CLK_OSC>;
242		assigned-clock-parents = <&clks IMX5_CLK_OSC>;
243	};
244
245	panel-lvds0 {
246		compatible = "nvd,9128";
247		power-supply = <&reg_3v3_lcd>;
248
249		port {
250			panel_in_lvds0: endpoint {
251				remote-endpoint = <&lvds0_out>;
252			};
253		};
254	};
255};
256
257&usbphy0 {
258	vcc-supply = <&reg_3v3>;
259};
260
261&usbphy1 {
262	vcc-supply = <&reg_3v3>;
263};
264
265&audmux {
266	pinctrl-names = "default";
267	pinctrl-0 = <&pinctrl_audmux>;
268	status = "okay";
269};
270
271&cpu0 {
272	/* CPU rated to 1GHz, not 1.2GHz as per the default settings */
273	operating-points = <
274		/* kHz   uV */
275		166666  850000
276		400000  900000
277		800000  1050000
278		1000000 1200000
279	>;
280};
281
282&ecspi1 {
283	pinctrl-names = "default";
284	pinctrl-0 = <&pinctrl_ecspi1>;
285	cs-gpios = <&gpio5 17 GPIO_ACTIVE_LOW
286		    &gpio4 10 GPIO_ACTIVE_LOW
287		    &gpio4 11 GPIO_ACTIVE_LOW
288		    &gpio4 12 GPIO_ACTIVE_LOW>;
289	status = "okay";
290
291	spidev0: spi@0 {
292		compatible = "ge,achc";
293		reg = <0>;
294		spi-max-frequency = <1000000>;
295	};
296
297	spidev1: spi@1 {
298		compatible = "ge,achc";
299		reg = <1>;
300		spi-max-frequency = <1000000>;
301	};
302
303	gpioxra0: gpio@2 {
304		compatible = "exar,xra1403";
305		reg = <2>;
306		gpio-controller;
307		#gpio-cells = <2>;
308		spi-max-frequency = <1000000>;
309	};
310
311	gpioxra1: gpio@3 {
312		compatible = "exar,xra1403";
313		reg = <3>;
314		gpio-controller;
315		#gpio-cells = <2>;
316		spi-max-frequency = <1000000>;
317	};
318};
319
320&ecspi2 {
321	pinctrl-names = "default";
322	pinctrl-0 = <&pinctrl_ecspi2>;
323	cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
324	status = "okay";
325
326	da9053@0 {
327		compatible = "dlg,da9053-aa";
328		reg = <0>;
329		interrupt-parent = <&gpio3>;
330		interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
331		spi-max-frequency = <1000000>;
332		dlg,tsi-as-adc;
333		tsiref-supply = <&reg_tsiref>;
334
335		regulators {
336			buck1_reg: buck1 {
337				regulator-name = "BUCKCORE";
338				regulator-min-microvolt = <500000>;
339				regulator-max-microvolt = <2075000>;
340				regulator-always-on;
341			};
342
343			buck2_reg: buck2 {
344				regulator-name = "BUCKPRO";
345				regulator-min-microvolt = <500000>;
346				regulator-max-microvolt = <2075000>;
347				regulator-always-on;
348			};
349
350			buck3_reg: buck3 {
351				regulator-name = "BUCKMEM";
352				regulator-min-microvolt = <925000>;
353				regulator-max-microvolt = <2500000>;
354				regulator-always-on;
355			};
356
357			buck4_reg: buck4 {
358				regulator-name = "BUCKPERI";
359				regulator-min-microvolt = <1800000>;
360				regulator-max-microvolt = <3600000>;
361				regulator-always-on;
362			};
363
364			ldo1_reg: ldo1 {
365				regulator-name = "ldo1_1v3";
366				regulator-min-microvolt = <600000>;
367				regulator-max-microvolt = <1800000>;
368				regulator-always-on;
369			};
370
371			ldo2_reg: ldo2 {
372				regulator-name = "ldo2_1v3";
373				regulator-min-microvolt = <600000>;
374				regulator-max-microvolt = <1800000>;
375				regulator-always-on;
376			};
377
378			ldo3_reg: ldo3 {
379				regulator-name = "ldo3_3v3";
380				regulator-min-microvolt = <1725000>;
381				regulator-max-microvolt = <3300000>;
382				regulator-always-on;
383			};
384
385			ldo4_reg: ldo4 {
386				regulator-name = "ldo4_2v775";
387				regulator-min-microvolt = <1725000>;
388				regulator-max-microvolt = <3300000>;
389				regulator-always-on;
390			};
391
392			ldo5_reg: ldo5 {
393				regulator-name = "ldo5_3v3";
394				regulator-min-microvolt = <1200000>;
395				regulator-max-microvolt = <3600000>;
396				regulator-always-on;
397			};
398
399			ldo6_reg: ldo6 {
400				regulator-name = "ldo6_1v3";
401				regulator-min-microvolt = <1200000>;
402				regulator-max-microvolt = <3600000>;
403				regulator-always-on;
404			};
405
406			ldo7_reg: ldo7 {
407				regulator-name = "ldo7_2v75";
408				regulator-min-microvolt = <1200000>;
409				regulator-max-microvolt = <3600000>;
410				regulator-always-on;
411			};
412
413			ldo8_reg: ldo8 {
414				regulator-name = "ldo8_1v8";
415				regulator-min-microvolt = <1200000>;
416				regulator-max-microvolt = <3600000>;
417				regulator-always-on;
418			};
419
420			ldo9_reg: ldo9 {
421				regulator-name = "ldo9_1v5";
422				regulator-min-microvolt = <1250000>;
423				regulator-max-microvolt = <3650000>;
424				regulator-always-on;
425			};
426
427			ldo10_reg: ldo10 {
428				regulator-name = "ldo10_1v3";
429				regulator-min-microvolt = <1200000>;
430				regulator-max-microvolt = <3600000>;
431				regulator-always-on;
432			};
433		};
434	};
435
436};
437
438&esdhc3 {
439	pinctrl-names = "default";
440	pinctrl-0 = <&pinctrl_esdhc3>;
441	bus-width = <8>;
442	non-removable;
443	status = "okay";
444};
445
446&fec {
447	pinctrl-names = "default";
448	pinctrl-0 = <&pinctrl_fec>;
449	phy-supply = <&reg_3v3>;
450	phy-mode = "rmii";
451	phy-reset-gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
452	status = "okay";
453};
454
455&i2c1 {
456	pinctrl-names = "default", "gpio";
457	pinctrl-0 = <&pinctrl_i2c1>;
458	pinctrl-1 = <&pinctrl_i2c1_gpio>;
459	sda-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
460	scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
461	status = "okay";
462
463	i2c-switch@70 {
464		compatible = "nxp,pca9547";
465		#address-cells = <1>;
466		#size-cells = <0>;
467		reg = <0x70>;
468		reset-gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
469
470		i2c4: i2c@0 {
471			#address-cells = <1>;
472			#size-cells = <0>;
473			reg = <0>;
474
475			sgtl5000: codec@a {
476				compatible = "fsl,sgtl5000";
477				reg = <0xa>;
478				#sound-dai-cells = <0>;
479				VDDA-supply = <&reg_sgtl5k>;
480				VDDIO-supply = <&reg_sgtl5k>;
481				clocks = <&cko2_11M>;
482				status = "okay";
483			};
484		};
485
486		i2c5: i2c@1 {
487			#address-cells = <1>;
488			#size-cells = <0>;
489			reg = <1>;
490
491			rtc@30 {
492			       compatible = "sii,s35392a-rtc";
493			       reg = <0x30>;
494			};
495
496			temp@48 {
497				compatible = "ti,tmp112";
498				reg = <0x48>;
499			};
500
501			mma8453q: accelerometer@1c {
502				compatible = "fsl,mma8453";
503				reg = <0x1c>;
504				interrupt-parent = <&gpio1>;
505				interrupts = <6 IRQ_TYPE_NONE>;
506				interrupt-names = "INT1";
507			};
508
509			mpl3115: pressure-sensor@60 {
510				compatible = "fsl,mpl3115";
511				reg = <0x60>;
512			};
513
514			eeprom: eeprom@50 {
515				compatible = "atmel,24c08";
516				reg = <0x50>;
517			};
518		};
519
520		i2c6: i2c@2 {
521			#address-cells = <1>;
522			#size-cells = <0>;
523			reg = <2>;
524		};
525
526		i2c7: i2c@3 {
527			#address-cells = <1>;
528			#size-cells = <0>;
529			reg = <3>;
530		};
531
532		i2c8: i2c@4 {
533			#address-cells = <1>;
534			#size-cells = <0>;
535			reg = <4>;
536		};
537
538		i2c9: i2c@5 {
539			#address-cells = <1>;
540			#size-cells = <0>;
541			reg = <5>;
542		};
543
544		i2c10: i2c@6 {
545			#address-cells = <1>;
546			#size-cells = <0>;
547			reg = <6>;
548		};
549
550		i2c11: i2c@7 {
551			#address-cells = <1>;
552			#size-cells = <0>;
553			reg = <7>;
554		};
555	};
556};
557
558&i2c2 {
559	pinctrl-names = "default", "gpio";
560	pinctrl-0 = <&pinctrl_i2c2>;
561	pinctrl-1 = <&pinctrl_i2c2_gpio>;
562	sda-gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
563	scl-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
564	status = "okay";
565
566	touchscreen@4b {
567		compatible = "atmel,maxtouch";
568		reset-gpio = <&gpio5 19 GPIO_ACTIVE_HIGH>;
569		reg = <0x4b>;
570		interrupt-parent = <&gpio5>;
571		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
572	};
573};
574
575&i2c3 {
576	pinctrl-names = "default", "gpio";
577	pinctrl-0 = <&pinctrl_i2c3>;
578	pinctrl-1 = <&pinctrl_i2c3_gpio>;
579	sda-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
580	scl-gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>;
581	status = "okay";
582};
583
584&ldb {
585	status = "okay";
586
587	lvds0: lvds-channel@0 {
588		status = "okay";
589
590		port@2 {
591			lvds0_out: endpoint {
592				remote-endpoint = <&panel_in_lvds0>;
593			};
594		};
595	};
596};
597
598&pmu {
599	secure-reg-access;
600};
601
602&pwm1 {
603	pinctrl-names = "default";
604	pinctrl-0 = <&pinctrl_pwm1>;
605	status = "okay";
606};
607
608&pwm2 {
609	pinctrl-names = "default";
610	pinctrl-0 = <&pinctrl_pwm2>;
611	status = "okay";
612};
613
614&ssi2 {
615	status = "okay";
616};
617
618&uart1 {
619	pinctrl-names = "default";
620	pinctrl-0 = <&pinctrl_uart1>;
621	status = "okay";
622};
623
624&uart2 {
625	pinctrl-names = "default";
626	pinctrl-0 = <&pinctrl_uart2>;
627	status = "okay";
628};
629
630&uart3 {
631	pinctrl-names = "default";
632	pinctrl-0 = <&pinctrl_uart3>;
633	uart-has-rtscts;
634	status = "okay";
635};
636
637&uart4 {
638	pinctrl-names = "default";
639	pinctrl-0 = <&pinctrl_uart4>;
640	status = "okay";
641};
642
643&uart5 {
644	pinctrl-names = "default";
645	pinctrl-0 = <&pinctrl_uart5>;
646	status = "okay";
647};
648
649&usbotg {
650	dr_mode = "otg";
651	phy_type = "utmi";
652	vbus-supply = <&reg_usb_otg_vbus>;
653	pinctrl-0 = <&pinctrl_usb_otg>;
654	status = "okay";
655};
656
657&usbh1 {
658	vbus-supply = <&reg_usb_vbus>;
659	phy_type = "utmi";
660	dr_mode = "host";
661	status = "okay";
662};
663
664&usbh2 {
665	pinctrl-names = "default";
666	pinctrl-0 = <&pinctrl_usbh2>;
667	phy_type = "ulpi";
668	dr_mode = "host";
669	fsl,usbphy = <&usbphy2>;
670	vbus-supply = <&reg_usbh2_vbus>;
671	status = "okay";
672};
673
674&usbh3 {
675	pinctrl-names = "default";
676	pinctrl-0 = <&pinctrl_usbh3>;
677	phy_type = "ulpi";
678	dr_mode = "host";
679	vbus-supply = <&reg_usbh3_vbus>;
680	fsl,usbphy = <&usbphy3>;
681	status = "okay";
682};
683
684&iomuxc {
685	pinctrl-names = "default";
686	pinctrl-0 = <&pinctrl_hog_rev6>;
687
688	pinctrl_audmux: audmuxgrp {
689		fsl,pins = <
690			MX53_PAD_DISP0_DAT19__AUDMUX_AUD5_RXD	0x400
691			MX53_PAD_DISP0_DAT17__AUDMUX_AUD5_TXD	0x400
692			MX53_PAD_DISP0_DAT16__AUDMUX_AUD5_TXC	0x400
693			MX53_PAD_DISP0_DAT18__AUDMUX_AUD5_TXFS	0x400
694			MX53_PAD_DI0_PIN15__AUDMUX_AUD6_TXC	0x400
695			MX53_PAD_DI0_PIN3__AUDMUX_AUD6_TXFS	0x400
696			MX53_PAD_DI0_PIN4__AUDMUX_AUD6_RXD	0x400
697			MX53_PAD_DI0_PIN2__AUDMUX_AUD6_TXD	0x400
698		>;
699	};
700
701	pinctrl_ecspi1: ecspi1grp {
702		fsl,pins = <
703			MX53_PAD_DISP0_DAT21__ECSPI1_MOSI	0x400
704			MX53_PAD_DISP0_DAT22__ECSPI1_MISO	0x400
705			MX53_PAD_DISP0_DAT20__ECSPI1_SCLK	0x400
706			/* ECSPI1_SS0, must treat as GPIO for EzPort */
707			MX53_PAD_DISP0_DAT23__GPIO5_17		0x400
708			MX53_PAD_KEY_COL2__GPIO4_10		0x0
709			MX53_PAD_KEY_ROW2__GPIO4_11		0x0
710			MX53_PAD_KEY_COL3__GPIO4_12		0x0
711		>;
712	};
713
714	pinctrl_ecspi2: ecspi2grp {
715		fsl,pins = <
716			MX53_PAD_EIM_CS1__ECSPI2_MOSI		0x0
717			MX53_PAD_EIM_OE__ECSPI2_MISO		0x0
718			MX53_PAD_EIM_CS0__ECSPI2_SCLK		0x0
719			MX53_PAD_EIM_RW__GPIO2_26		0x0
720		>;
721	};
722
723	pinctrl_esdhc1: esdhc1grp {
724		fsl,pins = <
725			MX53_PAD_SD1_DATA0__ESDHC1_DAT0		0x1d5
726			MX53_PAD_SD1_DATA1__ESDHC1_DAT1		0x1d5
727			MX53_PAD_SD1_DATA2__ESDHC1_DAT2		0x1d5
728			MX53_PAD_SD1_DATA3__ESDHC1_DAT3		0x1d5
729			MX53_PAD_SD1_CMD__ESDHC1_CMD		0x1d5
730			MX53_PAD_SD1_CLK__ESDHC1_CLK		0x1d5
731		>;
732	};
733
734	pinctrl_esdhc3: esdhc3grp {
735		fsl,pins = <
736			MX53_PAD_PATA_DATA8__ESDHC3_DAT0	0x1d5
737			MX53_PAD_PATA_DATA9__ESDHC3_DAT1	0x1d5
738			MX53_PAD_PATA_DATA10__ESDHC3_DAT2	0x1d5
739			MX53_PAD_PATA_DATA11__ESDHC3_DAT3	0x1d5
740			MX53_PAD_PATA_DATA0__ESDHC3_DAT4	0x1d5
741			MX53_PAD_PATA_DATA1__ESDHC3_DAT5	0x1d5
742			MX53_PAD_PATA_DATA2__ESDHC3_DAT6	0x1d5
743			MX53_PAD_PATA_DATA3__ESDHC3_DAT7	0x1d5
744			MX53_PAD_PATA_RESET_B__ESDHC3_CMD	0x1d5
745			MX53_PAD_PATA_IORDY__ESDHC3_CLK		0x1d5
746		>;
747	};
748
749	pinctrl_fec: fecgrp {
750		fsl,pins = <
751			MX53_PAD_FEC_MDC__FEC_MDC		0x0
752			MX53_PAD_FEC_MDIO__FEC_MDIO		0x0
753			MX53_PAD_FEC_REF_CLK__FEC_TX_CLK	0x0
754			MX53_PAD_FEC_RX_ER__FEC_RX_ER		0x0
755			MX53_PAD_FEC_CRS_DV__FEC_RX_DV		0x0
756			MX53_PAD_FEC_RXD1__FEC_RDATA_1		0x0
757			MX53_PAD_FEC_RXD0__FEC_RDATA_0		0x0
758			MX53_PAD_FEC_TX_EN__FEC_TX_EN		0x0
759			MX53_PAD_FEC_TXD1__FEC_TDATA_1		0x0
760			MX53_PAD_FEC_TXD0__FEC_TDATA_0		0x0
761		>;
762	};
763
764	pinctrl_hog_rev6: hoggrp {
765		fsl,pins = <
766			/* CKO2 */
767			MX53_PAD_GPIO_3__CCM_CLKO2		0x4
768			/* DEFIB_SYNC_MARKER_IN_IRQ */
769			MX53_PAD_GPIO_5__GPIO1_5		0x0
770			/* ACCELEROMETER_DATA_RDY_N */
771			MX53_PAD_GPIO_6__GPIO1_6		0x0
772			/* TEMPERATURE_ALERT_N */
773			MX53_PAD_GPIO_7__GPIO1_7		0x0
774			/* BAROMETRIC_PRESSURE_DATA_RDY_N */
775			MX53_PAD_GPIO_8__GPIO1_8		0x0
776			/* DOCKING_I2C_INTERFACE_IRQ_N */
777			MX53_PAD_PATA_DATA4__GPIO2_4		0x0
778			/* PWR_OUT_TO_DOCK_FAULT_N */
779			MX53_PAD_PATA_DATA5__GPIO2_5		0x0
780			/* ENABLE_PWR_TO_DOCK_N */
781			MX53_PAD_PATA_DATA6__GPIO2_6		0x0
782			/* HOST_CONTROLLED_RESET_TO_DOCKING_CONNECTOR_N */
783			MX53_PAD_PATA_DATA7__GPIO2_7		0x0
784			/* REMOTE_ON_REQUEST_FROM_DOCKING_CONNECTOR_IS_ACTIVE_N */
785			MX53_PAD_PATA_DATA12__GPIO2_12		0x0
786			/* DOCK_PRESENT_N */
787			MX53_PAD_PATA_DATA13__GPIO2_13		0x0
788			/* ECG_MARKER_IN_FROM_DOCKING_CONNECTOR_IRQ */
789			MX53_PAD_PATA_DATA14__GPIO2_14		0x0
790			/* ENABLE_ECG_MARKER_INTERFACE_TO_DOCKING_CONNECTOR */
791			MX53_PAD_PATA_DATA15__GPIO2_15		0x0
792			/* RESET_IMX535_ETHERNET_PHY_N */
793			MX53_PAD_EIM_A22__GPIO2_16		0x0
794			/* ENABLE_PWR_TO_LCD_AND_UI_INTERFACE */
795			MX53_PAD_EIM_A21__GPIO2_17		0x0
796			/* RESET_I2C1_BUS_SEGMENT_MUX_N */
797			MX53_PAD_EIM_A20__GPIO2_18		0x0
798			/* RESET_IMX535_USB_HOST3_PHY_N */
799			MX53_PAD_EIM_A19__GPIO2_19		0x0
800			/* ESDHC3_EMMC_NAND_RST_N */
801			MX53_PAD_EIM_A18__GPIO2_20		0x0
802			/* LCD_AND_UI_INTERFACE_PWR_FAULT_N */
803			MX53_PAD_EIM_A17__GPIO2_21		0x0
804			/* POWER_DOWN_LVDS0_DESERIALIZER_N */
805			MX53_PAD_EIM_A16__GPIO2_22		0x0
806			/* POWER_DOWN_LVDS1_DESERIALIZER_N */
807			MX53_PAD_EIM_LBA__GPIO2_27		0x0
808			/* RESET_DP0_TRANSMITTER_N */
809			MX53_PAD_EIM_EB0__GPIO2_28		0x0
810			/* RESET_DP1_TRANSMITTER_N */
811			MX53_PAD_EIM_EB1__GPIO2_29		0x0
812			/* ENABLE_SPDIF_AUDIO_TO_DP0 */
813			MX53_PAD_EIM_DA0__GPIO3_0		0x0
814			/* ENABLE_SPDIF_AUDIO_TO_DP1 */
815			MX53_PAD_EIM_DA1__GPIO3_1		0x0
816			/* LVDS1_MUX_CTRL */
817			MX53_PAD_EIM_DA2__GPIO3_2		0x0
818			/* LVDS0_MUX_CTRL */
819			MX53_PAD_EIM_DA3__GPIO3_3		0x0
820			/* DP1_TRANSMITTER_IRQ */
821			MX53_PAD_EIM_DA4__GPIO3_4		0x0
822			/* DP0_TRANSMITTER_IRQ */
823			MX53_PAD_EIM_DA5__GPIO3_5		0x0
824			/* USB_RESET_N */
825			MX53_PAD_EIM_DA6__GPIO3_6		0x0
826			/* ENABLE_BATTERY_CHARGER */
827			MX53_PAD_EIM_DA7__GPIO3_7		0x0
828			/* SOFTWARE_CONTROLLED_PWR_CYCLE */
829			MX53_PAD_EIM_DA8__GPIO3_8		0x0
830			/* SOFTWARE_CONTROLLED_POWERDOWN */
831			MX53_PAD_EIM_DA9__GPIO3_9		0x0
832			/* DC_PWR_IN_OK */
833			MX53_PAD_EIM_DA10__GPIO3_10		0x0
834			/* BATT_PRESENT_N */
835			MX53_PAD_EIM_DA11__GPIO3_11		0xe4
836			/* PMIC_IRQ_N */
837			MX53_PAD_EIM_DA12__GPIO3_12		0x0
838			/* PMIC_VDD_FAULT_STATUS_N */
839			MX53_PAD_EIM_DA13__GPIO3_13		0x0
840			/* IMX535_ETHERNET_PHY_STATUS_IRQ_N */
841			MX53_PAD_EIM_DA14__GPIO3_14		0x0
842			/* NOT USED - AVAILABLE 3.3V GPIO */
843			MX53_PAD_EIM_DA15__GPIO3_15		0x0
844			/* NOT USED - AVAILABLE 3.3V GPIO */
845			MX53_PAD_EIM_D22__GPIO3_22		0x0
846			/* NOT USED - AVAILABLE 3.3V GPIO */
847			MX53_PAD_EIM_D24__GPIO3_24		0x0
848			/* NBP_PUMP_VALVE_PWR_ENABLE */
849			MX53_PAD_EIM_D25__GPIO3_25		0x0
850			/* NIBP_RESET_N */
851			MX53_PAD_EIM_D26__GPIO3_26		0x0
852			/* LATCHED_OVERPRESSURE_N */
853			MX53_PAD_EIM_D27__GPIO3_27		0x0
854			/* NBP_SBWTCLK */
855			MX53_PAD_EIM_D29__GPIO3_29		0x0
856			/* ENABLE_WIFI_MODULE */
857			MX53_PAD_GPIO_11__GPIO4_1		0x400
858			/* WIFI_MODULE_IRQ_N */
859			MX53_PAD_GPIO_12__GPIO4_2		0x400
860			/* ENABLE_BLUETOOTH_MODULE */
861			MX53_PAD_GPIO_13__GPIO4_3		0x400
862			/* RESET_IMX535_USB_HOST2_PHY_N */
863			MX53_PAD_GPIO_14__GPIO4_4		0x400
864			/* ONKEY_IS_DEPRESSED */
865			MX53_PAD_KEY_ROW3__GPIO4_13		0x0
866			/* UNUSED_GPIO_TO_ALARM_LIGHT_BOARD */
867			MX53_PAD_EIM_WAIT__GPIO5_0		0x0
868			/* DISPLAY_LOCK_BUTTON_IS_DEPRESSED_N */
869			MX53_PAD_EIM_A25__GPIO5_2		0x0
870			/* I2C_PCAP_TOUCHSCREEN_IRQ_N */
871			MX53_PAD_EIM_A24__GPIO5_4		0x0
872			/* NOT USED - AVAILABLE 1.8V GPIO */
873			MX53_PAD_DISP0_DAT13__GPIO5_7		0x400
874			/* NOT USED - AVAILABLE 1.8V GPIO */
875			MX53_PAD_DISP0_DAT14__GPIO5_8		0x400
876			/* NOT USED - AVAILABLE 1.8V GPIO */
877			MX53_PAD_DISP0_DAT15__GPIO5_9		0x400
878			/* HOST_CONTROLLED_RESET_TO_LCD_N */
879			MX53_PAD_CSI0_PIXCLK__GPIO5_18		0x0
880			/* HOST_CONTROLLED_RESET_TO_PCAP_N */
881			MX53_PAD_CSI0_MCLK__GPIO5_19		0x0
882			/* LR_SCAN_CTRL */
883			MX53_PAD_CSI0_DATA_EN__GPIO5_20		0x0
884			/* UD_SCAN_CTRL */
885			MX53_PAD_CSI0_VSYNC__GPIO5_21		0x0
886			/* DATA_WIDTH_CTRL */
887			MX53_PAD_CSI0_DAT10__GPIO5_28		0x0
888			/* BACKLIGHT_ENABLE */
889			MX53_PAD_CSI0_DAT11__GPIO5_29		0x0
890			/* MED_USB_PORT_1_HOST_SELECT */
891			MX53_PAD_EIM_A23__GPIO6_6		0x0
892			/* MED_USB_PORT_2_HOST_SELECT */
893			MX53_PAD_NANDF_CLE__GPIO6_7		0x0
894			/* MED_USB_PORT_3_HOST_SELECT */
895			MX53_PAD_NANDF_ALE__GPIO6_8		0x0
896			/* MED_USB_PORT_4_HOST_SELECT */
897			MX53_PAD_NANDF_WP_B__GPIO6_9		0x0
898			/* MED_USB_PORT_5_HOST_SELECT */
899			MX53_PAD_NANDF_RB0__GPIO6_10		0x0
900			/* MED_USB_PORT_6_HOST_SELECT */
901			MX53_PAD_NANDF_CS0__GPIO6_11		0x0
902			/* MED_USB_PORT_7_HOST_SELECT */
903			MX53_PAD_NANDF_WE_B__GPIO6_12		0x0
904			/* MED_USB_PORT_8_HOST_SELECT */
905			MX53_PAD_NANDF_RE_B__GPIO6_13		0x0
906			/* MED_USB_PORT_TO_IMX_SELECT_0 */
907			MX53_PAD_NANDF_CS1__GPIO6_14		0x0
908			/* MED_USB_PORT_TO_IMX_SELECT_1 */
909			MX53_PAD_NANDF_CS2__GPIO6_15		0x0
910			/* MED_USB_PORT_TO_IMX_SELECT_2 */
911			MX53_PAD_NANDF_CS3__GPIO6_16		0x0
912			/* POWER_AND_BOOT_STATUS_INDICATOR */
913			MX53_PAD_PATA_INTRQ__GPIO7_2		0x1e4
914			/* ACTIVATE_ALARM_LIGHT_RED */
915			MX53_PAD_PATA_DIOR__GPIO7_3		0x0
916			/* ACTIVATE_ALARM_LIGHT_YELLOW */
917			MX53_PAD_PATA_DA_1__GPIO7_7		0x0
918			/* ACTIVATE_ALARM_LIGHT_CYAN */
919			MX53_PAD_PATA_DA_2__GPIO7_8		0x0
920			/* RUNNING_ON_BATTERY_INDICATOR_GREEN */
921			MX53_PAD_GPIO_16__GPIO7_11		0x0
922			/* BATTERY_STATUS_INDICATOR_AMBER */
923			MX53_PAD_GPIO_17__GPIO7_12		0x0
924			/* AUDIO_ALARMS_SILENCED_INDICATOR */
925			MX53_PAD_GPIO_18__GPIO7_13		0x0
926		>;
927	};
928
929	pinctrl_i2c1: i2c1grp {
930		fsl,pins = <
931			MX53_PAD_EIM_D21__I2C1_SCL		0x400001e4
932			MX53_PAD_EIM_D28__I2C1_SDA		0x400001e4
933		>;
934	};
935
936	pinctrl_i2c1_gpio: i2c1gpiogrp {
937		fsl,pins = <
938			MX53_PAD_EIM_D28__GPIO3_28		0x1e4
939			MX53_PAD_EIM_D21__GPIO3_21		0x1e4
940		>;
941	};
942
943	pinctrl_i2c2: i2c2grp {
944		fsl,pins = <
945			MX53_PAD_EIM_EB2__I2C2_SCL		0x400001e4
946			MX53_PAD_EIM_D16__I2C2_SDA		0x400001e4
947		>;
948	};
949
950	pinctrl_i2c2_gpio: i2c2gpiogrp {
951		fsl,pins = <
952			MX53_PAD_EIM_D16__GPIO3_16		0x1e4
953			MX53_PAD_EIM_EB2__GPIO2_30		0x1e4
954		>;
955	};
956
957	pinctrl_i2c3: i2c3grp {
958		fsl,pins = <
959			MX53_PAD_EIM_D17__I2C3_SCL		0x400001e4
960			MX53_PAD_EIM_D18__I2C3_SDA		0x400001e4
961		>;
962	};
963
964	pinctrl_i2c3_gpio: i2c3gpiogrp {
965		fsl,pins = <
966			MX53_PAD_EIM_D18__GPIO3_18		0x1e4
967			MX53_PAD_EIM_D17__GPIO3_17		0x1e4
968		>;
969	};
970
971	pinctrl_pwm1: pwm1grp {
972		fsl,pins = <
973			MX53_PAD_GPIO_9__PWM1_PWMO		0x5
974		>;
975	};
976
977	pinctrl_pwm2: pwm2grp {
978		fsl,pins = <
979			MX53_PAD_DISP0_DAT9__PWM2_PWMO		0x5
980		>;
981	};
982
983	pinctrl_uart1: uart1grp {
984		fsl,pins = <
985			MX53_PAD_PATA_DIOW__UART1_TXD_MUX	0x1e4
986			MX53_PAD_PATA_DMACK__UART1_RXD_MUX	0x1e4
987		>;
988	};
989
990	pinctrl_uart2: uart2grp {
991		fsl,pins = <
992			MX53_PAD_PATA_DMARQ__UART2_TXD_MUX	0x1e4
993			MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX	0x1e4
994		>;
995	};
996
997	pinctrl_uart3: uart3grp {
998		fsl,pins = <
999			MX53_PAD_PATA_CS_0__UART3_TXD_MUX	0x1e4
1000			MX53_PAD_PATA_CS_1__UART3_RXD_MUX	0x1e4
1001			MX53_PAD_EIM_D23__UART3_CTS		0x1e4
1002			MX53_PAD_EIM_EB3__UART3_RTS		0x1e4
1003		>;
1004	};
1005
1006	pinctrl_uart4: uart4grp {
1007		fsl,pins = <
1008			MX53_PAD_KEY_COL0__UART4_TXD_MUX	0x1e4
1009			MX53_PAD_KEY_ROW0__UART4_RXD_MUX	0x1e4
1010		>;
1011	};
1012
1013	pinctrl_uart5: uart5grp {
1014		fsl,pins = <
1015			MX53_PAD_KEY_COL1__UART5_TXD_MUX	0x1e4
1016			MX53_PAD_KEY_ROW1__UART5_RXD_MUX	0x1e4
1017		>;
1018	};
1019
1020	pinctrl_usb_otg_vbus: usb-otg-vbusgrp {
1021		fsl,pins = <
1022			/* USB_HS_OTG_VBUS_ENABLE */
1023			MX53_PAD_KEY_ROW4__GPIO4_15		0x1c4
1024		>;
1025	};
1026
1027	pinctrl_usbh2: usbh2grp {
1028		fsl,pins = <
1029			/* USB H2 */
1030			MX53_PAD_DISP0_DAT0__USBOH3_USBH2_DATA_0 0x180
1031			MX53_PAD_DISP0_DAT1__USBOH3_USBH2_DATA_1 0x180
1032			MX53_PAD_DISP0_DAT2__USBOH3_USBH2_DATA_2 0x180
1033			MX53_PAD_DISP0_DAT3__USBOH3_USBH2_DATA_3 0x180
1034			MX53_PAD_DISP0_DAT4__USBOH3_USBH2_DATA_4 0x180
1035			MX53_PAD_DISP0_DAT5__USBOH3_USBH2_DATA_5 0x180
1036			MX53_PAD_DISP0_DAT6__USBOH3_USBH2_DATA_6 0x180
1037			MX53_PAD_DISP0_DAT7__USBOH3_USBH2_DATA_7 0x180
1038			MX53_PAD_DISP0_DAT10__USBOH3_USBH2_STP	 0x180
1039			MX53_PAD_DISP0_DAT11__USBOH3_USBH2_NXT	 0x180
1040			MX53_PAD_DISP0_DAT12__USBOH3_USBH2_CLK	 0x180
1041			MX53_PAD_DI0_DISP_CLK__USBOH3_USBH2_DIR	 0x5
1042			MX53_PAD_EIM_D30__USBOH3_USBH2_OC	 0x180
1043		>;
1044	};
1045
1046	pinctrl_usbh2_vbus: usbh2-vbusgrp {
1047		fsl,pins = <
1048			/* USB_HS_HOST2_VBUS_ENABLE */
1049			MX53_PAD_EIM_D31__GPIO3_31		0x0
1050		>;
1051	};
1052
1053	pinctrl_usbh3_vbus: usbh3-vbusgrp {
1054		fsl,pins = <
1055			/* USB_HS_HOST3_VBUS_ENABLE */
1056			MX53_PAD_CSI0_DAT9__GPIO5_27		0x0
1057		>;
1058	};
1059
1060	pinctrl_usbh3: usbh3grp {
1061		fsl,pins = <
1062			/* USB H3 */
1063			MX53_PAD_CSI0_DAT12__USBOH3_USBH3_DATA_0 0x180
1064			MX53_PAD_CSI0_DAT13__USBOH3_USBH3_DATA_1 0x180
1065			MX53_PAD_CSI0_DAT14__USBOH3_USBH3_DATA_2 0x180
1066			MX53_PAD_CSI0_DAT15__USBOH3_USBH3_DATA_3 0x180
1067			MX53_PAD_CSI0_DAT16__USBOH3_USBH3_DATA_4 0x180
1068			MX53_PAD_CSI0_DAT17__USBOH3_USBH3_DATA_5 0x180
1069			MX53_PAD_CSI0_DAT18__USBOH3_USBH3_DATA_6 0x180
1070			MX53_PAD_CSI0_DAT19__USBOH3_USBH3_DATA_7 0x180
1071			MX53_PAD_CSI0_DAT7__USBOH3_USBH3_DIR	 0x5
1072			MX53_PAD_CSI0_DAT6__USBOH3_USBH3_CLK	 0x180
1073			MX53_PAD_CSI0_DAT5__USBOH3_USBH3_NXT	 0x180
1074			MX53_PAD_CSI0_DAT4__USBOH3_USBH3_STP	 0x180
1075			MX53_PAD_CSI0_DAT8__USBOH3_USBH3_OC	 0x180
1076		>;
1077	};
1078
1079	pinctrl_usb_otg: usbotggrp {
1080		fsl,pins = <
1081			/* USB_OTG_FAULT_N */
1082			MX53_PAD_KEY_COL4__USBOH3_USBOTG_OC	0x180
1083		>;
1084	};
1085};
1086
1087#include "imx53-ppd-uboot.dtsi"
1088