From patchwork Thu Sep 17 10:07:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782105 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5142B139A for ; Thu, 17 Sep 2020 10:08:21 +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 15DA82087D for ; Thu, 17 Sep 2020 10:08:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ghw3H91v"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iOFkWrjB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15DA82087D 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+patchwork-linux-arm=patchwork.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:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=WEngSBYWcCa0Iwjv0wBvU7bMBWYEgc/7EUBfqvf1O2w=; b=ghw3H91vuk+kPjRzOdVs8rNuue RkvgTPDxmKG2K0wJVQe7WwXLe+rfVyW0tZMc2vipsP1Ym4bXGNPKDeGOsBW5EQk5Zfzy83fZNHNmx hcb+vanp2uYmV1z5HTN8ZEaORRipPmX5LU1Td0ycdF2WjmiyeBBqkmiU0Z+wth+EHc80HSaBxznPF Pi/3Ss+8agEyZULaSpn8crykqc22/IcQ89QOhZS3QIBqgl6QoCJu8autQl8XTTY8wZblD81GEFyij amIzdaQu/Z13g3+XVt0ePJI0ev1WQYfHouTv1oNny4wGlDoLByfvU2kkkf9cb7Qh6jYVZE128XLSt xAQEDlcQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpg-0008IL-RN; Thu, 17 Sep 2020 10:08:04 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpd-0008Hg-LH for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:02 +0000 Received: by mail-wm1-x333.google.com with SMTP id y15so1434131wmi.0 for ; Thu, 17 Sep 2020 03:07:59 -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:mime-version :content-transfer-encoding; bh=KMExwAt66iw2SC3hzOo9WR0pCQvNfLLx2V1e8GjXC8A=; b=iOFkWrjBF+l8JhI69mAkoWS7qItOCa+FaDqSIQR/TGGDKvrBlOFK7GpTQitKMuE5xU WzqsMgYJZ8Kv05LA6pwcMbfHTTqBQvz3ZlEnTfebwB262lVLGZNNcds4msrPNA1zGvKb /R54jBdnTe3PwVQB/ZML2KptRK0e3ENj30CeHrwdd3VYRImR2kuN0DEVpRVlWi3gWenF 8prJb2XPzcLylNqf+crnSPPqpjA0HxK+74dzfvRQ7uyeZMEenbFEnkaQsoh2nj/dpsSm OKERhRVWBM0LfjXzjl4bwScLpF5Drbm3j9NaVklBHmyQvNuW6jcCAxUnFzmVsTApJteU /ZHg== 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:mime-version :content-transfer-encoding; bh=KMExwAt66iw2SC3hzOo9WR0pCQvNfLLx2V1e8GjXC8A=; b=MBQl7A7EymgGYPrfL4k3E1F/tCDHsRgQRYpa7Wrq0WTmObS6DjYniIwD4F+atZF20R AHfqjqQyvyZjfwPhKvR74dncILU6PloUA7yC855rGi3tpobLtb2Efo6LOJ21edNvtU20 MKPI0IT/6BsWiwHQunPcqB3qyscQ0Rhf29vUkTPJaj26rWI72pHpSCmVFJGqGiHBEcye nCzs8s//WhzLudgNvu4pM3LpOdW3G4/Ycg+21qQqPPsVQtGYJGEztMPiWzcuGlMb5XuD jF9dIrun7nRTkYVy43iB1qSs0JwBznV2GYfCCpyhGx6p2OcOU078Q6GneiY+hR2jc8Bx hLgw== X-Gm-Message-State: AOAM532AxkA3JMwHgqNn+eIvak6dJgJU4LWapFBVhrLQ01w+d1iV4MX8 Yj6T77wpsHbAcbMI/G0Rlyc= X-Google-Smtp-Source: ABdhPJxRZ/VMAXDq1KyYsA1Cgq4YbyDLQpBUj6oRYVx1wUY/SHojxSMO6uf6Kf4El7M7xjZ+E12eWA== X-Received: by 2002:a7b:c959:: with SMTP id i25mr9618842wml.39.1600337278744; Thu, 17 Sep 2020 03:07:58 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id u186sm9983547wmu.34.2020.09.17.03.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:07:57 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 00/14] arm64: tegra: Initial Tegra234 VDK support Date: Thu, 17 Sep 2020 12:07:38 +0200 Message-Id: <20200917100752.3516153-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200917_060801_694058_B0BF6FF7 X-CRM114-Status: GOOD ( 13.07 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:333 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, Jon Hunter Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Thierry Reding This set of patches introduces support for the new Tegra234 SoC, also known as Orin. Currently no silicon of this chip is available, so the support added here is for a simulation platform known as VDK. Note that this simulation platform is not available publicly. However the goal is to use the simulation platform as a way of upstreaming as much support as possible ahead of tapeout. Once actual silicon becomes available, the plan is to stop supporting the simulation platform and shift focus to real hardware. Thierry Thierry Reding (14): dt-bindings: misc: tegra-apbmisc: Add missing compatible strings dt-bindings: misc: tegra186-misc: Add missing compatible string dt-bindings: misc: tegra186-misc: Add Tegra234 support dt-bindings: tegra: Add Tegra234 VDK compatible dt-bindings: fuse: tegra: Add Tegra234 support dt-bindings: tegra: pmc: Add Tegra234 support soc/tegra: fuse: Extract tegra_get_platform() soc/tegra: fuse: Implement tegra_is_silicon() soc/tegra: fuse: Add Tegra234 support soc/tegra: misc: Add Tegra234 support soc/tegra: pmc: Reorder reset sources/levels definitions soc/tegra: pmc: Add Tegra234 support firmware: tegra: Enable BPMP support on Tegra234 arm64: tegra: Initial Tegra234 VDK support .../devicetree/bindings/arm/tegra.yaml | 4 + .../arm/tegra/nvidia,tegra186-pmc.txt | 3 +- .../bindings/fuse/nvidia,tegra20-fuse.txt | 1 + .../bindings/misc/nvidia,tegra186-misc.txt | 8 +- .../bindings/misc/nvidia,tegra20-apbmisc.txt | 13 +- arch/arm64/boot/dts/nvidia/Makefile | 1 + .../boot/dts/nvidia/tegra234-sim-vdk.dts | 40 ++++ arch/arm64/boot/dts/nvidia/tegra234.dtsi | 189 ++++++++++++++++++ drivers/firmware/tegra/bpmp.c | 3 +- drivers/mailbox/tegra-hsp.c | 9 +- drivers/soc/tegra/Kconfig | 10 + drivers/soc/tegra/fuse/fuse-tegra.c | 8 +- drivers/soc/tegra/fuse/fuse-tegra30.c | 30 +++ drivers/soc/tegra/fuse/fuse.h | 10 +- drivers/soc/tegra/fuse/tegra-apbmisc.c | 26 +++ drivers/soc/tegra/pmc.c | 145 ++++++++++---- include/dt-bindings/clock/tegra234-clock.h | 14 ++ include/dt-bindings/reset/tegra234-reset.h | 10 + include/soc/tegra/fuse.h | 3 + 19 files changed, 474 insertions(+), 53 deletions(-) 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 Reviewed-by: Jon Hunter