]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: use NVMEM for EEPROM/precal on NWA50AX Pro
authorZhi-Jun You <hujy652@protonmail.com>
Fri, 5 Sep 2025 04:33:33 +0000 (12:33 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 10 Sep 2025 20:57:49 +0000 (22:57 +0200)
Convert NWA50AX Pro to use NVMEM framework for EEPROM/precal.

Signed-off-by: Zhi-Jun You <hujy652@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/19982
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/dts/mt7981b-zyxel-nwa50ax-pro.dts

index c3c325560c141d2e3c174f7452f45b5cb77a01c9..dc22046262fc1c798e994173de5449a6f802e530 100644 (file)
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x1000>;
+                                       };
+
+                                       precal_factory_1010: precal@1010 {
+                                               reg = <0x1010 0x6f010>;
+                                       };
+
                                        macaddr: macaddr@a {
                                                reg = <0xa 0x6>;
                                        };
 };
 
 &wifi {
+       nvmem-cells = <&eeprom_factory_0>, <&precal_factory_1010>;
+       nvmem-cell-names = "eeprom", "precal";
        status = "okay";
-
-       mediatek,mtd-eeprom = <&factory 0x0>;
 };