diff mbox series

[OpenWrt-Devel] ramips: switch DIR-860L B1 DTS to generic wireless naming convention.

Message ID 20200531104916.6041-1-foss@volatilesystems.org
State Changes Requested
Delegated to: Petr Štetiar
Headers show
Series [OpenWrt-Devel] ramips: switch DIR-860L B1 DTS to generic wireless naming convention. | expand

Commit Message

Stijn Segers May 31, 2020, 10:49 a.m. UTC
Switches the DIR-860L B1 DTS to the generic wifi naming convention.

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
---
 target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Comments

Adrian Schmutzler May 31, 2020, 11:52 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces@lists.openwrt.org]
> On Behalf Of Stijn Segers
> Sent: Sonntag, 31. Mai 2020 12:49
> To: openwrt-devel@lists.openwrt.org
> Subject: [OpenWrt-Devel] [PATCH] ramips: switch DIR-860L B1 DTS to generic
> wireless naming convention.
> 
> Switches the DIR-860L B1 DTS to the generic wifi naming convention.
> 
> Signed-off-by: Stijn Segers <foss@volatilesystems.org>
> ---
>  target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> index ce747deb28..336e696fe9 100644
> --- a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> +++ b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> @@ -152,17 +152,19 @@
>  };
> 
>  &pcie0 {
> -	wifi0: mt76@0,0 {
> +	wifi@0,0 {
> +		compatible = "mediatek,mt76";
>  		reg = <0x0000 0 0 0 0>;
> -		mediatek,mtd-eeprom = <&radio 0x2000>;
> +		mediatek,mtd-eeprom = <&factory 0x2000>;

This changes the referenced partition node, so you are now reading from a
different location in flash.
I doubt that the calibration data is stored twice on this device? (And even
then, it would make more sense to read from radio ...)

Best

Adrian

>  		ieee80211-freq-limit = <5000000 6000000>;
>  	};
>  };
> 
>  &pcie1 {
> -	wifi1: mt76@0,0 {
> +	wifi@0,0 {
> +		compatible = "mediatek,mt76";
>  		reg = <0x0000 0 0 0 0>;
> -		mediatek,mtd-eeprom = <&radio 0x0>;
> +		mediatek,mtd-eeprom = <&factory 0x0000>;
>  		ieee80211-freq-limit = <2400000 2500000>;
>  	};
>  };
> --
> 2.20.1
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
index ce747deb28..336e696fe9 100644
--- a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
+++ b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
@@ -152,17 +152,19 @@ 
 };
 
 &pcie0 {
-	wifi0: mt76@0,0 {
+	wifi@0,0 {
+		compatible = "mediatek,mt76";
 		reg = <0x0000 0 0 0 0>;
-		mediatek,mtd-eeprom = <&radio 0x2000>;
+		mediatek,mtd-eeprom = <&factory 0x2000>;
 		ieee80211-freq-limit = <5000000 6000000>;
 	};
 };
 
 &pcie1 {
-	wifi1: mt76@0,0 {
+	wifi@0,0 {
+		compatible = "mediatek,mt76";
 		reg = <0x0000 0 0 0 0>;
-		mediatek,mtd-eeprom = <&radio 0x0>;
+		mediatek,mtd-eeprom = <&factory 0x0000>;
 		ieee80211-freq-limit = <2400000 2500000>;
 	};
 };