All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] add mali r6p2 dt node
@ 2017-11-07 12:59 ` Giulio Benetti
  0 siblings, 0 replies; 47+ messages in thread
From: Giulio Benetti @ 2017-11-07 12:59 UTC (permalink / raw)
  To: robh+dt
  Cc: mark.rutland, linux, maxime.ripard, wens, devicetree,
	linux-arm-kernel, linux-kernel, linux-sunxi, Giulio Benetti

It seems there is not mali node in sun7i-a20.dtsi

Add mali node to sun7i-a20.dtsi

This patch adds device tree mali node compatible with r6p2 utgard kernel driver 
provided by ARM and patched by maxime ripard on his github.

It can be easily used in target.dts with:

&mali {
	status = "okay";
}

then loading mali.ko in user space.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
 arch/arm/boot/dts/sun7i-a20.dtsi | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index 228c368..e402596 100644
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -1216,6 +1216,33 @@
 			#size-cells = <0>;
 		};
 
+		mali: gpu@1c40000 {
+			compatible = "allwinner,sun8i-a23-mali",
+				     "allwinner,sun7i-a20-mali", "arm,mali-400";
+			reg = <0x01c40000 0x10000>;
+			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "gp",
+					  "gpmmu",
+					  "pp0",
+					  "ppmmu0",
+					  "pp1",
+					  "ppmmu1",
+					  "pmu";
+			clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
+			clock-names = "bus", "core";
+			resets = <&ccu RST_GPU>;
+			#cooling-cells = <2>;
+
+			assigned-clocks = <&ccu CLK_GPU>;
+			assigned-clock-rates = <381000000>;
+		};
+
 		gmac: ethernet@1c50000 {
 			compatible = "allwinner,sun7i-a20-gmac";
 			reg = <0x01c50000 0x10000>;
-- 
2.7.4

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

end of thread, other threads:[~2017-11-30 15:24 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 12:59 [PATCH 1/1] add mali r6p2 dt node Giulio Benetti
2017-11-07 12:59 ` Giulio Benetti
2017-11-07 12:59 ` Giulio Benetti
2017-11-07 13:02 ` Maxime Ripard
2017-11-07 13:02   ` Maxime Ripard
2017-11-16 10:13 ` Cedrus driver Giulio Benetti
2017-11-16 10:13   ` Giulio Benetti
     [not found]   ` <6fcdc0d9-d0f8-785a-bb00-b1b41c684e59@imkreisrum.de>
2017-11-16 10:37     ` [linux-sunxi] " Giulio Benetti
2017-11-16 10:37       ` Giulio Benetti
2017-11-16 10:37       ` Giulio Benetti
2017-11-16 11:02       ` [linux-sunxi] " Maxime Ripard
2017-11-16 11:02         ` Maxime Ripard
2017-11-16 11:02         ` Maxime Ripard
2017-11-16 12:30         ` Giulio Benetti
2017-11-16 12:53           ` Maxime Ripard
2017-11-16 12:57             ` Giulio Benetti
2017-11-16 13:12               ` Hans Verkuil
2017-11-16 13:17                 ` Giulio Benetti
2017-11-16 13:39                   ` Maxime Ripard
2017-11-16 13:42                     ` Giulio Benetti
2017-11-28  0:03                       ` Giulio Benetti
2017-11-28  8:35                         ` Maxime Ripard
2017-11-28  9:50                           ` Giulio Benetti
2017-11-28 11:20                             ` Thomas van Kleef
2017-11-28 11:26                               ` Giulio Benetti
2017-11-28 11:29                                 ` Thomas van Kleef
2017-11-28 11:54                                   ` Giulio Benetti
2017-11-28 12:31                                     ` Thomas van Kleef
2017-11-28 12:52                                     ` Maxime Ripard
2017-11-28 13:03                                       ` Giulio Benetti
2017-11-28 13:07                                         ` Maxime Ripard
2017-11-28 13:12                                           ` Giulio Benetti
2017-11-28 15:17                                             ` Maxime Ripard
2017-11-28 15:19                                               ` Giulio Benetti
2017-11-28 12:26                               ` Maxime Ripard
2017-11-28 14:51                                 ` Thomas van Kleef
2017-11-28 15:35                                   ` Maxime Ripard
2017-11-29 15:36                                     ` Thomas van Kleef
2017-11-30 15:24                                       ` Maxime Ripard
2017-11-16 13:39                   ` Hans Verkuil
2017-11-16 13:11         ` Stefan Monnier
2017-11-16 19:59         ` Nicolas Dufresne
2017-11-16 19:59           ` Nicolas Dufresne
2017-11-16 19:59           ` Nicolas Dufresne
2017-11-17  8:01           ` Maxime Ripard
2017-11-17  8:01             ` Maxime Ripard
2017-11-17  8:01             ` Maxime Ripard

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.