All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Enable GPU on Smaug
@ 2023-05-16  8:28 Diogo Ivo
  2023-05-16  8:28 ` [PATCH v2 1/2] arm64: dts: tegra: smaug: add GPU power rail regulator Diogo Ivo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Diogo Ivo @ 2023-05-16  8:28 UTC (permalink / raw)
  To: Diogo Ivo, thierry.reding, sam, airlied, daniel, robh+dt,
	krzysztof.kozlowski+dt, jonathanh, arnd, dri-devel, devicetree,
	linux-tegra

Hello,

This patch series enables the use of the GM20B GPU in the
Google Pixel C.

Patch 1 adds the needed regulator DT node for the GPU.

Patch 2 enables the GPU in the DT.

The first version of these patches can be found at:
https://lore.kernel.org/linux-tegra/20230511083101.78516-1-diogo.ivo@tecnico.ulisboa.pt/

V1 -> V2:
 - Patch 1: Use generic DT node name for regulator and
	    GPIO flag defines.

Best regards,

Diogo Ivo (2):
  arm64: dts: tegra: smaug: add GPU power rail regulator
  arm64: dts: tegra: smaug: add GPU node

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

-- 
2.40.1


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

* [PATCH v2 1/2] arm64: dts: tegra: smaug: add GPU power rail regulator
  2023-05-16  8:28 [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
@ 2023-05-16  8:28 ` Diogo Ivo
  2023-05-16  8:28 ` [PATCH v2 2/2] arm64: dts: tegra: smaug: add GPU node Diogo Ivo
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Diogo Ivo @ 2023-05-16  8:28 UTC (permalink / raw)
  To: Diogo Ivo, thierry.reding, sam, airlied, daniel, robh+dt,
	krzysztof.kozlowski+dt, jonathanh, arnd, dri-devel, devicetree,
	linux-tegra

Add the GPU power rail regulator node for the Pixel C.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
---
V1 -> V2: Use generic DT node name and GPIO flag
	  defines (Krzysztof Kozlowski)

 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 e55bff859692..929372f24339 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
@@ -1406,6 +1406,23 @@ max77621_cpu: max77621@1b {
 			maxim,externally-enable;
 		};
 
+		max77621_gpu: regulator@1c {
+			compatible = "maxim,max77621";
+			reg = <0x1c>;
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(A, 6) IRQ_TYPE_LEVEL_LOW>;
+			regulator-min-microvolt = <840000>;
+			regulator-max-microvolt = <1150000>;
+			regulator-name = "PPVAR_GPU";
+			regulator-ramp-delay = <12500>;
+			maxim,dvs-default-state = <1>;
+			maxim,enable-active-discharge;
+			maxim,enable-bias-control;
+			maxim,disable-etr;
+			maxim,enable-gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
+			maxim,externally-enable;
+		};
+
 		pmic: pmic@3c {
 			compatible = "maxim,max77620";
 			reg = <0x3c>;
-- 
2.40.1


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

* [PATCH v2 2/2] arm64: dts: tegra: smaug: add GPU node
  2023-05-16  8:28 [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
  2023-05-16  8:28 ` [PATCH v2 1/2] arm64: dts: tegra: smaug: add GPU power rail regulator Diogo Ivo
@ 2023-05-16  8:28 ` Diogo Ivo
  2023-06-07  9:39 ` [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
  2023-06-08 16:36 ` Thierry Reding
  3 siblings, 0 replies; 5+ messages in thread
From: Diogo Ivo @ 2023-05-16  8:28 UTC (permalink / raw)
  To: Diogo Ivo, thierry.reding, sam, airlied, daniel, robh+dt,
	krzysztof.kozlowski+dt, jonathanh, arnd, dri-devel, devicetree,
	linux-tegra

Enable the GPU on the Pixel C.

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

diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
index 929372f24339..db25f3ae8e0b 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
@@ -67,6 +67,11 @@ dpaux: dpaux@545c0000 {
 		};
 	};
 
+	gpu@57000000 {
+		vdd-supply = <&max77621_gpu>;
+		status = "okay";
+	};
+
 	pinmux: pinmux@700008d4 {
 		pinctrl-names = "boot";
 		pinctrl-0 = <&state_boot>;
-- 
2.40.1


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

* Re: [PATCH v2 0/2] Enable GPU on Smaug
  2023-05-16  8:28 [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
  2023-05-16  8:28 ` [PATCH v2 1/2] arm64: dts: tegra: smaug: add GPU power rail regulator Diogo Ivo
  2023-05-16  8:28 ` [PATCH v2 2/2] arm64: dts: tegra: smaug: add GPU node Diogo Ivo
@ 2023-06-07  9:39 ` Diogo Ivo
  2023-06-08 16:36 ` Thierry Reding
  3 siblings, 0 replies; 5+ messages in thread
From: Diogo Ivo @ 2023-06-07  9:39 UTC (permalink / raw)
  To: thierry.reding, sam, airlied, daniel, robh+dt,
	krzysztof.kozlowski+dt, jonathanh, arnd, dri-devel, devicetree,
	linux-tegra
  Cc: diogo.ivo

On Tue, May 16, 2023 at 09:28:27AM +0100, Diogo Ivo wrote:
> Hello,
> 
> This patch series enables the use of the GM20B GPU in the
> Google Pixel C.
> 
> Patch 1 adds the needed regulator DT node for the GPU.
> 
> Patch 2 enables the GPU in the DT.

Hello,

Gentle ping on these patches.

Thank you,

Diogo Ivo

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

* Re: [PATCH v2 0/2] Enable GPU on Smaug
  2023-05-16  8:28 [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
                   ` (2 preceding siblings ...)
  2023-06-07  9:39 ` [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
@ 2023-06-08 16:36 ` Thierry Reding
  3 siblings, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2023-06-08 16:36 UTC (permalink / raw)
  To: thierry.reding, sam, airlied, daniel, robh+dt,
	krzysztof.kozlowski+dt, jonathanh, arnd, dri-devel, devicetree,
	linux-tegra, Diogo Ivo

From: Thierry Reding <treding@nvidia.com>


On Tue, 16 May 2023 09:28:27 +0100, Diogo Ivo wrote:
> This patch series enables the use of the GM20B GPU in the
> Google Pixel C.
> 
> Patch 1 adds the needed regulator DT node for the GPU.
> 
> Patch 2 enables the GPU in the DT.
> 
> [...]

Applied, thanks!

[1/2] arm64: dts: tegra: smaug: add GPU power rail regulator
      (no commit info)
[2/2] arm64: dts: tegra: smaug: add GPU node
      (no commit info)

Best regards,
-- 
Thierry Reding <treding@nvidia.com>

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

end of thread, other threads:[~2023-06-08 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16  8:28 [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
2023-05-16  8:28 ` [PATCH v2 1/2] arm64: dts: tegra: smaug: add GPU power rail regulator Diogo Ivo
2023-05-16  8:28 ` [PATCH v2 2/2] arm64: dts: tegra: smaug: add GPU node Diogo Ivo
2023-06-07  9:39 ` [PATCH v2 0/2] Enable GPU on Smaug Diogo Ivo
2023-06-08 16:36 ` Thierry Reding

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.