blob: 35e210ce68a1f5a5950e7914cc210b374ca53539 [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;
112
113 tps659038_pmic {
114 compatible = "ti,tps659038-pmic";
Nishanth Menon3d9f77b2016-05-06 08:37:57 -0500115
116 smps12-in-supply = <&vmain>;
117 smps3-in-supply = <&vmain>;
118 smps45-in-supply = <&vmain>;
119 smps6-in-supply = <&vmain>;
120 smps7-in-supply = <&vmain>;
121 smps8-in-supply = <&vmain>;
122 smps9-in-supply = <&vmain>;
123 ldo1-in-supply = <&vmain>;
124 ldo2-in-supply = <&vmain>;
125 ldo3-in-supply = <&vmain>;
126 ldo4-in-supply = <&vmain>;
127 ldo9-in-supply = <&vmain>;
128 ldoln-in-supply = <&vmain>;
129 ldousb-in-supply = <&vmain>;
130 ldortc-in-supply = <&vmain>;
131
Schuyler Pattona7cac712016-03-28 11:35:09 -0500132 regulators {
133 smps12_reg: smps12 {
134 /* VDD_MPU */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500135 regulator-name = "smps12";
136 regulator-min-microvolt = <850000>;
137 regulator-max-microvolt = <1250000>;
138 regulator-always-on;
139 regulator-boot-on;
140 };
141
142 smps3_reg: smps3 {
143 /* VDD_DDR EMIF1 EMIF2 */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500144 regulator-name = "smps3";
145 regulator-min-microvolt = <1350000>;
146 regulator-max-microvolt = <1350000>;
147 regulator-always-on;
148 regulator-boot-on;
149 };
150
151 smps45_reg: smps45 {
152 /* VDD_DSPEVE on AM572 */
153 /* VDD_IVA + VDD_DSP on AM571 */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500154 regulator-name = "smps45";
155 regulator-min-microvolt = <850000>;
156 regulator-max-microvolt = <1250000>;
157 regulator-always-on;
158 regulator-boot-on;
159 };
160
161 smps6_reg: smps6 {
162 /* VDD_GPU */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500163 regulator-name = "smps6";
164 regulator-min-microvolt = <850000>;
165 regulator-max-microvolt = <1250000>;
166 regulator-always-on;
167 regulator-boot-on;
168 };
169
170 smps7_reg: smps7 {
171 /* VDD_CORE */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500172 regulator-name = "smps7";
173 regulator-min-microvolt = <850000>;
174 regulator-max-microvolt = <1150000>;
175 regulator-always-on;
176 regulator-boot-on;
177 };
178
179 smps8_reg: smps8 {
180 /* 5728 - VDD_IVAHD */
181 /* 5718 - N.C. test point */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500182 regulator-name = "smps8";
183 };
184
185 smps9_reg: smps9 {
186 /* VDD_3_3D */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500187 regulator-name = "smps9";
188 regulator-min-microvolt = <3300000>;
189 regulator-max-microvolt = <3300000>;
190 regulator-always-on;
191 regulator-boot-on;
192 };
193
194 ldo1_reg: ldo1 {
195 /* VDDSHV8 - VSDMMC */
196 /* NOTE: on rev 1.3a, data supply */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500197 regulator-name = "ldo1";
198 regulator-min-microvolt = <1800000>;
199 regulator-max-microvolt = <3300000>;
200 regulator-boot-on;
201 regulator-always-on;
202 };
203
204 ldo2_reg: ldo2 {
205 /* VDDSH18V */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500206 regulator-name = "ldo2";
207 regulator-min-microvolt = <1800000>;
208 regulator-max-microvolt = <1800000>;
209 regulator-always-on;
210 regulator-boot-on;
211 };
212
213 ldo3_reg: ldo3 {
214 /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500215 regulator-name = "ldo3";
216 regulator-min-microvolt = <1800000>;
217 regulator-max-microvolt = <1800000>;
218 regulator-always-on;
219 regulator-boot-on;
220 };
221
222 ldo4_reg: ldo4 {
223 /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/
Schuyler Pattona7cac712016-03-28 11:35:09 -0500224 regulator-name = "ldo4";
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <1800000>;
227 regulator-always-on;
228 regulator-boot-on;
229 };
230
231 /* LDO5-8 unused */
232
233 ldo9_reg: ldo9 {
234 /* VDD_RTC */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500235 regulator-name = "ldo9";
236 regulator-min-microvolt = <840000>;
237 regulator-max-microvolt = <1160000>;
238 regulator-always-on;
239 regulator-boot-on;
240 };
241
242 ldoln_reg: ldoln {
243 /* VDDA_1V8_PLL */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500244 regulator-name = "ldoln";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
247 regulator-always-on;
248 regulator-boot-on;
249 };
250
251 ldousb_reg: ldousb {
252 /* VDDA_3V_USB: VDDA_USBHS33 */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500253 regulator-name = "ldousb";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
256 regulator-always-on;
257 regulator-boot-on;
258 };
259
260 ldortc_reg: ldortc {
261 /* VDDA_RTC */
Schuyler Pattona7cac712016-03-28 11:35:09 -0500262 regulator-name = "ldortc";
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
265 regulator-always-on;
266 regulator-boot-on;
267 };
268
269 regen1: regen1 {
270 /* VDD_3V3_ON */
271 regulator-name = "regen1";
272 regulator-boot-on;
273 regulator-always-on;
274 };
275
276 regen2: regen2 {
277 /* Needed for PMIC internal resource */
278 regulator-name = "regen2";
279 regulator-boot-on;
280 regulator-always-on;
281 };
282 };
283 };
284
285 tps659038_rtc: tps659038_rtc {
286 compatible = "ti,palmas-rtc";
287 interrupt-parent = <&tps659038>;
288 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
289 wakeup-source;
290 };
291
292 tps659038_pwr_button: tps659038_pwr_button {
293 compatible = "ti,palmas-pwrbutton";
294 interrupt-parent = <&tps659038>;
295 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
296 wakeup-source;
297 ti,palmas-long-press-seconds = <12>;
298 };
299
300 tps659038_gpio: tps659038_gpio {
301 compatible = "ti,palmas-gpio";
302 gpio-controller;
303 #gpio-cells = <2>;
304 };
305 };
306};
307
Andrew F. Davis8b437642016-10-07 09:44:27 -0500308&mcspi3 {
309 status = "okay";
310 ti,pindir-d0-out-d1-in;
311
312 sn65hvs882: sn65hvs882@0 {
313 compatible = "pisosr-gpio";
314 gpio-controller;
315 #gpio-cells = <2>;
316
317 reg = <0>;
318 spi-max-frequency = <1000000>;
319 spi-cpol;
320 };
Andrew F. Davis50e95b62016-10-07 09:44:28 -0500321
322 tpic2810: tpic2810@60 {
323 compatible = "ti,tpic2810";
324 reg = <0x60>;
325 gpio-controller;
326 #gpio-cells = <2>;
327 };
Andrew F. Davis8b437642016-10-07 09:44:27 -0500328};
329
Schuyler Pattona7cac712016-03-28 11:35:09 -0500330&uart3 {
331 status = "okay";
332 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
333 &dra7_pmx_core 0x248>;
334};
335
336&rtc {
337 status = "okay";
338 ext-clk-src;
339};
340
341&mac {
342 status = "okay";
343 dual_emac;
344};
345
346&cpsw_emac0 {
347 phy_id = <&davinci_mdio>, <0>;
348 phy-mode = "rgmii";
349 dual_emac_res_vlan = <1>;
350};
351
352&cpsw_emac1 {
353 phy_id = <&davinci_mdio>, <1>;
354 phy-mode = "rgmii";
355 dual_emac_res_vlan = <2>;
356};
357
358&usb2_phy1 {
359 phy-supply = <&ldousb_reg>;
360};
361
362&usb2_phy2 {
363 phy-supply = <&ldousb_reg>;
364};
365
366&usb1 {
367 dr_mode = "host";
368};
369
370&usb2 {
371 dr_mode = "otg";
372};
373
374&mmc2 {
375 status = "okay";
376 vmmc-supply = <&v3_3d>;
377 bus-width = <8>;
378 ti,non-removable;
379 max-frequency = <96000000>;
380};
Vignesh R504482e2016-08-02 10:51:47 +0530381
382&qspi {
383 status = "okay";
384
385 spi-max-frequency = <76800000>;
386 m25p80@0 {
387 compatible = "s25fl256s1", "jedec,spi-nor";
388 spi-max-frequency = <76800000>;
389 reg = <0>;
390 spi-tx-bus-width = <1>;
391 spi-rx-bus-width = <4>;
392 #address-cells = <1>;
393 #size-cells = <1>;
394
395 /* MTD partition table.
396 * The ROM checks the first four physical blocks
397 * for a valid file to boot and the flash here is
398 * 64KiB block size.
399 */
400 partition@0 {
401 label = "QSPI.SPL";
402 reg = <0x00000000 0x000040000>;
403 };
404 partition@1 {
405 label = "QSPI.u-boot";
406 reg = <0x00040000 0x00100000>;
407 };
408 partition@2 {
409 label = "QSPI.u-boot-spl-os";
410 reg = <0x00140000 0x00080000>;
411 };
412 partition@3 {
413 label = "QSPI.u-boot-env";
414 reg = <0x001c0000 0x00010000>;
415 };
416 partition@4 {
417 label = "QSPI.u-boot-env.backup1";
418 reg = <0x001d0000 0x0010000>;
419 };
420 partition@5 {
421 label = "QSPI.kernel";
422 reg = <0x001e0000 0x0800000>;
423 };
424 partition@6 {
425 label = "QSPI.file-system";
426 reg = <0x009e0000 0x01620000>;
427 };
428 };
429};