blob: cabc33a770cafac18e5f1c1da738bc1d175343dd [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 */
16/include/ "imx28-cfa10036.dts"
17
18/ {
19 model = "Crystalfontz CFA-10049 Board";
20 compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
21
22 apb@80000000 {
Maxime Ripard223d1f92012-09-04 10:44:03 +020023 apbh@80000000 {
24 pinctrl@80018000 {
Maxime Ripard24196d52012-11-03 16:59:08 +010025 pinctrl-names = "default", "default";
Maxime Ripard5b615fb2012-11-20 15:33:35 +010026 pinctrl-1 = <&hog_pins_cfa10049
27 &hog_pins_cfa10049_pullup>;
Maxime Ripard24196d52012-11-03 16:59:08 +010028
29 hog_pins_cfa10049: hog-10049@0 {
30 reg = <0>;
31 fsl,pinmux-ids = <
32 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
Maxime Ripard1fe42742013-01-25 09:54:07 +010033 0x1153 /* MX28_PAD_LCD_D22__GPIO_1_21 */
Maxime Ripard24196d52012-11-03 16:59:08 +010034 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */
35 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */
36 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */
Maxime Ripard1fe42742013-01-25 09:54:07 +010037 0x3173 /* MX28_PAD_LCD_RESET__GPIO_3_23 */
Maxime Ripard24196d52012-11-03 16:59:08 +010038 >;
39 fsl,drive-strength = <0>;
40 fsl,voltage = <1>;
41 fsl,pull-up = <0>;
42 };
43
Maxime Ripard5b615fb2012-11-20 15:33:35 +010044 hog_pins_cfa10049_pullup: hog-10049-pullup@0 {
45 reg = <0>;
46 fsl,pinmux-ids = <
47 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
Maxime Ripard1fe42742013-01-25 09:54:07 +010048 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
Maxime Ripard5b615fb2012-11-20 15:33:35 +010049 >;
50 fsl,drive-strength = <0>;
51 fsl,voltage = <1>;
52 fsl,pull-up = <1>;
53 };
54
Maxime Ripard1fe42742013-01-25 09:54:07 +010055 spi2_pins_cfa10049: spi2-cfa10049@0 {
56 reg = <0>;
57 fsl,pinmux-ids = <
58 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
59 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
60 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
61 >;
62 fsl,drive-strength = <1>;
63 fsl,voltage = <1>;
64 fsl,pull-up = <1>;
65 };
66
Maxime Ripard223d1f92012-09-04 10:44:03 +020067 spi3_pins_cfa10049: spi3-cfa10049@0 {
68 reg = <0>;
69 fsl,pinmux-ids = <
Maxime Ripard7ecc70a2013-01-25 09:39:35 +010070 0x0183 /* MX28_PAD_GPMI_RDN__GPIO_0_24 */
71 0x01c3 /* MX28_PAD_GPMI_RESETN__GPIO_0_28 */
72 0x0113 /* MX28_PAD_GPMI_CE1N__GPIO_0_17 */
73 0x01a3 /* MX28_PAD_GPMI_ALE__GPIO_0_26 */
74 0x01b3 /* MX28_PAD_GPMI_CLE__GPIO_0_27 */
Maxime Ripard223d1f92012-09-04 10:44:03 +020075 >;
76 fsl,drive-strength = <1>;
77 fsl,voltage = <1>;
78 fsl,pull-up = <1>;
79 };
Maxime Ripard1fe42742013-01-25 09:54:07 +010080
81 lcdif_18bit_pins_cfa10049: lcdif-18bit@0 {
82 reg = <0>;
83 fsl,pinmux-ids = <
84 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
85 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
86 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
87 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
88 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
89 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
90 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
91 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
92 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
93 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
94 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
95 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
96 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
97 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
98 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
99 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
100 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
101 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
102 >;
103 fsl,drive-strength = <0>;
104 fsl,voltage = <1>;
105 fsl,pull-up = <0>;
106 };
107
108 lcdif_pins_cfa10049: lcdif-evk@0 {
109 reg = <0>;
110 fsl,pinmux-ids = <
111 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
112 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
113 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
114 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
115 >;
116 fsl,drive-strength = <0>;
117 fsl,voltage = <1>;
118 fsl,pull-up = <0>;
119 };
120 };
121
122 lcdif@80030000 {
123 pinctrl-names = "default";
124 pinctrl-0 = <&lcdif_18bit_pins_cfa10049
125 &lcdif_pins_cfa10049>;
126 status = "okay";
Maxime Ripard223d1f92012-09-04 10:44:03 +0200127 };
Maxime Ripard223d1f92012-09-04 10:44:03 +0200128 };
129
Maxime Riparddb84c032012-08-31 16:00:41 +0200130 apbx@80040000 {
Maxime Ripard1fe42742013-01-25 09:54:07 +0100131 pwm: pwm@80064000 {
132 pinctrl-names = "default", "default";
133 pinctrl-1 = <&pwm3_pins_b>;
134 status = "okay";
135 };
136
Maxime Riparddb84c032012-08-31 16:00:41 +0200137 i2c1: i2c@8005a000 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&i2c1_pins_a>;
140 status = "okay";
141 };
Maxime Ripard186e3d92012-09-03 16:15:25 +0200142
Maxime Ripard06e9eff2012-10-25 18:23:54 +0200143 i2cmux {
144 compatible = "i2c-mux-gpio";
145 #address-cells = <1>;
146 #size-cells = <0>;
147 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
148 i2c-parent = <&i2c1>;
149
150 i2c@0 {
151 reg = <0>;
152 };
153
154 i2c@1 {
155 reg = <1>;
156 };
157
158 i2c@2 {
159 reg = <2>;
160 };
161
162 i2c@3 {
163 reg = <3>;
Maxime Ripard5b615fb2012-11-20 15:33:35 +0100164 #address-cells = <1>;
165 #size-cells = <0>;
166
167 pca9555: pca9555@20 {
168 compatible = "nxp,pca9555";
169 interrupt-parent = <&gpio2>;
170 interrupts = <19 0x2>;
171 gpio-controller;
172 #gpio-cells = <2>;
173 interrupt-controller;
174 #interrupt-cells = <2>;
175 reg = <0x20>;
176 };
Maxime Ripard06e9eff2012-10-25 18:23:54 +0200177 };
178 };
179
Maxime Ripard186e3d92012-09-03 16:15:25 +0200180 usbphy1: usbphy@8007e000 {
181 status = "okay";
182 };
183 };
184 };
185
186 ahb@80080000 {
187 usb1: usb@80090000 {
188 vbus-supply = <&reg_usb1_vbus>;
189 pinctrl-0 = <&usbphy1_pins_a>;
190 pinctrl-names = "default";
191 status = "okay";
192 };
193 };
194
195 regulators {
196 compatible = "simple-bus";
197
198 reg_usb1_vbus: usb1_vbus {
199 compatible = "regulator-fixed";
200 regulator-name = "usb1_vbus";
201 regulator-min-microvolt = <5000000>;
202 regulator-max-microvolt = <5000000>;
203 gpio = <&gpio0 7 1>;
Maxime Riparddb84c032012-08-31 16:00:41 +0200204 };
205 };
Maxime Ripard8eec4b32012-10-07 10:36:28 +0800206
207 ahb@80080000 {
208 mac0: ethernet@800f0000 {
209 phy-mode = "rmii";
210 pinctrl-names = "default";
211 pinctrl-0 = <&mac0_pins_a>;
212 phy-reset-gpios = <&gpio2 21 0>;
213 phy-reset-duration = <100>;
214 status = "okay";
215 };
216 };
Maxime Ripard7ecc70a2013-01-25 09:39:35 +0100217
Maxime Ripard1fe42742013-01-25 09:54:07 +0100218 spi2 {
219 compatible = "spi-gpio";
220 pinctrl-names = "default";
221 pinctrl-0 = <&spi2_pins_cfa10049>;
222 status = "okay";
223 gpio-sck = <&gpio2 16 0>;
224 gpio-mosi = <&gpio2 17 0>;
225 gpio-miso = <&gpio2 18 0>;
226 cs-gpios = <&gpio3 23 0>;
227 num-chipselects = <1>;
228 #address-cells = <1>;
229 #size-cells = <0>;
230
231 hx8357: hx8357@0 {
232 compatible = "himax,hx8357b", "himax,hx8357";
233 reg = <0>;
234 spi-max-frequency = <100000>;
235 spi-cpol;
236 spi-cpha;
237 gpios-reset = <&gpio3 30 0>;
238 im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
239 };
240 };
241
Maxime Ripard7ecc70a2013-01-25 09:39:35 +0100242 spi3 {
243 compatible = "spi-gpio";
244 pinctrl-names = "default";
245 pinctrl-0 = <&spi3_pins_cfa10049>;
246 status = "okay";
247 gpio-sck = <&gpio0 24 0>;
248 gpio-mosi = <&gpio0 28 0>;
249 cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
250 num-chipselects = <3>;
251 #address-cells = <1>;
252 #size-cells = <0>;
253
254 gpio5: gpio5@0 {
255 compatible = "fairchild,74hc595";
256 gpio-controller;
257 #gpio-cells = <2>;
258 reg = <0>;
259 registers-number = <2>;
260 spi-max-frequency = <100000>;
261 };
262
263 gpio6: gpio6@1 {
264 compatible = "fairchild,74hc595";
265 gpio-controller;
266 #gpio-cells = <2>;
267 reg = <1>;
268 registers-number = <4>;
269 spi-max-frequency = <100000>;
270 };
271
272 dac0: dh2228@2 {
273 compatible = "rohm,dh2228fv";
274 reg = <2>;
275 spi-max-frequency = <100000>;
276 };
277 };
Maxime Ripard1fe42742013-01-25 09:54:07 +0100278
279 backlight {
280 compatible = "pwm-backlight";
281 pwms = <&pwm 3 5000000>;
282 brightness-levels = <0 4 8 16 32 64 128 255>;
283 default-brightness-level = <6>;
284 };
Maxime Riparddb84c032012-08-31 16:00:41 +0200285};