]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: ti: k3-j721s2: Add GPU node
authorMatt Coster <matt.coster@imgtec.com>
Mon, 28 Apr 2025 11:07:15 +0000 (12:07 +0100)
committerNishanth Menon <nm@ti.com>
Tue, 6 May 2025 12:30:34 +0000 (07:30 -0500)
The J721S2 binding is based on the TI downstream binding in commit
54b0f2a00d92 ("arm64: dts: ti: k3-j721s2-main: add gpu node") from [1]
but with updated compatible strings.

The clock[2] and power[3] indices were verified from HTML docs, while
the interrupt index comes from the TRM[4] (appendix
"J721S2_Appendix_20241106_Public.xlsx", "Interrupts (inputs)",
"GPU_BXS464_WRAP0_GPU_SS_0_OS_IRQ_OUT_0").

[1]: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel
[2]: https://downloads.ti.com/tisci/esd/latest/5_soc_doc/j721s2/clocks.html
[3]: https://downloads.ti.com/tisci/esd/latest/5_soc_doc/j721s2/devices.html
[4]: https://www.ti.com/lit/zip/spruj28 (revision E)

Reviewed-by: Randolph Sapp <rs@ti.com>
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Link: https://lore.kernel.org/r/20250428-bxs-4-64-dts-v4-2-eddafb4ae19f@imgtec.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi

index 5071271c5a5c4ff8645fc42ca52e429bf5deeb9a..83cf0adb2cb71f854314534faf8fba813b1892a6 100644 (file)
                /* reserved for MAIN_R5F1_1 */
                status = "reserved";
        };
+
+       gpu: gpu@4e20000000 {
+               compatible = "ti,j721s2-gpu", "img,img-bxs-4-64", "img,img-rogue";
+               reg = <0x4e 0x20000000 0x00 0x80000>;
+               clocks = <&k3_clks 130 1>;
+               clock-names = "core";
+               assigned-clocks = <&k3_clks 130 1>;
+               assigned-clock-rates = <800000000>;
+               interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+               power-domains = <&k3_pds 130 TI_SCI_PD_EXCLUSIVE>,
+                               <&k3_pds 373 TI_SCI_PD_EXCLUSIVE>;
+               power-domain-names = "a", "b";
+               dma-coherent;
+       };
 };