// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
#include "mt7620a.dtsi"
compatible = "gpio-leds";
usb {
- label = "wap2100-sk:green:usb";
+ label = "green:usb";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
led_power: wps {
- label = "wap2100-sk:green:wps";
+ label = "green:wps";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
wlan2g {
- label = "wap2100-sk:green:wlan2g";
+ label = "green:wlan2g";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
};
};
-&gpio0 {
- status = "okay";
-};
-
&gpio1 {
status = "okay";
};
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = "llllw";
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+
+ mediatek,portmap = "wllll";
};
&wmac {
- ralink,mtd-eeprom = <&factory 0>;
+ ralink,mtd-eeprom = <&factory 0x0>;
};
&pcie {
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};