Re: [PATCH v2] arm: dts: sun5i: Add GPU node

2021-02-11 Thread Maxime Ripard
Hi,

On Thu, Feb 11, 2021 at 03:25:23PM +, Yassine Oudjana wrote:
> sun5i has the same Mali 400 GPU as sun4i with the same interrupts, clocks
> and resets. Add node for it in dts.
> 
> Signed-off-by: Yassine Oudjana 

Unfortunately we already merged a similar patch for 5.12

Maxime


signature.asc
Description: PGP signature


[PATCH v2] arm: dts: sun5i: Add GPU node

2021-02-11 Thread Yassine Oudjana
sun5i has the same Mali 400 GPU as sun4i with the same interrupts, clocks
and resets. Add node for it in dts.

Signed-off-by: Yassine Oudjana 
---
 arch/arm/boot/dts/sun5i.dtsi | 21 +
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi
index c2b4fbf552a3..e21b4fe64cbe 100644
--- a/arch/arm/boot/dts/sun5i.dtsi
+++ b/arch/arm/boot/dts/sun5i.dtsi
@@ -726,6 +726,27 @@ i2c2: i2c@1c2b400 {
#size-cells = <0>;
};

+   mali: gpu@1c4 {
+   compatible = "allwinner,sun4i-a10-mali", "arm,mali-400";
+   reg = <0x01c4 0x1>;
+   interrupts = <69>,
+<70>,
+<71>,
+<72>,
+<73>;
+   interrupt-names = "gp",
+ "gpmmu",
+ "pp0",
+ "ppmmu0",
+ "pmu";
+   clocks = < CLK_AHB_GPU>, < CLK_GPU>;
+   clock-names = "bus", "core";
+   resets = < RST_GPU>;
+
+   assigned-clocks = < CLK_GPU>;
+   assigned-clock-rates = <38400>;
+   };
+
timer@1c6 {
compatible = "allwinner,sun5i-a13-hstimer";
reg = <0x01c6 0x1000>;
--
2.30.0