From 2f98ea57c0d927a2df9616de11bdc41315891e45 Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Wed, 29 May 2024 11:13:53 +0800 Subject: [PATCH] feat: add rk3588-mali-enable --- .../arm64/boot/dts/rockchip/overlays/Makefile | 1 + .../rockchip/overlays/rk3588-mali-enable.dts | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/overlays/rk3588-mali-enable.dts diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index 33b83c53..5d9c691c 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -354,6 +354,7 @@ dtb-$(CONFIG_CLK_RK3588) += \ rk3588-i2c7-m3.dtbo \ rk3588-i2c8-m2.dtbo \ rk3588-i2c8-m4.dtbo \ + rk3588-mali-enable.dtbo \ rk3588-pwm0-m1.dtbo \ rk3588-pwm0-m2.dtbo \ rk3588-pwm1-m1.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3588-mali-enable.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3588-mali-enable.dts new file mode 100644 index 00000000..03596b35 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3588-mali-enable.dts @@ -0,0 +1,23 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable Arm Mali GPU driver"; + compatible = "rockchip,rk3588"; + category = "misc"; + exclusive = "gpu", "gpu_mali"; + description = "Enable Arm Mali GPU driver. +This will disable opensource Panthor driver"; + }; +}; + +&gpu { + status = "disabled"; +}; + +&gpu_mali { + status = "okay"; + mali-supply = <&vdd_gpu_s0>; + mem-supply = <&vdd_gpu_mem_s0>; +};