Skip to content

Commit

Permalink
linux: replace nvmem-cells with nvmem-layout
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: openwrt/openwrt#16097
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
neheb authored and robimarko committed Dec 27, 2024
1 parent d6c5805 commit 648d070
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 42 deletions.
2 changes: 0 additions & 2 deletions target/linux/ath79/dts/qca9563_dlink_covr.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
reg = <0xff0000 0x10000>;
read-only;

compatible = "nvmem-cells";

nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@
};
};

config1: partition@1C0000 {
compatible = "nvmem-cells";
partition@1C0000 {
label = "Config1";
reg = <0x001C0000 0x00080000>;
read-only;
Expand Down
1 change: 0 additions & 1 deletion target/linux/mediatek/dts/mt7981b-openembed-som7981.dts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
};

partition@180000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x180000 0x100000>;
read-only;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
reg = <0x180000 0x200000>;
read-only;

compatible = "nvmem-cells";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
Expand Down
1 change: 0 additions & 1 deletion target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
};

partition@180000 {
compatible = "nvmem-cells";
reg = <0x180000 0x200000>;
label = "factory";
read-only;
Expand Down
20 changes: 11 additions & 9 deletions target/linux/mediatek/patches-6.6/101-dts-update-mt7629-rfb.patch
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,23 @@
};
};
};
@@ -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>;
+ };
+ };
+};
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
};

&pinctrl {
@@ -259,48 +280,52 @@
@@ -259,48 +280,50 @@
reg = <0>; /* Chip select 0 */
spi-max-frequency = <20000000>;

Expand Down Expand Up @@ -112,8 +112,6 @@
+ label = "vendor";
+ read-only;
+
+ compatible = "nvmem-cells";
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,22 +161,25 @@
};

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>;
};
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,25 +339,29 @@
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>;
};
};
};

partition@430000 {
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>;
};
};
};

Expand Down
1 change: 0 additions & 1 deletion target/linux/ramips/dts/mt7620a_bolt_bl100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
};

partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
read-only;
Expand Down

0 comments on commit 648d070

Please sign in to comment.