]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: a523: add Mali GPU node
authorMikhail Kalashnikov <iuncuim@gmail.com>
Fri, 11 Jul 2025 03:57:28 +0000 (11:57 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 15 Jul 2025 15:37:02 +0000 (23:37 +0800)
The Allwinner A523 SoC features the Mali-G57 MC1 GPU, which belongs
to the Mali Valhall (v9) family. There is a power domain specifically
for this GPU that needs to be enabled to utilize it.

To enable in a specific device, we need to enable the gpu node and specify
the “mali-supply” regulator additionally in the device tree.

Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20250711035730.17507-3-iuncuim@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

index c16d63d2044ae7fd29f647e1c0f29d3d235d452e..d8f5a56bde494a9e3ed651a5ba2f7fae062c2e0b 100644 (file)
                #size-cells = <1>;
                ranges = <0x0 0x0 0x0 0x40000000>;
 
+               gpu: gpu@1800000 {
+                       compatible = "allwinner,sun55i-a523-mali",
+                                    "arm,mali-valhall-jm";
+                       reg = <0x1800000 0x10000>;
+                       interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "job", "mmu", "gpu";
+                       clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>;
+                       clock-names = "core", "bus";
+                       power-domains = <&pck600 PD_GPU>;
+                       resets = <&ccu RST_BUS_GPU>;
+                       status = "disabled";
+               };
+
                pio: pinctrl@2000000 {
                        compatible = "allwinner,sun55i-a523-pinctrl";
                        reg = <0x2000000 0x800>;