* [PATCH 1/3] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 @ 2024-09-01 12:21 Peter Robinson 2024-09-01 12:21 ` [PATCH 2/3] arm64: dts: allwinner: a64: Add WiFi/BT header on SoPine Peter Robinson 2024-09-01 12:21 ` [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 Peter Robinson 0 siblings, 2 replies; 6+ messages in thread From: Peter Robinson @ 2024-09-01 12:21 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, devicetree, linux-arm-kernel, linux-sunxi Cc: Peter Robinson This adds all the pin mappings on the WiFi/BT header on the original Pine64. They're disabled by default as the modules don't ship by default. This includes, where they haven't been already, UART1 for BT and mmc1 for WiFi. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 09e71fd60785..f04f0f1badc4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -35,6 +35,11 @@ hdmi_con_in: endpoint { }; }; }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &codec { @@ -124,6 +129,17 @@ &mmc0 { status = "okay"; }; +/* On Wifi/BT connector */ +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo4>; + vqmmc-supply = <®_eldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; +}; + &ohci0 { status = "okay"; }; @@ -286,6 +302,7 @@ &uart0 { &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "disabled"; }; -- 2.46.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] arm64: dts: allwinner: a64: Add WiFi/BT header on SoPine 2024-09-01 12:21 [PATCH 1/3] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 Peter Robinson @ 2024-09-01 12:21 ` Peter Robinson 2024-09-01 12:21 ` [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 Peter Robinson 1 sibling, 0 replies; 6+ messages in thread From: Peter Robinson @ 2024-09-01 12:21 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, devicetree, linux-arm-kernel, linux-sunxi Cc: Peter Robinson This adds all the pin mappings on the WiFi/BT header on the SoPine baseboard/A64-LTS. They're disabled by default as the modules don't ship by default. This includes, where they haven't been already, UART1 for BT and mmc1 for WiFi. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> --- .../allwinner/sun50i-a64-sopine-baseboard.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index be2347c8f267..752d2aae8465 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -42,6 +42,11 @@ reg_vcc1v8: vcc1v8 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &ac_power_supply { @@ -103,6 +108,17 @@ ext_rgmii_phy: ethernet-phy@1 { }; }; +/* On Wifi/BT connector */ +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo4>; + vqmmc-supply = <®_eldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; +}; + &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; @@ -175,6 +191,14 @@ &uart0 { status = "okay"; }; +/* On Wifi/BT connector, with RTS/CTS */ +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "disabled"; +}; + /* On Pi-2 connector */ &uart2 { pinctrl-names = "default"; -- 2.46.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 2024-09-01 12:21 [PATCH 1/3] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 Peter Robinson 2024-09-01 12:21 ` [PATCH 2/3] arm64: dts: allwinner: a64: Add WiFi/BT header on SoPine Peter Robinson @ 2024-09-01 12:21 ` Peter Robinson 2024-09-03 5:50 ` Icenowy Zheng 1 sibling, 1 reply; 6+ messages in thread From: Peter Robinson @ 2024-09-01 12:21 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, devicetree, linux-arm-kernel, linux-sunxi Cc: Peter Robinson Enable the rtl8723bs WiFi/BT modules on the Pine64. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index f04f0f1badc4..1d514859e664 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -138,6 +138,14 @@ &mmc1 { mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; + status = "okay"; + + rtl8723bs: wifi@1 { + reg = <1>; + interrupt-parent = <&r_pio>; + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ + interrupt-names = "host-wake"; + }; }; &ohci0 { @@ -303,7 +311,14 @@ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; uart-has-rtscts; - status = "disabled"; + status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ + }; }; /* On Pi-2 connector */ -- 2.46.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 2024-09-01 12:21 ` [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 Peter Robinson @ 2024-09-03 5:50 ` Icenowy Zheng 2024-09-03 8:08 ` Andre Przywara 0 siblings, 1 reply; 6+ messages in thread From: Icenowy Zheng @ 2024-09-03 5:50 UTC (permalink / raw) To: Peter Robinson, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, devicetree, linux-arm-kernel, linux-sunxi 在 2024-09-01星期日的 13:21 +0100,Peter Robinson写道: > Enable the rtl8723bs WiFi/BT modules on the Pine64. I think the maintainer previously prefer to enable these modules with DT overlays. > > Signed-off-by: Peter Robinson <pbrobinson@gmail.com> > --- > .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 > ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > index f04f0f1badc4..1d514859e664 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > @@ -138,6 +138,14 @@ &mmc1 { > mmc-pwrseq = <&wifi_pwrseq>; > bus-width = <4>; > non-removable; > + status = "okay"; > + > + rtl8723bs: wifi@1 { > + reg = <1>; > + interrupt-parent = <&r_pio>; > + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ > + interrupt-names = "host-wake"; > + }; > }; > > &ohci0 { > @@ -303,7 +311,14 @@ &uart1 { > pinctrl-names = "default"; > pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; > uart-has-rtscts; > - status = "disabled"; > + status = "okay"; > + > + bluetooth { > + compatible = "realtek,rtl8723bs-bt"; > + device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* > PL6 */ > + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 > */ > + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* > PL5 */ > + }; > }; > > /* On Pi-2 connector */ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 2024-09-03 5:50 ` Icenowy Zheng @ 2024-09-03 8:08 ` Andre Przywara 2024-09-03 8:18 ` Peter Robinson 0 siblings, 1 reply; 6+ messages in thread From: Andre Przywara @ 2024-09-03 8:08 UTC (permalink / raw) To: Icenowy Zheng, Peter Robinson, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, devicetree, linux-arm-kernel, linux-sunxi Hi, On 03/09/2024 06:50, Icenowy Zheng wrote: > 在 2024-09-01星期日的 13:21 +0100,Peter Robinson写道: >> Enable the rtl8723bs WiFi/BT modules on the Pine64. > > I think the maintainer previously prefer to enable these modules with > DT overlays. Yes, we cannot have this enabled unconditionally, especially since this is explicitly given as the reason for the first two patches. So either this would just stay on the list, for reference, (maybe marked as DON'T MERGE), or, better: we indeed rewrite this as an overlay. I will give the series a test once I am back with my beloved boards. Cheers, Andre > >> >> Signed-off-by: Peter Robinson <pbrobinson@gmail.com> >> --- >> .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 >> ++++++++++++++++- >> 1 file changed, 16 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> index f04f0f1badc4..1d514859e664 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> @@ -138,6 +138,14 @@ &mmc1 { >> mmc-pwrseq = <&wifi_pwrseq>; >> bus-width = <4>; >> non-removable; >> + status = "okay"; >> + >> + rtl8723bs: wifi@1 { >> + reg = <1>; >> + interrupt-parent = <&r_pio>; >> + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ >> + interrupt-names = "host-wake"; >> + }; >> }; >> >> &ohci0 { >> @@ -303,7 +311,14 @@ &uart1 { >> pinctrl-names = "default"; >> pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; >> uart-has-rtscts; >> - status = "disabled"; >> + status = "okay"; >> + >> + bluetooth { >> + compatible = "realtek,rtl8723bs-bt"; >> + device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* >> PL6 */ >> + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 >> */ >> + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* >> PL5 */ >> + }; >> }; >> >> /* On Pi-2 connector */ > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 2024-09-03 8:08 ` Andre Przywara @ 2024-09-03 8:18 ` Peter Robinson 0 siblings, 0 replies; 6+ messages in thread From: Peter Robinson @ 2024-09-03 8:18 UTC (permalink / raw) To: Andre Przywara Cc: Icenowy Zheng, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, devicetree, linux-arm-kernel, linux-sunxi On Tue, 3 Sept 2024 at 09:08, Andre Przywara <andre.przywara@arm.com> wrote: > > Hi, > > On 03/09/2024 06:50, Icenowy Zheng wrote: > > 在 2024-09-01星期日的 13:21 +0100,Peter Robinson写道: > >> Enable the rtl8723bs WiFi/BT modules on the Pine64. > > > > I think the maintainer previously prefer to enable these modules with > > DT overlays. > > Yes, we cannot have this enabled unconditionally, especially since this > is explicitly given as the reason for the first two patches. > So either this would just stay on the list, for reference, (maybe marked > as DON'T MERGE), or, better: we indeed rewrite this as an overlay. Yes, that's why it was separate, I wasn't sure how to label it TBH. > I will give the series a test once I am back with my beloved boards. Thanks. > Cheers, > Andre > > > > >> > >> Signed-off-by: Peter Robinson <pbrobinson@gmail.com> > >> --- > >> .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 > >> ++++++++++++++++- > >> 1 file changed, 16 insertions(+), 1 deletion(-) > >> > >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > >> b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > >> index f04f0f1badc4..1d514859e664 100644 > >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > >> @@ -138,6 +138,14 @@ &mmc1 { > >> mmc-pwrseq = <&wifi_pwrseq>; > >> bus-width = <4>; > >> non-removable; > >> + status = "okay"; > >> + > >> + rtl8723bs: wifi@1 { > >> + reg = <1>; > >> + interrupt-parent = <&r_pio>; > >> + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ > >> + interrupt-names = "host-wake"; > >> + }; > >> }; > >> > >> &ohci0 { > >> @@ -303,7 +311,14 @@ &uart1 { > >> pinctrl-names = "default"; > >> pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; > >> uart-has-rtscts; > >> - status = "disabled"; > >> + status = "okay"; > >> + > >> + bluetooth { > >> + compatible = "realtek,rtl8723bs-bt"; > >> + device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* > >> PL6 */ > >> + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 > >> */ > >> + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* > >> PL5 */ > >> + }; > >> }; > >> > >> /* On Pi-2 connector */ > > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-03 8:18 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-09-01 12:21 [PATCH 1/3] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 Peter Robinson 2024-09-01 12:21 ` [PATCH 2/3] arm64: dts: allwinner: a64: Add WiFi/BT header on SoPine Peter Robinson 2024-09-01 12:21 ` [PATCH 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 Peter Robinson 2024-09-03 5:50 ` Icenowy Zheng 2024-09-03 8:08 ` Andre Przywara 2024-09-03 8:18 ` Peter Robinson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox