Skip to contentSkip to conversation

Add support for WiFi/BT header on Pine64 A64 devices

PATCH Applied Peter Robinson 2 participants 4 messages Apr 20, 2025 – Apr 27, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v4 cover Add support for WiFi/BT header on Pine64 A64 devices

Add the BT and WiFi pins on the WiFi/BT header on the Pine64/SOPINE boards.

Changes in v4:
- Remove the pwrseq section
- Tweak the device descriptions in the commit

Changes in v3:
- Explicitly disable mmc WiFi section in DT even though it's already disabled in the SoC DT.

Changes in v2:
- drop patch that enables the WiFi module, it'll move to a overlay later

Peter Robinson (2):
arm64: dts: allwinner: a64: Add WiFi/BT header on PINE A64
arm64: dts: allwinner: a64: Add WiFi/BT header on SOPINE Baseboard

 .../boot/dts/allwinner/sun50i-a64-pine64.dts  | 12 ++++++++++++
 .../allwinner/sun50i-a64-sopine-baseboard.dts | 19 +++++++++++++++++++
 2 files changed, 31 insertions(+)
Signature · 1 line
2.49.0
#1 lore raw

PATCH v4 1/2 arm64: dts: allwinner: a64: Add WiFi/BT header on PINE A64

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.

---
 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +12 -0
index 09e71fd60785..3256acec1ff9 100644
@@ -124,6 +124,17 @@ &mmc0 {
 	status = "okay";
 };
 
+/* On Wifi/BT connector */
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	vmmc-supply = <&reg_dldo4>;
+	vqmmc-supply = <&reg_eldo1>;
+	bus-width = <4>;
+	non-removable;
+	status = "disabled";
+};
+
 &ohci0 {
 	status = "okay";
 };
@@ -286,6 +297,7 @@ &uart0 {
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+	uart-has-rtscts;
 	status = "disabled";
 };
 
Signature · 1 line
2.49.0
#2 lore raw

PATCH v4 2/2 arm64: dts: allwinner: a64: Add WiFi/BT header on SOPINE Baseboard

In reply to 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.

---
 .../allwinner/sun50i-a64-sopine-baseboard.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +19 -0
index be2347c8f267..231e652cab67 100644
@@ -103,6 +103,17 @@ ext_rgmii_phy: ethernet-phy@1 {
 	};
 };
 
+/* On Wifi/BT connector */
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	vmmc-supply = <&reg_dldo4>;
+	vqmmc-supply = <&reg_eldo1>;
+	bus-width = <4>;
+	non-removable;
+	status = "disabled";
+};
+
 &mmc2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc2_pins>;
@@ -175,6 +186,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";
Signature · 1 line
2.49.0
Applied
#3 lore raw
In reply to Peter Robinson
Quoted 11 lines · Peter Robinson

Add the BT and WiFi pins on the WiFi/BT header on the Pine64/SOPINE boards.

Changes in v4:
- Remove the pwrseq section
- Tweak the device descriptions in the commit

Changes in v3:
- Explicitly disable mmc WiFi section in DT even though it's already disabled in the SoC DT.

[...]

Applied to dt-for-6.16 in [email protected]:linux-sunxi/linux-sunxi.git, thanks!

[1/2] arm64: dts: allwinner: a64: Add WiFi/BT header on PINE A64

      commit: 91fe4b2e69419d5477c7776cf38df1970ad162d2
[2/2] arm64: dts: allwinner: a64: Add WiFi/BT header on SOPINE Baseboard
      commit: d3f6af8473a06f66078dc7833c8eac25c8d2b929

Best regards,

Signature · 1 line
Chen-Yu Tsai <[email protected]>