lantiq: arv7525pw: use nvmem for eeprom
authorRosen Penev <rosenp@gmail.com>
Tue, 6 Aug 2024 01:18:49 +0000 (18:18 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 12 Aug 2024 19:01:34 +0000 (21:01 +0200)
NVMEM is the upstream replacement for this. ralink,mtd-eeprom is
deprecated. The others need to stay as there's byte swapping going on.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16084
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7525pw.dts

index 890eac972dd22cb32e6acdc288031add8bee7ca6..5315f3723ed048dbbf11dcbd7e7dad8991c9a6e9 100644 (file)
                                        macaddr_boardconfig_16: macaddr@16 {
                                                reg = <0x16 0x6>;
                                        };
+
+                                       eeprom_boardconfig_410: eeprom@410 {
+                                               reg = <0x410 0x200>;
+                                       };
                                };
                        };
                };
        wifi@0,0 {
                compatible = "pci0,0";
                reg = <0x7000 0 0 0 0>;
-               ralink,mtd-eeprom = <&boardconfig 0x410>;
+               nvmem-cells = <&eeprom_boardconfig_410>;
+               nvmem-cell-names = "eeprom";
        };
 };