blob: ba6495ca44d246ccdd10e7801e5f99e3a2c396b0 [file] [log] [blame]
Brian Lillyf6cd16f2013-07-01 15:23:23 +02001/*
2 * Copyright 2013 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-10055 is an expansion board for the CFA-10036 module and
14 * CFA-10037, thus we need to include the CFA-10037 DTS.
15 */
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020016#include "imx28-cfa10037.dts"
Brian Lillyf6cd16f2013-07-01 15:23:23 +020017
18/ {
19 model = "Crystalfontz CFA-10056 Board";
20 compatible = "crystalfontz,cfa10056", "crystalfontz,cfa10037", "crystalfontz,cfa10036", "fsl,imx28";
21
22 apb@80000000 {
23 apbh@80000000 {
24 pinctrl@80018000 {
25 spi2_pins_cfa10056: spi2-cfa10056@0 {
26 reg = <0>;
27 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020028 MX28_PAD_SSP2_SCK__GPIO_2_16
29 MX28_PAD_SSP2_MOSI__GPIO_2_17
30 MX28_PAD_SSP2_MISO__GPIO_2_18
31 MX28_PAD_AUART1_TX__GPIO_3_5
Brian Lillyf6cd16f2013-07-01 15:23:23 +020032 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080033 fsl,drive-strength = <MXS_DRIVE_8mA>;
34 fsl,voltage = <MXS_VOLTAGE_HIGH>;
35 fsl,pull-up = <MXS_PULL_ENABLE>;
Brian Lillyf6cd16f2013-07-01 15:23:23 +020036 };
37
38 lcdif_pins_cfa10056: lcdif-10056@0 {
39 reg = <0>;
40 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020041 MX28_PAD_LCD_RD_E__LCD_VSYNC
42 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
43 MX28_PAD_LCD_RS__LCD_DOTCLK
44 MX28_PAD_LCD_CS__LCD_ENABLE
Brian Lillyf6cd16f2013-07-01 15:23:23 +020045 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080046 fsl,drive-strength = <MXS_DRIVE_4mA>;
47 fsl,voltage = <MXS_VOLTAGE_HIGH>;
48 fsl,pull-up = <MXS_PULL_DISABLE>;
Brian Lillyf6cd16f2013-07-01 15:23:23 +020049 };
50
51 lcdif_pins_cfa10056_pullup: lcdif-10056-pullup@0 {
52 reg = <0>;
53 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020054 MX28_PAD_LCD_RESET__GPIO_3_30
Brian Lillyf6cd16f2013-07-01 15:23:23 +020055 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080056 fsl,drive-strength = <MXS_DRIVE_4mA>;
57 fsl,voltage = <MXS_VOLTAGE_HIGH>;
58 fsl,pull-up = <MXS_PULL_ENABLE>;
Brian Lillyf6cd16f2013-07-01 15:23:23 +020059 };
60 };
61
62 lcdif@80030000 {
63 pinctrl-names = "default";
64 pinctrl-0 = <&lcdif_24bit_pins_a
65 &lcdif_pins_cfa10056
66 &lcdif_pins_cfa10056_pullup >;
Fabio Estevam7029b392014-09-04 22:31:20 -030067 display = <&display0>;
Brian Lillyf6cd16f2013-07-01 15:23:23 +020068 status = "okay";
69
Fabio Estevam7029b392014-09-04 22:31:20 -030070 display0: display0 {
Brian Lillyf6cd16f2013-07-01 15:23:23 +020071 bits-per-pixel = <32>;
72 bus-width = <24>;
73
74 display-timings {
75 native-mode = <&timing0>;
76 timing0: timing0 {
77 clock-frequency = <32000000>;
78 hactive = <480>;
79 vactive = <800>;
80 hback-porch = <2>;
81 hfront-porch = <2>;
82 vback-porch = <2>;
83 vfront-porch = <2>;
84 hsync-len = <5>;
85 vsync-len = <5>;
86 hsync-active = <0>;
87 vsync-active = <0>;
88 de-active = <1>;
89 pixelclk-active = <1>;
90 };
91 };
92 };
93 };
94 };
95 };
96
97 spi2 {
98 compatible = "spi-gpio";
99 pinctrl-names = "default";
100 pinctrl-0 = <&spi2_pins_cfa10056>;
101 status = "okay";
102 gpio-sck = <&gpio2 16 0>;
103 gpio-mosi = <&gpio2 17 0>;
104 gpio-miso = <&gpio2 18 0>;
105 cs-gpios = <&gpio3 5 0>;
106 num-chipselects = <1>;
107 #address-cells = <1>;
108 #size-cells = <0>;
109
110 hx8369: hx8369@0 {
111 compatible = "himax,hx8369a", "himax,hx8369";
112 reg = <0>;
113 spi-max-frequency = <100000>;
114 spi-cpol;
115 spi-cpha;
116 gpios-reset = <&gpio3 30 0>;
117 };
118 };
119};