ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt5350_hame_mpr-a1.dts
index ad169f67299dd471b9a5cc681c1276f1a20b9046..9a9580a3fba06c81d0d28dec33d44377fedb3b50 100644 (file)
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "mpr-a1:blue:system";
+                       label = "blue:system";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                power {
-                       label = "mpr-a1:red:power";
+                       label = "red:power";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
        };
 };
 
-&gpio1 {
-       status = "okay";
-};
-
 &state_default {
        gpio {
                groups = "i2c", "jtag", "uartf", "led";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&ehci {
-       status = "okay";
-};
-
-&ohci {
-       status = "okay";
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };