label = "romfs";
reg = <0xfd0000 0x010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_romfs_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+ };
};
partition@fe0000 {
nvmem-cells = <&macaddr_romfs_f100>;
nvmem-cell-names = "mac-address";
};
-
-&romfs {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_romfs_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};