[openwrt/openwrt] mediatek: update NVMEM bindings for Buffalo WSR-2533DHP2

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 3 06:38:22 PST 2024


dangole pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/7e47913ef66fc01337f8b909c4b5811deee2cf85

commit 7e47913ef66fc01337f8b909c4b5811deee2cf85
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Sun Aug 27 15:10:53 2023 +0900

    mediatek: update NVMEM bindings for Buffalo WSR-2533DHP2
    
    Update NVMEM-related nodes and use newer binding for MAC addresses on
    Buffalo WSR-2533DHP2.
    
    Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
    (cherry picked from commit de62e0165264fb2872e87116ddceb8c7e12c5a5a)
---
 .../mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts   | 26 ++++++++++++----------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
index fec559c8af..9a44152a91 100644
--- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
+++ b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
@@ -229,9 +229,8 @@
 
 		phy-connection-type = "2500base-x";
 
-		nvmem-cells = <&macaddr_factory_4>;
+		nvmem-cells = <&macaddr_factory_4 (-1)>;
 		nvmem-cell-names = "mac-address";
-		mac-address-increment = <(-1)>;
 
 		fixed-link {
 			speed = <2500>;
@@ -284,9 +283,22 @@
 			};
 
 			factory: partition at 1c0000 {
+				compatible = "nvmem-cells";
 				label = "factory";
 				reg = <0x1c0000 0x40000>;
 				read-only;
+
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					macaddr_factory_4: macaddr at 4 {
+						compatible = "mac-base";
+						reg = <0x4 0x6>;
+						#nvmem-cell-cells = <1>;
+					};
+				};
 			};
 
 			partition at 200000 {
@@ -349,13 +361,3 @@
 &rtc {
 	status = "disabled";
 };
-
-&factory {
-	compatible = "nvmem-cells";
-	#address-cells = <1>;
-	#size-cells = <1>;
-
-	macaddr_factory_4: macaddr at 4 {
-		reg = <0x4 0x6>;
-	};
-};




More information about the lede-commits mailing list