]> Pileus Git - ~andy/linux/blob - arch/arm/boot/dts/imx28-cfa10049.dts
db18cd41727465cc5ffc9d2985a86bd63d0cc44e
[~andy/linux] / arch / arm / boot / dts / imx28-cfa10049.dts
1 /*
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 {
23                 apbh@80000000 {
24                         pinctrl@80018000 {
25                                 pinctrl-names = "default", "default";
26                                 pinctrl-1 = <&hog_pins_cfa10049
27                                         &hog_pins_cfa10049_pullup>;
28
29                                 hog_pins_cfa10049: hog-10049@0 {
30                                         reg = <0>;
31                                         fsl,pinmux-ids = <
32                                                 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
33                                                 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */
34                                                 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */
35                                                 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */
36                                                 0x3173 /* MX28_PAD_LCD_RESET__GPIO_3_23 */
37                                         >;
38                                         fsl,drive-strength = <0>;
39                                         fsl,voltage = <1>;
40                                         fsl,pull-up = <0>;
41                                 };
42
43                                 hog_pins_cfa10049_pullup: hog-10049-pullup@0 {
44                                         reg = <0>;
45                                         fsl,pinmux-ids = <
46                                                 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
47                                                 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
48                                                 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
49                                                 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
50                                                 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
51                                         >;
52                                         fsl,drive-strength = <0>;
53                                         fsl,voltage = <1>;
54                                         fsl,pull-up = <1>;
55                                 };
56
57                                 spi2_pins_cfa10049: spi2-cfa10049@0 {
58                                         reg = <0>;
59                                         fsl,pinmux-ids = <
60                                                 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
61                                                 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
62                                                 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
63                                         >;
64                                         fsl,drive-strength = <1>;
65                                         fsl,voltage = <1>;
66                                         fsl,pull-up = <1>;
67                                 };
68
69                                 spi3_pins_cfa10049: spi3-cfa10049@0 {
70                                         reg = <0>;
71                                         fsl,pinmux-ids = <
72                                                 0x0183 /* MX28_PAD_GPMI_RDN__GPIO_0_24 */
73                                                 0x01c3 /* MX28_PAD_GPMI_RESETN__GPIO_0_28 */
74                                                 0x0113 /* MX28_PAD_GPMI_CE1N__GPIO_0_17 */
75                                                 0x01a3 /* MX28_PAD_GPMI_ALE__GPIO_0_26 */
76                                                 0x01b3 /* MX28_PAD_GPMI_CLE__GPIO_0_27 */
77                                         >;
78                                         fsl,drive-strength = <1>;
79                                         fsl,voltage = <1>;
80                                         fsl,pull-up = <1>;
81                                 };
82
83                                 lcdif_18bit_pins_cfa10049: lcdif-18bit@0 {
84                                         reg = <0>;
85                                         fsl,pinmux-ids = <
86                                                 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
87                                                 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
88                                                 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
89                                                 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
90                                                 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
91                                                 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
92                                                 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
93                                                 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
94                                                 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
95                                                 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
96                                                 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
97                                                 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
98                                                 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
99                                                 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
100                                                 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
101                                                 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
102                                                 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
103                                                 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
104                                         >;
105                                         fsl,drive-strength = <0>;
106                                         fsl,voltage = <1>;
107                                         fsl,pull-up = <0>;
108                                 };
109
110                                 lcdif_pins_cfa10049: lcdif-evk@0 {
111                                         reg = <0>;
112                                         fsl,pinmux-ids = <
113                                                 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
114                                                 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
115                                                 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
116                                                 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
117                                         >;
118                                         fsl,drive-strength = <0>;
119                                         fsl,voltage = <1>;
120                                         fsl,pull-up = <0>;
121                                 };
122
123                                 w1_gpio_pins: w1-gpio@0 {
124                                         reg = <0>;
125                                         fsl,pinmux-ids = <
126                                                 0x1153 /* MX28_PAD_LCD_D21__GPIO_1_21 */
127                                         >;
128                                         fsl,drive-strength = <1>;
129                                         fsl,voltage = <1>;
130                                         fsl,pull-up = <0>; /* 0 will enable the keeper */
131                                 };
132                         };
133
134                         lcdif@80030000 {
135                                 pinctrl-names = "default";
136                                 pinctrl-0 = <&lcdif_18bit_pins_cfa10049
137                                              &lcdif_pins_cfa10049>;
138                                 display = <&display>;
139                                 status = "okay";
140
141                                 display: display {
142                                         bits-per-pixel = <32>;
143                                         bus-width = <18>;
144
145                                         display-timings {
146                                                 native-mode = <&timing0>;
147                                                 timing0: timing0 {
148                                                         clock-frequency = <9216000>;
149                                                         hactive = <320>;
150                                                         vactive = <480>;
151                                                         hback-porch = <2>;
152                                                         hfront-porch = <2>;
153                                                         vback-porch = <2>;
154                                                         vfront-porch = <2>;
155                                                         hsync-len = <15>;
156                                                         vsync-len = <15>;
157                                                         hsync-active = <0>;
158                                                         vsync-active = <0>;
159                                                         de-active = <1>;
160                                                         pixelclk-active = <1>;
161                                                 };
162                                         };
163                                 };
164                         };
165                 };
166
167                 apbx@80040000 {
168                         pwm: pwm@80064000 {
169                                 pinctrl-names = "default", "default";
170                                 pinctrl-1 = <&pwm3_pins_b>;
171                                 status = "okay";
172                         };
173
174                         i2c1: i2c@8005a000 {
175                                 pinctrl-names = "default";
176                                 pinctrl-0 = <&i2c1_pins_a>;
177                                 status = "okay";
178                         };
179
180                         i2cmux {
181                                 compatible = "i2c-mux-gpio";
182                                 #address-cells = <1>;
183                                 #size-cells = <0>;
184                                 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
185                                 i2c-parent = <&i2c1>;
186
187                                 i2c@0 {
188                                         reg = <0>;
189                                 };
190
191                                 i2c@1 {
192                                         reg = <1>;
193                                 };
194
195                                 i2c@2 {
196                                         reg = <2>;
197                                 };
198
199                                 i2c@3 {
200                                         reg = <3>;
201                                         #address-cells = <1>;
202                                         #size-cells = <0>;
203
204                                         pca9555: pca9555@20 {
205                                                 compatible = "nxp,pca9555";
206                                                 interrupt-parent = <&gpio2>;
207                                                 interrupts = <19 0x2>;
208                                                 gpio-controller;
209                                                 #gpio-cells = <2>;
210                                                 interrupt-controller;
211                                                 #interrupt-cells = <2>;
212                                                 reg = <0x20>;
213                                         };
214                                 };
215                         };
216
217                         usbphy1: usbphy@8007e000 {
218                                 status = "okay";
219                         };
220                 };
221         };
222
223         ahb@80080000 {
224                 usb1: usb@80090000 {
225                         vbus-supply = <&reg_usb1_vbus>;
226                         pinctrl-0 = <&usbphy1_pins_a>;
227                         pinctrl-names = "default";
228                         status = "okay";
229                 };
230         };
231
232         regulators {
233                 compatible = "simple-bus";
234
235                 reg_usb1_vbus: usb1_vbus {
236                         compatible = "regulator-fixed";
237                         regulator-name = "usb1_vbus";
238                         regulator-min-microvolt = <5000000>;
239                         regulator-max-microvolt = <5000000>;
240                         gpio = <&gpio0 7 1>;
241                 };
242         };
243
244         ahb@80080000 {
245                 mac0: ethernet@800f0000 {
246                         phy-mode = "rmii";
247                         pinctrl-names = "default";
248                         pinctrl-0 = <&mac0_pins_a>;
249                         phy-reset-gpios = <&gpio2 21 0>;
250                         phy-reset-duration = <100>;
251                         status = "okay";
252                 };
253         };
254
255         spi2 {
256                 compatible = "spi-gpio";
257                 pinctrl-names = "default";
258                 pinctrl-0 = <&spi2_pins_cfa10049>;
259                 status = "okay";
260                 gpio-sck = <&gpio2 16 0>;
261                 gpio-mosi = <&gpio2 17 0>;
262                 gpio-miso = <&gpio2 18 0>;
263                 cs-gpios = <&gpio3 23 0>;
264                 num-chipselects = <1>;
265                 #address-cells = <1>;
266                 #size-cells = <0>;
267
268                 hx8357: hx8357@0 {
269                         compatible = "himax,hx8357b", "himax,hx8357";
270                         reg = <0>;
271                         spi-max-frequency = <100000>;
272                         spi-cpol;
273                         spi-cpha;
274                         gpios-reset = <&gpio3 30 0>;
275                         im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
276                 };
277         };
278
279         spi3 {
280                 compatible = "spi-gpio";
281                 pinctrl-names = "default";
282                 pinctrl-0 = <&spi3_pins_cfa10049>;
283                 status = "okay";
284                 gpio-sck = <&gpio0 24 0>;
285                 gpio-mosi = <&gpio0 28 0>;
286                 cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
287                 num-chipselects = <3>;
288                 #address-cells = <1>;
289                 #size-cells = <0>;
290
291                 gpio5: gpio5@0 {
292                         compatible = "fairchild,74hc595";
293                         gpio-controller;
294                         #gpio-cells = <2>;
295                         reg = <0>;
296                         registers-number = <2>;
297                         spi-max-frequency = <100000>;
298                 };
299
300                 gpio6: gpio6@1 {
301                         compatible = "fairchild,74hc595";
302                         gpio-controller;
303                         #gpio-cells = <2>;
304                         reg = <1>;
305                         registers-number = <4>;
306                         spi-max-frequency = <100000>;
307                 };
308
309                 dac0: dh2228@2 {
310                         compatible = "rohm,dh2228fv";
311                         reg = <2>;
312                         spi-max-frequency = <100000>;
313                 };
314         };
315
316         gpio_keys {
317                 compatible = "gpio-keys";
318                 #address-cells = <1>;
319                 #size-cells = <0>;
320
321                 rotary_button {
322                         label = "rotary_button";
323                         gpios = <&gpio3 26 1>;
324                         debounce-interval = <10>;
325                         linux,code = <28>;
326                 };
327         };
328
329         rotary {
330                 compatible = "rotary-encoder";
331                 gpios = <&gpio3 24 1>, <&gpio3 25 1>;
332                 linux,axis = <1>; /* REL_Y */
333                 rotary-encoder,relative-axis;
334         };
335
336         backlight {
337                 compatible = "pwm-backlight";
338                 pwms = <&pwm 3 5000000>;
339                 brightness-levels = <0 4 8 16 32 64 128 255>;
340                 default-brightness-level = <6>;
341
342         };
343
344         onewire@0 {
345                 compatible = "w1-gpio";
346                 pinctrl-names = "default";
347                 pinctrl-0 = <&w1_gpio_pins>;
348                 status = "okay";
349                 gpios = <&gpio1 21 0>;
350         };
351 };