* around for bad block management
*/
label = "u-boot-env";
- compatible = "u-boot,env";
reg = <0x00150000 0x00010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@160000 {
partition@100000 {
label = "u-boot-env";
reg = <0x00100000 0x00100000>;
- compatible = "u-boot,env";
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@200000 {
};
partition@100000 {
- compatible = "u-boot,env";
label = "u-boot-env";
reg = <0x00100000 0x0004000>;
read-only;
- ethaddr {
- };
+ nvmem-layout {
+ compatible = "u-boot,env";
- bootcmd {
- };
+ ethaddr {
+ };
- serno {
- };
+ bootcmd {
+ };
- ProductID {
- };
+ serno {
+ };
+
+ ProductID {
+ };
- HardwareVer {
+ HardwareVer {
+ };
};
};
partition@40000 {
label = "u-boot-env-main";
- compatible = "u-boot,env-redundant-count";
reg = <0x00040000 0x20000>; /* one block is 128k */
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env-redundant-count";
+ };
};
/*
*
* partition@60000 {
* label = "u-boot-env-redundant";
- * compatible = "u-boot,env-redundant-count";
* reg = <0x00060000 0x20000>;
* read-only;
+ *
+ * nvmem-layout {
+ * compatible = "u-boot,env-redundant-count";
+ * };
* };
*/
};
#size-cells = <1>;
partition@0 {
- compatible = "u-boot,env-redundant-bool";
reg = <0x00000000 0x00001000>;
label = "u-boot-env-1";
- ethaddr {
+ nvmem-layout {
+ compatible = "u-boot,env-redundant-bool";
+
+ ethaddr {
+ };
};
};
* Causes the following warning: * sysfs: cannot create duplicate filename '/bus/nvmem/devices/u-boot-env0'
*
* partition@1000 {
- * compatible = "u-boot,env-redundant-bool";
* reg = <0x00001000 0x00001000>;
* label = "u-boot-env-2";
*
+ * nvmem-layout {
+ * compatible = "u-boot,env-redundant-bool";
+ * };
* };
*/
};
};
partition@f80000 {
- compatible = "u-boot,env";
reg = <0xf80000 0x40000>;
label = "u-boot-env";
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
board_data: partition@fc0000 {
};
partition@f80000 {
- compatible = "u-boot,env";
reg = <0xf80000 0x40000>;
label = "u-boot-env";
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
board_data: partition@fc0000 {
};
partition@f40000 {
- compatible = "u-boot,env";
label = "u-boot-env";
reg = <0xf40000 0x040000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
board_data: partition@f80000 {
};
partition@40000 {
- compatible = "u-boot,env";
label = "u-boot-env";
reg = <0x040000 0x010000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@50000 {
};
partition@40000 {
- compatible = "u-boot,env";
label = "u-boot-env"; // vendor calls it `bdcfg`
reg = <0x040000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@50000 {
read-only;
};
- bdcfg: partition@40000 {
- compatible = "u-boot,env";
+ partition@40000 {
label = "bdcfg";
reg = <0x040000 0x010000>;
+
+ bdcfg: nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@50000 {
};
partition@60000 {
- compatible = "u-boot,env";
label = "u-boot-env";
reg = <0x060000 0x010000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@70000 {
reg = <0x190000 0x1dc0000>;
};
partition9@1f50000 {
- compatible = "u-boot,env";
label = "u-boot-env";
reg = <0x01f50000 0x00010000>;
- macaddr_ubootenv_ethaddr: ethaddr {
- #nvmem-cell-cells = <1>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_ubootenv_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
+ };
};
};
partition10@1f60000 {
partition@e0000 {
label = "CFG1";
- compatible = "u-boot,env-redundant-bool";
reg = <0xe0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env-redundant-bool";
+ };
};
partition@f0000 {
partition@1fe0000 {
label = "CFG2";
- compatible = "u-boot,env-redundant-bool";
reg = <0x1fe0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env-redundant-bool";
+ };
};
};
};
partitions {
block-partition-u-boot-env {
partname = "u-boot-env";
+
nvmem-layout {
compatible = "u-boot,env";
};
partitions {
block-partition-env {
partname = "ubootenv";
+
nvmem-layout {
compatible = "u-boot,env";
};
partitions {
block-partition-env {
partname = "ubootenv";
+
nvmem-layout {
compatible = "u-boot,env";
};
/* Empty space on NOR repurposed for U-Boot environment */
partition@fe0000 {
- compatible = "u-boot,env";
label = "u-boot-env";
reg = <0xfe0000 0x20000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
};
};
};
partition@510000 {
- compatible = "u-boot,env";
label = "0:APPSBLENV";
reg = <0x510000 0x10000>;
- ethaddr: ethaddr {
- #nvmem-cell-cells = <0>;
- };
+ nvmem-layout {
+ compatible = "u-boot,env";
- eth1addr: eth1addr {
- #nvmem-cell-cells = <0>;
- };
+ ethaddr: ethaddr {
+ #nvmem-cell-cells = <0>;
+ };
- eth2addr: eth2addr {
- #nvmem-cell-cells = <0>;
- };
+ eth1addr: eth1addr {
+ #nvmem-cell-cells = <0>;
+ };
+
+ eth2addr: eth2addr {
+ #nvmem-cell-cells = <0>;
+ };
- eth5addr: eth5addr {
- #nvmem-cell-cells = <0>;
+ eth5addr: eth5addr {
+ #nvmem-cell-cells = <0>;
+ };
};
};
};
partition@480000 {
- compatible = "u-boot,env";
label = "0:appsblenv";
reg = <0x480000 0x10000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@490000 {
#size-cells = <1>;
partition@0 {
- compatible = "u-boot,env";
label = "env-data";
reg = <0x0 0x40000>;
- macaddr_ubootenv_ethaddr: ethaddr {};
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_ubootenv_ethaddr: ethaddr {
+ };
+ };
};
};
};
};
partition@600000 {
- compatible = "u-boot,env";
label = "0:appsblenv";
reg = <0x600000 0x10000>;
- macaddr_lan: ethaddr {
- #nvmem-cell-cells = <1>;
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_lan: ethaddr {
+ #nvmem-cell-cells = <1>;
+ };
};
};
#size-cells = <1>;
partition@0 {
- compatible = "u-boot,env";
label = "env-data";
reg = <0x0 0x40000>;
- macaddr_appsblenv_ethaddr: ethaddr {
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_appsblenv_ethaddr: ethaddr {
+ };
};
};
};
};
partition@40000 {
- compatible = "u-boot,env";
label = "Config";
reg = <0x40000 0x10000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+ };
};
partition@50000 {