ath79: move ethernet phy node for TP-Link EAP devices
authorSander Vanheule <sander@svanheule.net>
Sun, 5 Jun 2022 09:55:58 +0000 (11:55 +0200)
committerSander Vanheule <sander@svanheule.net>
Thu, 16 Jun 2022 19:39:32 +0000 (21:39 +0200)
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@svanheule.net>
target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts
target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts
target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts
target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi

index 9e61490a5dd54fa0abbabea199fbef930a114730..0b376bf6577be043e9abb9fef9b0b7b5501ffb91 100644 (file)
        };
 };
 
+&eth0 {
+       phy-handle = <&phy4>;
+       phy-mode = "sgmii";
+};
+
+&mdio0 {
+       phy4: ethernet-phy@4 {
+               reg = <4>;
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+       };
+};
+
 &pcie {
        wifi@0,0 {
                compatible = "qcom,ath10k";
index f4ac2c6d8db47281eee2a9616d5873b7710276a9..8423daf60231008743b1e8483b8ea76ab0a4dbc7 100644 (file)
        };
 };
 
+&eth0 {
+       phy-handle = <&phy4>;
+       phy-mode = "sgmii";
+};
+
+&mdio0 {
+       phy4: ethernet-phy@4 {
+               reg = <4>;
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+       };
+};
+
 &pcie {
        wifi@0,0 {
                compatible = "qcom,ath10k";
index ed599815c070ef68baea57f8224c9b84dedac66c..8df6b813ebc3665ebfdbab68a82625526190f7a4 100644 (file)
        };
 };
 
+&eth0 {
+       phy-handle = <&phy4>;
+       phy-mode = "sgmii";
+};
+
+&mdio0 {
+       phy4: ethernet-phy@4 {
+               reg = <4>;
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+       };
+};
+
 &pcie {
        wifi@0,0 {
                compatible = "qcom,ath10k";
index 188326fd8046a2c18cd8b2bcc9ff9db8e9845930..236c9e7457b7afc21c2adb1936391326b45fa7b8 100644 (file)
        };
 };
 
+&eth0 {
+       phy-handle = <&phy4>;
+       phy-mode = "sgmii";
+};
+
+&mdio0 {
+       phy4: ethernet-phy@4 {
+               reg = <4>;
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+       };
+};
+
 &pcie {
        wifi@0,0 {
                compatible = "qcom,ath10k";
index 46e75562d78625bd50231167ca8c9510bc8dc522..f384031335b626269bd9310c4ee998e9e199938f 100644 (file)
 
        pinctrl-names = "default";
        pinctrl-0 = <&mdio_pins>;
-
-       phy4: ethernet-phy@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>;