From patchwork Mon Dec 18 14:23:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13497050 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A6767C35274 for ; Mon, 18 Dec 2023 14:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wb47WGp3KG+YORfbBm2czr19TWEYPSZrDX06/1wghy4=; b=03JzVRSBsJVAO8 V288NtfvETAc1R9AFFHaUL8P1QmRlY4U8vYuJPj0UUzPeXAcl0qR4PKHuvQw4AGO4d0sfgMVlqRs1 ju9U6LeHrqmRxA0QQqKUjVmVDWgH0ulUY8YM2qH49Ysz9Yuuxdz3RPBXlmN2T9/sTu/qxRp3HqKcc 87jwzsOK0e5zbe/5JSuM+v5fHa3u6DV3t9OcI+Yp78OZOepIpvMW7E2LaJNBzkBpau4dX9gvgHWeG NNDjY+IHA5V6xqx8uH3KJLrUkL0vgZxZgORpoZsGBm6VwWlXQjdgyFfYBtb2aJTVKZj14oDwLmJX8 FGbs7HvJcDytE7FV7qmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFEWe-00B28p-1V; Mon, 18 Dec 2023 14:23:20 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFEWa-00B26F-23 for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 14:23:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1702909396; x=1734445396; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=A5cVIHv3cv38/+w75fClFY3yEGCAdBHbtSLLA/hAAxM=; b=FN6ONs9uGA2ThO5Yj+arD7EU2IHUszNLA9uUNUhSkeWG0/qe69B+X4Mu W97tta+3vZ0TUqDHEYmrIf/TeqDpqOcDXaObbtZHwJkrbwYyRKqNE/5fe P0mLz8jRB7lzYwTbI6EtC3dy3TDSB/6FQdTq/Jw43NnRbLC2pIH9DLX9f E/p9BiI/AlMwTsPX0Iiw9Menui3sP1cjx2i3pZx0NRouxtdFWnEqvMIvR q/fII2JFzsnrlzAAF9BB1wBgA7M42bMO2/dIvDOTCkL/nWksgzMI5+M7N aeyQ/TFvP3S9p8L+qo7MG2VTARxeXhKRP5vzuODryes3S6pj2v+/E3Tek g==; X-IronPort-AV: E=Sophos;i="6.04,285,1695679200"; d="scan'208";a="34565308" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Dec 2023 15:23:12 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 19913280075; Mon, 18 Dec 2023 15:23:12 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] arm64: dts: imx8qxp: add GPU nodes Date: Mon, 18 Dec 2023 15:23:12 +0100 Message-Id: <20231218142312.3175828-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_062317_082559_8C87CD69 X-CRM114-Status: GOOD ( 15.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Frank Li --- Based on downstream commit [1]. I am not aware if additional modifications are necessary in etnaviv driver though. The revision number is slightly different to the one from imx8mp: etnaviv-gpu 38000000.gpu: model: GC7000, revision: 6204 [1] https://github.com/Freescale/linux-fslc/commit/d0964b3f9afd8a75aca73921fdb0c128cc46c4fe .../boot/dts/freescale/imx8-ss-gpu0.dtsi | 27 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 1 + 2 files changed, 28 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-gpu0.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 index 000000000000..9b8a44aa63d6 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-gpu0.dtsi @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019 NXP + * Dong Aisheng + */ + +#include + +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 = ; + 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>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index fdbb4242b157..10e16d84c0c3 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -317,6 +317,7 @@ map0 { /* 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"