diff mbox series

[RFC,v2,19/19] riscv: dts: thead: Add GPU node to TH1520 device tree

Message ID 20241223125553.3527812-20-m.wilczynski@samsung.com (mailing list archive)
State New
Headers show
Series [RFC,v2,01/19] dt-bindings: clock: Add VO subsystem clocks and update address requirements | expand

Checks

Context Check Description
conchuod/vmtest-for-next-PR fail PR summary
conchuod/patch-19-test-1 success .github/scripts/patches/tests/build_rv32_defconfig.sh took 101.87s
conchuod/patch-19-test-2 success .github/scripts/patches/tests/build_rv64_clang_allmodconfig.sh took 979.53s
conchuod/patch-19-test-3 success .github/scripts/patches/tests/build_rv64_gcc_allmodconfig.sh took 1152.05s
conchuod/patch-19-test-4 success .github/scripts/patches/tests/build_rv64_nommu_k210_defconfig.sh took 15.99s
conchuod/patch-19-test-5 success .github/scripts/patches/tests/build_rv64_nommu_virt_defconfig.sh took 17.51s
conchuod/patch-19-test-6 success .github/scripts/patches/tests/checkpatch.sh took 0.38s
conchuod/patch-19-test-7 success .github/scripts/patches/tests/dtb_warn_rv64.sh took 36.34s
conchuod/patch-19-test-8 success .github/scripts/patches/tests/header_inline.sh took 0.00s
conchuod/patch-19-test-9 success .github/scripts/patches/tests/kdoc.sh took 0.44s
conchuod/patch-19-test-10 success .github/scripts/patches/tests/module_param.sh took 0.01s
conchuod/patch-19-test-11 success .github/scripts/patches/tests/verify_fixes.sh took 0.00s
conchuod/patch-19-test-12 success .github/scripts/patches/tests/verify_signedoff.sh took 0.02s

Commit Message

Michal Wilczynski Dec. 23, 2024, 12:55 p.m. UTC
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@samsung.com>
---
 arch/riscv/boot/dts/thead/th1520.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox series

Patch

diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
index c6fe2ea3197d..7e4b97f9e1b5 100644
--- a/arch/riscv/boot/dts/thead/th1520.dtsi
+++ b/arch/riscv/boot/dts/thead/th1520.dtsi
@@ -506,6 +506,19 @@  clk: clock-controller@ffef010000 {
 			#clock-cells = <1>;
 		};
 
+		gpu: gpu@ffef400000 {
+			compatible = "thead,th1520-gpu", "img,img-bxm";
+			reg = <0xff 0xef400000 0x0 0x100000>;
+			interrupt-parent = <&plic>;
+			interrupts = <102 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clk CLK_GPU_CORE>,
+				 <&clk CLK_GPU_CFG_ACLK>;
+			clock-names = "core", "sys";
+			power-domains = <&pd TH1520_AON_GPU_PD>;
+			resets = <&rst TH1520_RESET_ID_GPU>;
+			reset-names = "gpu";
+		};
+
 		rst: reset-controller@ffef528000 {
 			compatible = "thead,th1520-reset";
 			reg = <0xff 0xef528000 0x0 0x4f>;