From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C2DFC433E2 for ; Tue, 15 Sep 2020 13:50:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B704E20738 for ; Tue, 15 Sep 2020 13:50:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q+jGeOZk"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="az+La9rg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B704E20738 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QjkJkX8xRNvzi3DalMajePDvXotppQ1cmnjxRK+9kYI=; b=Q+jGeOZkSF4Dy7CR3a+rYtpym zwPRWwv69KeQy7QnLL1ZbWMz2XfsUitPtLSV+Qx7ZxCYLAbc6y2gqg1gp8wIZDaw5WUuiW7k3cs6D JCdk27umtZR9to+8VXlMGqSG7A3U732g8HWCVhq5aQBfkRze0IpyKY27F8oaLzLx0TU9Ew6vlSaDO zwf8k2Jv4YeVztyvKl6mgMa14lvDfSWk1gcOvneJHjvPPB4UIhrHhjuWt1DJnOBQBwNnnBDUAw1qR 6zxaZnNLiCsHoGWRcPdd6MNJxb1aAwpy1xRwEbw6AMn7TiisQiOZIYO7gpMoOxTaPIUFpX0S3Se+v uP9xkihXA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIBKg-0000gw-S9; Tue, 15 Sep 2020 13:49:18 +0000 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIBKe-0000fs-Ff for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 13:49:17 +0000 Received: by mail-ej1-x642.google.com with SMTP id i22so5179139eja.5 for ; Tue, 15 Sep 2020 06:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4F6Rk8R8bjGQryOBZ18aw2fPa3Om+nn4nuswQavl5qk=; b=az+La9rgpXtTKDX3djMZnBhto30ewW4YTvqoik+p6EN71+CVi06lx5rCOS/r20QWH7 LXpgUFJuKgL6qxkknRV9vEqlvyM7Yw+eSOUGFoVEMgI1w6Sqn1O/lHJV2/2zvLde36bJ pbAqTDfR1iBbWniXjo5OEeXYSEz37xtLTIxNUYGjEdBoICW8Qzc7v5C0NKLp5g3VNU2p dFiC9m/wFo9sl+rMVCAgnxz7tVtbsJNiYRACP203MjS4mbZZo4Bfv91FDa2jXrE0wsDn ZXsY/CPV57vrxALDcVXdSjVhQTc4YdLlYB/Tb1vTsZkgXH8f8iPgOYd+a5k4uJakbrJI fgkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4F6Rk8R8bjGQryOBZ18aw2fPa3Om+nn4nuswQavl5qk=; b=FkqOVJQEwpyz+9GLmiXo8YUUDRfIqV0VOARCeLmU7rCRjyANcAB12TsTCCvr7X7fG8 bcHE7p1tDbh6ZXiwxhTit0XbigpNPxIfxaN0rbM2iFM1BwGndeBvmCPImCRWLVz16xQA HD6Qs10Baru7i4DW/Px/B56akwWDM8LELXHQQfbHUB4HNXUEko0sy83YgEc2S1Pt1qBx IAd2bhBVOLbnULnpxdfNWN1sJ+fLn+/faB6X5r5KH94/rs2zDeYtD8Luu8PdvJ/6JSdM n5Zh+4G4vhb1rQ4n4EQgsyMTClGREmaiFJ0jcYGgcjGJB+wYwVv8fnkek1bi/XiTiuSR i/SA== X-Gm-Message-State: AOAM533/0wTTxpGjiTeSW0cr3u67480IzergrM8ddtXIrdsJJYKGrsWD 79R/OcdIu2ZWts/Y6J+lxmzRq+bFCFrqXQ== X-Google-Smtp-Source: ABdhPJzpOTIyIGe9BW9NG2oleSV1jWL6R/YqjeEx8gqRyY0nl5lL4II/UFKA6S0FGzzqMN0eYYS6uQ== X-Received: by 2002:a17:906:819:: with SMTP id e25mr20698326ejd.211.1600177754964; Tue, 15 Sep 2020 06:49:14 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id g11sm11635626edt.88.2020.09.15.06.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 06:49:13 -0700 (PDT) Date: Tue, 15 Sep 2020 15:49:11 +0200 From: Thierry Reding To: Jon Hunter Subject: Re: [PATCH 9/9] arm64: tegra: Initial Tegra234 VDK support Message-ID: <20200915134911.GD3496938@ulmo> References: <20200716141856.544718-1-thierry.reding@gmail.com> <20200716141856.544718-10-thierry.reding@gmail.com> <3c2f4e9c-28af-d5dc-1daa-40744da32898@nvidia.com> <20200915124427.GC3496938@ulmo> <69859635-da61-acb8-82d4-3dbc6fd7fc10@nvidia.com> MIME-Version: 1.0 In-Reply-To: <69859635-da61-acb8-82d4-3dbc6fd7fc10@nvidia.com> User-Agent: Mutt/1.14.6 (2020-07-11) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_094916_546648_F537F09B X-CRM114-Status: GOOD ( 32.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============1585763657436931602==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1585763657436931602== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3Pql8miugIZX0722" Content-Disposition: inline --3Pql8miugIZX0722 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 15, 2020 at 02:17:39PM +0100, Jon Hunter wrote: >=20 >=20 > On 15/09/2020 13:44, Thierry Reding wrote: > > On Mon, Sep 07, 2020 at 08:46:48PM +0100, Jon Hunter wrote: > >> > >> On 16/07/2020 15:18, Thierry Reding wrote: > >>> From: Thierry Reding > >>> > >>> The NVIDIA Tegra234 VDK is a simulation platform for the Orin SoC. It > >>> supports a subset of the peripherals that will be available in the fi= nal > >>> chip and serves as a bootstrapping platform. > >>> > >>> Signed-off-by: Thierry Reding > >>> --- > >>> arch/arm64/boot/dts/nvidia/Makefile | 1 + > >>> .../boot/dts/nvidia/tegra234-sim-vdk.dts | 40 ++++ > >>> arch/arm64/boot/dts/nvidia/tegra234.dtsi | 191 ++++++++++++++++= ++ > >>> drivers/soc/tegra/Kconfig | 10 + > >>> include/dt-bindings/clock/tegra234-clock.h | 14 ++ > >>> include/dt-bindings/reset/tegra234-reset.h | 10 + > >>> 6 files changed, 266 insertions(+) > >>> create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-sim-vdk.dts > >>> create mode 100644 arch/arm64/boot/dts/nvidia/tegra234.dtsi > >>> create mode 100644 include/dt-bindings/clock/tegra234-clock.h > >>> create mode 100644 include/dt-bindings/reset/tegra234-reset.h > >>> > >>> diff --git a/arch/arm64/boot/dts/nvidia/Makefile b/arch/arm64/boot/dt= s/nvidia/Makefile > >>> index 2273fc5db19c..9296d12d11e9 100644 > >>> --- a/arch/arm64/boot/dts/nvidia/Makefile > >>> +++ b/arch/arm64/boot/dts/nvidia/Makefile > >>> @@ -9,3 +9,4 @@ dtb-$(CONFIG_ARCH_TEGRA_210_SOC) +=3D tegra210-p2894-= 0050-a08.dtb > >>> dtb-$(CONFIG_ARCH_TEGRA_186_SOC) +=3D tegra186-p2771-0000.dtb > >>> dtb-$(CONFIG_ARCH_TEGRA_194_SOC) +=3D tegra194-p2972-0000.dtb > >>> dtb-$(CONFIG_ARCH_TEGRA_194_SOC) +=3D tegra194-p3509-0000+p3668-0000= =2Edtb > >>> +dtb-$(CONFIG_ARCH_TEGRA_234_SOC) +=3D tegra234-sim-vdk.dtb > >>> diff --git a/arch/arm64/boot/dts/nvidia/tegra234-sim-vdk.dts b/arch/a= rm64/boot/dts/nvidia/tegra234-sim-vdk.dts > >>> new file mode 100644 > >>> index 000000000000..f6e6a24829af > >>> --- /dev/null > >>> +++ b/arch/arm64/boot/dts/nvidia/tegra234-sim-vdk.dts > >>> @@ -0,0 +1,40 @@ > >>> +// SPDX-License-Identifier: GPL-2.0 > >>> +/dts-v1/; > >>> + > >>> +#include "tegra234.dtsi" > >>> + > >>> +/ { > >>> + model =3D "NVIDIA Tegra234 VDK"; > >>> + compatible =3D "nvidia,tegra234-vdk", "nvidia,tegra234"; > >>> + > >>> + aliases { > >>> + sdhci3 =3D "/cbb@0/sdhci@3460000"; > >>> + serial0 =3D &uarta; > >>> + }; > >>> + > >>> + chosen { > >>> + bootargs =3D "console=3DttyS0,115200n8 earlycon=3Duart8250,mmio32,= 0x03100000"; > >>> + stdout-path =3D "serial0:115200n8"; > >>> + }; > >>> + > >>> + cbb@0 { > >>> + serial@3100000 { > >>> + status =3D "okay"; > >>> + }; > >>> + > >>> + sdhci@3460000 { > >>> + status =3D "okay"; > >>> + bus-width =3D <8>; > >>> + non-removable; > >>> + only-1-8-v; > >>> + }; > >>> + > >>> + rtc@c2a0000 { > >>> + status =3D "okay"; > >>> + }; > >>> + > >>> + pmc@c360000 { > >>> + nvidia,invert-interrupt; > >>> + }; > >>> + }; > >>> +}; > >>> diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/bo= ot/dts/nvidia/tegra234.dtsi > >>> new file mode 100644 > >>> index 000000000000..3509687441a1 > >>> --- /dev/null > >>> +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi > >>> @@ -0,0 +1,191 @@ > >>> +// SPDX-License-Identifier: GPL-2.0 > >>> + > >>> +#include > >>> +#include > >>> +#include > >>> +#include > >>> + > >>> +/ { > >>> + compatible =3D "nvidia,tegra234"; > >>> + interrupt-parent =3D <&gic>; > >>> + #address-cells =3D <2>; > >>> + #size-cells =3D <2>; > >>> + > >>> + bus@0 { > >>> + compatible =3D "simple-bus"; > >>> + #address-cells =3D <1>; > >>> + #size-cells =3D <1>; > >>> + > >>> + ranges =3D <0x0 0x0 0x0 0x40000000>; > >>> + > >>> + misc@100000 { > >>> + compatible =3D "nvidia,tegra234-misc"; > >>> + reg =3D <0x00100000 0xf000>, > >>> + <0x0010f000 0x1000>; > >>> + status =3D "okay"; > >>> + }; > >> > >> > >> Is there meant to be a fallback option here, because I don't see > >> anything to match the above compatible string? > >=20 > > I've got the below patch in my tree that's meant to add that code, but > > it's in the wrong order in my local branch, so it didn't make it into > > this subset. I'll reorder the patches to include the APBMISC support > > patch in this series. >=20 > OK, I think that the same also applies to efuse, pmc, rtc and bpmp-shmem > from looking at this patch. efuse is addressed in another of the patches that I have locally. I'll add it to the series. For PMC I think we can just add a minimum version of driver support for simulation, but there are a few registers that are already known to be different from previous chips. RTC needs the fallback for nvidia,tegra20-rtc. I'll add that in the next version. As for bpmp-shmem, that's something we can remove altogether since we removed it recently from existing device trees. Turns out those regions don't actually need any compatible strings. Thierry --3Pql8miugIZX0722 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl9gxlUACgkQ3SOs138+ s6G8lRAAgFxp+3o5iqdDTtByfC3xBkyMVrs7rZahcjHxHwraeLgUgeQes8nc6SuY uiOizYePtpcNNTV2C/oM/bdq0ra3/rhKeuoeYJHBMzxRXFBQWXhYBlRiBCRhminL D5ZgA7PRGnkw8+FtfrgEKgqBd8YzooUpbudC04zheCdWImMXeq8IAsZopUIzj3LL Ju8aF2ssY0snQPQKB7EpfOzl/7TiZw7z1+2aJXOMcsWpgO52+Ty28HnrhgCihq2p QPG5H68z5XV1grgi1j6ET0EP24UlX/2o0I/cM6qfygDkxmd6GbDEBfu7H6NIj4YD EsgqW7+oBJgo9pSLGYgsAVJiwQdnQAUEZmXwiWyzrponZtPcarEQlhEImvrgE7+f YVgufvW22adl4fY8uf+PUIKJ+qdskneIJTsb4w4xgQil6MqLMwrIPv6bGwAV23bH eFOOAO4T0g8an6WIOwizIgaWdR4pa5PLTEPSyyCM6yH9OZbguCetbDnoC5AruN2i i59f27b0bzDKej12VXwpaZL9syGetNdfNjDfktjX6LXR1+vUibyTuSGAgCCdutwP iBtc8zReheMpIOY9S/kDHp3APWgRuHXZYvLiKCKRtoomVjjx0wPcZmkIAoTIGmt+ CbHiOPRtyZcyC4TQ58YAkYLs8dnHnUJrXYCGW5b9HRRXvKGj2Gc= =plbU -----END PGP SIGNATURE----- --3Pql8miugIZX0722-- --===============1585763657436931602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1585763657436931602==--