ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_iodata_wn-ac733gr3.dts
index 150be50d440f1a47a81029e0d812e5131a0c3544..9997e5cecf399d74b4e6711e5b05d5cd958e93a8 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "wn-ac733gr3:green:power";
+                       label = "green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                notification {
-                       label = "wn-ac733gr3:green:notification";
+                       label = "green:notification";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "wn-ac733gr3:green:wlan2g";
+                       label = "green:wlan2g";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
-                       label = "wn-ac733gr3:green:wlan5g";
+                       label = "green:wlan5g";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins>;
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@5 {
                status = "okay";
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};