ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350_dlink_dir-610-a1.dts
index bb9950a5f0baa328b15348e63b63f36800bd18e5..7467900e4268a08bbec24937664a9adb44586de6 100644 (file)
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "dir-610-a1:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "dir-610-a1:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
                                label = "devdata";
                                reg = <0x30000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_devdata_4000: eeprom@4000 {
+                                               reg = <0x4000 0x200>;
+                                       };
+
+                                       macaddr_devdata_4004: macaddr@4004 {
+                                               reg = <0x4004 0x6>;
+                                       };
+                               };
                        };
 
                        factory: partition@40000 {
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x4004>;
+       nvmem-cells = <&macaddr_devdata_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       status = "okay";
        ralink,led-polarity = <1>;
-       ralink,mtd-eeprom = <&devdata 0x4000>;
+       nvmem-cells = <&eeprom_devdata_4000>;
+       nvmem-cell-names = "eeprom";
 };