diff mbox series

[v2] arm64: dts: mt7622: add ePA/eLNA pinmux for built-in WiFi

Message ID 641c5e40f54e7c9c8eaa6be398d7169445b6fede.1617006498.git.ryder.lee@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [v2] arm64: dts: mt7622: add ePA/eLNA pinmux for built-in WiFi | expand

Commit Message

Ryder Lee March 29, 2021, 5:24 p.m. UTC
This just illustrates one of possible combinations. User should setup
the corresponding pins according to the onboard RF data that stores
in eeprom.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
change since v2 - add pinctrl-names = "default"
---
 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Matthias Brugger March 30, 2021, 9:49 a.m. UTC | #1
On 29/03/2021 19:24, Ryder Lee wrote:
> This just illustrates one of possible combinations. User should setup
> the corresponding pins according to the onboard RF data that stores
> in eeprom.
> 
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>

applied to v5.12-next/dts64
Thanks!

> ---
> change since v2 - add pinctrl-names = "default"
> ---
>  arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
> index 08ad0ffb24df..f2dc850010f1 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
> @@ -495,6 +495,16 @@
>  			groups = "watchdog";
>  		};
>  	};
> +
> +	wmac_pins: wmac-pins {
> +		mux {
> +			function = "antsel";
> +			groups = "antsel0", "antsel1", "antsel2", "antsel3",
> +				 "antsel4", "antsel5", "antsel6", "antsel7",
> +				 "antsel8", "antsel9", "antsel12", "antsel13",
> +				 "antsel14", "antsel15", "antsel16", "antsel17";
> +		};
> +	};
>  };
>  
>  &pwm {
> @@ -559,5 +569,7 @@
>  };
>  
>  &wmac {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&wmac_pins>;
>  	status = "okay";
>  };
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
index 08ad0ffb24df..f2dc850010f1 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
@@ -495,6 +495,16 @@ 
 			groups = "watchdog";
 		};
 	};
+
+	wmac_pins: wmac-pins {
+		mux {
+			function = "antsel";
+			groups = "antsel0", "antsel1", "antsel2", "antsel3",
+				 "antsel4", "antsel5", "antsel6", "antsel7",
+				 "antsel8", "antsel9", "antsel12", "antsel13",
+				 "antsel14", "antsel15", "antsel16", "antsel17";
+		};
+	};
 };
 
 &pwm {
@@ -559,5 +569,7 @@ 
 };
 
 &wmac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&wmac_pins>;
 	status = "okay";
 };