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>
master
Adrian Schmutzler 2020-08-14 15:09:29 +02:00
parent 03cdbb2040
commit 8484a764df
13 changed files with 10 additions and 22 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

@ -139,10 +139,6 @@
};
};
&eth0 {
status = "okay";
};
&eth1 {
status = "okay";
};

View File

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

View File

@ -106,8 +106,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

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

View File

@ -183,9 +183,8 @@
};
&eth1 {
status = "okay";
compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
mtd-mac-address = <&art 0x6>;
};

View File

@ -159,9 +159,8 @@
};
&eth1 {
status = "okay";
compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
mtd-mac-address = <&art 0x6>;
};

View File

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

View File

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

View File

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