Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp117584pxb; Wed, 6 Oct 2021 00:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjLs5SR50oWWHN3Hmfj5fj5pRN47CP9BXJNgGUABmymzS+RJZcx7QBE3Lm29ECn2njfrgS X-Received: by 2002:a17:90a:6401:: with SMTP id g1mr9393207pjj.228.1633506992341; Wed, 06 Oct 2021 00:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633506992; cv=none; d=google.com; s=arc-20160816; b=ntoVu3eoF9yPdP3kb8oooejchi7mmy3KSf14eaKYzpr8ILY5nqVio/eZhgkYDoY12B zfZU8XoSB7g7cBtkH6q6lk0S1W0gxZSILEsbdB2SYJ243n1JU9BwM5Z80K2Yy6UnF1HM B7pFzBp+bAusunMJLbkxYIwiK83bt47CMZ2gbs7t7TpDu7cwqbe4Y12SE0zDhPMzleGi ZbHY6FiFTjsQqNAOSpIafE5s8fcYMf2NVrC3kyMaioXikftaob7hfHbsdIdiCpZwovRC +w0sf3MIhTTmCWWnybZfFdoN/xtVmntPGuOBLlKSKjybts4i3uTKzK6K2t7cMl/yVEy6 ZYTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=7OOO2k6T8FqBiblOd8WELOR+3Zju6HQiLdXrH8J1fts=; b=r6tyI1xsF694GmsQV9Oc92ONnFVJIhROxJUZCf6hWN823kUqGbJwuZiVTkaS9nHT/V EXuTfByXGMYjZmTxSxJKhocEsqTw/t127SzwVUkPSQWcW0hiu31FEMq2opy/z6HCEBH6 4ntBIqwZKMHh6kBLG40UZdQy4qXK35a4XJ/F9nTlnSzCj3mFliEGfgRq3Fgr7s/lW+5O f5Z8F+SrIGDqcAljBZ7leImy5yor4qn+oRUpwkvkQiWASZW32WZhJmO/yjavLCpqAdYV r+j0jOjpYRozUfHuRI7+MDA1e700QTQiX+LfKwOFp5QBIGCYMAkVe1DP5+JucxJXNlUO PiOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si24354383plm.186.2021.10.06.00.56.18; Wed, 06 Oct 2021 00:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237635AbhJFHzw (ORCPT + 99 others); Wed, 6 Oct 2021 03:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237543AbhJFHzw (ORCPT ); Wed, 6 Oct 2021 03:55:52 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67268C061749 for ; Wed, 6 Oct 2021 00:54:00 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY1kP-0002Qa-04; Wed, 06 Oct 2021 09:53:53 +0200 Message-ID: Subject: Re: [PATCH 7/7] arm64: dts: imx8mn: Enable GPU From: Lucas Stach To: Adam Ford , linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 06 Oct 2021 09:53:51 +0200 In-Reply-To: <20211006000505.627334-7-aford173@gmail.com> References: <20211006000505.627334-1-aford173@gmail.com> <20211006000505.627334-7-aford173@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, dem 05.10.2021 um 19:05 -0500 schrieb Adam Ford: > The i.MX8M-Nano features a GC7000. The Etnaviv driver detects it as: > > etnaviv-gpu 38000000.gpu: model: GC7000, revision: 6203 > > Signed-off-by: Adam Ford > --- > arch/arm64/boot/dts/freescale/imx8mn.dtsi | 25 +++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi > index 57f67257d2fd..46144a7482d3 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi > @@ -1089,6 +1089,31 @@ gpmi: nand-controller@33002000 { > status = "disabled"; > }; > > + gpu: gpu@38000000 { > + compatible = "vivante,gc"; > + reg = <0x38000000 0x8000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_GPU_AHB>, > + <&clk IMX8MN_CLK_GPU_BUS_ROOT>, > + <&clk IMX8MN_CLK_GPU_CORE_ROOT>, > + <&clk IMX8MN_CLK_GPU_SHADER_DIV>; Last one should be just IMX8MN_CLK_GPU_SHADER. > + clock-names = "reg", "bus", "core", "shader"; > + assigned-clocks = <&clk IMX8MN_CLK_GPU_CORE_SRC>, > + <&clk IMX8MN_CLK_GPU_SHADER_SRC>, > + <&clk IMX8MN_CLK_GPU_AXI>, > + <&clk IMX8MN_CLK_GPU_AHB>, > + <&clk IMX8MN_GPU_PLL>, > + <&clk IMX8MN_CLK_GPU_CORE_DIV>, > + <&clk IMX8MN_CLK_GPU_SHADER_DIV>; _SRC and _DIV clocks are just legacy aliases for the now composite clocks and should not be used in new DTs. Please just use the composite clock handles directly. Regards, Lucas > + assigned-clock-parents = <&clk IMX8MN_GPU_PLL_OUT>, > + <&clk IMX8MN_GPU_PLL_OUT>, > + <&clk IMX8MN_SYS_PLL1_800M>, > + <&clk IMX8MN_SYS_PLL1_800M>; > + assigned-clock-rates = <0>, <0>, <800000000>, <400000000>, <1200000000>, > + <400000000>, <400000000>; > + power-domains = <&pgc_gpumix>; > + }; > + > gic: interrupt-controller@38800000 { > compatible = "arm,gic-v3"; > reg = <0x38800000 0x10000>,