ramips: fix frequency limit property for some Edimax devices
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_zbtlink_zbt-we2026.dts
index d547923b48e354fad5421e0af778051eedad195a..acf3501f90365991f150e7ed555102208ef82572 100644 (file)
                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>;
                };
        };
                        };
 
                        factory: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
+
+                               macaddr_factory_4: macaddr@4 {
+                                       reg = <0x4 0x6>;
+                               };
                        };
 
                        partition@50000 {
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       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 {