ath79: ar724x: make sure builtin-switch is enabled in DT

On ar7240/ar7241 the mdioX node with the builtin-switch is enabled
in the DTSI files, but the parent ethX node is left disabled. It
only gets enabled per device or device family, and has not been
enabled at all yet for the TP-Link WA devices with ar7240, making
the switch unavailable there.

This patch makes sure &eth0/&eth1 nodes are enabled together with
the &mdio0/&mdio1 nodes containing the builtin-switch.
For ar7240_tplink_tl-wa.dtsi, &eth0 is properly hidden again via
  compatible = "syscon", "simple-mfd";

This partially fixes FS#2887, however it seems dmesg still does
not show cable (dis)connect in dmesg for ar7240 TP-Link WA
devices.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 8484a764df)
This commit is contained in:
Adrian Schmutzler 2020-08-14 15:09:29 +02:00
parent 5d3e5d6ccc
commit be09fdbf36
9 changed files with 8 additions and 12 deletions

View File

@ -59,6 +59,8 @@
};
&eth0 {
status = "okay";
compatible = "qca,ar7240-eth", "syscon";
pll-data = <0x00110000 0x00001099 0x00991099>;

View File

@ -156,8 +156,6 @@
};
&eth0 {
status = "okay";
mtd-mac-address = <&art 0x120c>;
};

View File

@ -105,8 +105,6 @@
};
&eth0 {
status = "okay";
mtd-mac-address = <&art 0x0>;
};

View File

@ -9,6 +9,10 @@
};
};
&eth0 {
compatible = "syscon", "simple-mfd";
}
&eth1 {
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -30,8 +30,6 @@
};
&eth0 {
status = "okay";
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};

View File

@ -78,6 +78,8 @@
};
&eth1 {
status = "okay";
compatible = "qca,ar7241-eth", "syscon";
pll-data = <0x00110000 0x00001099 0x00991099>;

View File

@ -102,8 +102,6 @@
};
&eth1 {
status = "okay";
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <1>;
};

View File

@ -149,8 +149,6 @@
};
&eth1 {
status = "okay";
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <1>;
};

View File

@ -123,7 +123,5 @@
};
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};