ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_tplink_archer-c6u-v1.dts
index 7d38b7b0968df4e56666ff662bbbb54beea8211c..93ceeb08f4cfa6a67e1861ef8d17425a5b380e62 100644 (file)
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 0x0>;
-               mtd-mac-address = <&config 0x8>;
+               nvmem-cells = <&macaddr_config_8>;
+               nvmem-cell-names = "mac-address";
                ieee80211-freq-limit = <2400000 2500000>;
        };
 };
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 0x8000>;
-               mtd-mac-address = <&config 0x8>;
-               mtd-mac-address-increment = <(-1)>;
+               nvmem-cells = <&macaddr_config_8>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <(-1)>;
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
 };
 
 &gmac0 {
-       mtd-mac-address = <&config 0x8>;
+       nvmem-cells = <&macaddr_config_8>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&config 0x8>;
-                       mtd-mac-address-increment = <1>;
+                       nvmem-cells = <&macaddr_config_8>;
+                       nvmem-cell-names = "mac-address";
+                       mac-address-increment = <1>;
                };
 
                port@1 {
 &xhci {
        vbus-supply = <&reg_usb_vbus>;
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};