Merge remote-tracking branch 'iommu/next'
[deliverable/linux.git] / arch / arm / boot / dts / am57xx-idk-common.dtsi
1 /*
2 * Copyright (C) 2015-2016 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
9 #include "am57xx-industrial-grade.dtsi"
10
11 / {
12 aliases {
13 rtc0 = &tps659038_rtc;
14 rtc1 = &rtc;
15 };
16
17 vmain: fixedregulator-vmain {
18 compatible = "regulator-fixed";
19 regulator-name = "VMAIN";
20 regulator-min-microvolt = <5000000>;
21 regulator-max-microvolt = <5000000>;
22 regulator-always-on;
23 regulator-boot-on;
24 };
25
26 v3_3d: fixedregulator-v3_3d {
27 compatible = "regulator-fixed";
28 regulator-name = "V3_3D";
29 vin-supply = <&smps9_reg>;
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
32 regulator-always-on;
33 regulator-boot-on;
34 };
35
36 vtt_fixed: fixedregulator-vtt {
37 /* TPS51200 */
38 compatible = "regulator-fixed";
39 regulator-name = "vtt_fixed";
40 vin-supply = <&v3_3d>;
41 regulator-min-microvolt = <3300000>;
42 regulator-max-microvolt = <3300000>;
43 regulator-always-on;
44 regulator-boot-on;
45 };
46 };
47
48 &i2c1 {
49 status = "okay";
50 clock-frequency = <400000>;
51
52 tps659038: tps659038@58 {
53 compatible = "ti,tps659038";
54 reg = <0x58>;
55 interrupts-extended = <&gpio6 16 IRQ_TYPE_LEVEL_HIGH
56 &dra7_pmx_core 0x418>;
57 #interrupt-cells = <2>;
58 interrupt-controller;
59 ti,system-power-controller;
60
61 tps659038_pmic {
62 compatible = "ti,tps659038-pmic";
63
64 smps12-in-supply = <&vmain>;
65 smps3-in-supply = <&vmain>;
66 smps45-in-supply = <&vmain>;
67 smps6-in-supply = <&vmain>;
68 smps7-in-supply = <&vmain>;
69 smps8-in-supply = <&vmain>;
70 smps9-in-supply = <&vmain>;
71 ldo1-in-supply = <&vmain>;
72 ldo2-in-supply = <&vmain>;
73 ldo3-in-supply = <&vmain>;
74 ldo4-in-supply = <&vmain>;
75 ldo9-in-supply = <&vmain>;
76 ldoln-in-supply = <&vmain>;
77 ldousb-in-supply = <&vmain>;
78 ldortc-in-supply = <&vmain>;
79
80 regulators {
81 smps12_reg: smps12 {
82 /* VDD_MPU */
83 regulator-name = "smps12";
84 regulator-min-microvolt = <850000>;
85 regulator-max-microvolt = <1250000>;
86 regulator-always-on;
87 regulator-boot-on;
88 };
89
90 smps3_reg: smps3 {
91 /* VDD_DDR EMIF1 EMIF2 */
92 regulator-name = "smps3";
93 regulator-min-microvolt = <1350000>;
94 regulator-max-microvolt = <1350000>;
95 regulator-always-on;
96 regulator-boot-on;
97 };
98
99 smps45_reg: smps45 {
100 /* VDD_DSPEVE on AM572 */
101 /* VDD_IVA + VDD_DSP on AM571 */
102 regulator-name = "smps45";
103 regulator-min-microvolt = <850000>;
104 regulator-max-microvolt = <1250000>;
105 regulator-always-on;
106 regulator-boot-on;
107 };
108
109 smps6_reg: smps6 {
110 /* VDD_GPU */
111 regulator-name = "smps6";
112 regulator-min-microvolt = <850000>;
113 regulator-max-microvolt = <1250000>;
114 regulator-always-on;
115 regulator-boot-on;
116 };
117
118 smps7_reg: smps7 {
119 /* VDD_CORE */
120 regulator-name = "smps7";
121 regulator-min-microvolt = <850000>;
122 regulator-max-microvolt = <1150000>;
123 regulator-always-on;
124 regulator-boot-on;
125 };
126
127 smps8_reg: smps8 {
128 /* 5728 - VDD_IVAHD */
129 /* 5718 - N.C. test point */
130 regulator-name = "smps8";
131 };
132
133 smps9_reg: smps9 {
134 /* VDD_3_3D */
135 regulator-name = "smps9";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 regulator-always-on;
139 regulator-boot-on;
140 };
141
142 ldo1_reg: ldo1 {
143 /* VDDSHV8 - VSDMMC */
144 /* NOTE: on rev 1.3a, data supply */
145 regulator-name = "ldo1";
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <3300000>;
148 regulator-boot-on;
149 regulator-always-on;
150 };
151
152 ldo2_reg: ldo2 {
153 /* VDDSH18V */
154 regulator-name = "ldo2";
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
157 regulator-always-on;
158 regulator-boot-on;
159 };
160
161 ldo3_reg: ldo3 {
162 /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */
163 regulator-name = "ldo3";
164 regulator-min-microvolt = <1800000>;
165 regulator-max-microvolt = <1800000>;
166 regulator-always-on;
167 regulator-boot-on;
168 };
169
170 ldo4_reg: ldo4 {
171 /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/
172 regulator-name = "ldo4";
173 regulator-min-microvolt = <1800000>;
174 regulator-max-microvolt = <1800000>;
175 regulator-always-on;
176 regulator-boot-on;
177 };
178
179 /* LDO5-8 unused */
180
181 ldo9_reg: ldo9 {
182 /* VDD_RTC */
183 regulator-name = "ldo9";
184 regulator-min-microvolt = <840000>;
185 regulator-max-microvolt = <1160000>;
186 regulator-always-on;
187 regulator-boot-on;
188 };
189
190 ldoln_reg: ldoln {
191 /* VDDA_1V8_PLL */
192 regulator-name = "ldoln";
193 regulator-min-microvolt = <1800000>;
194 regulator-max-microvolt = <1800000>;
195 regulator-always-on;
196 regulator-boot-on;
197 };
198
199 ldousb_reg: ldousb {
200 /* VDDA_3V_USB: VDDA_USBHS33 */
201 regulator-name = "ldousb";
202 regulator-min-microvolt = <3300000>;
203 regulator-max-microvolt = <3300000>;
204 regulator-always-on;
205 regulator-boot-on;
206 };
207
208 ldortc_reg: ldortc {
209 /* VDDA_RTC */
210 regulator-name = "ldortc";
211 regulator-min-microvolt = <1800000>;
212 regulator-max-microvolt = <1800000>;
213 regulator-always-on;
214 regulator-boot-on;
215 };
216
217 regen1: regen1 {
218 /* VDD_3V3_ON */
219 regulator-name = "regen1";
220 regulator-boot-on;
221 regulator-always-on;
222 };
223
224 regen2: regen2 {
225 /* Needed for PMIC internal resource */
226 regulator-name = "regen2";
227 regulator-boot-on;
228 regulator-always-on;
229 };
230 };
231 };
232
233 tps659038_rtc: tps659038_rtc {
234 compatible = "ti,palmas-rtc";
235 interrupt-parent = <&tps659038>;
236 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
237 wakeup-source;
238 };
239
240 tps659038_pwr_button: tps659038_pwr_button {
241 compatible = "ti,palmas-pwrbutton";
242 interrupt-parent = <&tps659038>;
243 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
244 wakeup-source;
245 ti,palmas-long-press-seconds = <12>;
246 };
247
248 tps659038_gpio: tps659038_gpio {
249 compatible = "ti,palmas-gpio";
250 gpio-controller;
251 #gpio-cells = <2>;
252 };
253 };
254 };
255
256 &uart3 {
257 status = "okay";
258 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
259 &dra7_pmx_core 0x248>;
260 };
261
262 &rtc {
263 status = "okay";
264 ext-clk-src;
265 };
266
267 &mac {
268 status = "okay";
269 dual_emac;
270 };
271
272 &cpsw_emac0 {
273 phy_id = <&davinci_mdio>, <0>;
274 phy-mode = "rgmii";
275 dual_emac_res_vlan = <1>;
276 };
277
278 &cpsw_emac1 {
279 phy_id = <&davinci_mdio>, <1>;
280 phy-mode = "rgmii";
281 dual_emac_res_vlan = <2>;
282 };
283
284 &usb2_phy1 {
285 phy-supply = <&ldousb_reg>;
286 };
287
288 &usb2_phy2 {
289 phy-supply = <&ldousb_reg>;
290 };
291
292 &usb1 {
293 dr_mode = "host";
294 };
295
296 &usb2 {
297 dr_mode = "otg";
298 };
299
300 &mmc2 {
301 status = "okay";
302 vmmc-supply = <&v3_3d>;
303 bus-width = <8>;
304 ti,non-removable;
305 max-frequency = <96000000>;
306 };
307
308 &qspi {
309 status = "okay";
310
311 spi-max-frequency = <76800000>;
312 m25p80@0 {
313 compatible = "s25fl256s1", "jedec,spi-nor";
314 spi-max-frequency = <76800000>;
315 reg = <0>;
316 spi-tx-bus-width = <1>;
317 spi-rx-bus-width = <4>;
318 #address-cells = <1>;
319 #size-cells = <1>;
320
321 /* MTD partition table.
322 * The ROM checks the first four physical blocks
323 * for a valid file to boot and the flash here is
324 * 64KiB block size.
325 */
326 partition@0 {
327 label = "QSPI.SPL";
328 reg = <0x00000000 0x000040000>;
329 };
330 partition@1 {
331 label = "QSPI.u-boot";
332 reg = <0x00040000 0x00100000>;
333 };
334 partition@2 {
335 label = "QSPI.u-boot-spl-os";
336 reg = <0x00140000 0x00080000>;
337 };
338 partition@3 {
339 label = "QSPI.u-boot-env";
340 reg = <0x001c0000 0x00010000>;
341 };
342 partition@4 {
343 label = "QSPI.u-boot-env.backup1";
344 reg = <0x001d0000 0x0010000>;
345 };
346 partition@5 {
347 label = "QSPI.kernel";
348 reg = <0x001e0000 0x0800000>;
349 };
350 partition@6 {
351 label = "QSPI.file-system";
352 reg = <0x009e0000 0x01620000>;
353 };
354 };
355 };
This page took 0.060388 seconds and 5 git commands to generate.