ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_bdcom_wap2100-sk.dts
index f7d2748d2e3329bc13949d596fa919a369bf9c22..b95a428656e6d72f4246de7103fa34f9c9b45e56 100644 (file)
                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";
 };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};