xref: /linux/arch/arm/boot/dts/nxp/imx/imx51-apf51dev.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright 2013 Armadeus Systems - <support@armadeus.com>
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring/* APF51Dev is a docking board for the APF51 SOM */
7724ba675SRob Herring#include "imx51-apf51.dts"
8724ba675SRob Herring
9724ba675SRob Herring/ {
10724ba675SRob Herring	model = "Armadeus Systems APF51Dev docking/development board";
11724ba675SRob Herring	compatible = "armadeus,imx51-apf51dev", "armadeus,imx51-apf51", "fsl,imx51";
12724ba675SRob Herring
13724ba675SRob Herring	backlight {
14724ba675SRob Herring		pinctrl-names = "default";
15724ba675SRob Herring		pinctrl-0 = <&pinctrl_backlight>;
16724ba675SRob Herring		compatible = "gpio-backlight";
17724ba675SRob Herring		gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
18724ba675SRob Herring		default-on;
19724ba675SRob Herring	};
20724ba675SRob Herring
21724ba675SRob Herring	disp1 {
22724ba675SRob Herring		compatible = "fsl,imx-parallel-display";
23724ba675SRob Herring		interface-pix-fmt = "bgr666";
24724ba675SRob Herring		pinctrl-names = "default";
25724ba675SRob Herring		pinctrl-0 = <&pinctrl_ipu_disp1>;
26724ba675SRob Herring
27724ba675SRob Herring		display-timings {
28*069e81eaSKrzysztof Kozlowski			native-mode = <&timing0>;
2924583888SKrzysztof Kozlowski			timing0: timing-lw700 {
30724ba675SRob Herring				clock-frequency = <33000033>;
31724ba675SRob Herring				hactive = <800>;
32724ba675SRob Herring				vactive = <480>;
33724ba675SRob Herring				hback-porch = <96>;
34724ba675SRob Herring				hfront-porch = <96>;
35724ba675SRob Herring				vback-porch = <20>;
36724ba675SRob Herring				vfront-porch = <21>;
37724ba675SRob Herring				hsync-len = <64>;
38724ba675SRob Herring				vsync-len = <4>;
39724ba675SRob Herring				hsync-active = <1>;
40724ba675SRob Herring				vsync-active = <1>;
41724ba675SRob Herring				de-active = <1>;
42724ba675SRob Herring				pixelclk-active = <0>;
43724ba675SRob Herring			};
44724ba675SRob Herring		};
45724ba675SRob Herring
46724ba675SRob Herring		port {
47724ba675SRob Herring			display_in: endpoint {
48724ba675SRob Herring				remote-endpoint = <&ipu_di0_disp1>;
49724ba675SRob Herring			};
50724ba675SRob Herring		};
51724ba675SRob Herring	};
52724ba675SRob Herring
53724ba675SRob Herring	gpio-keys {
54724ba675SRob Herring		compatible = "gpio-keys";
55724ba675SRob Herring
56724ba675SRob Herring		user-key {
57724ba675SRob Herring			label = "user";
58724ba675SRob Herring			gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
59724ba675SRob Herring			linux,code = <256>; /* BTN_0 */
60724ba675SRob Herring		};
61724ba675SRob Herring	};
62724ba675SRob Herring
63724ba675SRob Herring	leds {
64724ba675SRob Herring		compatible = "gpio-leds";
65724ba675SRob Herring
66724ba675SRob Herring		led-user {
67724ba675SRob Herring			label = "Heartbeat";
68724ba675SRob Herring			gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
69724ba675SRob Herring			linux,default-trigger = "heartbeat";
70724ba675SRob Herring		};
71724ba675SRob Herring	};
72724ba675SRob Herring};
73724ba675SRob Herring
74724ba675SRob Herring&ecspi1 {
75724ba675SRob Herring	pinctrl-names = "default";
76724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi1>;
77724ba675SRob Herring	cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>,
78724ba675SRob Herring		   <&gpio4 25 GPIO_ACTIVE_LOW>;
79724ba675SRob Herring	status = "okay";
80724ba675SRob Herring};
81724ba675SRob Herring
82724ba675SRob Herring&ecspi2 {
83724ba675SRob Herring	pinctrl-names = "default";
84724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi2>;
85724ba675SRob Herring	cs-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>,
86724ba675SRob Herring		   <&gpio3 27 GPIO_ACTIVE_LOW>;
87724ba675SRob Herring	status = "okay";
88724ba675SRob Herring};
89724ba675SRob Herring
90724ba675SRob Herring&esdhc1 {
91724ba675SRob Herring	pinctrl-names = "default";
92724ba675SRob Herring	pinctrl-0 = <&pinctrl_esdhc1>;
93724ba675SRob Herring	cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
94724ba675SRob Herring	bus-width = <4>;
95724ba675SRob Herring	status = "okay";
96724ba675SRob Herring};
97724ba675SRob Herring
98724ba675SRob Herring&esdhc2 {
99724ba675SRob Herring	pinctrl-names = "default";
100724ba675SRob Herring	pinctrl-0 = <&pinctrl_esdhc2>;
101724ba675SRob Herring	bus-width = <4>;
102724ba675SRob Herring	non-removable;
103724ba675SRob Herring	status = "okay";
104724ba675SRob Herring};
105724ba675SRob Herring
106724ba675SRob Herring&i2c2 {
107724ba675SRob Herring	pinctrl-names = "default";
108724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c2>;
109724ba675SRob Herring	status = "okay";
110724ba675SRob Herring};
111724ba675SRob Herring
112724ba675SRob Herring&iomuxc {
113724ba675SRob Herring	pinctrl-names = "default";
114724ba675SRob Herring	pinctrl-0 = <&pinctrl_hog>;
115724ba675SRob Herring
116724ba675SRob Herring	imx51-apf51dev {
117724ba675SRob Herring		pinctrl_backlight: backlightgrp {
118724ba675SRob Herring			fsl,pins = <
119724ba675SRob Herring				MX51_PAD_DI1_D1_CS__GPIO3_4 0x1F5
120724ba675SRob Herring			>;
121724ba675SRob Herring		};
122724ba675SRob Herring
123724ba675SRob Herring		pinctrl_hog: hoggrp {
124724ba675SRob Herring			fsl,pins = <
125724ba675SRob Herring				MX51_PAD_EIM_EB2__GPIO2_22   0x0C5
126724ba675SRob Herring				MX51_PAD_EIM_EB3__GPIO2_23   0x0C5
127724ba675SRob Herring				MX51_PAD_EIM_CS4__GPIO2_29   0x100
128724ba675SRob Herring				MX51_PAD_NANDF_D13__GPIO3_27 0x0C5
129724ba675SRob Herring				MX51_PAD_NANDF_D12__GPIO3_28 0x0C5
130724ba675SRob Herring				MX51_PAD_CSPI1_SS0__GPIO4_24 0x0C5
131724ba675SRob Herring				MX51_PAD_CSPI1_SS1__GPIO4_25 0x0C5
132724ba675SRob Herring				MX51_PAD_GPIO1_2__GPIO1_2    0x0C5
133724ba675SRob Herring				MX51_PAD_GPIO1_3__GPIO1_3    0x0C5
134724ba675SRob Herring			>;
135724ba675SRob Herring		};
136724ba675SRob Herring
137724ba675SRob Herring		pinctrl_ecspi1: ecspi1grp {
138724ba675SRob Herring			fsl,pins = <
139724ba675SRob Herring				MX51_PAD_CSPI1_MISO__ECSPI1_MISO	0x185
140724ba675SRob Herring				MX51_PAD_CSPI1_MOSI__ECSPI1_MOSI	0x185
141724ba675SRob Herring				MX51_PAD_CSPI1_SCLK__ECSPI1_SCLK	0x185
142724ba675SRob Herring			>;
143724ba675SRob Herring		};
144724ba675SRob Herring
145724ba675SRob Herring		pinctrl_ecspi2: ecspi2grp {
146724ba675SRob Herring			fsl,pins = <
147724ba675SRob Herring				MX51_PAD_NANDF_RB3__ECSPI2_MISO		0x185
148724ba675SRob Herring				MX51_PAD_NANDF_D15__ECSPI2_MOSI		0x185
149724ba675SRob Herring				MX51_PAD_NANDF_RB2__ECSPI2_SCLK		0x185
150724ba675SRob Herring			>;
151724ba675SRob Herring		};
152724ba675SRob Herring
153724ba675SRob Herring		pinctrl_esdhc1: esdhc1grp {
154724ba675SRob Herring			fsl,pins = <
155724ba675SRob Herring				MX51_PAD_SD1_CMD__SD1_CMD		0x400020d5
156724ba675SRob Herring				MX51_PAD_SD1_CLK__SD1_CLK		0x20d5
157724ba675SRob Herring				MX51_PAD_SD1_DATA0__SD1_DATA0		0x20d5
158724ba675SRob Herring				MX51_PAD_SD1_DATA1__SD1_DATA1		0x20d5
159724ba675SRob Herring				MX51_PAD_SD1_DATA2__SD1_DATA2		0x20d5
160724ba675SRob Herring				MX51_PAD_SD1_DATA3__SD1_DATA3		0x20d5
161724ba675SRob Herring			>;
162724ba675SRob Herring		};
163724ba675SRob Herring
164724ba675SRob Herring		pinctrl_esdhc2: esdhc2grp {
165724ba675SRob Herring			fsl,pins = <
166724ba675SRob Herring				MX51_PAD_SD2_CMD__SD2_CMD		0x400020d5
167724ba675SRob Herring				MX51_PAD_SD2_CLK__SD2_CLK		0x20d5
168724ba675SRob Herring				MX51_PAD_SD2_DATA0__SD2_DATA0		0x20d5
169724ba675SRob Herring				MX51_PAD_SD2_DATA1__SD2_DATA1		0x20d5
170724ba675SRob Herring				MX51_PAD_SD2_DATA2__SD2_DATA2		0x20d5
171724ba675SRob Herring				MX51_PAD_SD2_DATA3__SD2_DATA3		0x20d5
172724ba675SRob Herring			>;
173724ba675SRob Herring		};
174724ba675SRob Herring
175724ba675SRob Herring		pinctrl_i2c2: i2c2grp {
176724ba675SRob Herring			fsl,pins = <
177724ba675SRob Herring				MX51_PAD_EIM_D27__I2C2_SCL		0x400001ed
178724ba675SRob Herring				MX51_PAD_EIM_D24__I2C2_SDA		0x400001ed
179724ba675SRob Herring			>;
180724ba675SRob Herring		};
181724ba675SRob Herring
182724ba675SRob Herring		pinctrl_ipu_disp1: ipudisp1grp {
183724ba675SRob Herring			fsl,pins = <
184724ba675SRob Herring				MX51_PAD_DISP1_DAT0__DISP1_DAT0		0x5
185724ba675SRob Herring				MX51_PAD_DISP1_DAT1__DISP1_DAT1		0x5
186724ba675SRob Herring				MX51_PAD_DISP1_DAT2__DISP1_DAT2		0x5
187724ba675SRob Herring				MX51_PAD_DISP1_DAT3__DISP1_DAT3		0x5
188724ba675SRob Herring				MX51_PAD_DISP1_DAT4__DISP1_DAT4		0x5
189724ba675SRob Herring				MX51_PAD_DISP1_DAT5__DISP1_DAT5		0x5
190724ba675SRob Herring				MX51_PAD_DISP1_DAT6__DISP1_DAT6		0x5
191724ba675SRob Herring				MX51_PAD_DISP1_DAT7__DISP1_DAT7		0x5
192724ba675SRob Herring				MX51_PAD_DISP1_DAT8__DISP1_DAT8		0x5
193724ba675SRob Herring				MX51_PAD_DISP1_DAT9__DISP1_DAT9		0x5
194724ba675SRob Herring				MX51_PAD_DISP1_DAT10__DISP1_DAT10	0x5
195724ba675SRob Herring				MX51_PAD_DISP1_DAT11__DISP1_DAT11	0x5
196724ba675SRob Herring				MX51_PAD_DISP1_DAT12__DISP1_DAT12	0x5
197724ba675SRob Herring				MX51_PAD_DISP1_DAT13__DISP1_DAT13	0x5
198724ba675SRob Herring				MX51_PAD_DISP1_DAT14__DISP1_DAT14	0x5
199724ba675SRob Herring				MX51_PAD_DISP1_DAT15__DISP1_DAT15	0x5
200724ba675SRob Herring				MX51_PAD_DISP1_DAT16__DISP1_DAT16	0x5
201724ba675SRob Herring				MX51_PAD_DISP1_DAT17__DISP1_DAT17	0x5
202724ba675SRob Herring				MX51_PAD_DISP1_DAT18__DISP1_DAT18	0x5
203724ba675SRob Herring				MX51_PAD_DISP1_DAT19__DISP1_DAT19	0x5
204724ba675SRob Herring				MX51_PAD_DISP1_DAT20__DISP1_DAT20	0x5
205724ba675SRob Herring				MX51_PAD_DISP1_DAT21__DISP1_DAT21	0x5
206724ba675SRob Herring				MX51_PAD_DISP1_DAT22__DISP1_DAT22	0x5
207724ba675SRob Herring				MX51_PAD_DISP1_DAT23__DISP1_DAT23	0x5
208724ba675SRob Herring				MX51_PAD_DI1_PIN2__DI1_PIN2		0x5
209724ba675SRob Herring				MX51_PAD_DI1_PIN3__DI1_PIN3		0x5
210724ba675SRob Herring			>;
211724ba675SRob Herring		};
212724ba675SRob Herring	};
213724ba675SRob Herring};
214724ba675SRob Herring
215724ba675SRob Herring&ipu_di0_disp1 {
216724ba675SRob Herring	remote-endpoint = <&display_in>;
217724ba675SRob Herring};
218