-/dts-v1/;
-
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
compatible = "gpio-leds";
wan {
- label = "keenetic-omni-ii:green:wan";
+ label = "green:wan";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
usb {
- label = "keenetic-omni-ii:green:usb";
+ label = "green:usb";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
wifi {
- label = "keenetic-omni-ii:green:wifi";
+ label = "green:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
led_power: power {
- label = "keenetic-omni-ii:green:power";
+ label = "green:power";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
};
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};