2020-03-29 22:58:32

by Ryder Lee

[permalink] [raw]
Subject: [PATCH] arm64: dts: mt7622: add built-in Wi-Fi device nodes

From: Ryder Lee <[email protected]>

This enables built-in 802.11n Wi-Fi support. It's 2.4GHz only.

Signed-off-by: Ryder Lee <[email protected]>
---
.../boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 4 ++++
arch/arm64/boot/dts/mediatek/mt7622.dtsi | 11 +++++++++++
3 files changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
index 83e10591e0e5..d174ad214857 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -543,3 +543,7 @@
pinctrl-0 = <&watchdog_pins>;
status = "okay";
};
+
+&wmac {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
index 3f783348c66a..0b4de627f96e 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
@@ -506,3 +506,7 @@
pinctrl-0 = <&watchdog_pins>;
status = "okay";
};
+
+&wmac {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index dac51e98204c..03b14a5ab7f3 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -699,6 +699,17 @@
status = "disabled";
};

+ wmac: wmac@18000000 {
+ compatible = "mediatek,mt7622-wmac";
+ reg = <0 0x18000000 0 0x100000>;
+ interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
+
+ mediatek,infracfg = <&infracfg>;
+ status = "disabled";
+
+ power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
+ };
+
ssusbsys: ssusbsys@1a000000 {
compatible = "mediatek,mt7622-ssusbsys",
"syscon";
--
2.18.0


2020-04-02 22:20:41

by Matthias Brugger

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: mt7622: add built-in Wi-Fi device nodes



On 30/03/2020 00:53, Ryder Lee wrote:
> From: Ryder Lee <[email protected]>
>
> This enables built-in 802.11n Wi-Fi support. It's 2.4GHz only.
>
> Signed-off-by: Ryder Lee <[email protected]>

Queued for v5.7-next/dts64

Thanks!

> ---
> .../boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
> arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 4 ++++
> arch/arm64/boot/dts/mediatek/mt7622.dtsi | 11 +++++++++++
> 3 files changed, 19 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
> index 83e10591e0e5..d174ad214857 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
> @@ -543,3 +543,7 @@
> pinctrl-0 = <&watchdog_pins>;
> status = "okay";
> };
> +
> +&wmac {
> + status = "okay";
> +};
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
> index 3f783348c66a..0b4de627f96e 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
> @@ -506,3 +506,7 @@
> pinctrl-0 = <&watchdog_pins>;
> status = "okay";
> };
> +
> +&wmac {
> + status = "okay";
> +};
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> index dac51e98204c..03b14a5ab7f3 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> @@ -699,6 +699,17 @@
> status = "disabled";
> };
>
> + wmac: wmac@18000000 {
> + compatible = "mediatek,mt7622-wmac";
> + reg = <0 0x18000000 0 0x100000>;
> + interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
> +
> + mediatek,infracfg = <&infracfg>;
> + status = "disabled";
> +
> + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
> + };
> +
> ssusbsys: ssusbsys@1a000000 {
> compatible = "mediatek,mt7622-ssusbsys",
> "syscon";
>