[openwrt/openwrt] ath79: move ethernet phy node for TP-Link EAP devices

LEDE Commits lede-commits at lists.infradead.org
Thu Jun 16 12:42:38 PDT 2022


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/932051661352ebf23b9cfe8d53cde31027e3c42f

commit 932051661352ebf23b9cfe8d53cde31027e3c42f
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Sun Jun 5 11:55:58 2022 +0200

    ath79: move ethernet phy node for TP-Link EAP devices
    
    Move the ethernet phy definition from the eap2x5-1port include to the
    device-specific DTS files. This is to prepare for new devices that have
    a different ethernet phy, at another MDIO address.
    
    Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
 target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts | 12 ++++++++++++
 target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts         | 12 ++++++++++++
 target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts         | 12 ++++++++++++
 target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts         | 12 ++++++++++++
 target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi     |  7 -------
 5 files changed, 48 insertions(+), 7 deletions(-)

diff --git a/target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts b/target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts
index 9e61490a5d..0b376bf657 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts
@@ -35,6 +35,18 @@
 	};
 };
 
+&eth0 {
+	phy-handle = <&phy4>;
+	phy-mode = "sgmii";
+};
+
+&mdio0 {
+	phy4: ethernet-phy at 4 {
+		reg = <4>;
+		reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+	};
+};
+
 &pcie {
 	wifi at 0,0 {
 		compatible = "qcom,ath10k";
diff --git a/target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts b/target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts
index f4ac2c6d8d..8423daf602 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts
@@ -56,6 +56,18 @@
 	};
 };
 
+&eth0 {
+	phy-handle = <&phy4>;
+	phy-mode = "sgmii";
+};
+
+&mdio0 {
+	phy4: ethernet-phy at 4 {
+		reg = <4>;
+		reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+	};
+};
+
 &pcie {
 	wifi at 0,0 {
 		compatible = "qcom,ath10k";
diff --git a/target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts b/target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts
index ed599815c0..8df6b813eb 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts
@@ -35,6 +35,18 @@
 	};
 };
 
+&eth0 {
+	phy-handle = <&phy4>;
+	phy-mode = "sgmii";
+};
+
+&mdio0 {
+	phy4: ethernet-phy at 4 {
+		reg = <4>;
+		reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+	};
+};
+
 &pcie {
 	wifi at 0,0 {
 		compatible = "qcom,ath10k";
diff --git a/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts b/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
index 188326fd80..236c9e7457 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
@@ -49,6 +49,18 @@
 	};
 };
 
+&eth0 {
+	phy-handle = <&phy4>;
+	phy-mode = "sgmii";
+};
+
+&mdio0 {
+	phy4: ethernet-phy at 4 {
+		reg = <4>;
+		reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+	};
+};
+
 &pcie {
 	wifi at 0,0 {
 		compatible = "qcom,ath10k";
diff --git a/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi b/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
index 46e75562d7..f384031335 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
+++ b/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
@@ -106,18 +106,11 @@
 
 	pinctrl-names = "default";
 	pinctrl-0 = <&mdio_pins>;
-
-	phy4: ethernet-phy at 4 {
-		reg = <4>;
-		reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
-	};
 };
 
 &eth0 {
 	status = "okay";
 
-	phy-handle = <&phy4>;
-	phy-mode = "sgmii";
 	pll-data = <0x03000000 0x00000101 0x00001313>;
 
 	nvmem-cells = <&macaddr_info_8>;




More information about the lede-commits mailing list