]> Pileus Git - ~andy/linux/blob - arch/arm/boot/dts/imx28-cfa10049.dts
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[~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                                                 0x1153 /* MX28_PAD_LCD_D22__GPIO_1_21 */
34                                                 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 */
37                                                 0x3173 /* MX28_PAD_LCD_RESET__GPIO_3_23 */
38                                         >;
39                                         fsl,drive-strength = <0>;
40                                         fsl,voltage = <1>;
41                                         fsl,pull-up = <0>;
42                                 };
43
44                                 hog_pins_cfa10049_pullup: hog-10049-pullup@0 {
45                                         reg = <0>;
46                                         fsl,pinmux-ids = <
47                                                 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
48                                                 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
49                                                 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
50                                                 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
51                                                 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
52                                         >;
53                                         fsl,drive-strength = <0>;
54                                         fsl,voltage = <1>;
55                                         fsl,pull-up = <1>;
56                                 };
57
58                                 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
70                                 spi3_pins_cfa10049: spi3-cfa10049@0 {
71                                         reg = <0>;
72                                         fsl,pinmux-ids = <
73                                                 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 */
78                                         >;
79                                         fsl,drive-strength = <1>;
80                                         fsl,voltage = <1>;
81                                         fsl,pull-up = <1>;
82                                 };
83
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>;
129                                 status = "okay";
130                         };
131                 };
132
133                 apbx@80040000 {
134                         pwm: pwm@80064000 {
135                                 pinctrl-names = "default", "default";
136                                 pinctrl-1 = <&pwm3_pins_b>;
137                                 status = "okay";
138                         };
139
140                         i2c1: i2c@8005a000 {
141                                 pinctrl-names = "default";
142                                 pinctrl-0 = <&i2c1_pins_a>;
143                                 status = "okay";
144                         };
145
146                         i2cmux {
147                                 compatible = "i2c-mux-gpio";
148                                 #address-cells = <1>;
149                                 #size-cells = <0>;
150                                 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
151                                 i2c-parent = <&i2c1>;
152
153                                 i2c@0 {
154                                         reg = <0>;
155                                 };
156
157                                 i2c@1 {
158                                         reg = <1>;
159                                 };
160
161                                 i2c@2 {
162                                         reg = <2>;
163                                 };
164
165                                 i2c@3 {
166                                         reg = <3>;
167                                         #address-cells = <1>;
168                                         #size-cells = <0>;
169
170                                         pca9555: pca9555@20 {
171                                                 compatible = "nxp,pca9555";
172                                                 interrupt-parent = <&gpio2>;
173                                                 interrupts = <19 0x2>;
174                                                 gpio-controller;
175                                                 #gpio-cells = <2>;
176                                                 interrupt-controller;
177                                                 #interrupt-cells = <2>;
178                                                 reg = <0x20>;
179                                         };
180                                 };
181                         };
182
183                         usbphy1: usbphy@8007e000 {
184                                 status = "okay";
185                         };
186                 };
187         };
188
189         ahb@80080000 {
190                 usb1: usb@80090000 {
191                         vbus-supply = <&reg_usb1_vbus>;
192                         pinctrl-0 = <&usbphy1_pins_a>;
193                         pinctrl-names = "default";
194                         status = "okay";
195                 };
196         };
197
198         regulators {
199                 compatible = "simple-bus";
200
201                 reg_usb1_vbus: usb1_vbus {
202                         compatible = "regulator-fixed";
203                         regulator-name = "usb1_vbus";
204                         regulator-min-microvolt = <5000000>;
205                         regulator-max-microvolt = <5000000>;
206                         gpio = <&gpio0 7 1>;
207                 };
208         };
209
210         ahb@80080000 {
211                 mac0: ethernet@800f0000 {
212                         phy-mode = "rmii";
213                         pinctrl-names = "default";
214                         pinctrl-0 = <&mac0_pins_a>;
215                         phy-reset-gpios = <&gpio2 21 0>;
216                         phy-reset-duration = <100>;
217                         status = "okay";
218                 };
219         };
220
221         spi2 {
222                 compatible = "spi-gpio";
223                 pinctrl-names = "default";
224                 pinctrl-0 = <&spi2_pins_cfa10049>;
225                 status = "okay";
226                 gpio-sck = <&gpio2 16 0>;
227                 gpio-mosi = <&gpio2 17 0>;
228                 gpio-miso = <&gpio2 18 0>;
229                 cs-gpios = <&gpio3 23 0>;
230                 num-chipselects = <1>;
231                 #address-cells = <1>;
232                 #size-cells = <0>;
233
234                 hx8357: hx8357@0 {
235                         compatible = "himax,hx8357b", "himax,hx8357";
236                         reg = <0>;
237                         spi-max-frequency = <100000>;
238                         spi-cpol;
239                         spi-cpha;
240                         gpios-reset = <&gpio3 30 0>;
241                         im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
242                 };
243         };
244
245         spi3 {
246                 compatible = "spi-gpio";
247                 pinctrl-names = "default";
248                 pinctrl-0 = <&spi3_pins_cfa10049>;
249                 status = "okay";
250                 gpio-sck = <&gpio0 24 0>;
251                 gpio-mosi = <&gpio0 28 0>;
252                 cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
253                 num-chipselects = <3>;
254                 #address-cells = <1>;
255                 #size-cells = <0>;
256
257                 gpio5: gpio5@0 {
258                         compatible = "fairchild,74hc595";
259                         gpio-controller;
260                         #gpio-cells = <2>;
261                         reg = <0>;
262                         registers-number = <2>;
263                         spi-max-frequency = <100000>;
264                 };
265
266                 gpio6: gpio6@1 {
267                         compatible = "fairchild,74hc595";
268                         gpio-controller;
269                         #gpio-cells = <2>;
270                         reg = <1>;
271                         registers-number = <4>;
272                         spi-max-frequency = <100000>;
273                 };
274
275                 dac0: dh2228@2 {
276                         compatible = "rohm,dh2228fv";
277                         reg = <2>;
278                         spi-max-frequency = <100000>;
279                 };
280         };
281
282         gpio_keys {
283                 compatible = "gpio-keys";
284                 #address-cells = <1>;
285                 #size-cells = <0>;
286
287                 rotary_button {
288                         label = "rotary_button";
289                         gpios = <&gpio3 26 1>;
290                         debounce-interval = <10>;
291                         linux,code = <28>;
292                 };
293         };
294
295         rotary {
296                 compatible = "rotary-encoder";
297                 gpios = <&gpio3 24 1>, <&gpio3 25 1>;
298                 linux,axis = <1>; /* REL_Y */
299                 rotary-encoder,relative-axis;
300         };
301
302         backlight {
303                 compatible = "pwm-backlight";
304                 pwms = <&pwm 3 5000000>;
305                 brightness-levels = <0 4 8 16 32 64 128 255>;
306                 default-brightness-level = <6>;
307         };
308 };