Skip to content

Commit

Permalink
ath79: report link state on ETH2 port of Mikrotik RBmAP-2nD
Browse files Browse the repository at this point in the history
Add node for swphy1 in qca953x.dtsi, as it is common part - but make it
disabled, as this one is rarely used in other devices. Enable it in
RBmAP-2nD and attach to eth1 as PHY.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
  • Loading branch information
Leo-PL committed Jan 11, 2025
1 parent d52bb56 commit 6c3a4b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@
};
};

&swphy1 {
status = "okay";
};

&eth1 {
phy-handle = <&swphy1>;
/delete-node/ fixed-link;
};

&usb0 {
status = "okay";
};
Expand Down
6 changes: 6 additions & 0 deletions target/linux/ath79/dts/qca953x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@
phy-mode = "mii";
};

swphy1: ethernet-phy@1 {
status = "disabled";
reg = <1>;
phy-mode = "mii";
};

swphy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "mii";
Expand Down

0 comments on commit 6c3a4b8

Please sign in to comment.