Skip to contentSkip to conversation

ARM: dtsi: sun8i-r40: add mali node

PATCH In review Lothar Felten 2 participants 2 messages Nov 1, 2018 – Nov 5, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: dtsi: sun8i-r40: add mali node

This patch adds a node for the mali 400 GPU of the R40/V40 SoC

---
Changes v2->v3:
- remove mali clock rates
- drop hdmi-phy sun50i-a64 compatibility
- patch version, change log added

Changes v1->v2:
- commit message uppercase ARM prefix
- wrong patch submitted by mistake
---

 arch/arm/boot/dts/sun8i-r40.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/sun8i-r40.dtsi +22 -0
index 6f4c9ca5a3ee..136c248cc7d1 100644
@@ -542,6 +542,28 @@
 
 		};
 
+		mali: gpu at 1c40000 {
+			compatible = "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_BUS_GPU>, <&ccu CLK_GPU>;
+			clock-names = "bus", "core";
+			resets = <&ccu RST_BUS_GPU>;
+		};
+
 		gmac: ethernet at 1c50000 {
 			compatible = "allwinner,sun8i-r40-gmac";
 			syscon = <&ccu>;
Signature · 1 line
2.11.0
#1 lore raw

Hi,x

Quoted 22 lines · Lothar Felten

This patch adds a node for the mali 400 GPU of the R40/V40 SoC

---
Changes v2->v3:
- remove mali clock rates
- drop hdmi-phy sun50i-a64 compatibility
- patch version, change log added

Changes v1->v2:
- commit message uppercase ARM prefix
- wrong patch submitted by mistake
---

 arch/arm/boot/dts/sun8i-r40.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/sun8i-r40.dtsi +0 -0
index 6f4c9ca5a3ee..136c248cc7d1 100644

arch/arm/boot/dts/sun8i-r40.dtsi line 546

Quoted 5 lines
arch/arm/boot/dts/sun8i-r40.dtsi +2 -0
@@ -542,6 +542,28 @@
 
 		};
 
+		mali: gpu at 1c40000 {
+			compatible = "allwinner,sun7i-a20-mali", "arm,mali-400";

You should have an r40 compatible here. You can have a look at the A23-A33 DTSI compatible for an example if you want.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181105/5662b15f/attachment.sig>