Loading...
Note: File does not exist in v6.13.7.
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6#include "dra71x.dtsi"
7#include "dra7-mmc-iodelay.dtsi"
8#include "dra72x-mmc-iodelay.dtsi"
9#include <dt-bindings/net/ti-dp83867.h>
10
11/ {
12 compatible = "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7";
13 model = "TI DRA718 EVM";
14
15 memory {
16 device_type = "memory";
17 reg = <0x0 0x80000000 0x0 0x80000000>; /* 2GB */
18 };
19
20 reserved-memory {
21 #address-cells = <2>;
22 #size-cells = <2>;
23 ranges;
24
25 ipu2_memory_region: ipu2-memory@95800000 {
26 compatible = "shared-dma-pool";
27 reg = <0x0 0x95800000 0x0 0x3800000>;
28 reusable;
29 status = "okay";
30 };
31
32 dsp1_memory_region: dsp1-memory@99000000 {
33 compatible = "shared-dma-pool";
34 reg = <0x0 0x99000000 0x0 0x4000000>;
35 reusable;
36 status = "okay";
37 };
38
39 ipu1_memory_region: ipu1-memory@9d000000 {
40 compatible = "shared-dma-pool";
41 reg = <0x0 0x9d000000 0x0 0x2000000>;
42 reusable;
43 status = "okay";
44 };
45 };
46
47 vpo_sd_1v8_3v3: gpio-regulator-TPS74801 {
48 compatible = "regulator-gpio";
49
50 regulator-name = "vddshv8";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <3300000>;
53 regulator-boot-on;
54 vin-supply = <&evm_5v0>;
55
56 gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
57 states = <1800000 0x0
58 3300000 0x1>;
59 };
60
61 evm_1v8_sw: fixedregulator-evm_1v8 {
62 compatible = "regulator-fixed";
63 regulator-name = "evm_1v8";
64 regulator-min-microvolt = <1800000>;
65 regulator-max-microvolt = <1800000>;
66 vin-supply = <&lp8732_buck0_reg>;
67 regulator-always-on;
68 regulator-boot-on;
69 };
70
71 poweroff: gpio-poweroff {
72 compatible = "gpio-poweroff";
73 gpios = <&gpio7 30 GPIO_ACTIVE_HIGH>;
74 input;
75 };
76};
77
78&i2c1 {
79 status = "okay";
80 clock-frequency = <400000>;
81
82 lp8733: lp8733@60 {
83 compatible = "ti,lp8733";
84 reg = <0x60>;
85
86 buck0-in-supply =<&vsys_3v3>;
87 buck1-in-supply =<&vsys_3v3>;
88 ldo0-in-supply =<&evm_5v0>;
89 ldo1-in-supply =<&evm_5v0>;
90
91 lp8733_regulators: regulators {
92 lp8733_buck0_reg: buck0 {
93 /* FB_B0 -> LP8733-BUCK1 - VPO_S1_AVS - VDD_CORE_AVS (core, mpu, gpu) */
94 regulator-name = "lp8733-buck0";
95 regulator-min-microvolt = <850000>;
96 regulator-max-microvolt = <1250000>;
97 regulator-always-on;
98 regulator-boot-on;
99 };
100
101 lp8733_buck1_reg: buck1 {
102 /* FB_B1 -> LP8733-BUCK2 - VPO_S2_AVS - VDD_DSP_AVS (DSP/eve/iva) */
103 regulator-name = "lp8733-buck1";
104 regulator-min-microvolt = <850000>;
105 regulator-max-microvolt = <1250000>;
106 regulator-boot-on;
107 regulator-always-on;
108 };
109
110 lp8733_ldo0_reg: ldo0 {
111 /* LDO0 -> LP8733-LDO1 - VPO_L1_3V3 - VDDSHV8 (optional) */
112 regulator-name = "lp8733-ldo0";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
115 };
116
117 lp8733_ldo1_reg: ldo1 {
118 /* LDO1 -> LP8733-LDO2 - VPO_L2_3V3 - VDDA_USB3V3 */
119 regulator-name = "lp8733-ldo1";
120 regulator-min-microvolt = <3300000>;
121 regulator-max-microvolt = <3300000>;
122 regulator-always-on;
123 regulator-boot-on;
124 };
125 };
126 };
127
128 lp8732: lp8732@61 {
129 compatible = "ti,lp8732";
130 reg = <0x61>;
131
132 buck0-in-supply =<&vsys_3v3>;
133 buck1-in-supply =<&vsys_3v3>;
134 ldo0-in-supply =<&vsys_3v3>;
135 ldo1-in-supply =<&vsys_3v3>;
136
137 lp8732_regulators: regulators {
138 lp8732_buck0_reg: buck0 {
139 /* FB_B0 -> LP8732-BUCK1 - VPO_S3_1V8 - VDDS_1V8 */
140 regulator-name = "lp8732-buck0";
141 regulator-min-microvolt = <1800000>;
142 regulator-max-microvolt = <1800000>;
143 regulator-always-on;
144 regulator-boot-on;
145 };
146
147 lp8732_buck1_reg: buck1 {
148 /* FB_B1 -> LP8732-BUCK2 - VPO_S4_DDR - VDD_DDR_1V35 */
149 regulator-name = "lp8732-buck1";
150 regulator-min-microvolt = <1350000>;
151 regulator-max-microvolt = <1350000>;
152 regulator-boot-on;
153 regulator-always-on;
154 };
155
156 lp8732_ldo0_reg: ldo0 {
157 /* LDO0 -> LP8732-LDO1 - VPO_L3_1V8 - VDA_1V8_PLL */
158 regulator-name = "lp8732-ldo0";
159 regulator-min-microvolt = <1800000>;
160 regulator-max-microvolt = <1800000>;
161 regulator-boot-on;
162 regulator-always-on;
163 };
164
165 lp8732_ldo1_reg: ldo1 {
166 /* LDO1 -> LP8732-LDO2 - VPO_L4_1V8 - VDA_1V8_PHY */
167 regulator-name = "lp8732-ldo1";
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <1800000>;
170 regulator-always-on;
171 regulator-boot-on;
172 };
173 };
174 };
175};
176
177&pcf_lcd {
178 interrupt-parent = <&gpio7>;
179 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
180};
181
182&pcf_gpio_21 {
183 interrupt-parent = <&gpio7>;
184 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
185};
186
187&pcf_hdmi {
188 p0 {
189 /*
190 * PM_OEn to High: Disable routing I2C3 to PM_I2C
191 * With this PM_SEL(p3) should not matter
192 */
193 gpio-hog;
194 gpios = <0 GPIO_ACTIVE_LOW>;
195 output-high;
196 line-name = "pm_oe_n";
197 };
198};
199
200&mmc1 {
201 pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", "sdr104";
202 pinctrl-0 = <&mmc1_pins_default_no_clk_pu>;
203 pinctrl-1 = <&mmc1_pins_hs>;
204 pinctrl-2 = <&mmc1_pins_sdr12>;
205 pinctrl-3 = <&mmc1_pins_sdr25>;
206 pinctrl-4 = <&mmc1_pins_sdr50>;
207 pinctrl-5 = <&mmc1_pins_ddr50_rev20 &mmc1_iodelay_ddr50_conf>;
208 pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
209 vqmmc-supply = <&vpo_sd_1v8_3v3>;
210};
211
212&mmc2 {
213 pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v";
214 pinctrl-0 = <&mmc2_pins_default>;
215 pinctrl-1 = <&mmc2_pins_hs>;
216 pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
217 pinctrl-3 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>;
218 vmmc-supply = <&evm_1v8_sw>;
219 vqmmc-supply = <&evm_1v8_sw>;
220};
221
222&mac {
223 mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>,
224 <&pcf_hdmi 9 GPIO_ACTIVE_LOW>, /* P11 */
225 <&pcf_hdmi 10 GPIO_ACTIVE_LOW>; /* P12 */
226 dual_emac;
227};
228
229&cpsw_emac0 {
230 phy-handle = <&dp83867_0>;
231 phy-mode = "rgmii-id";
232 dual_emac_res_vlan = <1>;
233};
234
235&cpsw_emac1 {
236 phy-handle = <&dp83867_1>;
237 phy-mode = "rgmii-id";
238 dual_emac_res_vlan = <2>;
239};
240
241&davinci_mdio {
242 dp83867_0: ethernet-phy@2 {
243 reg = <2>;
244 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
245 ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
246 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
247 ti,min-output-impedance;
248 ti,dp83867-rxctrl-strap-quirk;
249 };
250
251 dp83867_1: ethernet-phy@3 {
252 reg = <3>;
253 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
254 ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
255 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
256 ti,min-output-impedance;
257 ti,dp83867-rxctrl-strap-quirk;
258 };
259};
260
261/* No Sata on this device */
262&sata_phy {
263 status = "disabled";
264};
265
266&sata {
267 status = "disabled";
268};
269
270/* No RTC on this device */
271&rtc {
272 status = "disabled";
273};
274
275&usb2_phy1 {
276 phy-supply = <&lp8733_ldo1_reg>;
277};
278
279&usb2_phy2 {
280 phy-supply = <&lp8733_ldo1_reg>;
281};
282
283&dss {
284 /* Supplied by VDA_1V8_PLL */
285 vdda_video-supply = <&lp8732_ldo0_reg>;
286};
287
288&hdmi {
289 /* Supplied by VDA_1V8_PHY */
290 vdda_video-supply = <&lp8732_ldo1_reg>;
291};
292
293&extcon_usb1 {
294 vbus-gpio = <&pcf_lcd 14 GPIO_ACTIVE_HIGH>;
295};
296
297&extcon_usb2 {
298 vbus-gpio = <&pcf_lcd 15 GPIO_ACTIVE_HIGH>;
299};
300
301&ipu2 {
302 status = "okay";
303 memory-region = <&ipu2_memory_region>;
304};
305
306&ipu1 {
307 status = "okay";
308 memory-region = <&ipu1_memory_region>;
309};
310
311&dsp1 {
312 status = "okay";
313 memory-region = <&dsp1_memory_region>;
314};