1
0
Fork 0
forked from mirror/openwrt

mediatek: filogic: use nvmem for Unifi 6 Plus caldata

Replace the hotplug script with nvmem now that loading data from emmc
partitions is supported.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/20154
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Bjørn Mork 2025-09-25 07:29:19 +02:00 committed by Hauke Mehrtens
parent 78257d8fe8
commit 88bf53f5af
2 changed files with 29 additions and 3 deletions

View file

@ -153,6 +153,33 @@
vmmc-supply = <&reg_3p3v>;
non-removable;
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
card@0 {
compatible = "mmc-card";
reg = <0>;
block {
compatible = "block-device";
partitions {
block-partition-factory {
partname = "factory";
nvmem: nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x1000>;
};
};
};
};
};
};
};
&eth {
@ -171,6 +198,8 @@
};
&wifi {
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

View file

@ -16,9 +16,6 @@ case "$FIRMWARE" in
tplink,fr365-v1)
ln -sf /tmp/wlan/radio /lib/firmware/$FIRMWARE
;;
ubnt,unifi-6-plus)
caldata_extract_mmc "factory" 0x0 0x1000
;;
esac
;;
"mediatek/mt7986_eeprom_mt7975_dual.bin")