Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / 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
13 / {
14         compatible = "ti,da850-evm", "ti,da850";
15         model = "DA850/AM1808/OMAP-L138 EVM";
16
17         soc {
18                 pmx_core: pinmux@1c14120 {
19                         status = "okay";
20
21                         mcasp0_pins: pinmux_mcasp0_pins {
22                                 pinctrl-single,bits = <
23                                         /*
24                                          * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR,
25                                          * AFSR, AMUTE
26                                          */
27                                         0x00 0x11111111 0xffffffff
28                                         /* AXR11, AXR12 */
29                                         0x04 0x00011000 0x000ff000
30                                 >;
31                         };
32                 };
33                 serial0: serial@1c42000 {
34                         status = "okay";
35                 };
36                 serial1: serial@1d0c000 {
37                         status = "okay";
38                 };
39                 serial2: serial@1d0d000 {
40                         status = "okay";
41                 };
42                 rtc0: rtc@1c23000 {
43                         status = "okay";
44                 };
45                 i2c0: i2c@1c22000 {
46                         status = "okay";
47                         clock-frequency = <100000>;
48                         pinctrl-names = "default";
49                         pinctrl-0 = <&i2c0_pins>;
50
51                         tps: tps@48 {
52                                 reg = <0x48>;
53                         };
54                         tlv320aic3106: tlv320aic3106@18 {
55                                 #sound-dai-cells = <0>;
56                                 compatible = "ti,tlv320aic3106";
57                                 reg = <0x18>;
58                                 status = "okay";
59
60                                 /* Regulators */
61                                 IOVDD-supply = <&vdcdc2_reg>;
62                                 /* Derived from VBAT: Baseboard 3.3V / 1.8V */
63                                 AVDD-supply = <&vbat>;
64                                 DRVDD-supply = <&vbat>;
65                                 DVDD-supply = <&vbat>;
66                         };
67
68                 };
69                 wdt: wdt@1c21000 {
70                         status = "okay";
71                 };
72                 mmc0: mmc@1c40000 {
73                         max-frequency = <50000000>;
74                         bus-width = <4>;
75                         status = "okay";
76                         pinctrl-names = "default";
77                         pinctrl-0 = <&mmc0_pins>;
78                 };
79                 spi1: spi@1f0e000 {
80                         status = "okay";
81                         pinctrl-names = "default";
82                         pinctrl-0 = <&spi1_pins &spi1_cs0_pin>;
83                         flash: m25p80@0 {
84                                 #address-cells = <1>;
85                                 #size-cells = <1>;
86                                 compatible = "m25p64";
87                                 spi-max-frequency = <30000000>;
88                                 m25p,fast-read;
89                                 reg = <0>;
90                                 partition@0 {
91                                         label = "U-Boot-SPL";
92                                         reg = <0x00000000 0x00010000>;
93                                         read-only;
94                                 };
95                                 partition@1 {
96                                         label = "U-Boot";
97                                         reg = <0x00010000 0x00080000>;
98                                         read-only;
99                                 };
100                                 partition@2 {
101                                         label = "U-Boot-Env";
102                                         reg = <0x00090000 0x00010000>;
103                                         read-only;
104                                 };
105                                 partition@3 {
106                                         label = "Kernel";
107                                         reg = <0x000a0000 0x00280000>;
108                                 };
109                                 partition@4 {
110                                         label = "Filesystem";
111                                         reg = <0x00320000 0x00400000>;
112                                 };
113                                 partition@5 {
114                                         label = "MAC-Address";
115                                         reg = <0x007f0000 0x00010000>;
116                                         read-only;
117                                 };
118                         };
119                 };
120                 mdio: mdio@1e24000 {
121                         status = "okay";
122                         pinctrl-names = "default";
123                         pinctrl-0 = <&mdio_pins>;
124                         bus_freq = <2200000>;
125                 };
126                 eth0: ethernet@1e20000 {
127                         status = "okay";
128                         pinctrl-names = "default";
129                         pinctrl-0 = <&mii_pins>;
130                 };
131                 gpio: gpio@1e26000 {
132                         status = "okay";
133                 };
134         };
135         nand_cs3@62000000 {
136                 status = "okay";
137                 pinctrl-names = "default";
138                 pinctrl-0 = <&nand_cs3_pins>;
139         };
140         vbat: fixedregulator@0 {
141                 compatible = "regulator-fixed";
142                 regulator-name = "vbat";
143                 regulator-min-microvolt = <5000000>;
144                 regulator-max-microvolt = <5000000>;
145                 regulator-boot-on;
146         };
147
148         sound {
149                 compatible = "simple-audio-card";
150                 simple-audio-card,name = "DA850/OMAP-L138 EVM";
151                 simple-audio-card,widgets =
152                         "Line", "Line In",
153                         "Line", "Line Out";
154                 simple-audio-card,routing =
155                         "LINE1L", "Line In",
156                         "LINE1R", "Line In",
157                         "Line Out", "LLOUT",
158                         "Line Out", "RLOUT";
159                 simple-audio-card,format = "dsp_b";
160                 simple-audio-card,bitclock-master = <&link0_codec>;
161                 simple-audio-card,frame-master = <&link0_codec>;
162                 simple-audio-card,bitclock-inversion;
163
164                 simple-audio-card,cpu {
165                         sound-dai = <&mcasp0>;
166                         system-clock-frequency = <24576000>;
167                 };
168
169                 link0_codec: simple-audio-card,codec {
170                         sound-dai = <&tlv320aic3106>;
171                         system-clock-frequency = <24576000>;
172                 };
173         };
174 };
175
176 /include/ "tps6507x.dtsi"
177
178 &tps {
179         vdcdc1_2-supply = <&vbat>;
180         vdcdc3-supply = <&vbat>;
181         vldo1_2-supply = <&vbat>;
182
183         regulators {
184                 vdcdc1_reg: regulator@0 {
185                         regulator-name = "VDCDC1_3.3V";
186                         regulator-min-microvolt = <3150000>;
187                         regulator-max-microvolt = <3450000>;
188                         regulator-always-on;
189                         regulator-boot-on;
190                 };
191
192                 vdcdc2_reg: regulator@1 {
193                         regulator-name = "VDCDC2_3.3V";
194                         regulator-min-microvolt = <1710000>;
195                         regulator-max-microvolt = <3450000>;
196                         regulator-always-on;
197                         regulator-boot-on;
198                         ti,defdcdc_default = <1>;
199                 };
200
201                 vdcdc3_reg: regulator@2 {
202                         regulator-name = "VDCDC3_1.2V";
203                         regulator-min-microvolt = <950000>;
204                         regulator-max-microvolt = <1350000>;
205                         regulator-always-on;
206                         regulator-boot-on;
207                         ti,defdcdc_default = <1>;
208                 };
209
210                 ldo1_reg: regulator@3 {
211                         regulator-name = "LDO1_1.8V";
212                         regulator-min-microvolt = <1710000>;
213                         regulator-max-microvolt = <1890000>;
214                         regulator-always-on;
215                         regulator-boot-on;
216                 };
217
218                 ldo2_reg: regulator@4 {
219                         regulator-name = "LDO2_1.2V";
220                         regulator-min-microvolt = <1140000>;
221                         regulator-max-microvolt = <1320000>;
222                         regulator-always-on;
223                         regulator-boot-on;
224                 };
225         };
226 };
227
228 &mcasp0 {
229         #sound-dai-cells = <0>;
230         status = "okay";
231         pinctrl-names = "default";
232         pinctrl-0 = <&mcasp0_pins>;
233
234         op-mode = <0>;          /* MCASP_IIS_MODE */
235         tdm-slots = <2>;
236         /* 4 serializer */
237         serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
238                 0 0 0 0
239                 0 0 0 0
240                 0 0 0 1
241                 2 0 0 0
242         >;
243         tx-num-evt = <32>;
244         rx-num-evt = <32>;
245 };