arm64: dts: imx8qxp: add GPU nodes
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 18 Dec 2023 14:23:12 +0000 (15:23 +0100)
committerShawn Guo <shawnguo@kernel.org>
Thu, 1 Feb 2024 10:08:48 +0000 (18:08 +0800)
Add the DT node for the GPU core found on the i.MX8QXP.

etnaviv-gpu 53100000.gpu: model: GC7000, revision: 6214
[drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8-ss-gpu0.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/freescale/imx8qxp.dtsi

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-gpu0.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-gpu0.dtsi
new file mode 100644 (file)
index 0000000..9b8a44a
--- /dev/null
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019 NXP
+ *     Dong Aisheng <aisheng.dong@nxp.com>
+ */
+
+#include <dt-bindings/firmware/imx/rsrc.h>
+
+gpu0_subsys: bus@53000000 {
+       compatible = "simple-bus";
+       #address-cells = <1>;
+       #size-cells = <1>;
+       ranges = <0x53000000 0x0 0x53000000 0x1000000>;
+
+       gpu_3d0: gpu@53100000 {
+               compatible = "vivante,gc";
+               reg = <0x53100000 0x40000>;
+               interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&clk IMX_SC_R_GPU_0_PID0 IMX_SC_PM_CLK_PER>,
+                        <&clk IMX_SC_R_GPU_0_PID0 IMX_SC_PM_CLK_MISC>;
+               clock-names = "core", "shader";
+               assigned-clocks = <&clk IMX_SC_R_GPU_0_PID0 IMX_SC_PM_CLK_PER>,
+                                 <&clk IMX_SC_R_GPU_0_PID0 IMX_SC_PM_CLK_MISC>;
+               assigned-clock-rates = <700000000>, <850000000>;
+               power-domains = <&pd IMX_SC_R_GPU_0_PID0>;
+       };
+};
index fdbb4242b157c07f7ae35ca8ef5daddca59f73fa..10e16d84c0c3b7caa9a3c43d0483a3459cca4a44 100644 (file)
        /* sorted in register address */
        #include "imx8-ss-img.dtsi"
        #include "imx8-ss-vpu.dtsi"
+       #include "imx8-ss-gpu0.dtsi"
        #include "imx8-ss-adma.dtsi"
        #include "imx8-ss-conn.dtsi"
        #include "imx8-ss-ddr.dtsi"