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