// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
-#include "mt7628an_tplink_8m.dtsi"
+#include <dt-bindings/leds/common.h>
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
+#include "mt7628an_tplink_8m.dtsi"
/ {
compatible = "tplink,tl-wr802n-v4", "mediatek,mt7628an-soc";
reset {
label = "reset";
- gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
compatible = "gpio-leds";
led_power: power {
- label = "tl-wr802n-v4:green:power";
- gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
};
};
+&ehci {
+ status = "disabled";
+};
+
+&ohci {
+ status = "disabled";
+};
+
&state_default {
gpio {
- ralink,group = "refclk", "wdt";
- ralink,function = "gpio";
+ groups = "refclk", "wdt";
+ function = "gpio";
};
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
- mediatek,portmap = "l";
+ nvmem-cells = <&macaddr_factory_f100 0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&wmac {
+ status = "okay";
+
+ nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
+ nvmem-cell-names = "eeprom", "mac-address";
};