The former is deprecated in favor of nvmem-layout. In preparation for
eventual removal from the kernel, do so here.
Some of these are leftovers from nvmem-layout conversion.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16097
Signed-off-by: Robert Marko <robimarko@gmail.com>
reg = <0xff0000 0x10000>;
read-only;
- compatible = "nvmem-cells";
-
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
};
};
- config1: partition@1C0000 {
- compatible = "nvmem-cells";
+ partition@1C0000 {
label = "Config1";
reg = <0x001C0000 0x00080000>;
read-only;
};
partition@180000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x180000 0x100000>;
read-only;
reg = <0x180000 0x200000>;
read-only;
- compatible = "nvmem-cells";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
};
partition@180000 {
- compatible = "nvmem-cells";
reg = <0x180000 0x200000>;
label = "factory";
read-only;
};
};
};
-@@ -273,3 +282,17 @@
+@@ -273,3 +282,19 @@
pinctrl-0 = <&watchdog_pins>;
status = "okay";
};
+
+&factory {
-+ compatible = "nvmem-cells";
-+ #address-cells = <1>;
-+ #size-cells = <1>;
++ nvmem-layout {
++ compatible = "fixed-layout";
++ #address-cells = <1>;
++ #size-cells = <1>;
+
-+ macaddr_factory_24: macaddr@24 {
-+ reg = <0x24 0x6>;
-+ };
++ macaddr_factory_24: macaddr@24 {
++ reg = <0x24 0x6>;
++ };
+
-+ macaddr_factory_2a: macaddr@2a {
-+ reg = <0x2a 0x6>;
++ macaddr_factory_2a: macaddr@2a {
++ reg = <0x2a 0x6>;
++ };
+ };
+};
};
&pinctrl {
-@@ -259,48 +280,52 @@
+@@ -259,48 +280,50 @@
reg = <0>; /* Chip select 0 */
spi-max-frequency = <20000000>;
+ label = "vendor";
+ read-only;
+
-+ compatible = "nvmem-cells";
-+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
};
partition@360000 {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
label = "0:ART";
reg = <0x00360000 0x00040000>;
- macaddr_eth0: macaddr@0 {
- reg = <0x0 0x6>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- macaddr_eth1: macaddr@6 {
- reg = <0x6 0x6>;
- };
+ macaddr_eth0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_eth1: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
- macaddr_eth2: macaddr@c {
- reg = <0xc 0x6>;
+ macaddr_eth2: macaddr@c {
+ reg = <0xc 0x6>;
+ };
};
};
label = "0:ethphyfw1";
reg = <0x3b0000 0x80000>;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- aqr0_fw: firmware@0 {
- reg = <0x0 0x5fc02>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ aqr0_fw: firmware@0 {
+ reg = <0x0 0x5fc02>;
+ };
};
};
label = "0:ethphyfw2";
reg = <0x430000 0x80000>;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- aqr1_fw: firmware@0 {
- reg = <0x0 0x5fc02>;
+ aqr1_fw: firmware@0 {
+ reg = <0x0 0x5fc02>;
+ };
};
};
};
partition@40000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
read-only;