ramips: sercomm s1500: enable wlan LEDs activity blinking
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_zbtlink_zbt-we2026.dts
index f293082e967a660f3faeab2125a8fb2d0f6bc102..7000447c6ce5e20b521ff07de4c9b7f6b0cf14c9 100644 (file)
@@ -1,10 +1,8 @@
-/dts-v1/;
+#include "mt7620n.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "mt7620n.dtsi"
-
 / {
        compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WE2026";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "zbt-we2026:red:power";
+                       label = "red:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "zbt-we2026:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
-       mediatek,portmap = "wllll";
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+
+       mediatek,portmap = "llllw";
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &state_default {