Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1772185pxy; Thu, 29 Apr 2021 14:21:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwx534hrMgv5gPZvlolmk7FHx1Od/VWU9xg5rBw+s/TeQyD2T03lu3DWQu6p8UMtxCBdh2 X-Received: by 2002:a17:906:6703:: with SMTP id a3mr557369ejp.240.1619731262306; Thu, 29 Apr 2021 14:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619731262; cv=none; d=google.com; s=arc-20160816; b=AY6M+5gzNmlnGGc2p7WInC9CCI/1SSc/1KNxiCNFOif9s9/uACEP/CLvSD9n1TZ/x1 kxUX5DoV3URuqxEyRi76LkGmaogju9VD1GI6yv4wPp+qO9SbkxMGIBbAjtC7dAtbQnWZ 1GVVeV2gKtuN5uQnlyEbczU/DJ4bbcdn1EjpbdjKPHbB6Ig7ESYGYfyix2SqdaSXfNCD +Dnquo0A0fEy9Z95BSx0BGoOZs2vDsoPlAf/qkqGoUWiOsk6quTs9O6RgNzokeCD9nxY DkxQvRvQoGdnZ8dGaEo9NkqhnXzXMdqRT0SR5ohsbA8aEZ96urnd/jwk52jeuvhi0AfD jikA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jjYghAn3GYKlRzW30xaC+JWoAjT9ihkxsVSI8UNJwBw=; b=tk6zupycZKgnBibI/NPAxYiiUrAABgOWEOB82OTRFeMn014MXbHx4mIeJ0cgLD8D1d qU5nrw4rpQE6vuVJPAczOxeOHDsxfI6bN8vZ0RzL9T3TMaBY34P4XxsmcklLCsv2PJPU IgBdoALFZYHfqNAav/5vK8ZqA+upKw1If31SeXeHquncNRG/glZYfvUlzS5ulMpQm3YD SPMC49lbUAxn8MNvbUMvb0H1c6Big1UEwZfrCtmFTvLpU7n2tqzdaGxps4j4v4J+xb7r eQuFzgPcrzwb9mEhLjh5BjEQCJYU63JCiBHZZq+G/dHj0/EnSv9qq9XOWePkq61oGiYF OArQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CPW/k6Fz"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si1152150eje.268.2021.04.29.14.20.37; Thu, 29 Apr 2021 14:21:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CPW/k6Fz"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237352AbhD2VRo (ORCPT + 99 others); Thu, 29 Apr 2021 17:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237356AbhD2VRi (ORCPT ); Thu, 29 Apr 2021 17:17:38 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2A09C06138C; Thu, 29 Apr 2021 14:16:50 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id b9so14461762iod.13; Thu, 29 Apr 2021 14:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jjYghAn3GYKlRzW30xaC+JWoAjT9ihkxsVSI8UNJwBw=; b=CPW/k6FzLpOKN2RZNvbpYeLdRdJegr1jP9a3EOUeuyllpSJMjIq/UXwkL7Gz1gv06P HWnm+gVWN0RLEGStIzSZZFmfbgNIS41BKvBNV4C/CEtq7G9yBz0cvrU762fJ4Y7BH7CM BUS9tqtcoMZINhx2JqvcEddtS7GcwtDMEmZQa4nCXogOc8dU5EqxMZhuUjuIsK33F3T+ ZIjcBD53ttAc/Od9cvgqsis1riNwmygQ5o/mpQj4kvfQVVgO8LyavE6WR2n/YGLoY8GD 1yWppWBOOCjK+vxXDJy2M9MNImpAged2acs2YbDuP0uKf0cf3SPCBB4lF/HIlOhsJ7ca rq3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jjYghAn3GYKlRzW30xaC+JWoAjT9ihkxsVSI8UNJwBw=; b=EnUp9/YPLC9YcoFhXMoGlHCVlUrNNO2wHgjR0Cvd6ICjCNmpw2eAn4NYYnPTgEVdni MswtqVkPGO2b/qE0jDycH7CPXQ8LNIDiRFqIgKlCfjEkbgK0YBNTZX1Mcq+Hwpn+ZiPc B2JKkm20AfrOwmLxrc52ZPpjOSMxRmu8sDowJKLV++Tf8saWep+eWH+dP23Cw05vxjYn liKWdRlm5E8P3yxo8BFoIXvUTQx/G4d8l19dmaPC/AgibAIMTFaxVtHd+HUrKVFeradf wHP+hl3Jb0+K31Rw+n2qaP0J1jO98hXIoH+iJ2zVh0XuLIpHpg4HhMyD+/PLztsR9s+q xpKg== X-Gm-Message-State: AOAM532B2BFiV6XeadwC/pmLGaS9foUsU3aLWMSWVVqTyPXPFvJLpFOG uOIhRyyRo820F0KLiBfTVHo= X-Received: by 2002:a6b:720b:: with SMTP id n11mr1228980ioc.80.1619731009993; Thu, 29 Apr 2021 14:16:49 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8a74:d2ad:27b:e619]) by smtp.gmail.com with ESMTPSA id q11sm1808076ile.56.2021.04.29.14.16.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 14:16:49 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: peng.fan@oss.nxp.com, marex@denx.de, frieder.schrempf@kontron.de, tharvey@gateworks.com, aford@beaconembedded.com, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrey Smirnov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 5/5] arm64: dts: imx8mn: Add GPU node Date: Thu, 29 Apr 2021 16:16:24 -0500 Message-Id: <20210429211625.1835702-6-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210429211625.1835702-1-aford173@gmail.com> References: <20210429211625.1835702-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the documentation from NXP, the i.MX8M Nano has a Vivante GC7000 Ultra Lite as its GPU core. With this patch, the Etnaviv driver presents the GPU as: etnaviv-gpu 38000000.gpu: model: GC7000, revision: 6203 The stock operating voltage for the i.MX8M Nano is .85V which means the GPU needs to run at 400MHz. For boards where the operating voltage is higher, this can be increased. Signed-off-by: Adam Ford --- V3: Rebase on series starting https://lkml.org/lkml/2021/4/29/72 V2: Move into this series Update clocking description diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index a2ca25aa8eb6..07a8ff58d44c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1040,6 +1040,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>; + 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>; + 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>, -- 2.25.1