All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes
@ 2022-09-14 11:12 Diogo Ivo
  2022-09-14 11:12 ` [PATCH 1/2] arm64: dts: tegra: smaug: Add Bluetooth node Diogo Ivo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Diogo Ivo @ 2022-09-14 11:12 UTC (permalink / raw)
  Cc: Diogo Ivo, krzysztof.kozlowski+dt, thierry.reding, linux-tegra,
	devicetree

Hello,

These patches add DT nodes separately for the BRCM4354 Wi-FI + BT combo
module in the Pixel C, and have both been tested on it.

Thanks!

Diogo Ivo (2):
  arm64: dts: tegra: smaug: Add Bluetooth node
  arm64: dts: tegra: smaug: Add Wi-Fi node

 arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)

-- 
2.37.3


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

* [PATCH 1/2] arm64: dts: tegra: smaug: Add Bluetooth node
  2022-09-14 11:12 [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Diogo Ivo
@ 2022-09-14 11:12 ` Diogo Ivo
  2022-09-14 11:12 ` [PATCH 2/2] arm64: dts: tegra: smaug: Add Wi-Fi node Diogo Ivo
  2022-09-15 10:27 ` [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Thierry Reding
  2 siblings, 0 replies; 5+ messages in thread
From: Diogo Ivo @ 2022-09-14 11:12 UTC (permalink / raw)
  Cc: Diogo Ivo, krzysztof.kozlowski+dt, thierry.reding, linux-tegra,
	devicetree

The Google Pixel C contains a BRCM4354 Wi-Fi + BT module.
Add a DT node for its BT functionality. Tested on Pixel C.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
---
 arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
index a263d51882ee..7ae503a29508 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
@@ -17,6 +17,7 @@ / {
 
 	aliases {
 		serial0 = &uarta;
+		serial3 = &uartd;
 	};
 
 	chosen {
@@ -1309,6 +1310,22 @@ serial@70006000 {
 		status = "okay";
 	};
 
+	uartd: serial@70006300 {
+		compatible = "nvidia,tegra30-hsuart";
+		status = "okay";
+
+		bluetooth {
+			compatible = "brcm,bcm43540-bt";
+			max-speed = <4000000>;
+			brcm,bt-pcm-int-params = [01 02 00 01 01];
+			device-wakeup-gpios = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>;
+			shutdown-gpios = <&gpio TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(H, 5) IRQ_TYPE_LEVEL_LOW>;
+			interrupt-names = "host-wakeup";
+		};
+	};
+
 	i2c@7000c400 {
 		status = "okay";
 		clock-frequency = <1000000>;
-- 
2.37.3


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

* [PATCH 2/2] arm64: dts: tegra: smaug: Add Wi-Fi node
  2022-09-14 11:12 [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Diogo Ivo
  2022-09-14 11:12 ` [PATCH 1/2] arm64: dts: tegra: smaug: Add Bluetooth node Diogo Ivo
@ 2022-09-14 11:12 ` Diogo Ivo
  2022-09-15 10:27 ` [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Thierry Reding
  2 siblings, 0 replies; 5+ messages in thread
From: Diogo Ivo @ 2022-09-14 11:12 UTC (permalink / raw)
  Cc: Diogo Ivo, krzysztof.kozlowski+dt, thierry.reding, linux-tegra,
	devicetree

The Google Pixel C contains a BRCM4354 Wi-Fi + BT module.
Add a DT node for its Wi-Fi functionality. Tested on Pixel C.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
---
 arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
index 7ae503a29508..ffe37d7c66ba 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
@@ -1709,6 +1709,25 @@ usb3-0 {
 		};
 	};
 
+	mmc@700b0200 {
+		power-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
+		bus-width = <4>;
+		non-removable;
+		vqmmc-supply = <&pp1800>;
+		vmmc-supply = <&pp3300>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "okay";
+
+		wifi@1 {
+			compatible = "brcm,bcm4354-fmac", "brcm,bcm4329-fmac";
+			reg = <1>;
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(H, 2) IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "host-wake";
+		};
+	};
+
 	mmc@700b0600 {
 		bus-width = <8>;
 		non-removable;
-- 
2.37.3


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

* Re: [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes
  2022-09-14 11:12 [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Diogo Ivo
  2022-09-14 11:12 ` [PATCH 1/2] arm64: dts: tegra: smaug: Add Bluetooth node Diogo Ivo
  2022-09-14 11:12 ` [PATCH 2/2] arm64: dts: tegra: smaug: Add Wi-Fi node Diogo Ivo
@ 2022-09-15 10:27 ` Thierry Reding
  2022-09-15 17:29   ` Diogo Ivo
  2 siblings, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2022-09-15 10:27 UTC (permalink / raw)
  To: Diogo Ivo; +Cc: krzysztof.kozlowski+dt, linux-tegra, devicetree

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

On Wed, Sep 14, 2022 at 12:12:19PM +0100, Diogo Ivo wrote:
> Hello,
> 
> These patches add DT nodes separately for the BRCM4354 Wi-FI + BT combo
> module in the Pixel C, and have both been tested on it.
> 
> Thanks!
> 
> Diogo Ivo (2):
>   arm64: dts: tegra: smaug: Add Bluetooth node
>   arm64: dts: tegra: smaug: Add Wi-Fi node
> 
>  arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)

Both patches applied, thanks!

Given that this is a rather old device that we rarely see third party
contributions for, would you mind sharing some details on your setup?
Are you running any of the after market OSes on this?

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes
  2022-09-15 10:27 ` [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Thierry Reding
@ 2022-09-15 17:29   ` Diogo Ivo
  0 siblings, 0 replies; 5+ messages in thread
From: Diogo Ivo @ 2022-09-15 17:29 UTC (permalink / raw)
  To: Thierry Reding; +Cc: krzysztof.kozlowski+dt, linux-tegra, devicetree

On Thu, Sep 15, 2022 at 12:27:26PM +0200, Thierry Reding wrote:
> Both patches applied, thanks!
> 
> Given that this is a rather old device that we rarely see third party
> contributions for, would you mind sharing some details on your setup?
> Are you running any of the after market OSes on this?
> 
> Thierry

Hello,

I am running the latest Arch Linux ARM image on it, and the 5.19 kernel,
which allow the device to be used from the TTY, since there are
some bugs in the graphics stack preventing a full desktop environment.

Best regards,
Diogo

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

end of thread, other threads:[~2022-09-15 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 11:12 [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Diogo Ivo
2022-09-14 11:12 ` [PATCH 1/2] arm64: dts: tegra: smaug: Add Bluetooth node Diogo Ivo
2022-09-14 11:12 ` [PATCH 2/2] arm64: dts: tegra: smaug: Add Wi-Fi node Diogo Ivo
2022-09-15 10:27 ` [PATCH 0/2] arm64: dts: tegra: smaug: Add Wi-Fi and BT DT nodes Thierry Reding
2022-09-15 17:29   ` Diogo Ivo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.