All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sun4i: dts: add gpu node to sun4i-a10 platform
@ 2018-07-23 16:09 ` stevenvandenbrandenstift
  0 siblings, 0 replies; 5+ messages in thread
From: stevenvandenbrandenstift at gmail.com @ 2018-07-23 16:09 UTC (permalink / raw)
  To: linux-arm-kernel

From: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>

Add mali gpu node to sun4i a10 platforms.
Tested with offscreen rendering with lima mesa (freedesktop gitlab)

Signed-off-by: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>
---
 arch/arm/boot/dts/sun4i-a10.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index 3a1c6b45c9a1..be22f18b1462 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -1001,6 +1001,27 @@
 			status = "disabled";
 		};
 
+		mali: gpu at 1c40000 {
+			compatible = "allwinner,sun4i-a10-mali", "arm,mali-400";
+			reg = <0x01c40000 0x10000>;
+			interrupts = <69>,
+				     <70>,
+				     <71>,
+				     <72>,
+				     <73>;
+			interrupt-names = "gp",
+					  "gpmmu",
+					  "pp0",
+					  "ppmmu0",
+					  "pmu";
+			clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
+			clock-names = "bus", "core";
+			resets = <&ccu RST_GPU>;
+
+			assigned-clocks = <&ccu CLK_GPU>;
+			assigned-clock-rates = <384000000>;
+		};
+
 		fe0: display-frontend at 1e00000 {
 			compatible = "allwinner,sun4i-a10-display-frontend";
 			reg = <0x01e00000 0x20000>;
-- 
2.17.1

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

* [PATCH] sun4i: dts: add gpu node to sun4i-a10 platform
@ 2018-07-23 16:09 ` stevenvandenbrandenstift
  0 siblings, 0 replies; 5+ messages in thread
From: stevenvandenbrandenstift @ 2018-07-23 16:09 UTC (permalink / raw)
  To: wens, robh+dt, mark.rutland, maxime.ripard, linux-arm-kernel,
	linux-kernel, devicetree
  Cc: Steven Vanden Branden

From: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>

Add mali gpu node to sun4i a10 platforms.
Tested with offscreen rendering with lima mesa (freedesktop gitlab)

Signed-off-by: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>
---
 arch/arm/boot/dts/sun4i-a10.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index 3a1c6b45c9a1..be22f18b1462 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -1001,6 +1001,27 @@
 			status = "disabled";
 		};
 
+		mali: gpu@1c40000 {
+			compatible = "allwinner,sun4i-a10-mali", "arm,mali-400";
+			reg = <0x01c40000 0x10000>;
+			interrupts = <69>,
+				     <70>,
+				     <71>,
+				     <72>,
+				     <73>;
+			interrupt-names = "gp",
+					  "gpmmu",
+					  "pp0",
+					  "ppmmu0",
+					  "pmu";
+			clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
+			clock-names = "bus", "core";
+			resets = <&ccu RST_GPU>;
+
+			assigned-clocks = <&ccu CLK_GPU>;
+			assigned-clock-rates = <384000000>;
+		};
+
 		fe0: display-frontend@1e00000 {
 			compatible = "allwinner,sun4i-a10-display-frontend";
 			reg = <0x01e00000 0x20000>;
-- 
2.17.1

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

* [PATCH] sun4i: dts: add gpu node to sun4i-a10 platform
  2018-07-23 16:09 ` stevenvandenbrandenstift
@ 2018-07-24 12:53   ` Maxime Ripard
  -1 siblings, 0 replies; 5+ messages in thread
From: Maxime Ripard @ 2018-07-24 12:53 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Jul 23, 2018 at 06:09:54PM +0200, stevenvandenbrandenstift at gmail.com wrote:
> From: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>
> 
> Add mali gpu node to sun4i a10 platforms.
> Tested with offscreen rendering with lima mesa (freedesktop gitlab)
> 
> Signed-off-by: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>

Applied (while slighly changing your commit title, the prefix should
be "ARM: dts: sun4i: ..")

Thanks!
Maxime
-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180724/086c5ee2/attachment-0001.sig>

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

* Re: [PATCH] sun4i: dts: add gpu node to sun4i-a10 platform
@ 2018-07-24 12:53   ` Maxime Ripard
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Ripard @ 2018-07-24 12:53 UTC (permalink / raw)
  To: stevenvandenbrandenstift
  Cc: wens, robh+dt, mark.rutland, linux-arm-kernel, linux-kernel,
	devicetree

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

On Mon, Jul 23, 2018 at 06:09:54PM +0200, stevenvandenbrandenstift@gmail.com wrote:
> From: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>
> 
> Add mali gpu node to sun4i a10 platforms.
> Tested with offscreen rendering with lima mesa (freedesktop gitlab)
> 
> Signed-off-by: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>

Applied (while slighly changing your commit title, the prefix should
be "ARM: dts: sun4i: ..")

Thanks!
Maxime
-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

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

* Re: [PATCH] sun4i: dts: add gpu node to sun4i-a10 platform
  2018-07-24 12:53   ` Maxime Ripard
  (?)
@ 2018-07-24 13:44   ` Steven Vanden Branden
  -1 siblings, 0 replies; 5+ messages in thread
From: Steven Vanden Branden @ 2018-07-24 13:44 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: wens, robh+dt, mark.rutland, linux-arm-kernel, linux-kernel,
	devicetree

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


Op di, 24 jul 2018 om 2:53 , schreef Maxime Ripard 
<maxime.ripard@bootlin.com>:
> On Mon, Jul 23, 2018 at 06:09:54PM +0200, 
> stevenvandenbrandenstift@gmail.com wrote:
>>  From: Steven Vanden Branden <stevenvandenbrandenstift@gmail.com>
>> 
>>  Add mali gpu node to sun4i a10 platforms.
>>  Tested with offscreen rendering with lima mesa (freedesktop gitlab)
>> 
>>  Signed-off-by: Steven Vanden Branden 
>> <stevenvandenbrandenstift@gmail.com>
> 
> Applied (while slighly changing your commit title, the prefix should
> be "ARM: dts: sun4i: ..")
	Thanks, since it was my first contribution , i was not sure about the 
naming there, thanks.
> 
> 
> Thanks!
> Maxime
> --
> Maxime Ripard, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com




[-- Attachment #2: Type: text/html, Size: 1259 bytes --]

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

end of thread, other threads:[~2018-07-24 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23 16:09 [PATCH] sun4i: dts: add gpu node to sun4i-a10 platform stevenvandenbrandenstift at gmail.com
2018-07-23 16:09 ` stevenvandenbrandenstift
2018-07-24 12:53 ` Maxime Ripard
2018-07-24 12:53   ` Maxime Ripard
2018-07-24 13:44   ` Steven Vanden Branden

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.