ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_jcg_jhr-n926r.dts
index 9a23ee63dae90aa3dd69034b21a40ceda309691d..6573159985e40cdd10066e0daa6a82b2be01efd9 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -16,7 +14,7 @@
                led-upgrade = &led_system;
        };
 
-       cfi@1f000000 {
+       flash@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                bank-width = <2>;
                compatible = "gpio-leds";
 
                wlan1 {
-                       label = "jhr-n926r:red:wlan";
+                       label = "red:wlan";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
-                       label = "jhr-n926r:yellow:wlan";
+                       label = "yellow:wlan";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
 
                wlan3 {
-                       label = "jhr-n926r:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                led_system: system {
-                       label = "jhr-n926r:blue:system";
+                       label = "blue:system";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
 };