Skip to content

Commit 6eebfeb

Browse files
nmenontmlind
authored andcommitted
ARM: dts: Add support for dra718-evm
The DRA718-evm is a board based on TI's DRA718 processor targeting BOM-optimized entry infotainment systems and is a reduced pin and software compatible derivative of the DRA72 ES2.0 processor. This platform features: - 2GB of DDR3L - Dual 1Gbps Ethernet - HDMI, - uSD - 8GB eMMC - CAN - PCIe - USB3.0 - Video Input Port - LP873x PMIC More information can be found here[1]. Adding support for this board while reusing the data available in dra72-evm-common.dtsi. [1] http://www.ti.com/product/dra718 Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 5d080aa commit 6eebfeb

File tree

3 files changed

+236
-3
lines changed

3 files changed

+236
-3
lines changed

arch/arm/boot/dts/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,8 @@ dtb-$(CONFIG_SOC_DRA7XX) += \
590590
am572x-idk.dtb \
591591
dra7-evm.dtb \
592592
dra72-evm.dtb \
593-
dra72-evm-revc.dtb
593+
dra72-evm-revc.dtb \
594+
dra71-evm.dtb
594595
dtb-$(CONFIG_ARCH_ORION5X) += \
595596
orion5x-kuroboxpro.dtb \
596597
orion5x-lacie-d2-network.dtb \

