[PATCH PRELIMINARY 5/5] arm64: dts: qcom: shikra-iqs-evk: enable both Ethernet ports
From: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
Date: 2026-09-08 06:24:13
Also in:
linux-arm-msm, lkml, netdev
Subsystem:
arm/qualcomm mailing list, arm/qualcomm support, the rest · Maintainers:
Bjorn Andersson, Konrad Dybcio, Linus Torvalds
Enable ethernet0 and ethernet1 on the IQS EVK with their respective TI DP83867 RGMII PHYs. Both PHYs are powered by GPIO-controlled 2.5V regulators. Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
index 727809430fd15fc45046daa2d1fbca110394c60d..049feb5b4d965177a67b7dbfb2d368ccfbdab7b9 100644
--- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts@@ -21,6 +21,78 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + rgmii_phy0_supply: regulator-rgmii-phy0 { + compatible = "regulator-fixed"; + regulator-name = "rgmii-phy0-pwr"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + gpio = <&tlmm 66 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&rgmii_phy0_pwr_default>; + pinctrl-names = "default"; + }; + + rgmii_phy1_supply: regulator-rgmii-phy1 { + compatible = "regulator-fixed"; + regulator-name = "rgmii-phy1-pwr"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + gpio = <&tlmm 53 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&rgmii_phy1_pwr_default>; + pinctrl-names = "default"; + }; +}; + +ðernet0 { + phy-handle = <&rgmii_phy0>; + phy-mode = "rgmii-id"; + + pinctrl-0 = <ðernet0_default>; + pinctrl-names = "default"; + + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + rgmii_phy0: ethernet-phy@7 { + compatible = "ethernet-phy-id2000.a231"; + reg = <0x7>; + reset-gpios = <&tlmm 135 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + reset-deassert-us = <50000>; + vdda-2p5-supply = <&rgmii_phy0_supply>; + }; + }; +}; + +ðernet1 { + phy-handle = <&rgmii_phy1>; + phy-mode = "rgmii-id"; + + pinctrl-0 = <ðernet1_default>; + pinctrl-names = "default"; + + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + rgmii_phy1: ethernet-phy@7 { + compatible = "ethernet-phy-id2000.a231"; + reg = <0x7>; + reset-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + reset-deassert-us = <50000>; + vdda-2p5-supply = <&rgmii_phy1_supply>; + }; + }; }; &remoteproc_cdsp {
@@ -57,3 +129,21 @@ &sdhc_1 { status = "okay"; }; + +&tlmm { + rgmii_phy0_pwr_default: rgmii-phy0-pwr-default-state { + pins = "gpio66"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + rgmii_phy1_pwr_default: rgmii-phy1-pwr-default-state { + pins = "gpio53"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; +};
--
2.34.1