diff mbox

[v2,13/12] ARM: dts: dove: add DT GPU support

Message ID E1a4wLa-0004Vi-2t@rmk-PC.arm.linux.org.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Russell King Dec. 4, 2015, 7:48 p.m. UTC
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.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
This replaces the previous patch I sent out in error; this version
adds all the DT nodes required.  Also included along with this is a
patch which enables the GPU for Cubox platforms.

This additional patch is in conjunction with my PMU (already merged)
and clock driver patch sets.

 arch/arm/boot/dts/dove.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Andrew Lunn Dec. 4, 2015, 8:49 p.m. UTC | #1
> This additional patch is in conjunction with my PMU (already merged)
> and clock driver patch sets.

Hi Russell

Please could you respond to my comment about the clock patch.

http://www.spinics.net/lists/devicetree/msg104464.html

Thanks
	Andrew
Russell King - ARM Linux Dec. 4, 2015, 10:07 p.m. UTC | #2
On Fri, Dec 04, 2015 at 09:49:18PM +0100, Andrew Lunn wrote:
> > This additional patch is in conjunction with my PMU (already merged)
> > and clock driver patch sets.
> 
> Hi Russell
> 
> Please could you respond to my comment about the clock patch.
> 
> http://www.spinics.net/lists/devicetree/msg104464.html

I'm sorry, I haven't had time to look at that your comment yet.  I've
totally forgotten that you made it, or even what the comment was.  I'll
look at it at some point though, if I remember.  That's the best I can
promise.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi
index ea36a262d056..f36e3b9c6730 100644
--- a/arch/arm/boot/dts/dove.dtsi
+++ b/arch/arm/boot/dts/dove.dtsi
@@ -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>;
@@ -773,6 +779,16 @@ 
 				interrupts = <47>;
 				status = "disabled";
 			};
+
+			gpu: gpu@840000 {
+				clocks = <&divider_clk 1>;
+				clock-names = "core";
+				compatible = "vivante,gc";
+				interrupts = <48>;
+				power-domains = <&gpu_domain>;
+				reg = <0x840000 0x4000>;
+				status = "disabled";
+			};
 		};
 	};
 };