devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2]  arm64: dts: allwinner: Add Transpeed WiFi nodes
@ 2024-02-09 11:57 Andre Przywara
  2024-02-09 11:57 ` [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin Andre Przywara
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andre Przywara @ 2024-02-09 11:57 UTC (permalink / raw)
  To: Jernej Skrabec, Chen-Yu Tsai, Samuel Holland, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

Hi,

a tiny update, see below for the changelog.
======================================

This adds the WiFi DT nodes for the Transpeed 8K618T TV box. It uses a
Murata module with a Broadcom 4335 chip, which works fine with the
mainline Linux driver, given you provide the proper firmware files. We
found some in some LibreELEC repository.

Patch 1 adds the pinctrl node for the 32KHz clock fanout pin, patch 2
adds the actual SDIO WiFi node.

Please have a look!

Cheers,
Andre

Changelog v1 .. v2:
- add /omit-if-no-ref/ tag for clock fanout pin node
- update commit message to avoid mentioning Linux or driver

Andre Przywara (2):
  arm64: dts: allwinner: h616: Add 32K fanout pin
  arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes

 .../arm64/boot/dts/allwinner/sun50i-h616.dtsi |  6 +++++
 .../sun50i-h618-transpeed-8k618-t.dts         | 23 +++++++++++++++++++
 2 files changed, 29 insertions(+)

-- 
2.25.1


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

* [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin
  2024-02-09 11:57 [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed WiFi nodes Andre Przywara
@ 2024-02-09 11:57 ` Andre Przywara
  2024-02-09 12:21   ` Jernej Škrabec
  2024-02-09 11:57 ` [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes Andre Przywara
  2024-02-11 20:16 ` [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed " Jernej Škrabec
  2 siblings, 1 reply; 7+ messages in thread
From: Andre Przywara @ 2024-02-09 11:57 UTC (permalink / raw)
  To: Jernej Skrabec, Chen-Yu Tsai, Samuel Holland, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

On some boards the designers saved on a 32KHz crystal for some external
chips, so the SoC has to help out, with providing a 32 KHz clock signal.

Add a pinctrl group node to allow DT nodes to reference this fanout signal.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
index d549d277d9729..12ffabc79bcde 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
@@ -256,6 +256,12 @@ uart1_rts_cts_pins: uart1-rts-cts-pins {
 				pins = "PG8", "PG9";
 				function = "uart1";
 			};
+
+			/omit-if-no-ref/
+			x32clk_fanout_pin: x32clk-fanout-pin {
+				pins = "PG10";
+				function = "clock";
+			};
 		};
 
 		gic: interrupt-controller@3021000 {
-- 
2.25.1


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

* [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes
  2024-02-09 11:57 [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed WiFi nodes Andre Przywara
  2024-02-09 11:57 ` [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin Andre Przywara
@ 2024-02-09 11:57 ` Andre Przywara
  2024-02-09 12:21   ` Jernej Škrabec
  2024-02-09 12:22   ` Jernej Škrabec
  2024-02-11 20:16 ` [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed " Jernej Škrabec
  2 siblings, 2 replies; 7+ messages in thread
From: Andre Przywara @ 2024-02-09 11:57 UTC (permalink / raw)
  To: Jernej Skrabec, Chen-Yu Tsai, Samuel Holland, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

In contrast to other devices using Allwinner SoCs, the Transpeed 8K618-T
TV box uses a mainline supported WiFi chip: it's Broadcom 4335 compatible,
packaged by Murata.

Add the required DT nodes to let DT users know about the SDIO device.
There is an otherwise empty MMC device node, to receive the MAC address,
that firmware might want to write in there.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 .../sun50i-h618-transpeed-8k618-t.dts         | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
index 8ea1fd41aebaa..7ec4098e707bf 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
@@ -16,6 +16,7 @@ / {
 
 	aliases {
 		serial0 = &uart0;
+		ethernet1 = &sdio_wifi;
 	};
 
 	chosen {
@@ -39,6 +40,15 @@ reg_vcc3v3: vcc3v3 {
 		regulator-max-microvolt = <3300000>;
 		regulator-always-on;
 	};
+
+	wifi_pwrseq: wifi_pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		clocks = <&rtc CLK_OSC32K_FANOUT>;
+		clock-names = "ext_clock";
+		pinctrl-0 = <&x32clk_fanout_pin>;
+		pinctrl-names = "default";
+		reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
+	};
 };
 
 &ehci0 {
@@ -60,6 +70,19 @@ &mmc0 {
 	status = "okay";
 };
 
+&mmc1 {
+	vmmc-supply = <&reg_dldo1>;
+	vqmmc-supply = <&reg_aldo1>;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	bus-width = <4>;
+	non-removable;
+	status = "okay";
+
+	sdio_wifi: wifi@1 {
+		reg = <1>;
+	};
+};
+
 &mmc2 {
 	vmmc-supply = <&reg_dldo1>;
 	vqmmc-supply = <&reg_aldo1>;
-- 
2.25.1


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

* Re: [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin
  2024-02-09 11:57 ` [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin Andre Przywara
@ 2024-02-09 12:21   ` Jernej Škrabec
  0 siblings, 0 replies; 7+ messages in thread
From: Jernej Škrabec @ 2024-02-09 12:21 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Andre Przywara
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

Dne petek, 09. februar 2024 ob 12:57:58 CET je Andre Przywara napisal(a):
> On some boards the designers saved on a 32KHz crystal for some external
> chips, so the SoC has to help out, with providing a 32 KHz clock signal.
> 
> Add a pinctrl group node to allow DT nodes to reference this fanout signal.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej



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

* Re: [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes
  2024-02-09 11:57 ` [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes Andre Przywara
@ 2024-02-09 12:21   ` Jernej Škrabec
  2024-02-09 12:22   ` Jernej Škrabec
  1 sibling, 0 replies; 7+ messages in thread
From: Jernej Škrabec @ 2024-02-09 12:21 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Andre Przywara
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

Dne petek, 09. februar 2024 ob 12:57:59 CET je Andre Przywara napisal(a):
> In contrast to other devices using Allwinner SoCs, the Transpeed 8K618-T
> TV box uses a mainline supported WiFi chip: it's Broadcom 4335 compatible,
> packaged by Murata.
> 
> Add the required DT nodes to let DT users know about the SDIO device.
> There is an otherwise empty MMC device node, to receive the MAC address,
> that firmware might want to write in there.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej



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

* Re: [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes
  2024-02-09 11:57 ` [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes Andre Przywara
  2024-02-09 12:21   ` Jernej Škrabec
@ 2024-02-09 12:22   ` Jernej Škrabec
  1 sibling, 0 replies; 7+ messages in thread
From: Jernej Škrabec @ 2024-02-09 12:22 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Andre Przywara
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

Dne petek, 09. februar 2024 ob 12:57:59 CET je Andre Przywara napisal(a):
> In contrast to other devices using Allwinner SoCs, the Transpeed 8K618-T
> TV box uses a mainline supported WiFi chip: it's Broadcom 4335 compatible,
> packaged by Murata.
> 
> Add the required DT nodes to let DT users know about the SDIO device.
> There is an otherwise empty MMC device node, to receive the MAC address,
> that firmware might want to write in there.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  .../sun50i-h618-transpeed-8k618-t.dts         | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
> index 8ea1fd41aebaa..7ec4098e707bf 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
> @@ -16,6 +16,7 @@ / {
>  
>  	aliases {
>  		serial0 = &uart0;
> +		ethernet1 = &sdio_wifi;

Ah, this is not sorted alphabetically. I can fix this while applying.

Best regards,
Jernej

>  	};
>  
>  	chosen {
> @@ -39,6 +40,15 @@ reg_vcc3v3: vcc3v3 {
>  		regulator-max-microvolt = <3300000>;
>  		regulator-always-on;
>  	};
> +
> +	wifi_pwrseq: wifi_pwrseq {
> +		compatible = "mmc-pwrseq-simple";
> +		clocks = <&rtc CLK_OSC32K_FANOUT>;
> +		clock-names = "ext_clock";
> +		pinctrl-0 = <&x32clk_fanout_pin>;
> +		pinctrl-names = "default";
> +		reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
> +	};
>  };
>  
>  &ehci0 {
> @@ -60,6 +70,19 @@ &mmc0 {
>  	status = "okay";
>  };
>  
> +&mmc1 {
> +	vmmc-supply = <&reg_dldo1>;
> +	vqmmc-supply = <&reg_aldo1>;
> +	mmc-pwrseq = <&wifi_pwrseq>;
> +	bus-width = <4>;
> +	non-removable;
> +	status = "okay";
> +
> +	sdio_wifi: wifi@1 {
> +		reg = <1>;
> +	};
> +};
> +
>  &mmc2 {
>  	vmmc-supply = <&reg_dldo1>;
>  	vqmmc-supply = <&reg_aldo1>;
> 





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

* Re: [PATCH v2 0/2]  arm64: dts: allwinner: Add Transpeed WiFi nodes
  2024-02-09 11:57 [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed WiFi nodes Andre Przywara
  2024-02-09 11:57 ` [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin Andre Przywara
  2024-02-09 11:57 ` [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes Andre Przywara
@ 2024-02-11 20:16 ` Jernej Škrabec
  2 siblings, 0 replies; 7+ messages in thread
From: Jernej Škrabec @ 2024-02-11 20:16 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Andre Przywara
  Cc: linux-sunxi, devicetree, linux-arm-kernel, Nick Alilovic

Dne petek, 09. februar 2024 ob 12:57:57 CET je Andre Przywara napisal(a):
> Hi,
> 
> a tiny update, see below for the changelog.
> ======================================
> 
> This adds the WiFi DT nodes for the Transpeed 8K618T TV box. It uses a
> Murata module with a Broadcom 4335 chip, which works fine with the
> mainline Linux driver, given you provide the proper firmware files. We
> found some in some LibreELEC repository.
> 
> Patch 1 adds the pinctrl node for the 32KHz clock fanout pin, patch 2
> adds the actual SDIO WiFi node.
> 
> Please have a look!

Fixed order in patch 2 and applied, thanks!

Best regards,
Jernej

> 
> Cheers,
> Andre
> 
> Changelog v1 .. v2:
> - add /omit-if-no-ref/ tag for clock fanout pin node
> - update commit message to avoid mentioning Linux or driver
> 
> Andre Przywara (2):
>   arm64: dts: allwinner: h616: Add 32K fanout pin
>   arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes
> 
>  .../arm64/boot/dts/allwinner/sun50i-h616.dtsi |  6 +++++
>  .../sun50i-h618-transpeed-8k618-t.dts         | 23 +++++++++++++++++++
>  2 files changed, 29 insertions(+)
> 
> 





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

end of thread, other threads:[~2024-02-11 20:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 11:57 [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed WiFi nodes Andre Przywara
2024-02-09 11:57 ` [PATCH v2 1/2] arm64: dts: allwinner: h616: Add 32K fanout pin Andre Przywara
2024-02-09 12:21   ` Jernej Škrabec
2024-02-09 11:57 ` [PATCH v2 2/2] arm64: dts: allwinner: Transpeed 8K618-T: add WiFi nodes Andre Przywara
2024-02-09 12:21   ` Jernej Škrabec
2024-02-09 12:22   ` Jernej Škrabec
2024-02-11 20:16 ` [PATCH v2 0/2] arm64: dts: allwinner: Add Transpeed " Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).