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