blob: 7d6e1f87e9519d3124b6a100ebe3cfd99fb048ec [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 Ripard0943b962013-01-31 11:00:24 +010048 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
49 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
Maxime Riparda640cf62013-01-31 11:00:23 +010050 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
Maxime Ripard1fe42742013-01-25 09:54:07 +010051 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
Maxime Ripard5b615fb2012-11-20 15:33:35 +010052 >;
53 fsl,drive-strength = <0>;
54 fsl,voltage = <1>;
55 fsl,pull-up = <1>;
56 };
57
Maxime Ripard1fe42742013-01-25 09:54:07 +010058 spi2_pins_cfa10049: spi2-cfa10049@0 {
59 reg = <0>;
60 fsl,pinmux-ids = <
61 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
62 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
63 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
64 >;
65 fsl,drive-strength = <1>;
66 fsl,voltage = <1>;
67 fsl,pull-up = <1>;
68 };
69
Maxime Ripard223d1f92012-09-04 10:44:03 +020070 spi3_pins_cfa10049: spi3-cfa10049@0 {
71 reg = <0>;
72 fsl,pinmux-ids = <
Maxime Ripard7ecc70a2013-01-25 09:39:35 +010073 0x0183 /* MX28_PAD_GPMI_RDN__GPIO_0_24 */
74 0x01c3 /* MX28_PAD_GPMI_RESETN__GPIO_0_28 */
75 0x0113 /* MX28_PAD_GPMI_CE1N__GPIO_0_17 */
76 0x01a3 /* MX28_PAD_GPMI_ALE__GPIO_0_26 */
77 0x01b3 /* MX28_PAD_GPMI_CLE__GPIO_0_27 */
Maxime Ripard223d1f92012-09-04 10:44:03 +020078 >;
79 fsl,drive-strength = <1>;
80 fsl,voltage = <1>;
81 fsl,pull-up = <1>;
82 };
Maxime Ripard1fe42742013-01-25 09:54:07 +010083
84 lcdif_18bit_pins_cfa10049: lcdif-18bit@0 {
85 reg = <0>;
86 fsl,pinmux-ids = <
87 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
88 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
89 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
90 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
91 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
92 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
93 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
94 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
95 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
96 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
97 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
98 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
99 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
100 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
101 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
102 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
103 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
104 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
105 >;
106 fsl,drive-strength = <0>;
107 fsl,voltage = <1>;
108 fsl,pull-up = <0>;
109 };
110
111 lcdif_pins_cfa10049: lcdif-evk@0 {
112 reg = <0>;
113 fsl,pinmux-ids = <
114 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
115 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
116 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
117 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
118 >;
119 fsl,drive-strength = <0>;
120 fsl,voltage = <1>;
121 fsl,pull-up = <0>;
122 };
123 };
124
125 lcdif@80030000 {
126 pinctrl-names = "default";
127 pinctrl-0 = <&lcdif_18bit_pins_cfa10049
128 &lcdif_pins_cfa10049>;
Shawn Guo0d9f8212013-03-14 11:37:15 +0800129 display = <&display>;
Maxime Ripard1fe42742013-01-25 09:54:07 +0100130 status = "okay";
Shawn Guo0d9f8212013-03-14 11:37:15 +0800131
132 display: display {
133 bits-per-pixel = <32>;
134 bus-width = <18>;
135
136 display-timings {
137 native-mode = <&timing0>;
138 timing0: timing0 {
139 clock-frequency = <9216000>;
140 hactive = <320>;
141 vactive = <480>;
142 hback-porch = <2>;
143 hfront-porch = <2>;
144 vback-porch = <2>;
145 vfront-porch = <2>;
146 hsync-len = <15>;
147 vsync-len = <15>;
148 hsync-active = <0>;
149 vsync-active = <0>;
150 de-active = <1>;
151 pixelclk-active = <1>;
152 };
153 };
154 };
Maxime Ripard223d1f92012-09-04 10:44:03 +0200155 };
Maxime Ripard223d1f92012-09-04 10:44:03 +0200156 };
157
Maxime Riparddb84c032012-08-31 16:00:41 +0200158 apbx@80040000 {
Maxime Ripard1fe42742013-01-25 09:54:07 +0100159 pwm: pwm@80064000 {
160 pinctrl-names = "default", "default";
161 pinctrl-1 = <&pwm3_pins_b>;
162 status = "okay";
163 };
164
Maxime Riparddb84c032012-08-31 16:00:41 +0200165 i2c1: i2c@8005a000 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&i2c1_pins_a>;
168 status = "okay";
169 };
Maxime Ripard186e3d92012-09-03 16:15:25 +0200170
Maxime Ripard06e9eff2012-10-25 18:23:54 +0200171 i2cmux {
172 compatible = "i2c-mux-gpio";
173 #address-cells = <1>;
174 #size-cells = <0>;
175 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
176 i2c-parent = <&i2c1>;
177
178 i2c@0 {
179 reg = <0>;
180 };
181
182 i2c@1 {
183 reg = <1>;
184 };
185
186 i2c@2 {
187 reg = <2>;
188 };
189
190 i2c@3 {
191 reg = <3>;
Maxime Ripard5b615fb2012-11-20 15:33:35 +0100192 #address-cells = <1>;
193 #size-cells = <0>;
194
195 pca9555: pca9555@20 {
196 compatible = "nxp,pca9555";
197 interrupt-parent = <&gpio2>;
198 interrupts = <19 0x2>;
199 gpio-controller;
200 #gpio-cells = <2>;
201 interrupt-controller;
202 #interrupt-cells = <2>;
203 reg = <0x20>;
204 };
Maxime Ripard06e9eff2012-10-25 18:23:54 +0200205 };
206 };
207
Maxime Ripard186e3d92012-09-03 16:15:25 +0200208 usbphy1: usbphy@8007e000 {
209 status = "okay";
210 };
211 };
212 };
213
214 ahb@80080000 {
215 usb1: usb@80090000 {
216 vbus-supply = <&reg_usb1_vbus>;
217 pinctrl-0 = <&usbphy1_pins_a>;
218 pinctrl-names = "default";
219 status = "okay";
220 };
221 };
222
223 regulators {
224 compatible = "simple-bus";
225
226 reg_usb1_vbus: usb1_vbus {
227 compatible = "regulator-fixed";
228 regulator-name = "usb1_vbus";
229 regulator-min-microvolt = <5000000>;
230 regulator-max-microvolt = <5000000>;
231 gpio = <&gpio0 7 1>;
Maxime Riparddb84c032012-08-31 16:00:41 +0200232 };
233 };
Maxime Ripard8eec4b32012-10-07 10:36:28 +0800234
235 ahb@80080000 {
236 mac0: ethernet@800f0000 {
237 phy-mode = "rmii";
238 pinctrl-names = "default";
239 pinctrl-0 = <&mac0_pins_a>;
240 phy-reset-gpios = <&gpio2 21 0>;
241 phy-reset-duration = <100>;
242 status = "okay";
243 };
244 };
Maxime Ripard7ecc70a2013-01-25 09:39:35 +0100245
Maxime Ripard1fe42742013-01-25 09:54:07 +0100246 spi2 {
247 compatible = "spi-gpio";
248 pinctrl-names = "default";
249 pinctrl-0 = <&spi2_pins_cfa10049>;
250 status = "okay";
251 gpio-sck = <&gpio2 16 0>;
252 gpio-mosi = <&gpio2 17 0>;
253 gpio-miso = <&gpio2 18 0>;
254 cs-gpios = <&gpio3 23 0>;
255 num-chipselects = <1>;
256 #address-cells = <1>;
257 #size-cells = <0>;
258
259 hx8357: hx8357@0 {
260 compatible = "himax,hx8357b", "himax,hx8357";
261 reg = <0>;
262 spi-max-frequency = <100000>;
263 spi-cpol;
264 spi-cpha;
265 gpios-reset = <&gpio3 30 0>;
266 im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
267 };
268 };
269
Maxime Ripard7ecc70a2013-01-25 09:39:35 +0100270 spi3 {
271 compatible = "spi-gpio";
272 pinctrl-names = "default";
273 pinctrl-0 = <&spi3_pins_cfa10049>;
274 status = "okay";
275 gpio-sck = <&gpio0 24 0>;
276 gpio-mosi = <&gpio0 28 0>;
277 cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
278 num-chipselects = <3>;
279 #address-cells = <1>;
280 #size-cells = <0>;
281
282 gpio5: gpio5@0 {
283 compatible = "fairchild,74hc595";
284 gpio-controller;
285 #gpio-cells = <2>;
286 reg = <0>;
287 registers-number = <2>;
288 spi-max-frequency = <100000>;
289 };
290
291 gpio6: gpio6@1 {
292 compatible = "fairchild,74hc595";
293 gpio-controller;
294 #gpio-cells = <2>;
295 reg = <1>;
296 registers-number = <4>;
297 spi-max-frequency = <100000>;
298 };
299
300 dac0: dh2228@2 {
301 compatible = "rohm,dh2228fv";
302 reg = <2>;
303 spi-max-frequency = <100000>;
304 };
305 };
Maxime Ripard1fe42742013-01-25 09:54:07 +0100306
Maxime Riparda640cf62013-01-31 11:00:23 +0100307 gpio_keys {
308 compatible = "gpio-keys";
309 #address-cells = <1>;
310 #size-cells = <0>;
311
312 rotary_button {
313 label = "rotary_button";
314 gpios = <&gpio3 26 1>;
315 debounce-interval = <10>;
316 linux,code = <28>;
317 };
318 };
319
Maxime Ripard0943b962013-01-31 11:00:24 +0100320 rotary {
321 compatible = "rotary-encoder";
322 gpios = <&gpio3 24 1>, <&gpio3 25 1>;
323 linux,axis = <1>; /* REL_Y */
324 rotary-encoder,relative-axis;
325 };
326
Maxime Ripard1fe42742013-01-25 09:54:07 +0100327 backlight {
328 compatible = "pwm-backlight";
329 pwms = <&pwm 3 5000000>;
330 brightness-levels = <0 4 8 16 32 64 128 255>;
331 default-brightness-level = <6>;
332 };
Maxime Riparddb84c032012-08-31 16:00:41 +0200333};