ath79: ar724x: make sure builtin-switch is enabled in DT
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 14 Aug 2020 13:09:29 +0000 (15:09 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 13:19:03 +0000 (15:19 +0200)
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>
13 files changed:
target/linux/ath79/dts/ar7240.dtsi
target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
target/linux/ath79/dts/ar7240_dlink_dir-615-e4.dts
target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts
target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi
target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi
target/linux/ath79/dts/ar7241.dtsi
target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi
target/linux/ath79/dts/ar7241_tplink.dtsi
target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
target/linux/ath79/dts/ar7241_ubnt_unifi.dts

index 5382a710f941e832f48b5db7ac172b844159ff80..730c509d7bdf625e61bf8937ab7034e6b11881ee 100644 (file)
@@ -59,6 +59,8 @@
 };
 
 &eth0 {
+       status = "okay";
+
        compatible = "qca,ar7240-eth", "syscon";
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
index a2d3a99430511a14fb9d9112afe548e1781bf5de..cd61bdb45f481b56b79e38f24dd57c0952381396 100644 (file)
 };
 
 &eth0 {
-       status = "okay";
-
        mtd-mac-address = <&art 0x120c>;
 };
 
index 537a99b8dbaf74dfe2306091151e99ba1560d584..22a1aeb0dc90ba2e3f23c285455d5e8f73e4a6e1 100644 (file)
        };
 };
 
-&eth0 {
-       status = "okay";
-};
-
 &eth1 {
        status = "okay";
 };
index c231f4721cfde1c1a8196db1fb8a22dd925df069..8ae2a128ee93eba651c1a7320b5a42770daa8598 100644 (file)
 };
 
 &eth0 {
-       status = "okay";
-
        mtd-mac-address = <&art 0x0>;
 };
 
index a7e6b49c1f65a13f9e32a4d81d370b46f401ff4d..e270dfa5c247aaf6108f45584c58b5fb2c4b9890 100644 (file)
 };
 
 &eth0 {
-       status = "okay";
-
        mtd-mac-address = <&art 0x0>;
 };
 
index ac5a4d5ee9f296275e5b3f3e432d40d37e9d5f99..7f671ee4bfd0a906cbf97aa72a99796ac666cce4 100644 (file)
@@ -9,6 +9,10 @@
        };
 };
 
+&eth0 {
+       compatible = "syscon", "simple-mfd";
+}
+
 &eth1 {
        mtd-mac-address = <&uboot 0x1fc00>;
 };
index 7621b1d53cecbd7c7359a97aac4793d6549d8055..5ceada8375622675f9b1e0b02960715da0d73a09 100644 (file)
@@ -30,8 +30,6 @@
 };
 
 &eth0 {
-       status = "okay";
-
        mtd-mac-address = <&uboot 0x1fc00>;
        mtd-mac-address-increment = <(-1)>;
 };
index 59fcd05f5ea625afcc1b3b70c857747854f3da74..4044cdee0e761ee6be021609ccded2978e191be5 100644 (file)
@@ -77,6 +77,8 @@
 };
 
 &eth1 {
+       status = "okay";
+
        compatible = "qca,ar7241-eth", "syscon";
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
index 4d080c82f815b12c626bc8ffa90a20f21872c7d2..b4765d1a1434a9ccaac02a743fa6f9e7e3daa0d1 100644 (file)
 };
 
 &eth1 {
-       status = "okay";
-
        compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
+
        mtd-mac-address = <&art 0x6>;
 };
 
index 49b869f718385dc2f4f9825dccd01b91758ae13f..afd521b67057f896930e82bf7c912fcb8c186639 100644 (file)
 };
 
 &eth1 {
-       status = "okay";
-
        compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
+
        mtd-mac-address = <&art 0x6>;
 };
 
index bb5d6d95dabecb6e8fb5cab184bf709926207671..f83985cc56f2d5ace04f47a529ceb8ff4ffd58a3 100644 (file)
 };
 
 &eth1 {
-       status = "okay";
-
        mtd-mac-address = <&uboot 0x1fc00>;
        mtd-mac-address-increment = <1>;
 };
index 4d2741fbe6b52020312ca9a7ae84c472eaa2cdc1..72913bfa2da44538e7a5300543714f64fb18042d 100644 (file)
 };
 
 &eth1 {
-       status = "okay";
-
        mtd-mac-address = <&uboot 0x1fc00>;
        mtd-mac-address-increment = <1>;
 };
index e7369f0dbf4aeebd3c0ffb2e2fabcdbcb334de20..4bccdd2e4c230d82a03d571c38b74f11b63d97b2 100644 (file)
 };
 
 &eth1 {
-       status = "okay";
-
        compatible = "syscon", "simple-mfd";
 };