Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / da850-evm.dts
1 /*
2  * Device Tree for DA850 EVM board
3  *
4  * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
5  *
6  * This program is free software; you can redistribute  it and/or modify it
7  * under  the terms of  the GNU General  Public License as published by the
8  * Free Software Foundation, version 2.
9  */
10 /dts-v1/;
11 #include "da850.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13
14 / {
15         compatible = "ti,da850-evm", "ti,da850";
16         model = "DA850/AM1808/OMAP-L138 EVM";
17
18         soc@1c00000 {
19                 pmx_core: pinmux@14120 {
20                         status = "okay";
21
22                         mcasp0_pins: pinmux_mcasp0_pins {
23                                 pinctrl-single,bits = <
24                                         /*
25                                          * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR,
26                                          * AFSR, AMUTE
27                                          */
28                                         0x00 0x11111111 0xffffffff
29                                         /* AXR11, AXR12 */
30                                         0x04 0x00011000 0x000ff000
31                                 >;
32                         };
33                         nand_pins: nand_pins {
34                                 pinctrl-single,bits = <
35                                         /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
36                                         0x1c 0x10110110  0xf0ff0ff0
37                                         /*
38                                          * EMA_D[0], EMA_D[1], EMA_D[2],
39                                          * EMA_D[3], EMA_D[4], EMA_D[5],
40                                          * EMA_D[6], EMA_D[7]
41                                          */
42                                         0x24 0x11111111  0xffffffff
43                                         /* EMA_A[1], EMA_A[2] */
44                                         0x30 0x01100000  0x0ff00000
45                                 >;
46                         };
47                 };
48                 serial0: serial@42000 {
49                         status = "okay";
50                 };
51                 serial1: serial@10c000 {
52                         status = "okay";
53                 };
54                 serial2: serial@10d000 {
55                         status = "okay";
56                 };
57                 rtc0: rtc@23000 {
58                         status = "okay";
59                 };
60                 i2c0: i2c@22000 {
61                         status = "okay";
62                         clock-frequency = <100000>;
63                         pinctrl-names = "default";
64                         pinctrl-0 = <&i2c0_pins>;
65
66                         tps: tps@48 {
67                                 reg = <0x48>;
68                         };
69                         tlv320aic3106: tlv320aic3106@18 {
70                                 #sound-dai-cells = <0>;
71                                 compatible = "ti,tlv320aic3106";
72                                 reg = <0x18>;
73                                 status = "okay";
74
75                                 /* Regulators */
76                                 IOVDD-supply = <&vdcdc2_reg>;
77                                 /* Derived from VBAT: Baseboard 3.3V / 1.8V */
78                                 AVDD-supply = <&vbat>;
79                                 DRVDD-supply = <&vbat>;
80                                 DVDD-supply = <&vbat>;
81                         };
82                         tca6416: gpio@20 {
83                                 compatible = "ti,tca6416";
84                                 reg = <0x20>;
85                         };
86                 };
87                 wdt: wdt@21000 {
88                         status = "okay";
89                 };
90                 mmc0: mmc@40000 {
91                         max-frequency = <50000000>;
92                         bus-width = <4>;
93                         status = "okay";
94                         pinctrl-names = "default";
95                         pinctrl-0 = <&mmc0_pins>;
96                 };
97                 spi1: spi@30e000 {
98                         status = "okay";
99                         pinctrl-names = "default";
100                         pinctrl-0 = <&spi1_pins &spi1_cs0_pin>;
101                         flash: m25p80@0 {
102                                 #address-cells = <1>;
103                                 #size-cells = <1>;
104                                 compatible = "m25p64";
105                                 spi-max-frequency = <30000000>;
106                                 m25p,fast-read;
107                                 reg = <0>;
108                                 partition@0 {
109                                         label = "U-Boot-SPL";
110                                         reg = <0x00000000 0x00010000>;
111                                         read-only;
112                                 };
113                                 partition@1 {
114                                         label = "U-Boot";
115                                         reg = <0x00010000 0x00080000>;
116                                         read-only;
117                                 };
118                                 partition@2 {
119                                         label = "U-Boot-Env";
120                                         reg = <0x00090000 0x00010000>;
121                                         read-only;
122                                 };
123                                 partition@3 {
124                                         label = "Kernel";
125                                         reg = <0x000a0000 0x00280000>;
126                                 };
127                                 partition@4 {
128                                         label = "Filesystem";
129                                         reg = <0x00320000 0x00400000>;
130                                 };
131                                 partition@5 {
132                                         label = "MAC-Address";
133                                         reg = <0x007f0000 0x00010000>;
134                                         read-only;
135                                 };
136                         };
137                 };
138                 mdio: mdio@224000 {
139                         status = "okay";
140                         pinctrl-names = "default";
141                         pinctrl-0 = <&mdio_pins>;
142                         bus_freq = <2200000>;
143                 };
144                 eth0: ethernet@220000 {
145                         status = "okay";
146                         pinctrl-names = "default";
147                         pinctrl-0 = <&mii_pins>;
148                 };
149                 gpio: gpio@226000 {
150                         status = "okay";
151                 };
152         };
153         vbat: fixedregulator0 {
154                 compatible = "regulator-fixed";
155                 regulator-name = "vbat";
156                 regulator-min-microvolt = <5000000>;
157                 regulator-max-microvolt = <5000000>;
158                 regulator-boot-on;
159         };
160
161         sound {
162                 compatible = "simple-audio-card";
163                 simple-audio-card,name = "DA850/OMAP-L138 EVM";
164                 simple-audio-card,widgets =
165                         "Line", "Line In",
166                         "Line", "Line Out";
167                 simple-audio-card,routing =
168                         "LINE1L", "Line In",
169                         "LINE1R", "Line In",
170                         "Line Out", "LLOUT",
171                         "Line Out", "RLOUT";
172                 simple-audio-card,format = "dsp_b";
173                 simple-audio-card,bitclock-master = <&link0_codec>;
174                 simple-audio-card,frame-master = <&link0_codec>;
175                 simple-audio-card,bitclock-inversion;
176
177                 simple-audio-card,cpu {
178                         sound-dai = <&mcasp0>;
179                         system-clock-frequency = <24576000>;
180                 };
181
182                 link0_codec: simple-audio-card,codec {
183                         sound-dai = <&tlv320aic3106>;
184                         system-clock-frequency = <24576000>;
185                 };
186         };
187 };
188
189 /include/ "tps6507x.dtsi"
190
191 &tps {
192         vdcdc1_2-supply = <&vbat>;
193         vdcdc3-supply = <&vbat>;
194         vldo1_2-supply = <&vbat>;
195
196         regulators {
197                 vdcdc1_reg: regulator@0 {
198                         regulator-name = "VDCDC1_3.3V";
199                         regulator-min-microvolt = <3150000>;
200                         regulator-max-microvolt = <3450000>;
201                         regulator-always-on;
202                         regulator-boot-on;
203                 };
204
205                 vdcdc2_reg: regulator@1 {
206                         regulator-name = "VDCDC2_3.3V";
207                         regulator-min-microvolt = <1710000>;
208                         regulator-max-microvolt = <3450000>;
209                         regulator-always-on;
210                         regulator-boot-on;
211                         ti,defdcdc_default = <1>;
212                 };
213
214                 vdcdc3_reg: regulator@2 {
215                         regulator-name = "VDCDC3_1.2V";
216                         regulator-min-microvolt = <950000>;
217                         regulator-max-microvolt = <1350000>;
218                         regulator-always-on;
219                         regulator-boot-on;
220                         ti,defdcdc_default = <1>;
221                 };
222
223                 ldo1_reg: regulator@3 {
224                         regulator-name = "LDO1_1.8V";
225                         regulator-min-microvolt = <1710000>;
226                         regulator-max-microvolt = <1890000>;
227                         regulator-always-on;
228                         regulator-boot-on;
229                 };
230
231                 ldo2_reg: regulator@4 {
232                         regulator-name = "LDO2_1.2V";
233                         regulator-min-microvolt = <1140000>;
234                         regulator-max-microvolt = <1320000>;
235                         regulator-always-on;
236                         regulator-boot-on;
237                 };
238         };
239 };
240
241 &mcasp0 {
242         #sound-dai-cells = <0>;
243         status = "okay";
244         pinctrl-names = "default";
245         pinctrl-0 = <&mcasp0_pins>;
246
247         op-mode = <0>;          /* MCASP_IIS_MODE */
248         tdm-slots = <2>;
249         /* 4 serializer */
250         serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
251                 0 0 0 0
252                 0 0 0 0
253                 0 0 0 1
254                 2 0 0 0
255         >;
256         tx-num-evt = <32>;
257         rx-num-evt = <32>;
258 };
259
260 &edma0 {
261         ti,edma-reserved-slot-ranges = <32 50>;
262 };
263
264 &edma1 {
265         ti,edma-reserved-slot-ranges = <32 90>;
266 };
267
268 &aemif {
269         pinctrl-names = "default";
270         pinctrl-0 = <&nand_pins>;
271         status = "ok";
272         cs3 {
273                 #address-cells = <2>;
274                 #size-cells = <1>;
275                 clock-ranges;
276                 ranges;
277
278                 ti,cs-chipselect = <3>;
279
280                 nand@2000000,0 {
281                         compatible = "ti,davinci-nand";
282                         #address-cells = <1>;
283                         #size-cells = <1>;
284                         reg = <0 0x02000000 0x02000000
285                                1 0x00000000 0x00008000>;
286
287                         ti,davinci-chipselect = <1>;
288                         ti,davinci-mask-ale = <0>;
289                         ti,davinci-mask-cle = <0>;
290                         ti,davinci-mask-chipsel = <0>;
291                         ti,davinci-ecc-mode = "hw";
292                         ti,davinci-ecc-bits = <4>;
293                         ti,davinci-nand-use-bbt;
294                 };
295         };
296 };
297
298 &vpif {
299         pinctrl-names = "default";
300         pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>;
301         status = "okay";
302
303         /* VPIF capture port */
304         port@0 {
305                 vpif_input_ch0: endpoint@0 {
306                         reg = <0>;
307                         bus-width = <8>;
308                 };
309
310                 vpif_input_ch1: endpoint@1 {
311                         reg = <1>;
312                         bus-width = <8>;
313                         data-shift = <8>;
314                 };
315         };
316
317         /* VPIF display port */
318         port@1 {
319                 vpif_output_ch0: endpoint {
320                         bus-width = <8>;
321                 };
322         };
323 };