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 8484a764df20cdd673c74b583bfbf71e10c02726)
master
Adrian Schmutzler 4 years ago
parent 5d3e5d6ccc
commit be09fdbf36
  1. 2
      target/linux/ath79/dts/ar7240.dtsi
  2. 2
      target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
  3. 2
      target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
  4. 4
      target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi
  5. 2
      target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi
  6. 2
      target/linux/ath79/dts/ar7241.dtsi
  7. 2
      target/linux/ath79/dts/ar7241_tplink.dtsi
  8. 2
      target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
  9. 2
      target/linux/ath79/dts/ar7241_ubnt_unifi.dts

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save