mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
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@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17278 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
d3f8b1cf17
commit
e85b1afe6e
@ -49,7 +49,7 @@
|
|||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
cal_urlader_985: cal@985 {
|
cal_urlader_985: cal@985 {
|
||||||
reg = <0x985 0x440>;
|
reg = <0x985 0x3d8>;
|
||||||
};
|
};
|
||||||
|
|
||||||
macaddr_urlader_a91: macaddr@a91 {
|
macaddr_urlader_a91: macaddr@a91 {
|
||||||
@ -94,7 +94,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&wifi {
|
&wifi {
|
||||||
/delete-property/ qca,no-eeprom;
|
compatible = "pci168c,002e";
|
||||||
nvmem-cells = <&cal_urlader_985>;
|
nvmem-cells = <&cal_urlader_985>;
|
||||||
nvmem-cell-names = "calibration";
|
nvmem-cell-names = "calibration";
|
||||||
};
|
};
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
cal_urlader_985: cal@985 {
|
||||||
|
reg = <0x985 0x3d8>;
|
||||||
|
};
|
||||||
|
|
||||||
macaddr_urlader_a91: macaddr@a91 {
|
macaddr_urlader_a91: macaddr@a91 {
|
||||||
compatible = "mac-base";
|
compatible = "mac-base";
|
||||||
reg = <0xa91 0x6>;
|
reg = <0xa91 0x6>;
|
||||||
@ -89,3 +93,9 @@
|
|||||||
&phy1 {
|
&phy1 {
|
||||||
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&wifi {
|
||||||
|
compatible = "pci168c,002e";
|
||||||
|
nvmem-cells = <&cal_urlader_985>;
|
||||||
|
nvmem-cell-names = "calibration";
|
||||||
|
};
|
||||||
|
@ -127,3 +127,8 @@
|
|||||||
&phy1 {
|
&phy1 {
|
||||||
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&wifi {
|
||||||
|
compatible = "pci168c,0030";
|
||||||
|
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
|
||||||
|
};
|
||||||
|
@ -155,10 +155,8 @@
|
|||||||
#address-cells = <2>;
|
#address-cells = <2>;
|
||||||
device_type = "pci";
|
device_type = "pci";
|
||||||
|
|
||||||
wifi: wifi@168c,002e {
|
wifi: wifi@0,0 {
|
||||||
compatible = "pci168c,002e";
|
|
||||||
reg = <0 0 0 0 0>;
|
reg = <0 0 0 0 0>;
|
||||||
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -19,9 +19,6 @@ case "$FIRMWARE" in
|
|||||||
avm,fritz3390)
|
avm,fritz3390)
|
||||||
caldata_extract_reverse "urlader" 0x2546 0x440
|
caldata_extract_reverse "urlader" 0x2546 0x440
|
||||||
;;
|
;;
|
||||||
avm,fritz7360sl)
|
|
||||||
caldata_extract "urlader" 0x985 0x1000
|
|
||||||
;;
|
|
||||||
avm,fritz7412|\
|
avm,fritz7412|\
|
||||||
avm,fritz7430)
|
avm,fritz7430)
|
||||||
/usr/bin/fritz_cal_extract -i 1 -s 0x1e000 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader") || \
|
/usr/bin/fritz_cal_extract -i 1 -s 0x1e000 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader") || \
|
||||||
|
Loading…
Reference in New Issue
Block a user