0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
0004 */
0005
0006 #include "dra71x.dtsi"
0007 #include "dra7-mmc-iodelay.dtsi"
0008 #include "dra72x-mmc-iodelay.dtsi"
0009 #include <dt-bindings/net/ti-dp83867.h>
0010
0011 / {
0012 compatible = "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7";
0013 model = "TI DRA718 EVM";
0014
0015 memory {
0016 device_type = "memory";
0017 reg = <0x0 0x80000000 0x0 0x80000000>; /* 2GB */
0018 };
0019
0020 reserved-memory {
0021 #address-cells = <2>;
0022 #size-cells = <2>;
0023 ranges;
0024
0025 ipu2_memory_region: ipu2-memory@95800000 {
0026 compatible = "shared-dma-pool";
0027 reg = <0x0 0x95800000 0x0 0x3800000>;
0028 reusable;
0029 status = "okay";
0030 };
0031
0032 dsp1_memory_region: dsp1-memory@99000000 {
0033 compatible = "shared-dma-pool";
0034 reg = <0x0 0x99000000 0x0 0x4000000>;
0035 reusable;
0036 status = "okay";
0037 };
0038
0039 ipu1_memory_region: ipu1-memory@9d000000 {
0040 compatible = "shared-dma-pool";
0041 reg = <0x0 0x9d000000 0x0 0x2000000>;
0042 reusable;
0043 status = "okay";
0044 };
0045 };
0046
0047 vpo_sd_1v8_3v3: gpio-regulator-TPS74801 {
0048 compatible = "regulator-gpio";
0049
0050 regulator-name = "vddshv8";
0051 regulator-min-microvolt = <1800000>;
0052 regulator-max-microvolt = <3300000>;
0053 regulator-boot-on;
0054 vin-supply = <&evm_5v0>;
0055
0056 gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
0057 states = <1800000 0x0
0058 3300000 0x1>;
0059 };
0060
0061 evm_1v8_sw: fixedregulator-evm_1v8 {
0062 compatible = "regulator-fixed";
0063 regulator-name = "evm_1v8";
0064 regulator-min-microvolt = <1800000>;
0065 regulator-max-microvolt = <1800000>;
0066 vin-supply = <&lp8732_buck0_reg>;
0067 regulator-always-on;
0068 regulator-boot-on;
0069 };
0070
0071 poweroff: gpio-poweroff {
0072 compatible = "gpio-poweroff";
0073 gpios = <&gpio7 30 GPIO_ACTIVE_HIGH>;
0074 input;
0075 };
0076 };
0077
0078 &i2c1 {
0079 status = "okay";
0080 clock-frequency = <400000>;
0081
0082 lp8733: lp8733@60 {
0083 compatible = "ti,lp8733";
0084 reg = <0x60>;
0085
0086 buck0-in-supply =<&vsys_3v3>;
0087 buck1-in-supply =<&vsys_3v3>;
0088 ldo0-in-supply =<&evm_5v0>;
0089 ldo1-in-supply =<&evm_5v0>;
0090
0091 lp8733_regulators: regulators {
0092 lp8733_buck0_reg: buck0 {
0093 /* FB_B0 -> LP8733-BUCK1 - VPO_S1_AVS - VDD_CORE_AVS (core, mpu, gpu) */
0094 regulator-name = "lp8733-buck0";
0095 regulator-min-microvolt = <850000>;
0096 regulator-max-microvolt = <1250000>;
0097 regulator-always-on;
0098 regulator-boot-on;
0099 };
0100
0101 lp8733_buck1_reg: buck1 {
0102 /* FB_B1 -> LP8733-BUCK2 - VPO_S2_AVS - VDD_DSP_AVS (DSP/eve/iva) */
0103 regulator-name = "lp8733-buck1";
0104 regulator-min-microvolt = <850000>;
0105 regulator-max-microvolt = <1250000>;
0106 regulator-boot-on;
0107 regulator-always-on;
0108 };
0109
0110 lp8733_ldo0_reg: ldo0 {
0111 /* LDO0 -> LP8733-LDO1 - VPO_L1_3V3 - VDDSHV8 (optional) */
0112 regulator-name = "lp8733-ldo0";
0113 regulator-min-microvolt = <3300000>;
0114 regulator-max-microvolt = <3300000>;
0115 regulator-boot-on;
0116 regulator-always-on;
0117 };
0118
0119 lp8733_ldo1_reg: ldo1 {
0120 /* LDO1 -> LP8733-LDO2 - VPO_L2_3V3 - VDDA_USB3V3 */
0121 regulator-name = "lp8733-ldo1";
0122 regulator-min-microvolt = <3300000>;
0123 regulator-max-microvolt = <3300000>;
0124 regulator-always-on;
0125 regulator-boot-on;
0126 };
0127 };
0128 };
0129
0130 lp8732: lp8732@61 {
0131 compatible = "ti,lp8732";
0132 reg = <0x61>;
0133
0134 buck0-in-supply =<&vsys_3v3>;
0135 buck1-in-supply =<&vsys_3v3>;
0136 ldo0-in-supply =<&vsys_3v3>;
0137 ldo1-in-supply =<&vsys_3v3>;
0138
0139 lp8732_regulators: regulators {
0140 lp8732_buck0_reg: buck0 {
0141 /* FB_B0 -> LP8732-BUCK1 - VPO_S3_1V8 - VDDS_1V8 */
0142 regulator-name = "lp8732-buck0";
0143 regulator-min-microvolt = <1800000>;
0144 regulator-max-microvolt = <1800000>;
0145 regulator-always-on;
0146 regulator-boot-on;
0147 };
0148
0149 lp8732_buck1_reg: buck1 {
0150 /* FB_B1 -> LP8732-BUCK2 - VPO_S4_DDR - VDD_DDR_1V35 */
0151 regulator-name = "lp8732-buck1";
0152 regulator-min-microvolt = <1350000>;
0153 regulator-max-microvolt = <1350000>;
0154 regulator-boot-on;
0155 regulator-always-on;
0156 };
0157
0158 lp8732_ldo0_reg: ldo0 {
0159 /* LDO0 -> LP8732-LDO1 - VPO_L3_1V8 - VDA_1V8_PLL */
0160 regulator-name = "lp8732-ldo0";
0161 regulator-min-microvolt = <1800000>;
0162 regulator-max-microvolt = <1800000>;
0163 regulator-boot-on;
0164 regulator-always-on;
0165 };
0166
0167 lp8732_ldo1_reg: ldo1 {
0168 /* LDO1 -> LP8732-LDO2 - VPO_L4_1V8 - VDA_1V8_PHY */
0169 regulator-name = "lp8732-ldo1";
0170 regulator-min-microvolt = <1800000>;
0171 regulator-max-microvolt = <1800000>;
0172 regulator-always-on;
0173 regulator-boot-on;
0174 };
0175 };
0176 };
0177 };
0178
0179 &pcf_lcd {
0180 interrupt-parent = <&gpio7>;
0181 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
0182 };
0183
0184 &pcf_gpio_21 {
0185 interrupt-parent = <&gpio7>;
0186 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
0187 };
0188
0189 &pcf_hdmi {
0190 hdmi-i2c-disable-hog {
0191 /*
0192 * PM_OEn to High: Disable routing I2C3 to PM_I2C
0193 * With this PM_SEL(p3) should not matter
0194 */
0195 gpio-hog;
0196 gpios = <0 GPIO_ACTIVE_LOW>;
0197 output-high;
0198 line-name = "pm_oe_n";
0199 };
0200 };
0201
0202 &mmc1 {
0203 pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", "sdr104";
0204 pinctrl-0 = <&mmc1_pins_default_no_clk_pu>;
0205 pinctrl-1 = <&mmc1_pins_hs>;
0206 pinctrl-2 = <&mmc1_pins_sdr12>;
0207 pinctrl-3 = <&mmc1_pins_sdr25>;
0208 pinctrl-4 = <&mmc1_pins_sdr50>;
0209 pinctrl-5 = <&mmc1_pins_ddr50_rev20 &mmc1_iodelay_ddr50_conf>;
0210 pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
0211 vqmmc-supply = <&vpo_sd_1v8_3v3>;
0212 };
0213
0214 &mmc2 {
0215 pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v";
0216 pinctrl-0 = <&mmc2_pins_default>;
0217 pinctrl-1 = <&mmc2_pins_hs>;
0218 pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
0219 pinctrl-3 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>;
0220 vmmc-supply = <&evm_1v8_sw>;
0221 vqmmc-supply = <&evm_1v8_sw>;
0222 };
0223
0224 &mac_sw {
0225 mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>,
0226 <&pcf_hdmi 9 GPIO_ACTIVE_LOW>, /* P11 */
0227 <&pcf_hdmi 10 GPIO_ACTIVE_LOW>; /* P12 */
0228 status = "okay";
0229 };
0230
0231 &cpsw_port1 {
0232 phy-handle = <&dp83867_0>;
0233 phy-mode = "rgmii-id";
0234 ti,dual-emac-pvid = <1>;
0235 };
0236
0237 &cpsw_port2 {
0238 phy-handle = <&dp83867_1>;
0239 phy-mode = "rgmii-id";
0240 ti,dual-emac-pvid = <2>;
0241 };
0242
0243 &davinci_mdio_sw {
0244 dp83867_0: ethernet-phy@2 {
0245 reg = <2>;
0246 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
0247 ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
0248 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
0249 ti,min-output-impedance;
0250 ti,dp83867-rxctrl-strap-quirk;
0251 };
0252
0253 dp83867_1: ethernet-phy@3 {
0254 reg = <3>;
0255 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
0256 ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
0257 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
0258 ti,min-output-impedance;
0259 ti,dp83867-rxctrl-strap-quirk;
0260 };
0261 };
0262
0263 /* No Sata on this device */
0264 &sata_phy {
0265 status = "disabled";
0266 };
0267
0268 &sata {
0269 status = "disabled";
0270 };
0271
0272 /* No RTC on this device */
0273 &rtc {
0274 status = "disabled";
0275 };
0276
0277 &usb2_phy1 {
0278 phy-supply = <&lp8733_ldo1_reg>;
0279 };
0280
0281 &usb2_phy2 {
0282 phy-supply = <&lp8733_ldo1_reg>;
0283 };
0284
0285 &dss {
0286 /* Supplied by VDA_1V8_PLL */
0287 vdda_video-supply = <&lp8732_ldo0_reg>;
0288 };
0289
0290 &hdmi {
0291 /* Supplied by VDA_1V8_PHY */
0292 vdda_video-supply = <&lp8732_ldo1_reg>;
0293 };
0294
0295 &extcon_usb1 {
0296 vbus-gpio = <&pcf_lcd 14 GPIO_ACTIVE_HIGH>;
0297 };
0298
0299 &extcon_usb2 {
0300 vbus-gpio = <&pcf_lcd 15 GPIO_ACTIVE_HIGH>;
0301 };
0302
0303 &ipu2 {
0304 status = "okay";
0305 memory-region = <&ipu2_memory_region>;
0306 };
0307
0308 &ipu1 {
0309 status = "okay";
0310 memory-region = <&ipu1_memory_region>;
0311 };
0312
0313 &dsp1 {
0314 status = "okay";
0315 memory-region = <&dsp1_memory_region>;
0316 };