[openwrt/openwrt] lantiq: use nvmem for fritz 736x
LEDE Commits
lede-commits at lists.infradead.org
Mon Dec 23 14:47:14 PST 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e85b1afe6e49b03fad13145a3fdd4cc7e45c27f7
commit e85b1afe6e49b03fad13145a3fdd4cc7e45c27f7
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Mon Dec 16 15:42:19 2024 -0800
lantiq: use nvmem for fritz 736x
Two use AR9287 and one AR9381. Both have different calibration sizes.
Move differences out of wifi node to make it clearer what's what.
qca,no-eeprom needs to stay for 7362sl as there's no nvmem equivalent
for caldata_extract_reverse
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17278
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts | 4 ++--
.../files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts | 10 ++++++++++
.../files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts | 5 +++++
.../files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi | 4 +---
.../xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 3 ---
5 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts
index cc15324b56..1b41405062 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts
@@ -49,7 +49,7 @@
#size-cells = <1>;
cal_urlader_985: cal at 985 {
- reg = <0x985 0x440>;
+ reg = <0x985 0x3d8>;
};
macaddr_urlader_a91: macaddr at a91 {
@@ -94,7 +94,7 @@
};
&wifi {
- /delete-property/ qca,no-eeprom;
+ compatible = "pci168c,002e";
nvmem-cells = <&cal_urlader_985>;
nvmem-cell-names = "calibration";
};
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts
index cbe6c14c99..9301b049ca 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts
@@ -49,6 +49,10 @@
#address-cells = <1>;
#size-cells = <1>;
+ cal_urlader_985: cal at 985 {
+ reg = <0x985 0x3d8>;
+ };
+
macaddr_urlader_a91: macaddr at a91 {
compatible = "mac-base";
reg = <0xa91 0x6>;
@@ -89,3 +93,9 @@
&phy1 {
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
+
+&wifi {
+ compatible = "pci168c,002e";
+ nvmem-cells = <&cal_urlader_985>;
+ nvmem-cell-names = "calibration";
+};
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
index 7929bde6cf..e1334fa306 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
@@ -127,3 +127,8 @@
&phy1 {
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
+
+&wifi {
+ compatible = "pci168c,0030";
+ qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
+};
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi
index e7fc9a4f55..cc0c97da89 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi
@@ -155,10 +155,8 @@
#address-cells = <2>;
device_type = "pci";
- wifi: wifi at 168c,002e {
- compatible = "pci168c,002e";
+ wifi: wifi at 0,0 {
reg = <0 0 0 0 0>;
- qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
};
};
};
diff --git a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
index 164e2d39ca..936181c693 100644
--- a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
+++ b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
@@ -19,9 +19,6 @@ case "$FIRMWARE" in
avm,fritz3390)
caldata_extract_reverse "urlader" 0x2546 0x440
;;
- avm,fritz7360sl)
- caldata_extract "urlader" 0x985 0x1000
- ;;
avm,fritz7412|\
avm,fritz7430)
/usr/bin/fritz_cal_extract -i 1 -s 0x1e000 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader") || \
More information about the lede-commits
mailing list