mediatek: convert to nvmem-layout
[openwrt/staging/blocktrron.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v3.dts
index 34bdaa6254af554169397c6db9e900ff5d35b27f..71ee9f0ceca00753a9db64399744ff419b0cda18 100644 (file)
                label = "eeprom";
                reg = <0x110000 0x10000>;
                read-only;
+
+               nvmem-layout {
+                       compatible = "fixed-layout";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       macaddr_eeprom_0: macaddr@0 {
+                               reg = <0x0 0x6>;
+                       };
+
+                       macaddr_eeprom_6: macaddr@6 {
+                               reg = <0x6 0x6>;
+                       };
+               };
        };
 
        partition@120000 {
        nvmem-cells = <&macaddr_eeprom_0>;
        nvmem-cell-names = "mac-address";
 };
-
-&eeprom {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_eeprom_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-
-       macaddr_eeprom_6: macaddr@6 {
-               reg = <0x6 0x6>;
-       };
-};