linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] Allwinner H6 Mali GPU support
@ 2019-10-30 15:07 Clément Péron
  2019-10-30 15:07 ` [PATCH v7 1/2] arm64: dts: allwinner: Add ARM Mali GPU node for H6 Clément Péron
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Clément Péron @ 2019-10-30 15:07 UTC (permalink / raw)
  To: Maxime Ripard, Tomeu Vizoso
  Cc: linux-arm-kernel, devicetree, linux-kernel, Clément Péron

Hi,

Proper iommu patches has been merged[0].

There is still work to do to make it works with panfrost
but all modules can be probed and removed smoothly.

These bindings could be used also for out-of-tree modules.

[0]: https://lore.kernel.org/linux-iommu/cover.1569851517.git.robin.murphy@arm.com/

Change since v6:
 - Remove iommu patches
 - Rebase on 5.4-rc4

Clément Péron (2):
  arm64: dts: allwinner: Add ARM Mali GPU node for H6
  arm64: dts: allwinner: Add mali GPU supply for H6 boards

 .../boot/dts/allwinner/sun50i-h6-beelink-gs1.dts   |  6 ++++++
 .../boot/dts/allwinner/sun50i-h6-orangepi-3.dts    |  6 ++++++
 .../boot/dts/allwinner/sun50i-h6-orangepi.dtsi     |  6 ++++++
 .../boot/dts/allwinner/sun50i-h6-pine-h64.dts      |  6 ++++++
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi       | 14 ++++++++++++++
 5 files changed, 38 insertions(+)

-- 
2.20.1


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

* [PATCH v7 1/2] arm64: dts: allwinner: Add ARM Mali GPU node for H6
  2019-10-30 15:07 [PATCH v7 0/2] Allwinner H6 Mali GPU support Clément Péron
@ 2019-10-30 15:07 ` Clément Péron
  2019-10-30 15:07 ` [PATCH v7 2/2] arm64: dts: allwinner: Add mali GPU supply for H6 boards Clément Péron
  2019-10-31 12:35 ` [PATCH v7 0/2] Allwinner H6 Mali GPU support Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Clément Péron @ 2019-10-30 15:07 UTC (permalink / raw)
  To: Maxime Ripard, Tomeu Vizoso
  Cc: linux-arm-kernel, devicetree, linux-kernel, Clément Péron

Add the mali gpu node to the H6 device-tree.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
index 0d5ea19336a1..a029daf67345 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -149,6 +149,20 @@
 			allwinner,sram = <&ve_sram 1>;
 		};
 
