Merge branch 'mips-for-linux-next' of git://git.linux-mips.org/pub/scm/ralf/upstream-sfr
[linux.git] / arch / arm / boot / dts / imx53-qsb.dts
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  */
12
13 /dts-v1/;
14 #include "imx53.dtsi"
15
16 / {
17         model = "Freescale i.MX53 Quick Start Board";
18         compatible = "fsl,imx53-qsb", "fsl,imx53";
19
20         memory {
21                 reg = <0x70000000 0x40000000>;
22         };
23
24         display0: display@di0 {
25                 compatible = "fsl,imx-parallel-display";
26                 interface-pix-fmt = "rgb565";
27                 pinctrl-names = "default";
28                 pinctrl-0 = <&pinctrl_ipu_disp0_1>;
29                 status = "disabled";
30                 display-timings {
31                         claawvga {
32                                 native-mode;
33                                 clock-frequency = <27000000>;
34                                 hactive = <800>;
35                                 vactive = <480>;
36                                 hback-porch = <40>;
37                                 hfront-porch = <60>;
38                                 vback-porch = <10>;
39                                 vfront-porch = <10>;
40                                 hsync-len = <20>;
41                                 vsync-len = <10>;
42                                 hsync-active = <0>;
43                                 vsync-active = <0>;
44                                 de-active = <1>;
45                                 pixelclk-active = <0>;
46                         };
47                 };
48
49                 port {
50                         display0_in: endpoint {
51                                 remote-endpoint = <&ipu_di0_disp0>;
52                         };
53                 };
54         };
55
56         gpio-keys {
57                 compatible = "gpio-keys";
58
59                 power {
60                         label = "Power Button";
61                         gpios = <&gpio1 8 0>;
62                         linux,code = <116>; /* KEY_POWER */
63                 };
64
65                 volume-up {
66                         label = "Volume Up";
67                         gpios = <&gpio2 14 0>;
68                         linux,code = <115>; /* KEY_VOLUMEUP */
69                         gpio-key,wakeup;
70                 };
71
72                 volume-down {
73                         label = "Volume Down";
74                         gpios = <&gpio2 15 0>;
75                         linux,code = <114>; /* KEY_VOLUMEDOWN */
76                         gpio-key,wakeup;
77                 };
78         };
79
80         leds {
81                 compatible = "gpio-leds";
82                 pinctrl-names = "default";
83                 pinctrl-0 = <&led_pin_gpio7_7>;
84
85                 user {
86                         label = "Heartbeat";
87                         gpios = <&gpio7 7 0>;
88                         linux,default-trigger = "heartbeat";
89                 };
90         };
91
92         regulators {
93                 compatible = "simple-bus";
94
95                 reg_3p2v: 3p2v {
96                         compatible = "regulator-fixed";
97                         regulator-name = "3P2V";
98                         regulator-min-microvolt = <3200000>;
99                         regulator-max-microvolt = <3200000>;
100                         regulator-always-on;
101                 };
102
103                 reg_usb_vbus: usb_vbus {
104                         compatible = "regulator-fixed";
105                         regulator-name = "usb_vbus";
106                         regulator-min-microvolt = <5000000>;
107                         regulator-max-microvolt = <5000000>;
108                         gpio = <&gpio7 8 0>;
109                         enable-active-high;
110                 };
111         };
112
113         sound {
114                 compatible = "fsl,imx53-qsb-sgtl5000",
115                              "fsl,imx-audio-sgtl5000";
116                 model = "imx53-qsb-sgtl5000";
117                 ssi-controller = <&ssi2>;
118                 audio-codec = <&sgtl5000>;
119                 audio-routing =
120                         "MIC_IN", "Mic Jack",
121                         "Mic Jack", "Mic Bias",
122                         "Headphone Jack", "HP_OUT";
123                 mux-int-port = <2>;
124                 mux-ext-port = <5>;
125         };
126 };
127
128 &esdhc1 {
129         pinctrl-names = "default";
130         pinctrl-0 = <&pinctrl_esdhc1_1>;
131         status = "okay";
132 };
133
134 &ipu_di0_disp0 {
135         remote-endpoint = <&display0_in>;
136 };
137
138 &ssi2 {
139         fsl,mode = "i2s-slave";
140         status = "okay";
141 };
142
143 &esdhc3 {
144         pinctrl-names = "default";
145         pinctrl-0 = <&pinctrl_esdhc3_1>;
146         cd-gpios = <&gpio3 11 0>;
147         wp-gpios = <&gpio3 12 0>;
148         bus-width = <8>;
149         status = "okay";
150 };
151
152 &iomuxc {
153         pinctrl-names = "default";
154         pinctrl-0 = <&pinctrl_hog>;
155
156         hog {
157                 pinctrl_hog: hoggrp {
158                         fsl,pins = <
159                                 MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000
160                                 MX53_PAD_GPIO_8__GPIO1_8          0x80000000
161                                 MX53_PAD_PATA_DATA14__GPIO2_14    0x80000000
162                                 MX53_PAD_PATA_DATA15__GPIO2_15    0x80000000
163                                 MX53_PAD_EIM_DA11__GPIO3_11       0x80000000
164                                 MX53_PAD_EIM_DA12__GPIO3_12       0x80000000
165                                 MX53_PAD_PATA_DA_0__GPIO7_6       0x80000000
166                                 MX53_PAD_PATA_DA_2__GPIO7_8       0x80000000
167                                 MX53_PAD_GPIO_16__GPIO7_11        0x80000000
168                         >;
169                 };
170
171                 led_pin_gpio7_7: led_gpio7_7@0 {
172                         fsl,pins = <
173                                 MX53_PAD_PATA_DA_1__GPIO7_7 0x80000000
174                         >;
175                 };
176         };
177
178 };
179
180 &uart1 {
181         pinctrl-names = "default";
182         pinctrl-0 = <&pinctrl_uart1_1>;
183         status = "okay";
184 };
185
186 &i2c2 {
187         pinctrl-names = "default";
188         pinctrl-0 = <&pinctrl_i2c2_1>;
189         status = "okay";
190
191         sgtl5000: codec@0a {
192                 compatible = "fsl,sgtl5000";
193                 reg = <0x0a>;
194                 VDDA-supply = <&reg_3p2v>;
195                 VDDIO-supply = <&reg_3p2v>;
196                 clocks = <&clks 150>;
197         };
198 };
199
200 &i2c1 {
201         pinctrl-names = "default";
202         pinctrl-0 = <&pinctrl_i2c1_1>;
203         status = "okay";
204
205         accelerometer: mma8450@1c {
206                 compatible = "fsl,mma8450";
207                 reg = <0x1c>;
208         };
209
210         pmic: dialog@48 {
211                 compatible = "dlg,da9053-aa", "dlg,da9052";
212                 reg = <0x48>;
213                 interrupt-parent = <&gpio7>;
214                 interrupts = <11 0x8>; /* low-level active IRQ at GPIO7_11 */
215
216                 regulators {
217                         buck1_reg: buck1 {
218                                 regulator-min-microvolt = <500000>;
219                                 regulator-max-microvolt = <2075000>;
220                                 regulator-always-on;
221                         };
222
223                         buck2_reg: buck2 {
224                                 regulator-min-microvolt = <500000>;
225                                 regulator-max-microvolt = <2075000>;
226                                 regulator-always-on;
227                         };
228
229                         buck3_reg: buck3 {
230                                 regulator-min-microvolt = <925000>;
231                                 regulator-max-microvolt = <2500000>;
232                                 regulator-always-on;
233                         };
234
235                         buck4_reg: buck4 {
236                                 regulator-min-microvolt = <925000>;
237                                 regulator-max-microvolt = <2500000>;
238                                 regulator-always-on;
239                         };
240
241                         ldo1_reg: ldo1 {
242                                 regulator-min-microvolt = <600000>;
243                                 regulator-max-microvolt = <1800000>;
244                                 regulator-boot-on;
245                                 regulator-always-on;
246                         };
247
248                         ldo2_reg: ldo2 {
249                                 regulator-min-microvolt = <600000>;
250                                 regulator-max-microvolt = <1800000>;
251                                 regulator-always-on;
252                         };
253
254                         ldo3_reg: ldo3 {
255                                 regulator-min-microvolt = <600000>;
256                                 regulator-max-microvolt = <1800000>;
257                                 regulator-always-on;
258                         };
259
260                         ldo4_reg: ldo4 {
261                                 regulator-min-microvolt = <1725000>;
262                                 regulator-max-microvolt = <3300000>;
263                                 regulator-always-on;
264                         };
265
266                         ldo5_reg: ldo5 {
267                                 regulator-min-microvolt = <1725000>;
268                                 regulator-max-microvolt = <3300000>;
269                                 regulator-always-on;
270                         };
271
272                         ldo6_reg: ldo6 {
273                                 regulator-min-microvolt = <1200000>;
274                                 regulator-max-microvolt = <3600000>;
275                                 regulator-always-on;
276                         };
277
278                         ldo7_reg: ldo7 {
279                                 regulator-min-microvolt = <1200000>;
280                                 regulator-max-microvolt = <3600000>;
281                                 regulator-always-on;
282                         };
283
284                         ldo8_reg: ldo8 {
285                                 regulator-min-microvolt = <1200000>;
286                                 regulator-max-microvolt = <3600000>;
287                                 regulator-always-on;
288                         };
289
290                         ldo9_reg: ldo9 {
291                                 regulator-min-microvolt = <1200000>;
292                                 regulator-max-microvolt = <3600000>;
293                                 regulator-always-on;
294                         };
295
296                         ldo10_reg: ldo10 {
297                                 regulator-min-microvolt = <1250000>;
298                                 regulator-max-microvolt = <3650000>;
299                                 regulator-always-on;
300                         };
301                 };
302         };
303 };
304
305 &audmux {
306         pinctrl-names = "default";
307         pinctrl-0 = <&pinctrl_audmux_1>;
308         status = "okay";
309 };
310
311 &fec {
312         pinctrl-names = "default";
313         pinctrl-0 = <&pinctrl_fec_1>;
314         phy-mode = "rmii";
315         phy-reset-gpios = <&gpio7 6 0>;
316         status = "okay";
317 };
318
319 &vpu {
320         status = "okay";
321 };
322
323 &usbh1 {
324         vbus-supply = <&reg_usb_vbus>;
325         phy_type = "utmi";
326         status = "okay";
327 };
328
329 &usbotg {
330         dr_mode = "peripheral";
331         status = "okay";
332 };