Linux-Renesas-SoC Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/2] Add WLAN/BT support
@ 2019-05-16  8:59 Biju Das
  2019-05-16  8:59 ` [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support Biju Das
  2019-05-16  8:59 ` [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support Biju Das
  0 siblings, 2 replies; 8+ messages in thread
From: Biju Das @ 2019-05-16  8:59 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Biju Das, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

This series adds WLAN/BT support for the CAT874 platform.

This patchset is based on renesas dev branch.

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

 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 57 +++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support
  2019-05-16  8:59 [PATCH 0/2] Add WLAN/BT support Biju Das
@ 2019-05-16  8:59 ` Biju Das
  2019-05-20 11:53   ` Simon Horman
  2019-05-28  8:53   ` Geert Uytterhoeven
  2019-05-16  8:59 ` [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support Biju Das
  1 sibling, 2 replies; 8+ messages in thread
From: Biju Das @ 2019-05-16  8:59 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Biju Das, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

This patch enables WLAN support for the CAT874 board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 38 +++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
index b7183f1..72cccfc 100644
--- a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
+++ b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
@@ -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@2 {
+		compatible = "ti,wl1837";
+		reg = <2>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
+
 &usb2_phy0 {
 	renesas,no-otg-pins;
 	status = "okay";
-- 
2.7.4


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support
  2019-05-16  8:59 [PATCH 0/2] Add WLAN/BT support Biju Das
  2019-05-16  8:59 ` [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support Biju Das
@ 2019-05-16  8:59 ` Biju Das
  2019-05-20 11:53   ` Simon Horman
  2019-05-28  8:47   ` Geert Uytterhoeven
  1 sibling, 2 replies; 8+ messages in thread
From: Biju Das @ 2019-05-16  8:59 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Biju Das, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

This patch enables BT support for the CAT874 board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
index 72cccfc..fdca695 100644
--- a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
+++ b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
@@ -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";
-- 
2.7.4


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support
  2019-05-16  8:59 ` [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support Biju Das
@ 2019-05-20 11:53   ` Simon Horman
  2019-05-20 12:13     ` Biju Das
  2019-05-28  8:53   ` Geert Uytterhoeven
  1 sibling, 1 reply; 8+ messages in thread
From: Simon Horman @ 2019-05-20 11:53 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Thu, May 16, 2019 at 09:59:25AM +0100, Biju Das wrote:
> This patch enables WLAN support for the CAT874 board.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>

Thanks Biju,

applied for v5.3 with the subject updated to:

arm64: dts: renesas: cat874: Add WLAN

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support
  2019-05-16  8:59 ` [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support Biju Das
@ 2019-05-20 11:53   ` Simon Horman
  2019-05-28  8:47   ` Geert Uytterhoeven
  1 sibling, 0 replies; 8+ messages in thread
From: Simon Horman @ 2019-05-20 11:53 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Thu, May 16, 2019 at 09:59:26AM +0100, Biju Das wrote:
> This patch enables BT support for the CAT874 board.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>


Thanks Biju,

applied for v5.3 with the subject updated to:

arm64: dts: renesas: cat874: Add BT support

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support
  2019-05-20 11:53   ` Simon Horman
@ 2019-05-20 12:13     ` Biju Das
  0 siblings, 0 replies; 8+ messages in thread
From: Biju Das @ 2019-05-20 12:13 UTC (permalink / raw)
  To: Simon Horman
  Cc: Rob Herring, Mark Rutland, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro


> Subject: Re: [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN
> support
> 
> On Thu, May 16, 2019 at 09:59:25AM +0100, Biju Das wrote:
> > This patch enables WLAN support for the CAT874 board.
> >
> > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> 
> Thanks Biju,
> 
> applied for v5.3 with the subject updated to:
> 
> arm64: dts: renesas: cat874: Add WLAN

Thanks  Simon.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support
  2019-05-16  8:59 ` [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support Biju Das
  2019-05-20 11:53   ` Simon Horman
@ 2019-05-28  8:47   ` Geert Uytterhoeven
  1 sibling, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2019-05-28  8:47 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Simon Horman, Magnus Damm,
	Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Thu, May 16, 2019 at 11:06 AM Biju Das <biju.das@bp.renesas.com> wrote:
> This patch enables BT support for the CAT874 board.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support
  2019-05-16  8:59 ` [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support Biju Das
  2019-05-20 11:53   ` Simon Horman
@ 2019-05-28  8:53   ` Geert Uytterhoeven
  1 sibling, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2019-05-28  8:53 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Simon Horman, Magnus Damm,
	Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Thu, May 16, 2019 at 11:06 AM Biju Das <biju.das@bp.renesas.com> wrote:
> This patch enables WLAN support for the CAT874 board.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16  8:59 [PATCH 0/2] Add WLAN/BT support Biju Das
2019-05-16  8:59 ` [PATCH 1/2] arm64: dts: renesas: r8a774c0-cat874: Add WLAN support Biju Das
2019-05-20 11:53   ` Simon Horman
2019-05-20 12:13     ` Biju Das
2019-05-28  8:53   ` Geert Uytterhoeven
2019-05-16  8:59 ` [PATCH 2/2] arm64: dts: renesas: r8a774c0-cat874: Add BT support Biju Das
2019-05-20 11:53   ` Simon Horman
2019-05-28  8:47   ` Geert Uytterhoeven

Linux-Renesas-SoC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-renesas-soc/0 linux-renesas-soc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-renesas-soc linux-renesas-soc/ https://lore.kernel.org/linux-renesas-soc \
		linux-renesas-soc@vger.kernel.org linux-renesas-soc@archiver.kernel.org
	public-inbox-index linux-renesas-soc


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-renesas-soc


AGPL code for this site: git clone https://public-inbox.org/ public-inbox