ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / rt3052_hauppauge_broadway.dts
index 55db04ff018b8abc2ad7343866af9dcfabbfba1d..9d5d4ceb1e96e90436135a209807d5cabeccd97b 100644 (file)
                compatible = "gpio-leds";
 
                diskmounted {
-                       label = "broadway:red:diskmounted";
+                       label = "red:diskmounted";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&otg_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wps_active {
-                       label = "broadway:red:wps_active";
+                       label = "red:wps_active";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
@@ -80,7 +80,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};