Before the env-size property was introduced, the solution was to wrap
the nvmem-layout in a correctly sized partition.
Remove now that it's not needed.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22367
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
compatible = "qcom,smem-part";
partition-0-appsblenv {
- compatible = "fixed-partitions";
label = "0:appsblenv";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "env-data";
- reg = <0x0 0x40000>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+ env-size = <0x40000>;
- nvmem-layout {
- compatible = "u-boot,env";
-
- macaddr_appsblenv_ethaddr: ethaddr {
- compatible = "mac-base";
- #nvmem-cell-cells = <1>;
- };
+ macaddr_appsblenv_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "qcom,smem-part";
partition-0-appsblenv {
- compatible = "fixed-partitions";
label = "0:appsblenv";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "env-data";
- reg = <0x0 0x40000>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+ env-size = <0x40000>;
- nvmem-layout {
- compatible = "u-boot,env";
-
- macaddr_appsblenv_ethaddr: ethaddr {
- compatible = "mac-base";
- #nvmem-cell-cells = <1>;
- };
+ macaddr_appsblenv_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "qcom,smem-part";
partition-0-appsblenv {
- compatible = "fixed-partitions";
label = "0:appsblenv";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "env-data";
- reg = <0x0 0x40000>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+ env-size = <0x40000>;
- nvmem-layout {
- compatible = "u-boot,env";
-
- macaddr_appsblenv_ethaddr: ethaddr {
- compatible = "mac-base";
- #nvmem-cell-cells = <1>;
- };
+ macaddr_appsblenv_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "qcom,smem-part";
partition-0-appsblenv {
- compatible = "fixed-partitions";
label = "0:appsblenv";
read-only;
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "env-data";
- reg = <0x0 0x40000>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+ env-size = <0x40000>;
- nvmem-layout {
- compatible = "u-boot,env";
-
- macaddr_ubootenv_ethaddr: ethaddr {
- };
+ macaddr_ubootenv_ethaddr: ethaddr {
};
};
};
compatible = "qcom,smem-part";
partition-0-appsblenv {
- compatible = "fixed-partitions";
label = "0:appsblenv";
read-only;
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "env-data";
- reg = <0x0 0x40000>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+ env-size = <0x40000>;
- nvmem-layout {
- compatible = "u-boot,env";
-
- macaddr_appsblenv_ethaddr: ethaddr {
- };
+ macaddr_appsblenv_ethaddr: ethaddr {
};
};
};