blob: 93d3ea12328c50c07cf9d7ab4d09fc952dc5a397 [file] [log] [blame]
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +01001/*
2 * Copyright 2013 Armadeus Systems - <support@armadeus.com>
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12/* APF51Dev is a docking board for the APF51 SOM */
13#include "imx51-apf51.dts"
14
15/ {
16 model = "Armadeus Systems APF51Dev docking/development board";
17 compatible = "armadeus,imx51-apf51dev", "armadeus,imx51-apf51", "fsl,imx51";
18
Gwenhael Goavec-Merouf76129d2014-12-16 12:20:57 +010019 backlight@bl1{
20 pinctrl-names = "default";
21 pinctrl-0 = <&pinctrl_backlight>;
22 compatible = "gpio-backlight";
23 gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
24 default-on;
25 };
26
Gwenhael Goavec-Merou5d150ea2013-10-06 13:48:52 +020027 display@di1 {
28 compatible = "fsl,imx-parallel-display";
Gwenhael Goavec-Merou5d150ea2013-10-06 13:48:52 +020029 interface-pix-fmt = "bgr666";
30 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +080031 pinctrl-0 = <&pinctrl_ipu_disp1>;
Gwenhael Goavec-Merou5d150ea2013-10-06 13:48:52 +020032
33 display-timings {
34 lw700 {
35 native-mode;
36 clock-frequency = <33000033>;
37 hactive = <800>;
38 vactive = <480>;
39 hback-porch = <96>;
40 hfront-porch = <96>;
41 vback-porch = <20>;
42 vfront-porch = <21>;
43 hsync-len = <64>;
44 vsync-len = <4>;
45 hsync-active = <1>;
46 vsync-active = <1>;
47 de-active = <1>;
48 pixelclk-active = <0>;
49 };
50 };
Philipp Zabelde10e042014-03-05 10:20:59 +010051
52 port {
53 display_in: endpoint {
54 remote-endpoint = <&ipu_di0_disp0>;
55 };
56 };
Gwenhael Goavec-Merou5d150ea2013-10-06 13:48:52 +020057 };
58
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +010059 gpio-keys {
60 compatible = "gpio-keys";
61
62 user-key {
63 label = "user";
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +040064 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +010065 linux,code = <256>; /* BTN_0 */
66 };
67 };
68
69 leds {
70 compatible = "gpio-leds";
71
72 user {
73 label = "Heartbeat";
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +040074 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +010075 linux,default-trigger = "heartbeat";
76 };
77 };
78};
79
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +010080&ecspi1 {
81 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +080082 pinctrl-0 = <&pinctrl_ecspi1>;
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +010083 fsl,spi-num-chipselects = <2>;
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +040084 cs-gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>,
85 <&gpio4 25 GPIO_ACTIVE_HIGH>;
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +010086 status = "okay";
87};
88
89&ecspi2 {
90 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +080091 pinctrl-0 = <&pinctrl_ecspi2>;
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +010092 fsl,spi-num-chipselects = <2>;
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +040093 cs-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>,
94 <&gpio3 27 GPIO_ACTIVE_LOW>;
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +010095 status = "okay";
96};
97
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +010098&esdhc1 {
99 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800100 pinctrl-0 = <&pinctrl_esdhc1>;
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +0400101 cd-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +0100102 bus-width = <4>;
103 status = "okay";
104};
105
106&esdhc2 {
107 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800108 pinctrl-0 = <&pinctrl_esdhc2>;
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +0100109 bus-width = <4>;
110 non-removable;
111 status = "okay";
112};
113
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +0100114&i2c2 {
115 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800116 pinctrl-0 = <&pinctrl_i2c2>;
Gwenhael Goavec-Merou003c70d2013-03-16 16:53:54 +0100117 status = "okay";
118};
119
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +0100120&iomuxc {
121 pinctrl-names = "default";
122 pinctrl-0 = <&pinctrl_hog>;
123
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800124 imx51-apf51dev {
Gwenhael Goavec-Merouf76129d2014-12-16 12:20:57 +0100125 pinctrl_backlight: bl1grp {
126 fsl,pins = <
127 MX51_PAD_DI1_D1_CS__GPIO3_4 0x1F5
128 >;
129 };
130
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +0100131 pinctrl_hog: hoggrp {
132 fsl,pins = <
133 MX51_PAD_EIM_EB2__GPIO2_22 0x0C5
134 MX51_PAD_EIM_EB3__GPIO2_23 0x0C5
135 MX51_PAD_EIM_CS4__GPIO2_29 0x100
136 MX51_PAD_NANDF_D13__GPIO3_27 0x0C5
137 MX51_PAD_NANDF_D12__GPIO3_28 0x0C5
138 MX51_PAD_CSPI1_SS0__GPIO4_24 0x0C5
139 MX51_PAD_CSPI1_SS1__GPIO4_25 0x0C5
140 MX51_PAD_GPIO1_2__GPIO1_2 0x0C5
141 MX51_PAD_GPIO1_3__GPIO1_3 0x0C5
142 >;
143 };
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800144
145 pinctrl_ecspi1: ecspi1grp {
146 fsl,pins = <
147 MX51_PAD_CSPI1_MISO__ECSPI1_MISO 0x185
148 MX51_PAD_CSPI1_MOSI__ECSPI1_MOSI 0x185
149 MX51_PAD_CSPI1_SCLK__ECSPI1_SCLK 0x185
150 >;
151 };
152
153 pinctrl_ecspi2: ecspi2grp {
154 fsl,pins = <
155 MX51_PAD_NANDF_RB3__ECSPI2_MISO 0x185
156 MX51_PAD_NANDF_D15__ECSPI2_MOSI 0x185
157 MX51_PAD_NANDF_RB2__ECSPI2_SCLK 0x185
158 >;
159 };
160
161 pinctrl_esdhc1: esdhc1grp {
162 fsl,pins = <
163 MX51_PAD_SD1_CMD__SD1_CMD 0x400020d5
164 MX51_PAD_SD1_CLK__SD1_CLK 0x20d5
165 MX51_PAD_SD1_DATA0__SD1_DATA0 0x20d5
166 MX51_PAD_SD1_DATA1__SD1_DATA1 0x20d5
167 MX51_PAD_SD1_DATA2__SD1_DATA2 0x20d5
168 MX51_PAD_SD1_DATA3__SD1_DATA3 0x20d5
169 >;
170 };
171
172 pinctrl_esdhc2: esdhc2grp {
173 fsl,pins = <
174 MX51_PAD_SD2_CMD__SD2_CMD 0x400020d5
175 MX51_PAD_SD2_CLK__SD2_CLK 0x20d5
176 MX51_PAD_SD2_DATA0__SD2_DATA0 0x20d5
177 MX51_PAD_SD2_DATA1__SD2_DATA1 0x20d5
178 MX51_PAD_SD2_DATA2__SD2_DATA2 0x20d5
179 MX51_PAD_SD2_DATA3__SD2_DATA3 0x20d5
180 >;
181 };
182
183 pinctrl_i2c2: i2c2grp {
184 fsl,pins = <
185 MX51_PAD_EIM_D27__I2C2_SCL 0x400001ed
186 MX51_PAD_EIM_D24__I2C2_SDA 0x400001ed
187 >;
188 };
189
190 pinctrl_ipu_disp1: ipudisp1grp {
191 fsl,pins = <
192 MX51_PAD_DISP1_DAT0__DISP1_DAT0 0x5
193 MX51_PAD_DISP1_DAT1__DISP1_DAT1 0x5
194 MX51_PAD_DISP1_DAT2__DISP1_DAT2 0x5
195 MX51_PAD_DISP1_DAT3__DISP1_DAT3 0x5
196 MX51_PAD_DISP1_DAT4__DISP1_DAT4 0x5
197 MX51_PAD_DISP1_DAT5__DISP1_DAT5 0x5
198 MX51_PAD_DISP1_DAT6__DISP1_DAT6 0x5
199 MX51_PAD_DISP1_DAT7__DISP1_DAT7 0x5
200 MX51_PAD_DISP1_DAT8__DISP1_DAT8 0x5
201 MX51_PAD_DISP1_DAT9__DISP1_DAT9 0x5
202 MX51_PAD_DISP1_DAT10__DISP1_DAT10 0x5
203 MX51_PAD_DISP1_DAT11__DISP1_DAT11 0x5
204 MX51_PAD_DISP1_DAT12__DISP1_DAT12 0x5
205 MX51_PAD_DISP1_DAT13__DISP1_DAT13 0x5
206 MX51_PAD_DISP1_DAT14__DISP1_DAT14 0x5
207 MX51_PAD_DISP1_DAT15__DISP1_DAT15 0x5
208 MX51_PAD_DISP1_DAT16__DISP1_DAT16 0x5
209 MX51_PAD_DISP1_DAT17__DISP1_DAT17 0x5
210 MX51_PAD_DISP1_DAT18__DISP1_DAT18 0x5
211 MX51_PAD_DISP1_DAT19__DISP1_DAT19 0x5
212 MX51_PAD_DISP1_DAT20__DISP1_DAT20 0x5
213 MX51_PAD_DISP1_DAT21__DISP1_DAT21 0x5
214 MX51_PAD_DISP1_DAT22__DISP1_DAT22 0x5
215 MX51_PAD_DISP1_DAT23__DISP1_DAT23 0x5
216 MX51_PAD_DI1_PIN2__DI1_PIN2 0x5
217 MX51_PAD_DI1_PIN3__DI1_PIN3 0x5
218 >;
219 };
Gwenhael Goavec-Meroue910b452013-03-08 08:41:38 +0100220 };
221};
Philipp Zabelde10e042014-03-05 10:20:59 +0100222
223&ipu_di0_disp0 {
224 remote-endpoint = <&display_in>;
225};