blob: f1c8315b3e01652ab2894bb7167ba6221c6fd63c [file] [log] [blame]
Maxime Riparddb84c032012-08-31 16:00:41 +02001/*
2 * Copyright 2012 Free Electrons
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/*
13 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we
14 * need to include the CFA-10036 DTS.
15 */
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020016#include "imx28-cfa10036.dts"
Maxime Riparddb84c032012-08-31 16:00:41 +020017
18/ {
19 model = "Crystalfontz CFA-10049 Board";
20 compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
21
Fabio Estevam142ee332017-12-27 12:04:38 -020022 i2cmux {
23 compatible = "i2c-mux-gpio";
24 #address-cells = <1>;
25 #size-cells = <0>;
26 pinctrl-names = "default";
27 pinctrl-0 = <&i2cmux_pins_cfa10049>;
28 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
29 i2c-parent = <&i2c1>;
30
31 i2c@0 {
32 #address-cells = <1>;
33 #size-cells = <0>;
34 reg = <0>;
35
36 adc0: nau7802@2a {
37 compatible = "nuvoton,nau7802";
38 reg = <0x2a>;
39 nuvoton,vldo = <3000>;
40 };
41 };
42
43 i2c@1 {
44 #address-cells = <1>;
45 #size-cells = <0>;
46 reg = <1>;
47
48 adc1: nau7802@2a {
49 compatible = "nuvoton,nau7802";
50 reg = <0x2a>;
51 nuvoton,vldo = <3000>;
52 };
53 };
54
55 i2c@2 {
56 #address-cells = <1>;
57 #size-cells = <0>;
58 reg = <2>;
59
60 adc2: nau7802@2a {
61 compatible = "nuvoton,nau7802";
62 reg = <0x2a>;
63 nuvoton,vldo = <3000>;
64 };
65 };
66
67 i2c@3 {
68 reg = <3>;
69 #address-cells = <1>;
70 #size-cells = <0>;
71
72 pca9555: pca9555@20 {
73 compatible = "nxp,pca9555";
74 pinctrl-names = "default";
75 pinctrl-0 = <&pca_pins_cfa10049>;
76 interrupt-parent = <&gpio2>;
77 interrupts = <19 0x2>;
78 gpio-controller;
79 #gpio-cells = <2>;
80 interrupt-controller;
81 #interrupt-cells = <2>;
82 reg = <0x20>;
83 };
84 };
85 };
86
Maxime Riparddb84c032012-08-31 16:00:41 +020087 apb@80000000 {
Maxime Ripard223d1f92012-09-04 10:44:03 +020088 apbh@80000000 {
89 pinctrl@80018000 {
Alexandre Bellonidac63a52013-07-01 15:23:26 +020090 usb_pins_cfa10049: usb-10049@0 {
Maxime Ripard24196d52012-11-03 16:59:08 +010091 reg = <0>;
92 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020093 MX28_PAD_GPMI_D07__GPIO_0_7
Maxime Ripard24196d52012-11-03 16:59:08 +010094 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080095 fsl,drive-strength = <MXS_DRIVE_4mA>;
96 fsl,voltage = <MXS_VOLTAGE_HIGH>;
97 fsl,pull-up = <MXS_PULL_DISABLE>;
Maxime Ripard24196d52012-11-03 16:59:08 +010098 };
99
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200100 i2cmux_pins_cfa10049: i2cmux-10049@0 {
101 reg = <0>;
102 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200103 MX28_PAD_LCD_D22__GPIO_1_22
104 MX28_PAD_LCD_D23__GPIO_1_23
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200105 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800106 fsl,drive-strength = <MXS_DRIVE_4mA>;
107 fsl,voltage = <MXS_VOLTAGE_HIGH>;
108 fsl,pull-up = <MXS_PULL_DISABLE>;
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200109 };
110
111 mac0_pins_cfa10049: mac0-10049@0 {
112 reg = <0>;
113 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200114 MX28_PAD_SSP2_SS2__GPIO_2_21
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200115 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800116 fsl,drive-strength = <MXS_DRIVE_4mA>;
117 fsl,voltage = <MXS_VOLTAGE_HIGH>;
118 fsl,pull-up = <MXS_PULL_DISABLE>;
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200119 };
120
121 pca_pins_cfa10049: pca-10049@0 {
Maxime Ripard5b615fb2012-11-20 15:33:35 +0100122 reg = <0>;
123 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200124 MX28_PAD_SSP2_SS0__GPIO_2_19
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200125 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800126 fsl,drive-strength = <MXS_DRIVE_4mA>;
127 fsl,voltage = <MXS_VOLTAGE_HIGH>;
128 fsl,pull-up = <MXS_PULL_ENABLE>;
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200129 };
130
131 rotary_pins_cfa10049: rotary-10049@0 {
132 reg = <0>;
133 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200134 MX28_PAD_I2C0_SCL__GPIO_3_24
135 MX28_PAD_I2C0_SDA__GPIO_3_25
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200136 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800137 fsl,drive-strength = <MXS_DRIVE_4mA>;
138 fsl,voltage = <MXS_VOLTAGE_HIGH>;
139 fsl,pull-up = <MXS_PULL_ENABLE>;
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200140 };
141
142 rotary_btn_pins_cfa10049: rotary-btn-10049@0 {
143 reg = <0>;
144 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200145 MX28_PAD_SAIF1_SDATA0__GPIO_3_26
Maxime Ripard5b615fb2012-11-20 15:33:35 +0100146 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800147 fsl,drive-strength = <MXS_DRIVE_4mA>;
148 fsl,voltage = <MXS_VOLTAGE_HIGH>;
149 fsl,pull-up = <MXS_PULL_ENABLE>;
Maxime Ripard5b615fb2012-11-20 15:33:35 +0100150 };
151
Maxime Ripard1fe42742013-01-25 09:54:07 +0100152 spi2_pins_cfa10049: spi2-cfa10049@0 {
153 reg = <0>;
154 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200155 MX28_PAD_SSP2_SCK__GPIO_2_16
156 MX28_PAD_SSP2_MOSI__GPIO_2_17
157 MX28_PAD_SSP2_MISO__GPIO_2_18
158 MX28_PAD_AUART1_TX__GPIO_3_5
Maxime Ripard1fe42742013-01-25 09:54:07 +0100159 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800160 fsl,drive-strength = <MXS_DRIVE_8mA>;
161 fsl,voltage = <MXS_VOLTAGE_HIGH>;
162 fsl,pull-up = <MXS_PULL_ENABLE>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100163 };
164
Maxime Ripard223d1f92012-09-04 10:44:03 +0200165 spi3_pins_cfa10049: spi3-cfa10049@0 {
166 reg = <0>;
167 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200168 MX28_PAD_GPMI_RDN__GPIO_0_24
169 MX28_PAD_GPMI_RESETN__GPIO_0_28
170 MX28_PAD_GPMI_CE1N__GPIO_0_17
171 MX28_PAD_GPMI_ALE__GPIO_0_26
172 MX28_PAD_GPMI_CLE__GPIO_0_27
Maxime Ripard223d1f92012-09-04 10:44:03 +0200173 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800174 fsl,drive-strength = <MXS_DRIVE_8mA>;
175 fsl,voltage = <MXS_VOLTAGE_HIGH>;
176 fsl,pull-up = <MXS_PULL_ENABLE>;
Maxime Ripard223d1f92012-09-04 10:44:03 +0200177 };
Maxime Ripard1fe42742013-01-25 09:54:07 +0100178
179 lcdif_18bit_pins_cfa10049: lcdif-18bit@0 {
180 reg = <0>;
181 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200182 MX28_PAD_LCD_D00__LCD_D0
183 MX28_PAD_LCD_D01__LCD_D1
184 MX28_PAD_LCD_D02__LCD_D2
185 MX28_PAD_LCD_D03__LCD_D3
186 MX28_PAD_LCD_D04__LCD_D4
187 MX28_PAD_LCD_D05__LCD_D5
188 MX28_PAD_LCD_D06__LCD_D6
189 MX28_PAD_LCD_D07__LCD_D7
190 MX28_PAD_LCD_D08__LCD_D8
191 MX28_PAD_LCD_D09__LCD_D9
192 MX28_PAD_LCD_D10__LCD_D10
193 MX28_PAD_LCD_D11__LCD_D11
194 MX28_PAD_LCD_D12__LCD_D12
195 MX28_PAD_LCD_D13__LCD_D13
196 MX28_PAD_LCD_D14__LCD_D14
197 MX28_PAD_LCD_D15__LCD_D15
198 MX28_PAD_LCD_D16__LCD_D16
199 MX28_PAD_LCD_D17__LCD_D17
Maxime Ripard1fe42742013-01-25 09:54:07 +0100200 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800201 fsl,drive-strength = <MXS_DRIVE_4mA>;
202 fsl,voltage = <MXS_VOLTAGE_HIGH>;
203 fsl,pull-up = <MXS_PULL_DISABLE>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100204 };
205
206 lcdif_pins_cfa10049: lcdif-evk@0 {
207 reg = <0>;
208 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200209 MX28_PAD_LCD_RD_E__LCD_VSYNC
210 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
211 MX28_PAD_LCD_RS__LCD_DOTCLK
212 MX28_PAD_LCD_CS__LCD_ENABLE
Maxime Ripard1fe42742013-01-25 09:54:07 +0100213 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800214 fsl,drive-strength = <MXS_DRIVE_4mA>;
215 fsl,voltage = <MXS_VOLTAGE_HIGH>;
216 fsl,pull-up = <MXS_PULL_DISABLE>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100217 };
Alexandre Belloni7d403402013-03-29 19:46:41 +0100218
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200219 lcdif_pins_cfa10049_pullup: lcdif-10049-pullup@0 {
220 reg = <0>;
221 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200222 MX28_PAD_LCD_RESET__GPIO_3_30
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200223 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800224 fsl,drive-strength = <MXS_DRIVE_4mA>;
225 fsl,voltage = <MXS_VOLTAGE_HIGH>;
226 fsl,pull-up = <MXS_PULL_ENABLE>;
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200227 };
228
Alexandre Belloni7d403402013-03-29 19:46:41 +0100229 w1_gpio_pins: w1-gpio@0 {
230 reg = <0>;
231 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200232 MX28_PAD_LCD_D21__GPIO_1_21
Alexandre Belloni7d403402013-03-29 19:46:41 +0100233 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800234 fsl,drive-strength = <MXS_DRIVE_8mA>;
235 fsl,voltage = <MXS_VOLTAGE_HIGH>;
236 fsl,pull-up = <MXS_PULL_DISABLE>; /* 0 will enable the keeper */
Alexandre Belloni7d403402013-03-29 19:46:41 +0100237 };
Maxime Ripard1fe42742013-01-25 09:54:07 +0100238 };
239
240 lcdif@80030000 {
241 pinctrl-names = "default";
242 pinctrl-0 = <&lcdif_18bit_pins_cfa10049
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200243 &lcdif_pins_cfa10049
244 &lcdif_pins_cfa10049_pullup>;
Fabio Estevam7029b392014-09-04 22:31:20 -0300245 display = <&display0>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100246 status = "okay";
Shawn Guo0d9f8212013-03-14 11:37:15 +0800247
Fabio Estevam7029b392014-09-04 22:31:20 -0300248 display0: display0 {
Shawn Guo0d9f8212013-03-14 11:37:15 +0800249 bits-per-pixel = <32>;
250 bus-width = <18>;
251
252 display-timings {
253 native-mode = <&timing0>;
254 timing0: timing0 {
255 clock-frequency = <9216000>;
256 hactive = <320>;
257 vactive = <480>;
258 hback-porch = <2>;
259 hfront-porch = <2>;
260 vback-porch = <2>;
261 vfront-porch = <2>;
262 hsync-len = <15>;
263 vsync-len = <15>;
264 hsync-active = <0>;
265 vsync-active = <0>;
266 de-active = <1>;
267 pixelclk-active = <1>;
268 };
269 };
270 };
Maxime Ripard223d1f92012-09-04 10:44:03 +0200271 };
Maxime Ripard223d1f92012-09-04 10:44:03 +0200272 };
273
Maxime Riparddb84c032012-08-31 16:00:41 +0200274 apbx@80040000 {
Maxime Ripard1fe42742013-01-25 09:54:07 +0100275 pwm: pwm@80064000 {
Maxime Ripardb4009322013-04-22 11:55:55 +0200276 pinctrl-names = "default";
277 pinctrl-0 = <&pwm3_pins_b>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100278 status = "okay";
279 };
280
Maxime Riparddb84c032012-08-31 16:00:41 +0200281 i2c1: i2c@8005a000 {
282 pinctrl-names = "default";
283 pinctrl-0 = <&i2c1_pins_a>;
284 status = "okay";
285 };
Maxime Ripard186e3d92012-09-03 16:15:25 +0200286
287 usbphy1: usbphy@8007e000 {
288 status = "okay";
289 };
Alexandre Belloniac77bc22013-04-05 14:33:02 +0200290
291 lradc@80050000 {
292 status = "okay";
293 fsl,lradc-touchscreen-wires = <4>;
294 };
Maxime Ripard186e3d92012-09-03 16:15:25 +0200295 };
296 };
297
298 ahb@80080000 {
299 usb1: usb@80090000 {
300 vbus-supply = <&reg_usb1_vbus>;
Michael Grzeschikc8e42bc2013-12-06 15:56:40 +0100301 pinctrl-0 = <&usb1_pins_a>;
Maxime Ripard186e3d92012-09-03 16:15:25 +0200302 pinctrl-names = "default";
303 status = "okay";
304 };
305 };
306
307 regulators {
308 compatible = "simple-bus";
Shawn Guo352d3182014-02-07 23:18:30 +0800309 #address-cells = <1>;
310 #size-cells = <0>;
Maxime Ripard186e3d92012-09-03 16:15:25 +0200311
Shawn Guo352d3182014-02-07 23:18:30 +0800312 reg_usb1_vbus: regulator@0 {
Maxime Ripard186e3d92012-09-03 16:15:25 +0200313 compatible = "regulator-fixed";
Shawn Guo352d3182014-02-07 23:18:30 +0800314 reg = <0>;
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200315 pinctrl-names = "default";
316 pinctrl-0 = <&usb_pins_cfa10049>;
Maxime Ripard186e3d92012-09-03 16:15:25 +0200317 regulator-name = "usb1_vbus";
318 regulator-min-microvolt = <5000000>;
319 regulator-max-microvolt = <5000000>;
320 gpio = <&gpio0 7 1>;
Maxime Riparddb84c032012-08-31 16:00:41 +0200321 };
322 };
Maxime Ripard8eec4b32012-10-07 10:36:28 +0800323
324 ahb@80080000 {
325 mac0: ethernet@800f0000 {
326 phy-mode = "rmii";
327 pinctrl-names = "default";
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200328 pinctrl-0 = <&mac0_pins_a
329 &mac0_pins_cfa10049>;
Fabio Estevam12de44f2017-06-04 14:31:15 -0300330 phy-reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
Maxime Ripard8eec4b32012-10-07 10:36:28 +0800331 phy-reset-duration = <100>;
332 status = "okay";
333 };
334 };
Maxime Ripard7ecc70a2013-01-25 09:39:35 +0100335
Maxime Ripard1fe42742013-01-25 09:54:07 +0100336 spi2 {
337 compatible = "spi-gpio";
338 pinctrl-names = "default";
339 pinctrl-0 = <&spi2_pins_cfa10049>;
340 status = "okay";
341 gpio-sck = <&gpio2 16 0>;
342 gpio-mosi = <&gpio2 17 0>;
343 gpio-miso = <&gpio2 18 0>;
Brian Lilly65bc6422013-06-13 15:43:43 +0200344 cs-gpios = <&gpio3 5 0>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100345 num-chipselects = <1>;
346 #address-cells = <1>;
347 #size-cells = <0>;
348
349 hx8357: hx8357@0 {
350 compatible = "himax,hx8357b", "himax,hx8357";
351 reg = <0>;
352 spi-max-frequency = <100000>;
353 spi-cpol;
354 spi-cpha;
355 gpios-reset = <&gpio3 30 0>;
356 im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
357 };
358 };
359
Maxime Ripard7ecc70a2013-01-25 09:39:35 +0100360 spi3 {
361 compatible = "spi-gpio";
362 pinctrl-names = "default";
363 pinctrl-0 = <&spi3_pins_cfa10049>;
364 status = "okay";
365 gpio-sck = <&gpio0 24 0>;
366 gpio-mosi = <&gpio0 28 0>;
367 cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
368 num-chipselects = <3>;
369 #address-cells = <1>;
370 #size-cells = <0>;
371
372 gpio5: gpio5@0 {
373 compatible = "fairchild,74hc595";
374 gpio-controller;
375 #gpio-cells = <2>;
376 reg = <0>;
377 registers-number = <2>;
378 spi-max-frequency = <100000>;
379 };
380
381 gpio6: gpio6@1 {
382 compatible = "fairchild,74hc595";
383 gpio-controller;
384 #gpio-cells = <2>;
385 reg = <1>;
386 registers-number = <4>;
387 spi-max-frequency = <100000>;
388 };
389
390 dac0: dh2228@2 {
391 compatible = "rohm,dh2228fv";
392 reg = <2>;
393 spi-max-frequency = <100000>;
394 };
395 };
Maxime Ripard1fe42742013-01-25 09:54:07 +0100396
Maxime Riparda640cf62013-01-31 11:00:23 +0100397 gpio_keys {
398 compatible = "gpio-keys";
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200399 pinctrl-names = "default";
400 pinctrl-0 = <&rotary_btn_pins_cfa10049>;
Maxime Riparda640cf62013-01-31 11:00:23 +0100401
402 rotary_button {
403 label = "rotary_button";
404 gpios = <&gpio3 26 1>;
405 debounce-interval = <10>;
406 linux,code = <28>;
407 };
408 };
409
Maxime Ripard0943b962013-01-31 11:00:24 +0100410 rotary {
411 compatible = "rotary-encoder";
Alexandre Bellonidac63a52013-07-01 15:23:26 +0200412 pinctrl-names = "default";
413 pinctrl-0 = <&rotary_pins_cfa10049>;
Maxime Ripard0943b962013-01-31 11:00:24 +0100414 gpios = <&gpio3 24 1>, <&gpio3 25 1>;
415 linux,axis = <1>; /* REL_Y */
416 rotary-encoder,relative-axis;
417 };
418
Maxime Ripard1fe42742013-01-25 09:54:07 +0100419 backlight {
420 compatible = "pwm-backlight";
421 pwms = <&pwm 3 5000000>;
422 brightness-levels = <0 4 8 16 32 64 128 255>;
423 default-brightness-level = <6>;
Alexandre Belloni7d403402013-03-29 19:46:41 +0100424
425 };
426
Stefan Wahren88ab1012016-06-05 13:51:55 +0000427 onewire {
Alexandre Belloni7d403402013-03-29 19:46:41 +0100428 compatible = "w1-gpio";
429 pinctrl-names = "default";
430 pinctrl-0 = <&w1_gpio_pins>;
431 status = "okay";
432 gpios = <&gpio1 21 0>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100433 };
Maxime Riparddb84c032012-08-31 16:00:41 +0200434};