* [PATCH v3 1/2] dt-bindings: gpu: mali-utgard: Add compatible for A64 Mali
@ 2018-11-14 4:28 Jagan Teki
2018-11-14 4:28 ` [PATCH v3 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU Jagan Teki
0 siblings, 1 reply; 3+ messages in thread
From: Jagan Teki @ 2018-11-14 4:28 UTC (permalink / raw)
To: Maxime Ripard, Chen-Yu Tsai, devicetree, linux-arm-kernel,
linux-kernel, linux-sunxi, dri-devel, David Airlie, Rob Herring,
linux-amarula
Cc: Jagan Teki
Allwinner A64 has Mali-400MP2, so document the relevant compatible
as "allwinner,sun50i-a64-mali" along with reset line.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v3:
- document reset line
Changes for v2:
- New patch, separated from previous version patch.
Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
index 63cd91176a68..3f128e4f95c6 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
@@ -11,6 +11,7 @@ Required properties:
+ allwinner,sun4i-a10-mali
+ allwinner,sun7i-a20-mali
+ allwinner,sun8i-h3-mali
+ + allwinner,sun50i-a64-mali
+ allwinner,sun50i-h5-mali
+ amlogic,meson-gxbb-mali
+ amlogic,meson-gxl-mali
@@ -73,6 +74,10 @@ to specify one more vendor-specific compatible, among:
Required properties:
* resets: phandle to the reset line for the GPU
+ - allwinner,sun50i-a64-mali
+ Required properties:
+ * resets: phandle to the reset line for the GPU
+
- allwinner,sun50i-h5-mali
Required properties:
* resets: phandle to the reset line for the GPU
--
2.18.0.321.gffc6fa0e3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v3 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU
2018-11-14 4:28 [PATCH v3 1/2] dt-bindings: gpu: mali-utgard: Add compatible for A64 Mali Jagan Teki
@ 2018-11-14 4:28 ` Jagan Teki
2018-11-15 15:06 ` Maxime Ripard
0 siblings, 1 reply; 3+ messages in thread
From: Jagan Teki @ 2018-11-14 4:28 UTC (permalink / raw)
To: Maxime Ripard, Chen-Yu Tsai, devicetree, linux-arm-kernel,
linux-kernel, linux-sunxi, dri-devel, David Airlie, Rob Herring,
linux-amarula
Cc: Jagan Teki
Add support for Allwinner A64 has Mali-400MP2.
All interrupt lines are mentioned in the manual so used the same.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v3:
- Clean commit message
Changes for v2:
- Drop assigned clock properties
- Separate dt-bindings as separate patch.
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index d6f269883759..d507be9879d8 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -813,6 +813,28 @@
};
};
+ mali: gpu@1c40000 {
+ compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
+ reg = <0x01c40000 0x10000>;
+ interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 101 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>;
+ };
+
gic: interrupt-controller@1c81000 {
compatible = "arm,gic-400";
reg = <0x01c81000 0x1000>,
--
2.18.0.321.gffc6fa0e3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU
2018-11-14 4:28 ` [PATCH v3 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU Jagan Teki
@ 2018-11-15 15:06 ` Maxime Ripard
0 siblings, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2018-11-15 15:06 UTC (permalink / raw)
To: Jagan Teki
Cc: Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel,
linux-sunxi, dri-devel, David Airlie, Rob Herring, linux-amarula
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
On Wed, Nov 14, 2018 at 09:58:37AM +0530, Jagan Teki wrote:
> Add support for Allwinner A64 has Mali-400MP2.
>
> All interrupt lines are mentioned in the manual so used the same.
>
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Applied both, thanks
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-15 15:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-14 4:28 [PATCH v3 1/2] dt-bindings: gpu: mali-utgard: Add compatible for A64 Mali Jagan Teki
2018-11-14 4:28 ` [PATCH v3 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU Jagan Teki
2018-11-15 15:06 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).