ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_dlink_dap-1522-a1.dts
index acb723eff7847e42e8433e65f80fe51ac936d268..ff714d12730bf8b5a33a88c37f4dc8e7cec30556 100644 (file)
                compatible = "gpio-leds";
 
                wps {
-                       label = "dap-1522-a1:blue:wps";
+                       label = "blue:wps";
                        gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
                };
 
                ap {
-                       label = "dap-1522-a1:blue:ap";
+                       label = "blue:ap";
                        gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
                };
 
                sta {
-                       label = "dap-1522-a1:red:sta";
+                       label = "red:sta";
                        gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                };
 
                led_status: status {
-                       label = "dap-1522-a1:blue:status";
+                       label = "blue:status";
                        gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &gpio2 {
        status = "okay";
 };
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x2004>;
+       nvmem-cells = <&macaddr_factory_2004>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <1000 1 1 1>;
 &wmac {
        ralink,mtd-eeprom = <&factory 0x2000>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2004: macaddr@2004 {
+               reg = <0x2004 0x6>;
+       };
+};