arch/arm/boot/dts/dra71-evm.dts

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
/*
2+
* Copyright (C) 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 "dra72-evm-common.dtsi"
10+
#include <dt-bindings/net/ti-dp83867.h>
11+
12+
/ {
13+
compatible = "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7";
14+
model = "TI DRA718 EVM";
15+
16+
memory {
17+
device_type = "memory";
18+
reg = <0x0 0x80000000 0x0 0x80000000>; /* 2GB */
19+
};
20+
21+
vpo_sd_1v8_3v3: gpio-regulator-TPS74801 {
22+
compatible = "regulator-gpio";
23+
24+
regulator-name = "vddshv8";
25+
regulator-min-microvolt = <1800000>;
26+
regulator-max-microvolt = <3000000>;
27+
regulator-boot-on;
28+
vin-supply = <&evm_5v0>;
29+
30+
gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
31+
states = <1800000 0x0
32+
3000000 0x1>;
33+
};
34+
35+
poweroff: gpio-poweroff {
36+
compatible = "gpio-poweroff";
37+
gpios = <&gpio7 30 GPIO_ACTIVE_HIGH>;
38+
input;
39+
};
40+
};
41+
42+
&i2c1 {
43+
status = "okay";
44+
clock-frequency = <400000>;
45+
46+
lp8733: lp8733@60 {
47+
compatible = "ti,lp8733";
48+
reg = <0x60>;
49+
50+
buck0-in-supply =<&vsys_3v3>;
51+
buck1-in-supply =<&vsys_3v3>;
52+
ldo0-in-supply =<&evm_5v0>;
53+
ldo1-in-supply =<&evm_5v0>;
54+
55+
lp8733_regulators: regulators {
56+
lp8733_buck0_reg: buck0 {
57+
/* FB_B0 -> LP8733-BUCK1 - VPO_S1_AVS - VDD_CORE_AVS (core, mpu, gpu) */
58+
regulator-name = "lp8733-buck0";
59+
regulator-min-microvolt = <850000>;
60+
regulator-max-microvolt = <1250000>;
61+
regulator-always-on;
62+
regulator-boot-on;
63+
};
64+
65+
lp8733_buck1_reg: buck1 {
66+
/* FB_B1 -> LP8733-BUCK2 - VPO_S2_AVS - VDD_DSP_AVS (DSP/eve/iva) */
67+
regulator-name = "lp8733-buck1";
68+
regulator-min-microvolt = <850000>;
69+
regulator-max-microvolt = <1250000>;
70+
regulator-boot-on;
71+
regulator-always-on;
72+
};
73+
74+
lp8733_ldo0_reg: ldo0 {
75+
/* LDO0 -> LP8733-LDO1 - VPO_L1_3V3 - VDDSHV8 (optional) */
76+
regulator-name = "lp8733-ldo0";
77+
regulator-min-microvolt = <3300000>;
78+
regulator-max-microvolt = <3300000>;
79+
};
80+
81+
lp8733_ldo1_reg: ldo1 {
82+
/* LDO1 -> LP8733-LDO2 - VPO_L2_3V3 - VDDA_USB3V3 */
83+
regulator-name = "lp8733-ldo1";
84+
regulator-min-microvolt = <3300000>;
85+
regulator-max-microvolt = <3300000>;
86+
regulator-always-on;
87+
regulator-boot-on;
88+
};
89+
};
90+
};
91+
92+
lp8732: lp8732@61 {
93+
compatible = "ti,lp8732";
94+
reg = <0x61>;
95+
96+
buck0-in-supply =<&vsys_3v3>;
97+
buck1-in-supply =<&vsys_3v3>;
98+
ldo0-in-supply =<&vsys_3v3>;
99+
ldo1-in-supply =<&vsys_3v3>;
100+
101+
lp8732_regulators: regulators {
102+
lp8732_buck0_reg: buck0 {
103+
/* FB_B0 -> LP8732-BUCK1 - VPO_S3_1V8 - VDDS_1V8 */
104+
regulator-name = "lp8732-buck0";
105+
regulator-min-microvolt = <1800000>;
106+
regulator-max-microvolt = <1800000>;
107+
regulator-always-on;
108+
regulator-boot-on;
109+
};
110+
111+
lp8732_buck1_reg: buck1 {
112+
/* FB_B1 -> LP8732-BUCK2 - VPO_S4_DDR - VDD_DDR_1V35 */
113+
regulator-name = "lp8732-buck1";
114+
regulator-min-microvolt = <1350000>;
115+
regulator-max-microvolt = <1350000>;
116+
regulator-boot-on;
117+
regulator-always-on;
118+
};
119+
120+
lp8732_ldo0_reg: ldo0 {
121+
/* LDO0 -> LP8732-LDO1 - VPO_L3_1V8 - VDA_1V8_PLL */
122+
regulator-name = "lp8732-ldo0";
123+
regulator-min-microvolt = <1800000>;
124+
regulator-max-microvolt = <1800000>;
125+
regulator-boot-on;
126+
regulator-always-on;
127+
};
128+
129+
lp8732_ldo1_reg: ldo1 {
130+
/* LDO1 -> LP8732-LDO2 - VPO_L4_1V8 - VDA_1V8_PHY */
131+
regulator-name = "lp8732-ldo1";
132+
regulator-min-microvolt = <1800000>;
133+
regulator-max-microvolt = <1800000>;
134+
regulator-always-on;
135+
regulator-boot-on;
136+
};
137+
};
138+
};
139+
};
140+
141+
&pcf_gpio_21 {
142+
interrupt-parent = <&gpio7>;
143+
interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
144+
};
145+
146+
&pcf_hdmi {
147+
p0 {
148+
/*
149+
* PM_OEn to High: Disable routing I2C3 to PM_I2C
150+
* With this PM_SEL(p3) should not matter
151+
*/
152+
gpio-hog;
153+
gpios = <0 GPIO_ACTIVE_LOW>;
154+
output-high;
155+
line-name = "pm_oe_n";
156+
};
157+
};
158+
159+
&mmc1 {
160+
vmmc_aux-supply = <&vpo_sd_1v8_3v3>;
161+
};
162+
163+
&mac {
164+
mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>,
165+
<&pcf_hdmi 9 GPIO_ACTIVE_LOW>, /* P11 */
166+
<&pcf_hdmi 10 GPIO_ACTIVE_LOW>; /* P12 */
167+
dual_emac;
168+
};
169+
170+
&cpsw_emac0 {
171+
phy_id = <&davinci_mdio>, <2>;
172+
phy-mode = "rgmii-id";
173+
dual_emac_res_vlan = <1>;
174+
};
175+
176+
&cpsw_emac1 {
177+
phy_id = <&davinci_mdio>, <3>;
178+
phy-mode = "rgmii-id";
179+
dual_emac_res_vlan = <2>;
180+
};
181+
182+
&davinci_mdio {
183+
dp83867_0: ethernet-phy@2 {
184+
reg = <2>;
185+
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
186+
ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
187+
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
188+
ti,impedance-control = <0x1f>;
189+
};
190+
191+
dp83867_1: ethernet-phy@3 {
192+
reg = <3>;
193+
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
194+
ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
195+
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
196+
ti,impedance-control = <0x1f>;
197+
};
198+
};
199+
200+
/* No Sata on this device */
201+
&sata_phy {
202+
status = "disabled";
203+
};
204+
205+
&sata {
206+
status = "disabled";
207+
};
208+
209+
/* No RTC on this device */
210+
&rtc {
211+
status = "disabled";
212+
};
213+
214+
&usb2_phy1 {
215+
phy-supply = <&lp8733_ldo1_reg>;
216+
};
217+
218+
&usb2_phy2 {
219+
phy-supply = <&lp8733_ldo1_reg>;
220+
};
221+
222+
&dss {
223+
/* Supplied by VDA_1V8_PLL */
224+
vdda_video-supply = <&lp8732_ldo0_reg>;
225+
};
226+
227+
&hdmi {
228+
/* Supplied by VDA_1V8_PHY */
229+
vdda_video-supply = <&lp8732_ldo1_reg>;
230+
};

arch/arm/boot/dts/dra72-evm-common.dtsi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
};
3030

3131
evm_5v0: fixedregulator-evm5v0 {
32-
/* Output 1 of TPS43351QDAPRQ1 */
32+
/* Output 1 of TPS43351QDAPRQ1 on dra72-evm */
33+
/* Output 1 of LM5140QRWGTQ1 on dra71-evm */
3334
compatible = "regulator-fixed";
3435
regulator-name = "evm_5v0";
3536
regulator-min-microvolt = <5000000>;
@@ -40,7 +41,8 @@
4041
};
4142

4243
vsys_3v3: fixedregulator-vsys3v3 {
43-
/* Output 2 of TPS43351QDAPRQ1 */
44+
/* Output 2 of TPS43351QDAPRQ1 on dra72-evm */
45+
/* Output 2 of LM5140QRWGTQ1 on dra71-evm */
4446
compatible = "regulator-fixed";
4547
regulator-name = "vsys_3v3";
4648
regulator-min-microvolt = <3300000>;

0 commit comments

Comments
 (0)