+		gpu: gpu@1800000 {
+			compatible = "allwinner,sun50i-h6-mali",
+				     "arm,mali-t720";
+			reg = <0x01800000 0x4000>;
+			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "job", "mmu", "gpu";
+			clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>;
+			clock-names = "core", "bus";
+			resets = <&ccu RST_BUS_GPU>;
+			status = "disabled";
+		};
+
 		syscon: syscon@3000000 {
 			compatible = "allwinner,sun50i-h6-system-control",
 				     "allwinner,sun50i-a64-system-control";
-- 
2.20.1


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

* [PATCH v7 2/2] arm64: dts: allwinner: Add mali GPU supply for H6 boards
  2019-10-30 15:07 [PATCH v7 0/2] Allwinner H6 Mali GPU support Clément Péron
  2019-10-30 15:07 ` [PATCH v7 1/2] arm64: dts: allwinner: Add ARM Mali GPU node for H6 Clément Péron
@ 2019-10-30 15:07 ` Clément Péron
  2019-10-31 12:35 ` [PATCH v7 0/2] Allwinner H6 Mali GPU support Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Clément Péron @ 2019-10-30 15:07 UTC (permalink / raw)
  To: Maxime Ripard, Tomeu Vizoso
  Cc: linux-arm-kernel, devicetree, linux-kernel, Clément Péron

Enable and add supply to the Mali GPU node on all the
H6 boards.

Regarding the datasheet the maximum time for supply to reach
its voltage is 32ms.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 6 ++++++
 arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts  | 6 ++++++
 arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi   | 6 ++++++
 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts    | 6 ++++++
 4 files changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts
index 1d05d570142f..e5ed1d4bfef8 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts
@@ -89,6 +89,11 @@
 	status = "okay";
 };
 
+&gpu {
+	mali-supply = <&reg_dcdcc>;
+	status = "okay";
+};
+
 &hdmi {
 	status = "okay";
 };
@@ -225,6 +230,7 @@
 			};
 
 			reg_dcdcc: dcdcc {
+				regulator-enable-ramp-delay = <32000>;
 				regulator-min-microvolt = <810000>;
 				regulator-max-microvolt = <1080000>;
 				regulator-name = "vdd-gpu";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
index eb379cd402ac..f5ae5182f0c5 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
@@ -102,6 +102,11 @@
 	status = "okay";
 };
 
+&gpu {
+	mali-supply = <&reg_dcdcc>;
+	status = "okay";
+};
+
 &hdmi {
 	status = "okay";
 };
@@ -237,6 +242,7 @@
 			};
 
 			reg_dcdcc: dcdcc {
+				regulator-enable-ramp-delay = <32000>;
 				regulator-min-microvolt = <810000>;
 				regulator-max-microvolt = <1080000>;
 				regulator-name = "vdd-gpu";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index ec9b6a578e3f..df4cbd7ef96c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -55,6 +55,11 @@
 	status = "okay";
 };
 
+&gpu {
+	mali-supply = <&reg_dcdcc>;
+	status = "okay";
+};
+
 &mmc0 {
 	vmmc-supply = <&reg_cldo1>;
 	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
@@ -163,6 +168,7 @@
 			};
 
 			reg_dcdcc: dcdcc {
+				regulator-enable-ramp-delay = <32000>;
 				regulator-min-microvolt = <810000>;
 				regulator-max-microvolt = <1080000>;
 				regulator-name = "vdd-gpu";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
index 30102daf83cc..74899ede00fb 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
@@ -85,6 +85,11 @@
 	status = "okay";
 };
 
+&gpu {
+	mali-supply = <&reg_dcdcc>;
+	status = "okay";
+};
+
 &hdmi {
 	status = "okay";
 };
@@ -221,6 +226,7 @@
 			};
 
 			reg_dcdcc: dcdcc {
+				regulator-enable-ramp-delay = <32000>;
 				regulator-min-microvolt = <810000>;
 				regulator-max-microvolt = <1080000>;
 				regulator-name = "vdd-gpu";
-- 
2.20.1


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

* Re: [PATCH v7 0/2] Allwinner H6 Mali GPU support
  2019-10-30 15:07 [PATCH v7 0/2] Allwinner H6 Mali GPU support Clément Péron
  2019-10-30 15:07 ` [PATCH v7 1/2] arm64: dts: allwinner: Add ARM Mali GPU node for H6 Clément Péron
  2019-10-30 15:07 ` [PATCH v7 2/2] arm64: dts: allwinner: Add mali GPU supply for H6 boards Clément Péron
@ 2019-10-31 12:35 ` Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2019-10-31 12:35 UTC (permalink / raw)
  To: Clément Péron
  Cc: Tomeu Vizoso, linux-arm-kernel, devicetree, linux-kernel

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

On Wed, Oct 30, 2019 at 04:07:40PM +0100, Clément Péron wrote:
> Hi,
>
> Proper iommu patches has been merged[0].
>
> There is still work to do to make it works with panfrost
> but all modules can be probed and removed smoothly.
>
> These bindings could be used also for out-of-tree modules.

Applied both, thanks

Maxime

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

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

end of thread, other threads:[~2019-10-31 12:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 15:07 [PATCH v7 0/2] Allwinner H6 Mali GPU support Clément Péron
2019-10-30 15:07 ` [PATCH v7 1/2] arm64: dts: allwinner: Add ARM Mali GPU node for H6 Clément Péron
2019-10-30 15:07 ` [PATCH v7 2/2] arm64: dts: allwinner: Add mali GPU supply for H6 boards Clément Péron
2019-10-31 12:35 ` [PATCH v7 0/2] Allwinner H6 Mali GPU support Maxime Ripard

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).