Skip to contentSkip to conversation

Dove GPU support

PATCH New Lucas Stach 2 participants 4 messages Dec 15, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover Dove GPU support

Hi Dove maintainers,

those 2 patches add support for the Vivante GPU. The binding has already been acked by the DT maintainers and is included in the pull request for the DRM driver. I hope you can pick those patches up for inclusion in 4.5.

Regards,
Lucas

Russell King (2):
ARM: dts: dove: add DT GPU support
ARM: dts: enable GPU for SolidRun's Cubox

 arch/arm/boot/dts/dove-cubox.dts |  8 ++++++++
 arch/arm/boot/dts/dove.dtsi      | 16 ++++++++++++++++
 2 files changed, 24 insertions(+)
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/2 ARM: dts: dove: add DT GPU support

From: Russell King <[email protected]>

Add DT support for the Vivante GC600 GPU on Marvell Dove platforms. These nodes default to being disabled unless a platform decides they should be enabled.

---
 arch/arm/boot/dts/dove.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/dove.dtsi +16 -0
index cd58c2e62757..ea1d999ca7a7 100644
@@ -33,6 +33,12 @@
 		marvell,tauros2-cache-features = <0>;
 	};
 
+	gpu-subsystem {
+		compatible = "marvell,dove-gpu-subsystem";
+		cores = <&gpu>;
+		status = "disabled";
+	};
+
 	i2c-mux {
 		compatible = "i2c-mux-pinctrl";
 		#address-cells = <1>;
@@ -776,6 +782,16 @@
 				#address-cells = <1>;
 				#size-cells = <1>;
 			};
+
+			gpu: gpu at 840000 {
+				clocks = <&divider_clk 1>;
+				clock-names = "core";
+				compatible = "vivante,gc";
+				interrupts = <48>;
+				power-domains = <&gpu_domain>;
+				reg = <0x840000 0x4000>;
+				status = "disabled";
+			};
 		};
 	};
 };
Signature · 1 line
2.6.2
#2 lore raw

PATCH 2/2 ARM: dts: enable GPU for SolidRun's Cubox

In reply to Lucas Stach

From: Russell King <[email protected]>

Enable the GPU for SolidRun's Cubox.

---
 arch/arm/boot/dts/dove-cubox.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/dove-cubox.dts +8 -0
index e6fa251e17b9..af3cb633135f 100644
@@ -62,6 +62,10 @@
 		pinctrl-0 = <&pmx_gpio_19>;
 		pinctrl-names = "default";
 	};
+
+	gpu-subsystem {
+		status = "okay";
+	};
 };
 
 &uart0 { status = "okay"; };
@@ -74,6 +78,10 @@
 	reg = <1>;
 };
 
+&gpu {
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";
 	clock-frequency = <100000>;
Signature · 1 line
2.6.2
#3 lore raw

cover Dove GPU support

In reply to Lucas Stach

Hi Lucas,

Quoted 5 lines · Lucas Stach

Hi Dove maintainers,

those 2 patches add support for the Vivante GPU. The binding has already been acked by the DT maintainers and is included in the pull request for the DRM driver. I hope you can pick those patches up for inclusion in 4.5.

Good timing! I was about to ask news about these pacthes.

They are both applied on mvebu/dt

Thanks,

Gregory

Quoted 15 lines

Regards,
Lucas

Russell King (2):
ARM: dts: dove: add DT GPU support
ARM: dts: enable GPU for SolidRun's Cubox

 arch/arm/boot/dts/dove-cubox.dts |  8 ++++++++
 arch/arm/boot/dts/dove.dtsi      | 16 ++++++++++++++++
 2 files changed, 24 insertions(+)
Signature · 1 line
2.6.2
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com