Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[deliverable/linux.git] / arch / arm / boot / dts / am57xx-idk-common.dtsi
CommitLineData
a7cac713
SP
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
5b604223
K
9#include "am57xx-industrial-grade.dtsi"
10
a7cac713
SP
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 regulators {
64 smps12_reg: smps12 {
65 /* VDD_MPU */
66 vin-supply = <&vmain>;
67 regulator-name = "smps12";
68 regulator-min-microvolt = <850000>;
69 regulator-max-microvolt = <1250000>;
70 regulator-always-on;
71 regulator-boot-on;
72 };
73
74 smps3_reg: smps3 {
75 /* VDD_DDR EMIF1 EMIF2 */
76 vin-supply = <&vmain>;
77 regulator-name = "smps3";
78 regulator-min-microvolt = <1350000>;
79 regulator-max-microvolt = <1350000>;
80 regulator-always-on;
81 regulator-boot-on;
82 };
83
84 smps45_reg: smps45 {
85 /* VDD_DSPEVE on AM572 */
86 /* VDD_IVA + VDD_DSP on AM571 */
87 vin-supply = <&vmain>;
88 regulator-name = "smps45";
89 regulator-min-microvolt = <850000>;
90 regulator-max-microvolt = <1250000>;
91 regulator-always-on;
92 regulator-boot-on;
93 };
94
95 smps6_reg: smps6 {
96 /* VDD_GPU */
97 vin-supply = <&vmain>;
98 regulator-name = "smps6";
99 regulator-min-microvolt = <850000>;
100 regulator-max-microvolt = <1250000>;
101 regulator-always-on;
102 regulator-boot-on;
103 };
104
105 smps7_reg: smps7 {
106 /* VDD_CORE */
107 vin-supply = <&vmain>;
108 regulator-name = "smps7";
109 regulator-min-microvolt = <850000>;
110 regulator-max-microvolt = <1150000>;
111 regulator-always-on;
112 regulator-boot-on;
113 };
114
115 smps8_reg: smps8 {
116 /* 5728 - VDD_IVAHD */
117 /* 5718 - N.C. test point */
118 vin-supply = <&vmain>;
119 regulator-name = "smps8";
120 };
121
122 smps9_reg: smps9 {
123 /* VDD_3_3D */
124 vin-supply = <&vmain>;
125 regulator-name = "smps9";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 regulator-always-on;
129 regulator-boot-on;
130 };
131
132 ldo1_reg: ldo1 {
133 /* VDDSHV8 - VSDMMC */
134 /* NOTE: on rev 1.3a, data supply */
135 vin-supply = <&vmain>;
136 regulator-name = "ldo1";
137 regulator-min-microvolt = <1800000>;
138 regulator-max-microvolt = <3300000>;
139 regulator-boot-on;
140 regulator-always-on;
141 };
142
143 ldo2_reg: ldo2 {
144 /* VDDSH18V */
145 vin-supply = <&vmain>;
146 regulator-name = "ldo2";
147 regulator-min-microvolt = <1800000>;
148 regulator-max-microvolt = <1800000>;
149 regulator-always-on;
150 regulator-boot-on;
151 };
152
153 ldo3_reg: ldo3 {
154 /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */
155 vin-supply = <&vmain>;
156 regulator-name = "ldo3";
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <1800000>;
159 regulator-always-on;
160 regulator-boot-on;
161 };
162
163 ldo4_reg: ldo4 {
164 /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/
165 vin-supply = <&vmain>;
166 regulator-name = "ldo4";
167 regulator-min-microvolt = <1800000>;
168 regulator-max-microvolt = <1800000>;
169 regulator-always-on;
170 regulator-boot-on;
171 };
172
173 /* LDO5-8 unused */
174
175 ldo9_reg: ldo9 {
176 /* VDD_RTC */
177 vin-supply = <&vmain>;
178 regulator-name = "ldo9";
179 regulator-min-microvolt = <840000>;
180 regulator-max-microvolt = <1160000>;
181 regulator-always-on;
182 regulator-boot-on;
183 };
184
185 ldoln_reg: ldoln {
186 /* VDDA_1V8_PLL */
187 vin-supply = <&vmain>;
188 regulator-name = "ldoln";
189 regulator-min-microvolt = <1800000>;
190 regulator-max-microvolt = <1800000>;
191 regulator-always-on;
192 regulator-boot-on;
193 };
194
195 ldousb_reg: ldousb {
196 /* VDDA_3V_USB: VDDA_USBHS33 */
197 vin-supply = <&vmain>;
198 regulator-name = "ldousb";
199 regulator-min-microvolt = <3300000>;
200 regulator-max-microvolt = <3300000>;
201 regulator-always-on;
202 regulator-boot-on;
203 };
204
205 ldortc_reg: ldortc {
206 /* VDDA_RTC */
207 vin-supply = <&vmain>;
208 regulator-name = "ldortc";
209 regulator-min-microvolt = <1800000>;
210 regulator-max-microvolt = <1800000>;
211 regulator-always-on;
212 regulator-boot-on;
213 };
214
215 regen1: regen1 {
216 /* VDD_3V3_ON */
217 regulator-name = "regen1";
218 regulator-boot-on;
219 regulator-always-on;
220 };
221
222 regen2: regen2 {
223 /* Needed for PMIC internal resource */
224 regulator-name = "regen2";
225 regulator-boot-on;
226 regulator-always-on;
227 };
228 };
229 };
230
231 tps659038_rtc: tps659038_rtc {
232 compatible = "ti,palmas-rtc";
233 interrupt-parent = <&tps659038>;
234 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
235 wakeup-source;
236 };
237
238 tps659038_pwr_button: tps659038_pwr_button {
239 compatible = "ti,palmas-pwrbutton";
240 interrupt-parent = <&tps659038>;
241 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
242 wakeup-source;
243 ti,palmas-long-press-seconds = <12>;
244 };
245
246 tps659038_gpio: tps659038_gpio {
247 compatible = "ti,palmas-gpio";
248 gpio-controller;
249 #gpio-cells = <2>;
250 };
251 };
252};
253
254&uart3 {
255 status = "okay";
256 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH
257 &dra7_pmx_core 0x248>;
258};
259
260&rtc {
261 status = "okay";
262 ext-clk-src;
263};
264
265&mac {
266 status = "okay";
267 dual_emac;
268};
269
270&cpsw_emac0 {
271 phy_id = <&davinci_mdio>, <0>;
272 phy-mode = "rgmii";
273 dual_emac_res_vlan = <1>;
274};
275
276&cpsw_emac1 {
277 phy_id = <&davinci_mdio>, <1>;
278 phy-mode = "rgmii";
279 dual_emac_res_vlan = <2>;
280};
281
282&usb2_phy1 {
283 phy-supply = <&ldousb_reg>;
284};
285
286&usb2_phy2 {
287 phy-supply = <&ldousb_reg>;
288};
289
290&usb1 {
291 dr_mode = "host";
292};
293
294&usb2 {
295 dr_mode = "otg";
296};
297
298&mmc2 {
299 status = "okay";
300 vmmc-supply = <&v3_3d>;
301 bus-width = <8>;
302 ti,non-removable;
303 max-frequency = <96000000>;
304};
This page took 0.043147 seconds and 5 git commands to generate.