arm64: dts: Support Mali450 on rk3328
Subsystems (4)
Heiko Stuebner
maintainercover arm64: dts: Support Mali450 on rk3328
Pretty standard setup. Tested with the kmscube demo running using the lima kernel and gallium driver.
Heiko Stuebner (3):
dt-bindings: gpu: mali-utgard: add rockchip,rk3328-mali compatible
arm64: dts: rockchip: add rk3328 mali gpu node
arm64: dts: rockchip: enable gpu on rk3328-rock64
.../devicetree/bindings/gpu/arm,mali-utgard.txt | 1 + arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 4 ++++ arch/arm64/boot/dts/rockchip/rk3328.dtsi | 23 ++++++++++++++++++++++ 3 files changed, 28 insertions(+)
Signature · 1 line
2.14.2
Heiko Stuebner
maintainerPATCH 1/3 dt-bindings: gpu: mali-utgard: add rockchip, rk3328-mali compatible
The rk3328 quad-core Cortex A53 uses a Mali-450MP2 with 2 PPs, so add a compatible for it.
--- Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt +1 -0
@@ -17,6 +17,7 @@ Required properties: + rockchip,rk3066-mali + rockchip,rk3188-mali + rockchip,rk3228-mali + + rockchip,rk3328-mali + stericsson,db8500-mali - reg: Physical base address and length of the GPU registers
Signature · 1 line
2.14.2
Rob Herring
maintainerPATCH 1/3 dt-bindings: gpu: mali-utgard: add rockchip,rk3328-mali compatible
Quoted 7 lines · Heiko Stuebner
The rk3328 quad-core Cortex A53 uses a Mali-450MP2 with 2 PPs, so add a compatible for it.
Signed-off-by Heiko Stuebner <[email protected]>--- Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 1 + 1 file changed, 1 insertion(+)
For the series,
Though I don't think it's really necessary to enable the gpu per board as it has no pinout. Default enabled would be better IMO.
Rob
Heiko Stuebner
maintainerPATCH 2/3 arm64: dts: rockchip: add rk3328 mali gpu node
In reply to Heiko StuebnerAdd the core gpu node for the rk3328, a Mali450MP2.
--- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/rockchip/rk3328.dtsi +23 -0
@@ -543,6 +543,29 @@ status = "disabled"; }; + gpu: gpu at ff300000 { + compatible = "rockchip,rk3328-mali", "arm,mali-450"; + reg = <0x0 0xff300000 0x0 0x40000>; + interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "gp", + "gpmmu", + "pp", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1"; + clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; + clock-names = "bus", "core"; + resets = <&cru SRST_GPU_A>; + status = "disabled"; + }; + h265e_mmu: iommu at ff330200 { compatible = "rockchip,iommu"; reg = <0x0 0xff330200 0 0x100>;
Signature · 1 line
2.14.2
Heiko Stuebner
maintainerPATCH 3/3 arm64: dts: rockchip: enable gpu on rk3328-rock64
In reply to Heiko StuebnerEnable the Mali450MP2 on the Rock64 board.
--- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +4 -0
@@ -144,6 +144,10 @@ status = "okay"; }; +&gpu { + status = "okay"; +}; + &i2c1 { status = "okay";
Signature · 1 line
2.14.2
Heiko Stuebner
maintainercover arm64: dts: Support Mali450 on rk3328
In reply to Heiko StuebnerAm Samstag, 9. Dezember 2017, 01:07:35 CET schrieb Heiko Stuebner:
Quoted 8 lines
Pretty standard setup. Tested with the kmscube demo running using the lima kernel and gallium driver.
Heiko Stuebner (3):
dt-bindings: gpu: mali-utgard: add rockchip,rk3328-mali compatible
arm64: dts: rockchip: add rk3328 mali gpu node
arm64: dts: rockchip: enable gpu on rk3328-rock64
applied for 4.16 with Robs review and following his suggestion of making the gpu simply always-on and thus droppping patch 3.