ARM: dts: i.MX51 babbage: Add spi-cs-high property to pmic
[linux-2.6.git] / arch / arm / boot / dts / imx51-babbage.dts
blob7c670a6bf2dc03f27bca910e6afe8c9d90284884
1 /*
2  * Copyright 2011 Freescale Semiconductor, Inc.
3  * Copyright 2011 Linaro Ltd.
4  *
5  * The code contained herein is licensed under the GNU General Public
6  * License. You may obtain a copy of the GNU General Public License
7  * Version 2 or later at the following locations:
8  *
9  * http://www.opensource.org/licenses/gpl-license.html
10  * http://www.gnu.org/copyleft/gpl.html
11  */
13 /dts-v1/;
14 #include "imx51.dtsi"
16 / {
17         model = "Freescale i.MX51 Babbage Board";
18         compatible = "fsl,imx51-babbage", "fsl,imx51";
20         memory {
21                 reg = <0x90000000 0x20000000>;
22         };
24         display@di0 {
25                 compatible = "fsl,imx-parallel-display";
26                 crtcs = <&ipu 0>;
27                 interface-pix-fmt = "rgb24";
28                 pinctrl-names = "default";
29                 pinctrl-0 = <&pinctrl_ipu_disp1_1>;
30         };
32         display@di1 {
33                 compatible = "fsl,imx-parallel-display";
34                 crtcs = <&ipu 1>;
35                 interface-pix-fmt = "rgb565";
36                 pinctrl-names = "default";
37                 pinctrl-0 = <&pinctrl_ipu_disp2_1>;
38         };
40         gpio-keys {
41                 compatible = "gpio-keys";
43                 power {
44                         label = "Power Button";
45                         gpios = <&gpio2 21 0>;
46                         linux,code = <116>; /* KEY_POWER */
47                         gpio-key,wakeup;
48                 };
49         };
51         sound {
52                 compatible = "fsl,imx51-babbage-sgtl5000",
53                              "fsl,imx-audio-sgtl5000";
54                 model = "imx51-babbage-sgtl5000";
55                 ssi-controller = <&ssi2>;
56                 audio-codec = <&sgtl5000>;
57                 audio-routing =
58                         "MIC_IN", "Mic Jack",
59                         "Mic Jack", "Mic Bias",
60                         "Headphone Jack", "HP_OUT";
61                 mux-int-port = <2>;
62                 mux-ext-port = <3>;
63         };
65         clocks {
66                 clk_26M: codec_clock {
67                         compatible = "fixed-clock";
68                         reg=<0>;
69                         #clock-cells = <0>;
70                         clock-frequency = <26000000>;
71                         gpios = <&gpio4 26 1>;
72                 };
73         };
76 &esdhc1 {
77         pinctrl-names = "default";
78         pinctrl-0 = <&pinctrl_esdhc1_1>;
79         fsl,cd-controller;
80         fsl,wp-controller;
81         status = "okay";
84 &esdhc2 {
85         pinctrl-names = "default";
86         pinctrl-0 = <&pinctrl_esdhc2_1>;
87         cd-gpios = <&gpio1 6 0>;
88         wp-gpios = <&gpio1 5 0>;
89         status = "okay";
92 &uart3 {
93         pinctrl-names = "default";
94         pinctrl-0 = <&pinctrl_uart3_1>;
95         fsl,uart-has-rtscts;
96         status = "okay";
99 &ecspi1 {
100         pinctrl-names = "default";
101         pinctrl-0 = <&pinctrl_ecspi1_1>;
102         fsl,spi-num-chipselects = <2>;
103         cs-gpios = <&gpio4 24 0>, <&gpio4 25 0>;
104         status = "okay";
106         pmic: mc13892@0 {
107                 #address-cells = <1>;
108                 #size-cells = <0>;
109                 compatible = "fsl,mc13892";
110                 spi-max-frequency = <6000000>;
111                 spi-cs-high;
112                 reg = <0>;
113                 interrupt-parent = <&gpio1>;
114                 interrupts = <8 0x4>;
116                 regulators {
117                         sw1_reg: sw1 {
118                                 regulator-min-microvolt = <600000>;
119                                 regulator-max-microvolt = <1375000>;
120                                 regulator-boot-on;
121                                 regulator-always-on;
122                         };
124                         sw2_reg: sw2 {
125                                 regulator-min-microvolt = <900000>;
126                                 regulator-max-microvolt = <1850000>;
127                                 regulator-boot-on;
128                                 regulator-always-on;
129                         };
131                         sw3_reg: sw3 {
132                                 regulator-min-microvolt = <1100000>;
133                                 regulator-max-microvolt = <1850000>;
134                                 regulator-boot-on;
135                                 regulator-always-on;
136                         };
138                         sw4_reg: sw4 {
139                                 regulator-min-microvolt = <1100000>;
140                                 regulator-max-microvolt = <1850000>;
141                                 regulator-boot-on;
142                                 regulator-always-on;
143                         };
145                         vpll_reg: vpll {
146                                 regulator-min-microvolt = <1050000>;
147                                 regulator-max-microvolt = <1800000>;
148                                 regulator-boot-on;
149                                 regulator-always-on;
150                         };
152                         vdig_reg: vdig {
153                                 regulator-min-microvolt = <1650000>;
154                                 regulator-max-microvolt = <1650000>;
155                                 regulator-boot-on;
156                         };
158                         vsd_reg: vsd {
159                                 regulator-min-microvolt = <1800000>;
160                                 regulator-max-microvolt = <3150000>;
161                         };
163                         vusb2_reg: vusb2 {
164                                 regulator-min-microvolt = <2400000>;
165                                 regulator-max-microvolt = <2775000>;
166                                 regulator-boot-on;
167                                 regulator-always-on;
168                         };
170                         vvideo_reg: vvideo {
171                                 regulator-min-microvolt = <2775000>;
172                                 regulator-max-microvolt = <2775000>;
173                         };
175                         vaudio_reg: vaudio {
176                                 regulator-min-microvolt = <2300000>;
177                                 regulator-max-microvolt = <3000000>;
178                         };
180                         vcam_reg: vcam {
181                                 regulator-min-microvolt = <2500000>;
182                                 regulator-max-microvolt = <3000000>;
183                         };
185                         vgen1_reg: vgen1 {
186                                 regulator-min-microvolt = <1200000>;
187                                 regulator-max-microvolt = <1200000>;
188                         };
190                         vgen2_reg: vgen2 {
191                                 regulator-min-microvolt = <1200000>;
192                                 regulator-max-microvolt = <3150000>;
193                                 regulator-always-on;
194                         };
196                         vgen3_reg: vgen3 {
197                                 regulator-min-microvolt = <1800000>;
198                                 regulator-max-microvolt = <2900000>;
199                                 regulator-always-on;
200                         };
201                 };
202         };
204         flash: at45db321d@1 {
205                 #address-cells = <1>;
206                 #size-cells = <1>;
207                 compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash";
208                 spi-max-frequency = <25000000>;
209                 reg = <1>;
211                 partition@0 {
212                         label = "U-Boot";
213                         reg = <0x0 0x40000>;
214                         read-only;
215                 };
217                 partition@40000 {
218                         label = "Kernel";
219                         reg = <0x40000 0x3c0000>;
220                 };
221         };
224 &ssi2 {
225         fsl,mode = "i2s-slave";
226         status = "okay";
229 &iomuxc {
230         pinctrl-names = "default";
231         pinctrl-0 = <&pinctrl_hog>;
233         hog {
234                 pinctrl_hog: hoggrp {
235                         fsl,pins = <
236                                 MX51_PAD_GPIO1_0__SD1_CD     0x20d5
237                                 MX51_PAD_GPIO1_1__SD1_WP     0x20d5
238                                 MX51_PAD_GPIO1_5__GPIO1_5    0x100
239                                 MX51_PAD_GPIO1_6__GPIO1_6    0x100
240                                 MX51_PAD_EIM_A27__GPIO2_21   0x5
241                                 MX51_PAD_CSPI1_SS0__GPIO4_24 0x85
242                                 MX51_PAD_CSPI1_SS1__GPIO4_25 0x85
243                                 MX51_PAD_CSPI1_RDY__GPIO4_26 0x80000000
244                         >;
245                 };
246         };
249 &uart1 {
250         pinctrl-names = "default";
251         pinctrl-0 = <&pinctrl_uart1_1>;
252         fsl,uart-has-rtscts;
253         status = "okay";
256 &uart2 {
257         pinctrl-names = "default";
258         pinctrl-0 = <&pinctrl_uart2_1>;
259         status = "okay";
262 &i2c2 {
263         pinctrl-names = "default";
264         pinctrl-0 = <&pinctrl_i2c2_1>;
265         status = "okay";
267         sgtl5000: codec@0a {
268                 compatible = "fsl,sgtl5000";
269                 reg = <0x0a>;
270                 clocks = <&clk_26M>;
271                 VDDA-supply = <&vdig_reg>;
272                 VDDIO-supply = <&vvideo_reg>;
273         };
276 &audmux {
277         pinctrl-names = "default";
278         pinctrl-0 = <&pinctrl_audmux_1>;
279         status = "okay";
282 &fec {
283         pinctrl-names = "default";
284         pinctrl-0 = <&pinctrl_fec_1>;
285         phy-mode = "mii";
286         status = "okay";
289 &kpp {
290         pinctrl-names = "default";
291         pinctrl-0 = <&pinctrl_kpp_1>;
292         linux,keymap = <0x00000067      /* KEY_UP */
293                         0x0001006c      /* KEY_DOWN */
294                         0x00020072      /* KEY_VOLUMEDOWN */
295                         0x00030066      /* KEY_HOME */
296                         0x0100006a      /* KEY_RIGHT */
297                         0x01010069      /* KEY_LEFT */
298                         0x0102001c      /* KEY_ENTER */
299                         0x01030073      /* KEY_VOLUMEUP */
300                         0x02000040      /* KEY_F6 */
301                         0x02010042      /* KEY_F8 */
302                         0x02020043      /* KEY_F9 */
303                         0x02030044      /* KEY_F10 */
304                         0x0300003b      /* KEY_F1 */
305                         0x0301003c      /* KEY_F2 */
306                         0x0302003d      /* KEY_F3 */
307                         0x03030074>;    /* KEY_POWER */
308         status = "okay";