blob: 555ae21f2b9adcf2ad811b5541a3f865997bb098 [file] [log] [blame]
Schuyler Pattona7cac712016-03-28 11:35:09 -05001/*
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
Keerthy5b604222016-04-28 15:35:49 +05309#include "am57xx-industrial-grade.dtsi"
10
Schuyler Pattona7cac712016-03-28 11:35:09 -050011/ {
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 };
Andrew F. Davis50e95b62016-10-07 09:44:28 -050046
47 leds-iio {
48 status = "disabled";
49 compatible = "gpio-leds";
50 led-out0 {
51 label = "out0";
52 gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
53 default-state = "off";
54 };
55
56 led-out1 {
57 label = "out1";
58 gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
59 default-state = "off";
60 };
61
62 led-out2 {
63 label = "out2";
64 gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
66 };
67
68 led-out3 {
69 label = "out3";
70 gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
71 default-state = "off";
72 };
73
74 led-out4 {
75 label = "out4";
76 gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
77 default-state = "off";
78 };
79
80 led-out5 {
81 label = "out5";
82 gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
83 default-state = "off";
84 };
85
86 led-out6 {
87 label = "out6";
88 gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
90 };
91
92 led-out7 {
93 label = "out7";
94 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
96 };
97 };
Schuyler Pattona7cac712016-03-28 11:35:09 -050098};
99
100&i2c1 {
101 status = "okay";
102 clock-frequency = <400000>;
103
104 tps659038: tps659038@58 {
105 compatible = "ti,tps659038";
106 reg = <0x58>;
107 interrupts-extended = <&gpio6 16 IRQ_TYPE_LEVEL_HIGH
108 &dra7_pmx_core 0x418>;
109 #interrupt-cells = <2>;
110 interrupt-controller;
111 ti,system-power-controller;
Keerthy88047552016-11-10 10:39:20 +0530112 ti,palmas-override-powerhold;
Schuyler Pattona7cac712016-03-28 11:35:09 -0500113
114 tps659038_pmic {
115 compatible = "ti,tps659038-pmic";
Nishanth Menon3d9f77b2016-05-06 08:37:57 -0500116
117 smps12-in-supply = <&vmain>;
118 smps3-in-supply = <&vmain>;
119 smps45-in-supply = <&vmain>;
120 smps6-in-supply = <&vmain>;
121 smps7-in-supply = <&vmain>;
122 smps8-in-supply = <&vmain>;
123 smps9-in-supply = <&vmain>;
124 ldo1-in-supply = <&vmain>;
125 ldo2-in-supply = <&vmain>;
126 ldo3-in-supply = <&vmain>;
127 ldo4-in-supply = <&vmain>;
128 ldo9-in-supply = <&vmain>;
129 ldoln-in-supply = <&vmain>;
130 ldousb-in-supply = <&vmain>;
131 ldortc-in-supply = <&vmain>;
132
Schuyler Pattona7cac712016-03-28 11:35:09 -0500133 regulators {
134 smps12_reg: smps12 {
135 /* VDD_MPU */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500136 regulator-name = "smps12";
137 regulator-min-microvolt = <850000>;
138 regulator-max-microvolt = <1250000>;
139 regulator-always-on;
140 regulator-boot-on;
141 };
142
143 smps3_reg: smps3 {
144 /* VDD_DDR EMIF1 EMIF2 */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500145 regulator-name = "smps3";
146 regulator-min-microvolt = <1350000>;
147 regulator-max-microvolt = <1350000>;
148 regulator-always-on;
149 regulator-boot-on;
150 };
151
152 smps45_reg: smps45 {
153 /* VDD_DSPEVE on AM572 */
154 /* VDD_IVA + VDD_DSP on AM571 */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500155 regulator-name = "smps45";
156 regulator-min-microvolt = <850000>;
157 regulator-max-microvolt = <1250000>;
158 regulator-always-on;
159 regulator-boot-on;
160 };
161
162 smps6_reg: smps6 {
163 /* VDD_GPU */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500164 regulator-name = "smps6";
165 regulator-min-microvolt = <850000>;
166 regulator-max-microvolt = <1250000>;
167 regulator-always-on;
168 regulator-boot-on;
169 };
170
171 smps7_reg: smps7 {
172 /* VDD_CORE */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500173 regulator-name = "smps7";
174 regulator-min-microvolt = <850000>;
175 regulator-max-microvolt = <1150000>;
176 regulator-always-on;
177 regulator-boot-on;
178 };
179
180 smps8_reg: smps8 {
181 /* 5728 - VDD_IVAHD */
182 /* 5718 - N.C. test point */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500183 regulator-name = "smps8";
184 };
185
186 smps9_reg: smps9 {
187 /* VDD_3_3D */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500188 regulator-name = "smps9";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
191 regulator-always-on;
192 regulator-boot-on;
193 };
194
195 ldo1_reg: ldo1 {
196 /* VDDSHV8 - VSDMMC */
197 /* NOTE: on rev 1.3a, data supply */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500198 regulator-name = "ldo1";
199 regulator-min-microvolt = <1800000>;
200 regulator-max-microvolt = <3300000>;
201 regulator-boot-on;
202 regulator-always-on;
203 };
204
205 ldo2_reg: ldo2 {
206 /* VDDSH18V */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500207 regulator-name = "ldo2";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
210 regulator-always-on;
211 regulator-boot-on;
212 };
213
214 ldo3_reg: ldo3 {
215 /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500216 regulator-name = "ldo3";
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <1800000>;
219 regulator-always-on;
220 regulator-boot-on;
221 };
222
223 ldo4_reg: ldo4 {
224 /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/
Schuyler Pattona7cac712016-03-28 11:35:09 -0500225 regulator-name = "ldo4";
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <1800000>;
228 regulator-always-on;
229 regulator-boot-on;
230 };
231
232 /* LDO5-8 unused */
233
234 ldo9_reg: ldo9 {
235 /* VDD_RTC */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500236 regulator-name = "ldo9";
237 regulator-min-microvolt = <840000>;
238 regulator-max-microvolt = <1160000>;
239 regulator-always-on;
240 regulator-boot-on;
241 };
242
243 ldoln_reg: ldoln {
244 /* VDDA_1V8_PLL */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500245 regulator-name = "ldoln";
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <1800000>;
248 regulator-always-on;
249 regulator-boot-on;
250 };
251
252 ldousb_reg: ldousb {
253 /* VDDA_3V_USB: VDDA_USBHS33 */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500254 regulator-name = "ldousb";
255 regulator-min-microvolt = <3300000>;
256 regulator-max-microvolt = <3300000>;
257 regulator-always-on;
258 regulator-boot-on;
259 };
260
261 ldortc_reg: ldortc {
262 /* VDDA_RTC */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500263 regulator-name = "ldortc";
264 regulator-min-microvolt = <1800000>;
265 regulator-max-microvolt = <1800000>;
266 regulator-always-on;
267 regulator-boot-on;
268 };
269
270 regen1: regen1 {
271 /* VDD_3V3_ON */
272 regulator-name = "regen1";
273 regulator-boot-on;
274 regulator-always-on;
275 };
276
277 regen2: regen2 {
278 /* Needed for PMIC internal resource */
279 regulator-name = "regen2";
280 regulator-boot-on;
281 regulator-always-on;
282 };
283 };
284 };
285
286 tps659038_rtc: tps659038_rtc {
287 compatible = "ti,palmas-rtc";
288 interrupt-parent = <&tps659038>;
289 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
290 wakeup-source;
291 };
292
293 tps659038_pwr_button: tps659038_pwr_button {
294 compatible = "ti,palmas-pwrbutton";
295 interrupt-parent = <&tps659038>;
296 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
297 wakeup-source;
298 ti,palmas-long-press-seconds = <12>;
299 };
300
301 tps659038_gpio: tps659038_gpio {
302 compatible = "ti,palmas-gpio";
303 gpio-controller;
304 #gpio-cells = <2>;
305 };
306 };
307};
308
Andrew F. Davis8b437642016-10-07 09:44:27 -0500309&mcspi3 {
310 status = "okay";
311 ti,pindir-d0-out-d1-in;
312
313 sn65hvs882: sn65hvs882@0 {
314 compatible = "pisosr-gpio";
315 gpio-controller;
316 #gpio-cells = <2>;
317
318 reg = <0>;
319 spi-max-frequency = <1000000>;
320 spi-cpol;
321 };
Andrew F. Davis50e95b62016-10-07 09:44:28 -0500322
323 tpic2810: tpic2810@60 {
324 compatible = "ti,tpic2810";
325 reg = <0x60>;
326 gpio-controller;
327 #gpio-cells = <2>;
328 };
Andrew F. Davis8b437642016-10-07 09:44:27 -0500329};
330
Schuyler Pattona7cac712016-03-28 11:35:09 -0500331&uart3 {
332 status = "okay";
333 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
334 &dra7_pmx_core 0x248>;
335};
336
337&rtc {
338 status = "okay";
339 ext-clk-src;
340};
341
342&mac {
343 status = "okay";
344 dual_emac;
345};
346
347&cpsw_emac0 {
348 phy_id = <&davinci_mdio>, <0>;
349 phy-mode = "rgmii";
350 dual_emac_res_vlan = <1>;
351};
352
353&cpsw_emac1 {
354 phy_id = <&davinci_mdio>, <1>;
355 phy-mode = "rgmii";
356 dual_emac_res_vlan = <2>;
357};
358
359&usb2_phy1 {
360 phy-supply = <&ldousb_reg>;
361};
362
363&usb2_phy2 {
364 phy-supply = <&ldousb_reg>;
365};
366
367&usb1 {
368 dr_mode = "host";
369};
370
371&usb2 {
372 dr_mode = "otg";
373};
374
375&mmc2 {
376 status = "okay";
377 vmmc-supply = <&v3_3d>;
378 bus-width = <8>;
379 ti,non-removable;
380 max-frequency = <96000000>;
381};
Vignesh R504482e2016-08-02 10:51:47 +0530382
383&qspi {
384 status = "okay";
385
386 spi-max-frequency = <76800000>;
387 m25p80@0 {
388 compatible = "s25fl256s1", "jedec,spi-nor";
389 spi-max-frequency = <76800000>;
390 reg = <0>;
391 spi-tx-bus-width = <1>;
392 spi-rx-bus-width = <4>;
393 #address-cells = <1>;
394 #size-cells = <1>;
395
396 /* MTD partition table.
397 * The ROM checks the first four physical blocks
398 * for a valid file to boot and the flash here is
399 * 64KiB block size.
400 */
401 partition@0 {
402 label = "QSPI.SPL";
403 reg = <0x00000000 0x000040000>;
404 };
405 partition@1 {
406 label = "QSPI.u-boot";
407 reg = <0x00040000 0x00100000>;
408 };
409 partition@2 {
410 label = "QSPI.u-boot-spl-os";
411 reg = <0x00140000 0x00080000>;
412 };
413 partition@3 {
414 label = "QSPI.u-boot-env";
415 reg = <0x001c0000 0x00010000>;
416 };
417 partition@4 {
418 label = "QSPI.u-boot-env.backup1";
419 reg = <0x001d0000 0x0010000>;
420 };
421 partition@5 {
422 label = "QSPI.kernel";
423 reg = <0x001e0000 0x0800000>;
424 };
425 partition@6 {
426 label = "QSPI.file-system";
427 reg = <0x009e0000 0x01620000>;
428 };
429 };
430};