// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
#include "mt7628an.dtsi"
compatible = "gpio-leds";
lan1 {
- label = "wr1000:blue:lan1";
+ label = "blue:lan1";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
lan2 {
- label = "wr1000:blue:lan2";
+ label = "blue:lan2";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
wan {
- label = "wr1000:blue:wan";
+ label = "blue:wan";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
wlan2g {
- label = "wr1000:blue:wlan2g";
+ label = "blue:wlan2g";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_wps: wps {
- label = "wr1000:blue:wps";
+ label = "blue:wps";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
};
&wmac {
status = "okay";
+
+ mediatek,mtd-eeprom = <&factory 0x0>;
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x2f>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};