light: use etnaviv
authorIcenowy Zheng <uwu@icenowy.me>
Fri, 1 Dec 2023 05:33:22 +0000 (13:33 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 13 Mar 2024 06:58:57 +0000 (15:58 +0900)
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
(cherry picked from commit d6f09caa32996bc000c009228ec6265dded9e15d)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/riscv/boot/dts/thead/light.dtsi

index 85fed55bb6931e99ec7764f4d1d602838c9ed885..e66b5ab35c16436d16c509003cfc7b669b09efe4 100644 (file)
                        #size-cells = <0>;
                };
 
-               g2d: gc620@ffecc80000 {
+/*             g2d: gc620@ffecc80000 {
                        compatible = "thead,c910-gc620";
                        reg = <0xff 0xecc80000 0x0 0x40000>;
                        interrupt-parent = <&intc>;
                                 <&vpsys_clk_gate LIGHT_VPSYS_G2D_CCLK>;
                        clock-names = "pclk", "aclk", "cclk";
                        status = "okay";
+               };*/
+
+               g2d: gpu@13040000 {
+                       compatible = "vivante,gc";
+                       reg = <0xff 0xecc80000 0x0 0x40000>;
+
+                       clocks = <&vpsys_clk_gate LIGHT_VPSYS_G2D_PCLK>,
+                                <&vpsys_clk_gate LIGHT_VPSYS_G2D_ACLK>,
+                                <&vpsys_clk_gate LIGHT_VPSYS_G2D_CCLK>;
+                       clock-names = "bus", "core", "shader";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <101>;
                };
 
                dsi0: dw-mipi-dsi0@ffef500000 {