ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_buffalo_wli-tx4-ag300n.dts
index 51a508f60fd11be6e6c7f1d6e1bf3f062e10a325..1bab37fc5eac37e930b5d56986a92ca429990848 100644 (file)
                compatible = "gpio-leds";
 
                diag {
-                       label = "wli-tx4-ag300n:red:diag";
+                       label = "red:diag";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "wli-tx4-ag300n:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                security {
-                       label = "wli-tx4-ag300n:blue:security";
+                       label = "blue:security";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <100 1 1 1>;
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};