Skip to contentSkip to conversation

Add WLAN/BT

PATCH New Biju Das 3 participants 5 messages Oct 15, 2019

Subsystems (2)
lore
Share & tools
lore

Biju Das

author
#0 lore raw

cover Add WLAN/BT

This patch series add WLAN/BT support for EK874 platform.

This patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from linux rc tree.

Biju Das (2):
arm64: dts: renesas: cat874: Add WLAN support
arm64: dts: renesas: cat874: Add BT support

 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 57 +++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/2 arm64: dts: renesas: cat874: Add WLAN support

commit b263b0067d727ffb230bd8ac75a6a3f9ff448f0f upstream.

This patch enables WLAN support for the CAT874 board.

---
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 38 +++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts +38 -0
index b7183f1..72cccfc 100644
@@ -104,6 +104,17 @@
 			  1800000 0>;
 	};
 
+	wlan_en_reg: fixedregulator {
+		compatible = "regulator-fixed";
+		regulator-name = "wlan-en-regulator";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		startup-delay-us = <70000>;
+
+		gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
 	x13_clk: x13 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
@@ -243,6 +254,12 @@
 		power-source = <1800>;
 	};
 
+	sdhi3_pins: sd3 {
+		groups = "sdhi3_data4", "sdhi3_ctrl";
+		function = "sdhi3";
+		power-source = <1800>;
+	};
+
 	sound_pins: sound {
 		groups = "ssi01239_ctrl", "ssi0_data";
 		function = "ssi";
@@ -300,6 +317,27 @@
 	status = "okay";
 };
 
+&sdhi3 {
+	status = "okay";
+	pinctrl-0 = <&sdhi3_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&wlan_en_reg>;
+	bus-width = <4>;
+	non-removable;
+	cap-power-off-card;
+	keep-power-in-suspend;
+
+	#address-cells = <1>;
+	#size-cells = <0>;
+	wlcore: wlcore at 2 {
+		compatible = "ti,wl1837";
+		reg = <2>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
+
 &usb2_phy0 {
 	renesas,no-otg-pins;
 	status = "okay";
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 2/2 arm64: dts: renesas: cat874: Add BT support

In reply to Biju Das

commit 7b7c5676a877c4e66083888d87d52e4a0d0c2e82 upstream.

This patch enables BT support for the CAT874 board.

---
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts +19 -0
index 72cccfc..fdca695 100644
@@ -16,6 +16,7 @@
 
 	aliases {
 		serial0 = &scif2;
+		serial1 = &hscif2;
 	};
 
 	chosen {
@@ -154,6 +155,19 @@
 	clock-frequency = <48000000>;
 };
 
+&hscif2 {
+	pinctrl-0 = <&hscif2_pins>;
+	pinctrl-names = "default";
+
+	uart-has-rtscts;
+	status = "okay";
+
+	bluetooth {
+		compatible = "ti,wl1837-st";
+		enable-gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>;
+	};
+};
+
 &i2c0 {
 	status = "okay";
 	clock-frequency = <100000>;
@@ -237,6 +251,11 @@
 		function = "i2c1";
 	};
 
+	hscif2_pins: hscif2 {
+		groups = "hscif2_data_a", "hscif2_ctrl_a";
+		function = "hscif2";
+	};
+
 	scif2_pins: scif2 {
 		groups = "scif2_data_a";
 		function = "scif2";
Signature · 1 line
2.7.4
#3 lore raw

cover Add WLAN/BT

In reply to Biju Das

Hi!

Quoted 4 lines

This patch series add WLAN/BT support for EK874 platform.

This patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from linux rc tree.

The series looks good. I can apply it to 4.19-cip...

Best regards,
Pavel

Signature · 9 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20191015/f6397771/attachment.sig>
#4 lore raw

cover Add WLAN/BT

Hi,

Quoted 12 lines

-----Original Message-----
From: Pavel Machek [mailto:pavel at denx.de]
Sent: Tuesday, October 15, 2019 8:27 PM
To: Biju Das <[email protected]>
Cc: cip-dev at lists.cip-project.org; iwamatsu nobuhiro(?? ?? ??? ?????) <[email protected]>; Pavel Machek <[email protected]>; Chris Paterson <[email protected]>; Fabrizio Castro <[email protected]>
Subject: Re: [PATCH 4.19.y-cip 0/2] Add WLAN/BT

Hi!

Quoted 7 lines
Quoted 3 lines

This patch series add WLAN/BT support for EK874 platform.

This patch series is based on linux-4.19.y-cip and all the patches in

this series are cherry-picked from linux rc tree.

Quoted 1 line

The series looks good. I can apply it to 4.19-cip...

I have the same opinion with Pavel.
Pavel, could you apply this series to 4.19-cip branch ?

Best regards,
Nobuhiro

Quoted 6 lines

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany