Merge branch 'p-ti-android-3.8.y-video'
[android-sdk/kernel-video.git] / arch / arm / boot / dts / dra7-evm.dts
1 /*
2  * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 /dts-v1/;
10 /include/ "dra7.dtsi"
12 / {
13         model = "TI DRA7";
14         compatible = "ti,dra7-evm", "ti,dra7";
16         cpus {
17                 cpu@0 {
18                         cpu0-supply = <&avs_mpu>;
19                 };
20         };
22         memory {
23                 device_type = "memory";
24                 reg = <0x80000000 0x20000000>; /* 512 MB */
25         };
27         vmmc2_fixed: fixedregulator-mmc2 {
28                 compatible = "regulator-fixed";
29                 regulator-name = "vmmc2_fixed";
30                 regulator-min-microvolt = <3000000>;
31                 regulator-max-microvolt = <3000000>;
32         };
34         ion_config {
35                 compatible = "ti,ion-omap";
36                 ti,omap_ion_heap_secure_input_base = <0xba300000>;
37                 ti,omap_ion_heap_tiler_base = <0xb4300000>;
38                 ti,omap_ion_heap_nonsecure_tiler_base = <0xf00000>;
39                 /*90 MB*/
40                 ti,omap_ion_heap_secure_input_size = <0x5A00000>;
41                 /*96 MB*/
42                 ti,omap_ion_heap_tiler_size = <0x6000000>;
43                 /*15 MB*/
44                 ti,omap_ion_heap_nonsecure_tiler_size = <0xF00000>;
45         };
47         ocp {
48                 gpu: gpu@0x56000000 {
49                 gpu-supply = <&avs_gpu>;
50                 };
51         };
53         vaudio_1v8: fixedregulator-vaudio-dig {
54                 compatible = "regulator-fixed";
55                 regulator-name = "vdac_fixed";
56                 regulator-min-microvolt = <1800000>;
57                 regulator-max-microvolt = <1800000>;
58                 regulator-boot-on;
59         };
61         vaudio_3v3: fixedregulator-vaudio-anlg {
62                 compatible = "regulator-fixed";
63                 regulator-name = "vdac_fixed";
64                 regulator-min-microvolt = <3300000>;
65                 regulator-max-microvolt = <3300000>;
66                 regulator-boot-on;
67         };
69         sound {
70                 compatible = "ti,dra7-evm-sound";
71                 ti,model = "dra7evm";
73                 /* Audio routing */
74                 ti,audio-routing =
75                         "LINE1L", "Line In",
76                         "LINE1R", "Line In",
77                         "MIC3L", "Mic Bias 2V",
78                         "MIC3R", "Mic Bias 2V",
79                         "Mic Bias 2V", "Main Mic",
80                         "Headphone", "HPLOUT",
81                         "Headphone", "HPROUT",
82                         "Line Out", "LLOUT",
83                         "Line Out", "RLOUT";
85                 /* Media DAI link */
86                 ti,media-cpu = <&mcasp3>;
87                 ti,media-codec = <&tlv320aic3106>;
88                 ti,media-mclk-freq = <5644800>;
89                 ti,media-slots = <2>;
90         };
92         sound_hdmi {
93                 compatible = "ti,omap-hdmi-tpd12s015-audio";
94                 ti,model = "OMAP5HDMI";
95                 ti,hdmi_audio = <&hdmi>;
96                 ti,level_shifter = <&tpd12s015>;
97         };
98 };
100 &dra7_pmx_core {
101         pinctrl-names = "default";
102         pinctrl-0 = <
103                 &atl_pins
104                 &mcasp3_pins
105                 &mcasp6_pins
106                 &vout1_pins
107                 &usb_pins
108         >;
110         atl_pins: pinmux_atl_pins {
111                 pinctrl-single,pins = <
112                         0x298 0x00000005        /* xref_clk1.atl_clk1 OUTPUT | MODE5 */
113                         0x29c 0x00000005        /* xref_clk2.atl_clk2 OUTPUT | MODE5 */
114                 >;
115         };
117         mcasp3_pins: pinmux_mcasp3_pins {
118                 pinctrl-single,pins = <
119                         0x324 0x00000000        /* mcasp3_aclkx.mcasp3_aclkx OUTPUT | MODE0 */
120                         0x328 0x00000000        /* mcasp3_fsx.mcasp3_fsx OUTPUT | MODE0 */
121                         0x32c 0x00000000        /* mcasp3_axr0.mcasp3_axr0 OUTPUT | MODE0 */
122                         0x330 0x00040000        /* mcasp3_axr1.mcasp3_axr1 INPUT | MODE0 */
123                 >;
124         };
126         mcasp6_pins: pinmux_mcasp6_pins {
127                 pinctrl-single,pins = <
128                         0x2d4 0x00000001        /* mcasp1_axr8.mcasp6_axr0 OUTPUT | MODE1 */
129                         0x2d8 0x00040001        /* mcasp1_axr9.mcasp6_axr1 INPUT | MODE 1 */
130                         0x2dc 0x00000001        /* mcasp1_axr10.mcasp6_clkx OUTPUT | MODE1 */
131                         0x2e0 0x00000001        /* mcasp1_axr11.mcasp6_fsx OUTPUT | MODE1 */
132                 >;
133         };
135         usb_pins: pinmux_usb_pins {
136                 pinctrl-single,pins = <
137                         0x280   0xc0000 /* DRV1_VBUS SLEW | PULLDEN | MODE0 */
138                         0x284   0xc0000 /* DRV2_VBUS SLEW | PULLDEN | MODE0 */
139                 >;
140         };
142         i2c2_pins: pinmux_i2c2_pins {
143                 pinctrl-single,pins = <
144                         0x408   0x60000 /* i2c2_sda INPUT | MODE0 */
145                         0x40C   0x60000 /* i2c2_scl INPUT | MODE0 */
146                 >;
147         };
149         vout1_pins: pinmux_vout1_pins {
150                 pinctrl-single,pins = <
151                         0x1C8   0x0     /* vout1_clk OUTPUT | MODE0 */
152                         0x1CC   0x0     /* vout1_de OUTPUT | MODE0 */
153                         0x1D0   0x0     /* vout1_fld OUTPUT | MODE0 */
154                         0x1D4   0x0     /* vout1_hsync OUTPUT | MODE0 */
155                         0x1D8   0x0     /* vout1_vsync OUTPUT | MODE0 */
156                         0x1DC   0x0     /* vout1_d0 OUTPUT | MODE0 */
157                         0x1E0   0x0     /* vout1_d1 OUTPUT | MODE0 */
158                         0x1E4   0x0     /* vout1_d2 OUTPUT | MODE0 */
159                         0x1E8   0x0     /* vout1_d3 OUTPUT | MODE0 */
160                         0x1EC   0x0     /* vout1_d4 OUTPUT | MODE0 */
161                         0x1F0   0x0     /* vout1_d5 OUTPUT | MODE0 */
162                         0x1F4   0x0     /* vout1_d6 OUTPUT | MODE0 */
163                         0x1F8   0x0     /* vout1_d7 OUTPUT | MODE0 */
164                         0x1FC   0x0     /* vout1_d8 OUTPUT | MODE0 */
165                         0x200   0x0     /* vout1_d9 OUTPUT | MODE0 */
166                         0x204   0x0     /* vout1_d10 OUTPUT | MODE0 */
167                         0x208   0x0     /* vout1_d11 OUTPUT | MODE0 */
168                         0x20C   0x0     /* vout1_d12 OUTPUT | MODE0 */
169                         0x210   0x0     /* vout1_d13 OUTPUT | MODE0 */
170                         0x214   0x0     /* vout1_d14 OUTPUT | MODE0 */
171                         0x218   0x0     /* vout1_d15 OUTPUT | MODE0 */
172                         0x21C   0x0     /* vout1_d16 OUTPUT | MODE0 */
173                         0x220   0x0     /* vout1_d17 OUTPUT | MODE0 */
174                         0x224   0x0     /* vout1_d18 OUTPUT | MODE0 */
175                         0x228   0x0     /* vout1_d19 OUTPUT | MODE0 */
176                         0x22C   0x0     /* vout1_d20 OUTPUT | MODE0 */
177                         0x230   0x0     /* vout1_d21 OUTPUT | MODE0 */
178                         0x234   0x0     /* vout1_d22 OUTPUT | MODE0 */
179                         0x238   0x0     /* vout1_d23 OUTPUT | MODE0 */
180                 >;
181         };
182         display_layout {
183                 compatible = "ti, omap4-dsscomp";
184                 ti,num_displays = <2>;
185                 ti,default_display = "lcd";
186         };
187 };
189 &i2c1 {
190         clock-frequency = <400000>;
192         tps659038: tps659038@58 {
193                 reg = <0x58>;
194         };
196         pcf_lcd: pcf8575@20 {
197                 compatible = "ti,pcf8575";
198                 reg = <0x20>;
199                 gpio-controller;
200                 #gpio-cells = <2>;
201         };
203         /* TLC chip for LCD panel power and backlight */
204         tlc59108: tlc59108@40 {
205                 compatible = "ti,tlc59108";
206                 reg = <0x40>;
207                 gpios = <&pcf_lcd 15 0>; /* P15, CON_LCD_PWR_DN */
208         };
210         tlv320aic3106: tlv320aic3106@18 {
211                 compatible = "ti,tlv320aic3x";
212                 reg = <0x18>;
213                 IOVDD-supply = <&vaudio_3v3>;
214                 DVDD-supply = <&vaudio_1v8>;
215                 AVDD-supply = <&vaudio_3v3>;
216                 DRVDD-supply = <&vaudio_3v3>;
217         };
218 };
220 /include/ "tps659038.dtsi"
222 &i2c2 {
223         pinctrl-names = "default";
224         pinctrl-0 = <&i2c2_pins>;
226         clock-frequency = <400000>;
228         pcf_hdmi: pcf8575@26 {
229                 compatible = "ti,pcf8575";
230                 reg = <0x26>;
231                 gpio-controller;
232                 #gpio-cells = <2>;
233         };
234 };
236 &i2c3 {
237         clock-frequency = <400000>;
238 };
240 &i2c4 {
241         clock-frequency = <400000>;
242 };
244 &i2c5 {
245         clock-frequency = <400000>;
246 };
248 &mmc1 {
249         vmmc-supply = <&ldo1_reg>;
250         bus-width = <4>;
251 };
253 &mmc2 {
254         vmmc-supply = <&vmmc2_fixed>;
255         bus-width = <8>;
256         ti,non-removable;
257 };
259 &mmc3 {
260         bus-width = <8>;
261         ti,non-removable;
262         status = "disabled";
263 };
265 &mmc4 {
266         bus-width = <4>;
267         status = "disabled";
268 };
270 &avs_mpu {
271         avs-supply = <&smps123_reg>;
272 };
274 &avs_core {
275         avs-supply = <&smps7_reg>;
276 };
278 &avs_gpu {
279         avs-supply = <&smps6_reg>;
280 };
282 &avs_dspeve {
283         avs-supply = <&smps45_reg>;
284 };
286 &avs_iva {
287         avs-supply = <&smps8_reg>;
288 };
290 &dpi1 {
291         lcd {
292                 compatible = "ti,tfc_s9700";
293                 tlc = <&tlc59108>;
294                 data-lines = <24>;
295         };
296 };
298 &hdmi {
299         tpd12s015: tpd12s015 {
300                 compatible = "ti,tpd12s015";
302                 gpios = <&pcf_hdmi 4 0>,        /* pcf8575@22 P4, CT_CP_HDP */
303                         <&pcf_hdmi 5 0>,        /* pcf8575@22 P5, LS_OE */
304                         <&gpio7 12 0>;          /* gpio7_12/sp1_cs2, HPD */
306                 hdmi_ddc = <&i2c2>;
308                 hdmi-monitor {
309                         compatible = "ti,hdmi_panel";
310                 };
311         };
312 };