ramips: fix mtd partition node names for Phicomm PSG1208
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_aztech_hw550-3g.dts
index 4541f99464b0b1a2da79f60258ba87196de0e31e..c547c9df69a32ac67e70f0b4acc4863a4638ab3f 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -16,7 +14,7 @@
                led-upgrade = &led_status;
        };
 
-       cfi@1f000000 {
+       flash@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                bank-width = <2>;
                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 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
 };
 
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};