[RFC v3 18/18] riscv: dts: thead: Add GPU node to TH1520 device tree
Michal Wilczynski
m.wilczynski at samsung.com
Mon Jan 20 17:21:11 UTC 2025
Add a device tree node for the IMG BXM-4-64 GPU present in the T-HEAD
TH1520 SoC used by the Lichee Pi 4A board. This node enables support for
the GPU using the drm/imagination driver.
By adding this node, the kernel can recognize and initialize the GPU,
providing graphics acceleration capabilities on the Lichee Pi 4A and
other boards based on the TH1520 SoC.
Signed-off-by: Michal Wilczynski <m.wilczynski at samsung.com>
---
arch/riscv/boot/dts/thead/th1520.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
index f2c6937341a5..cf2b1bb2ee96 100644
--- a/arch/riscv/boot/dts/thead/th1520.dtsi
+++ b/arch/riscv/boot/dts/thead/th1520.dtsi
@@ -497,6 +497,18 @@ clk: clock-controller at ffef010000 {
#clock-cells = <1>;
};
+ gpu: gpu at ffef400000 {
+ compatible = "thead,th1520-gpu", "img,img-bxm";
+ reg = <0xff 0xef400000 0x0 0x100000>;
+ interrupt-parent = <&plic>;
+ interrupts = <102 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk_vo CLK_GPU_CORE>,
+ <&clk_vo CLK_GPU_CFG_ACLK>;
+ clock-names = "core", "sys";
+ power-domains = <&aon TH1520_AON_GPU_PD>;
+ resets = <&rst>;
+ };
+
rst: reset-controller at ffef528000 {
compatible = "thead,th1520-reset";
reg = <0xff 0xef528000 0x0 0x4f>;
--
2.34.1
More information about the dri-devel
mailing list