ramips: fix mtd partition node names for Phicomm PSG1208
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_aztech_hw550-3g.dts
index 918b78be53dfe0ffdf8d1c6688c5cc9bcbf3530f..c547c9df69a32ac67e70f0b4acc4863a4638ab3f 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                usb {
-                       label = "hw550-3g:green:usb";
+                       label = "green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&otg_port1>;
                        linux,default-trigger = "usbport";
                };
 
                3g {
-                       label = "hw550-3g:green:3g";
+                       label = "green:3g";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                led_status: status {
-                       label = "hw550-3g:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "hw550-3g:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};