openwrt/target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi
Adrian Schmutzler be09fdbf36 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)
2020-08-17 15:52:01 +02:00

23 lines
316 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "ar7240_tplink.dtsi"
&leds {
lan {
label = "tp-link:green:lan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};
&eth0 {
compatible = "syscon", "simple-mfd";
}
&eth1 {
mtd-mac-address = <&uboot 0x1fc00>;
};
&ath9k {
compatible = "pci168c,002a";
};