2018-02-15 13:48:16

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH] ARM: sun7i: dt: Add Mali node

The A20 has an ARM Mali 400 GPU, so add binding to our DT.

Signed-off-by: Giulio Benetti <[email protected]>
---
arch/arm/boot/dts/sun7i-a20.dtsi | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index c4ed153d..1524ccb 100644
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -1225,6 +1225,31 @@
#size-cells = <0>;
};

+ mali: gpu@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_AHB_GPU>, <&ccu CLK_GPU>;
+ clock-names = "bus", "core";
+ resets = <&ccu RST_GPU>;
+
+ assigned-clocks = <&ccu CLK_GPU>;
+ assigned-clock-rates = <384000000>;
+ };
+
gmac: ethernet@1c50000 {
compatible = "allwinner,sun7i-a20-gmac";
reg = <0x01c50000 0x10000>;
--
2.7.4



2018-02-15 13:59:50

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH] ARM: sun7i: dt: Add Mali node

On Thu, Feb 15, 2018 at 02:46:02PM +0100, Giulio Benetti wrote:
> The A20 has an ARM Mali 400 GPU, so add binding to our DT.
>
> Signed-off-by: Giulio Benetti <[email protected]>

The prefix should have been ARM: dts: sun7i. Fixed and applied, thanks!
Maxime

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


Attachments:
(No filename) (397.00 B)
signature.asc (849.00 B)
Download all attachments

2018-02-15 14:06:37

by Giulio Benetti

[permalink] [raw]
Subject: Re: [PATCH] ARM: sun7i: dt: Add Mali node

Il 15/02/2018 14:58, Maxime Ripard ha scritto:
> On Thu, Feb 15, 2018 at 02:46:02PM +0100, Giulio Benetti wrote:
>> The A20 has an ARM Mali 400 GPU, so add binding to our DT.
>>
>> Signed-off-by: Giulio Benetti <[email protected]>
>
> The prefix should have been ARM: dts: sun7i. Fixed and applied, thanks!
> Maxime
>

Oh, right.
Thank you!

--
Giulio Benetti
R&D Manager &
Advanced Research

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale ? 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642