mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
riscv: dts: thead: th1520: Add IMG BXM-4-64 GPU node
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. Add fixed clock gpu_mem_clk, as the MEM clock on the T-HEAD SoC can't be controlled programatically. Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Drew Fustini <fustini@kernel.org> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Matt Coster <matt.coster@imgtec.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Signed-off-by: Drew Fustini <fustini@kernel.org>
This commit is contained in:
parent
8f5ae30d69
commit
5052d5cf13
|
|
@ -225,6 +225,13 @@ aonsys_clk: clock-73728000 {
|
|||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
gpu_mem_clk: mem-clk {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <0>;
|
||||
clock-output-names = "gpu_mem_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
stmmac_axi_config: stmmac-axi-config {
|
||||
snps,wr_osr_lmt = <15>;
|
||||
snps,rd_osr_lmt = <15>;
|
||||
|
|
@ -500,6 +507,20 @@ clk: clock-controller@ffef010000 {
|
|||
#clock-cells = <1>;
|
||||
};
|
||||
|
||||
gpu: gpu@ffef400000 {
|
||||
compatible = "thead,th1520-gpu", "img,img-bxm-4-64",
|
||||
"img,img-rogue";
|
||||
reg = <0xff 0xef400000 0x0 0x100000>;
|
||||
interrupt-parent = <&plic>;
|
||||
interrupts = <102 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&clk_vo CLK_GPU_CORE>,
|
||||
<&gpu_mem_clk>,
|
||||
<&clk_vo CLK_GPU_CFG_ACLK>;
|
||||
clock-names = "core", "mem", "sys";
|
||||
power-domains = <&aon TH1520_GPU_PD>;
|
||||
resets = <&rst TH1520_RESET_ID_GPU>;
|
||||
};
|
||||
|
||||
rst: reset-controller@ffef528000 {
|
||||
compatible = "thead,th1520-reset";
|
||||
reg = <0xff 0xef528000 0x0 0x4f>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user