From 11dd5caf10c9f91b31a29ad2b0b29a797f4431aa 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-enable-mali.dts --- .../arm64/boot/dts/rockchip/overlays/Makefile | 3 ++- .../rockchip/overlays/rk3588-enable-mali.dts | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/overlays/rk3588-enable-mali.dts diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index 6b312fe8..e1d561be 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -430,7 +430,8 @@ dtb-$(CONFIG_CLK_RK3588) += \ rock-5b-radxa-display-10hd.dtbo \ rock-5b-radxa-display-8hd.dtbo \ rock-5b-rpi-camera-v2.dtbo \ - rock-5b-sata.dtbo + rock-5b-sata.dtbo \ + rk3588-enable-mali.dtbo dtb-$(CONFIG_CPU_RK3588) += \ radxa-cm5-io-okdo-5mp.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3588-enable-mali.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3588-enable-mali.dts new file mode 100644 index 00000000..d1b8a448 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3588-enable-mali.dts @@ -0,0 +1,22 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable vendor GPU driver"; + compatible = "rockchip,rk3588"; + category = "misc"; + exclusive = "gpu", "gpu_mali"; + description = "Enable vendor GPU driver and disable Panthor DRM driver."; + }; +}; + +&gpu { + status = "disabled"; +}; + +&gpu_mali { + status = "okay"; + mali-supply = <&vdd_gpu_s0>; + mem-supply = <&vdd_gpu_mem_s0>; +};