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=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,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 72E84C43461 for ; Tue, 15 Sep 2020 13:19:35 +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 EE8D520829 for ; Tue, 15 Sep 2020 13:19:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LgvDKcSt"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="czu4g7ZH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE8D520829 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.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-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NWa2bJCP9U47tSUAocmkePh9PpZYcHJziycNO//5rwk=; b=LgvDKcStl+rSAAwEcVayjxyG/ O+bx5ds4pG/Y19pS4YQpsn7/RLhA0OHUivLdb4KAJRaZuGqtDU+7tBst9jhDk72n4X4fKGzk8ju6o 1aUjpV94aNFa7flyIoomLGc3hpMBXWGZQ7Le8izZenMKG7DES5qhLhhvOlVaH1WIdqf4lS1G3QIWQ azqHR7eVU6j9w/pcWQygkRpxp5UPFqDTW9jsRx0xq2jsWn5y+IRD3UdVBTViE/c0h5gbJYhLCWGgE J15F5JiIeVWv+ZP7ySMIdJh6M80n8SR5arcTf75WhWhMotBDSNcVBtnHLK1bC+7NnIpSjhcnKqz5/ vGNA1Gh7A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIAqF-0000m3-Kj; Tue, 15 Sep 2020 13:17:51 +0000 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIAqB-0000l9-MO for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 13:17:49 +0000 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 15 Sep 2020 06:16:56 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 15 Sep 2020 06:17:43 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 15 Sep 2020 06:17:43 -0700 Received: from [10.26.74.242] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 15 Sep 2020 13:17:42 +0000 Subject: Re: [PATCH 9/9] arm64: tegra: Initial Tegra234 VDK support To: Thierry Reding 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> From: Jon Hunter Message-ID: <69859635-da61-acb8-82d4-3dbc6fd7fc10@nvidia.com> Date: Tue, 15 Sep 2020 14:17:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200915124427.GC3496938@ulmo> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600175816; bh=wQ0FBtmKb890miK9IKO3NY2XodAPS5XDbIvdFurIXg0=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=czu4g7ZHERkifSXV44RscIxPqpw/xh/hKUXY6tuaFCn1blid5Zu6YR0tyqIyUKiZZ 8WNC80EYEOHnd2DWsC+YGnaQ1rOBeDfQX+/JiYpdDi569apTQuyHrLbC5NVg2xn2HZ sds3Cqp/mvysKfnUhnzovA2ZUznyZhpxN7VegHBre7yEVB8ls63N3UUT+5ISzoy92m fU7MC2DaJ8dhxwabzWYyC6XMwbeQqtopBJ9ibUd31F6apgOP5nev/YK6o5/QTasTAh NfuEBCyDplLdVduWt8avJAc3hv5Op6y3cMiugmnpIuOV21s42qzRr16fe4TslPPX0D uOn/EITb+TT0w== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_091747_827630_9D400FC4 X-CRM114-Status: GOOD ( 23.38 ) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 final >>> 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/dts/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) += tegra210-p2894-0050-a08.dtb >>> dtb-$(CONFIG_ARCH_TEGRA_186_SOC) += tegra186-p2771-0000.dtb >>> dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p2972-0000.dtb >>> dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p3509-0000+p3668-0000.dtb >>> +dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-sim-vdk.dtb >>> diff --git a/arch/arm64/boot/dts/nvidia/tegra234-sim-vdk.dts b/arch/arm64/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 = "NVIDIA Tegra234 VDK"; >>> + compatible = "nvidia,tegra234-vdk", "nvidia,tegra234"; >>> + >>> + aliases { >>> + sdhci3 = "/cbb@0/sdhci@3460000"; >>> + serial0 = &uarta; >>> + }; >>> + >>> + chosen { >>> + bootargs = "console=ttyS0,115200n8 earlycon=uart8250,mmio32,0x03100000"; >>> + stdout-path = "serial0:115200n8"; >>> + }; >>> + >>> + cbb@0 { >>> + serial@3100000 { >>> + status = "okay"; >>> + }; >>> + >>> + sdhci@3460000 { >>> + status = "okay"; >>> + bus-width = <8>; >>> + non-removable; >>> + only-1-8-v; >>> + }; >>> + >>> + rtc@c2a0000 { >>> + status = "okay"; >>> + }; >>> + >>> + pmc@c360000 { >>> + nvidia,invert-interrupt; >>> + }; >>> + }; >>> +}; >>> diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/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 = "nvidia,tegra234"; >>> + interrupt-parent = <&gic>; >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + >>> + bus@0 { >>> + compatible = "simple-bus"; >>> + #address-cells = <1>; >>> + #size-cells = <1>; >>> + >>> + ranges = <0x0 0x0 0x0 0x40000000>; >>> + >>> + misc@100000 { >>> + compatible = "nvidia,tegra234-misc"; >>> + reg = <0x00100000 0xf000>, >>> + <0x0010f000 0x1000>; >>> + status = "okay"; >>> + }; >> >> >> Is there meant to be a fallback option here, because I don't see >> anything to match the above compatible string? > > 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. OK, I think that the same also applies to efuse, pmc, rtc and bpmp-shmem from looking at this patch. Jon -- nvpublic _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel