mediatek: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v2.dts
index f40e8e632b05d313b84c949ba3d03dc12c64ce7d..9fef3d67210b28c8e7af931e39081f97fe0712b0 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>;
-       };
-};