Skip to content

Commit

Permalink
ath79: move ethernet phy node for TP-Link EAP devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
svanheule committed Jun 16, 2022
1 parent 48625a0 commit 9320516
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 7 deletions.
12 changes: 12 additions & 0 deletions target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts
Expand Up @@ -35,6 +35,18 @@
};
};

&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";
Expand Down
12 changes: 12 additions & 0 deletions target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts
Expand Up @@ -56,6 +56,18 @@
};
};

&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";
Expand Down
12 changes: 12 additions & 0 deletions target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts
Expand Up @@ -35,6 +35,18 @@
};
};

&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";
Expand Down
12 changes: 12 additions & 0 deletions target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
Expand Up @@ -49,6 +49,18 @@
};
};

&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";
Expand Down
7 changes: 0 additions & 7 deletions target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
Expand Up @@ -106,18 +106,11 @@

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>;
Expand Down

0 comments on commit 9320516

Please sign in to comment.