-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-only
#include "mt7621.dtsi"
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &gmac0;
};
keys {
compatible = "gpio-leds";
led_power: power {
+ label = "green:power";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
- led_usb: usb {
+ usb {
+ label = "green:usb";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
linux,default-trigger = "usbport";
};
- led_internet: internet {
+ internet {
+ label = "green:wan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
- led_wifi: wifi {
+ wifi {
+ label = "green:wifi";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
- led_wps: wps {
+ wps {
+ label = "green:wps";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};
};
};
-&gmac0 {
- mtd-mac-address = <&factory 0x4>;
-};
-
&switch0 {
ports {
port@0 {
label = "lan1";
};
- port@4 {
+ wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
- mtd-mac-address-increment = <1>;
};
};
};