Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2001186pxb; Sat, 7 Nov 2020 06:03:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiFfN1H5G4zRgFIivXyVpdXGd/9xq1z3rBEQuU8fXi+60rERFsN6gU/8I2EMwcq9uhuEaj X-Received: by 2002:aa7:cacb:: with SMTP id l11mr6804462edt.332.1604757792711; Sat, 07 Nov 2020 06:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604757792; cv=none; d=google.com; s=arc-20160816; b=F8CLGdb6gm8sVhBBMA6XKLyBvFnNU3wA2SFR8N+YlaMjcQ3zWAjjSduHRIO7GRg4hI uCSfoiyoQtlBcQ1x1URDg3u0cGyDg85fo3oYZxnQtapo6kjgni9HcamRRcj7ZlS9jYUa 3QFRY++kwV+zRPTjsJaMh+AYIOEszpqRw2pb88YJLCtoIVK/OwUg+V9Hug2048aF7Ak9 96cjYmIqHHj2beQ7/M2t2lxP7uLJD86DNaNYKgHoUWQD4b8XGFO7VzVfRSHJSbN2GP2q uz1wQlbM6WGJaW3a4cOr3iXm08m/WlbhquTTDNhQoR2WHdzToyyZDTeF56+AAgJz2hsI npUw== 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=Z/jiUVfNK4+k6xToCb8OveXZPmGMjclbBVaHRBvHjcg=; b=Fd0kuf66HcFBHfgFpmrFl4Oe2Lbb2V06lbOIs64X4bIyy3Skad7RCNuvuYXlk6QDMm DkQ9bBkylplLitO5YVqIpifcBQxVXGe6HJaWfAoKLERXXgbEEivxeums+aA5GaQfbwut gfDm/wphBDgM1aLjvGxsd50tgUkY4qfS6KE0duFDCXuvczBdnXMaN+JSelcpYg3pj9sU VESLs7wEMkZoQQBkUd9lF82gtiQjQieaqs3jAbZjSqSsoytYR1Iy7KNjaW29/wbxc+4v dX9INcelaMtpi+uNF6gYRDxM7Y3DgQcR/yoD9ubE5Xt7/d7MSSoK2k7GyPFsY/wAMAHR eEsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PDbMs0EA; 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 w15si3094448ejk.62.2020.11.07.06.02.49; Sat, 07 Nov 2020 06:03:12 -0800 (PST) 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=PDbMs0EA; 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 S1728250AbgKGOAo (ORCPT + 99 others); Sat, 7 Nov 2020 09:00:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728218AbgKGOAk (ORCPT ); Sat, 7 Nov 2020 09:00:40 -0500 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9089C0613CF; Sat, 7 Nov 2020 06:00:40 -0800 (PST) Received: by mail-io1-xd43.google.com with SMTP id m9so4924641iox.10; Sat, 07 Nov 2020 06:00:40 -0800 (PST) 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=Z/jiUVfNK4+k6xToCb8OveXZPmGMjclbBVaHRBvHjcg=; b=PDbMs0EAVZqHVuTPP90Uaz4parZqBFKM2woZGXq8aHzgVlKxGL8Ld5gYiK95UqpxB3 ZL9yGdULBYhGyRZceUFbT8CWqMvwMCK20/IV67XUL9BNGyPDVbTN9VO4pxWcCKVJjH7C /oXd/tpg2VcPUZjYMJDg0N21vaMHFX28h5VPpSO0RApJ9ycyNnVVe6xZqWuXoEq/hvSt Q96o6wJTo1C9YlTTWszp9LwpXJqbiOqhT7IZAiGMOc1kfbfXUMK1H5lJvsq7Hfz+T487 MfVvXtfMOrGYxhCxnbG4AphU3HZPqxWk4PC6knHn6JedSBXVwNSkDUZWJZYndfy1sCtv Je8A== 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=Z/jiUVfNK4+k6xToCb8OveXZPmGMjclbBVaHRBvHjcg=; b=MMT+tNVFriWqqdMOBPBMVo3FGuXRqvDBX3KTUIspHiHKJeEz4gAYbPO9P8oGDRkMdw 0HVJdBrhknRu9agCZFkeHC6DLLKaWj/lTEZjz09hoG7CqMVl2MW+W9oArRN+KZHb6I4F AejcjV1SAezQkPYuxPTC7hCq3W8tqIHI3tWleOgw14TADqHikkEmLXhcOXAAzOE+0IPh pMQgQ0v11sGv+g4LqoTq65SGrGwMso97+thhyORNg+8fAW1TC5HFw7GB+DcXZZE8AB5s H2ZL6G+JI8pb4g3mzBioZaRd8SoRb6uB2JslbymWmX+1ElvHw2DyCz9Wm8kDvxT2jHGz k7BA== X-Gm-Message-State: AOAM532dHEJ0cn+31nSwzSSDxSbui0rI9lonMAWjjBxLtCkpcti2svrl lwV7sRg0urNMFnx020eSRck= X-Received: by 2002:a02:ec3:: with SMTP id 186mr5285031jae.92.1604757639961; Sat, 07 Nov 2020 06:00:39 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:5d9e:32b:1062:f8cd]) by smtp.gmail.com with ESMTPSA id g5sm3030257ilq.33.2020.11.07.06.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Nov 2020 06:00:39 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, krzk@kernel.org, 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 V2 5/5] arm64: dts: imx8mn: Add GPU node Date: Sat, 7 Nov 2020 08:00:25 -0600 Message-Id: <20201107140026.1974312-5-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201107140026.1974312-1-aford173@gmail.com> References: <20201107140026.1974312-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 --- V2: Move into this series Update clocking description 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 5e4b6934de40..6e650ea422a7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1008,6 +1008,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