[openwrt/openwrt] bmips: huawei-hg556a-c: use nvmem for wifi eeprom

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 8 08:28:46 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/72f43ac220616fbd2f9658b9b60a861e8565a998

commit 72f43ac220616fbd2f9658b9b60a861e8565a998
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat Dec 6 13:14:03 2025 -0800

    bmips: huawei-hg556a-c: use nvmem for wifi eeprom
    
    The ralink custom property is deprecated and only kept around for
    byteswap capability.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21058
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts b/target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts
index 2c948da6d7..5133e72476 100644
--- a/target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts
+++ b/target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts
@@ -38,16 +38,26 @@
 	};
 };
 
+&cal_data {
+	nvmem-layout {
+		compatible = "fixed-layout";
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		cal_data_1fe00: calibration at 1fe00 {
+			reg = <0x1fe00 0x200>;
+		};
+	};
+};
+
 &pci {
 	status = "okay";
 
 	wifi at 1,0 {
-		compatible = "pci0,0";
+		compatible = "pci1814,3062";
 		reg = <0x0800 0 0 0 0>;
 
-		ralink,mtd-eeprom = <&cal_data 0x1fe00>;
-
-		nvmem-cells = <&macaddr_cfe_6a0 1>;
-		nvmem-cell-names = "mac-address";
+		nvmem-cells = <&cal_data_1fe00>, <&macaddr_cfe_6a0 1>;
+		nvmem-cell-names = "calibration", "mac-address";
 	};
 };




More information about the lede-commits mailing list