From patchwork Thu Jul 16 14:18:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667647 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 490CB13B1 for ; Thu, 16 Jul 2020 14:21:07 +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 1EBF0206F4 for ; Thu, 16 Jul 2020 14:21:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Sy7g6kca"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="r3qLR9zF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EBF0206F4 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:References:In-Reply-To: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:List-Owner; bh=W1wtxt2kdTCOzbIwfO5bl7kLMvECAxjOTrzZvS2AuAQ=; b=Sy7g6kcaQnWooN0Y2VrtWvH4x wD6kPZYJY9l98h5v1LEO+j5/7h/7NxF4WiOvLnj9Qf31xCxngepVkn0gjqPJ2wRdM31xjwMgPy51S aYDy7CIrOgkOM5We9LZ8VWWSo5OWSy9YMpqE+YAo61akqzXqtwmRj3SunOGSnEmB2UWZU3q4G8s0T +KD3XRmI1FF1MjW4oJarCb0nN0rMc5GgX2b3aFb6Y5FteLKHDKkyp8YaXlqGs62T4l07SjKmn8Fxi fbcBy7y8n77sOrsEbCkMxDKU4gAOLqQPBoh91tYHk9gaoOy/MPEryZK4zDxn4LX6kPev0VmuU1Evd 8lMZaDhiA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jH-0003wO-1m; Thu, 16 Jul 2020 14:19:19 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4j6-0003sl-10 for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:11 +0000 Received: by mail-ej1-x644.google.com with SMTP id n22so3806917ejy.3 for ; Thu, 16 Jul 2020 07:19:07 -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=IVb/tQt8T3kcHCfgUOKV9n1BifC/ykiJtFIf+ha0sfE=; b=r3qLR9zFckv9uFYt2O1hZEzV1If3drEbxTyQ5vLabBKNUfkTve/oRH+cPO5VY2fOZR G9spGZfX3US5wbUnHlhFzGB/g3Uud13gu5rgG0C3u+dpQeCiYIu+dKSr910yFBcweoWK r0CfPeT+Ot4Iz4iRb1rtaWsQZL6CAgIL01peI61sGH7/laPiwQi6AfN+ERgmThoJABIW HMc6mm67ml/Xr85Z9hsl649ET72xqW9vKRhLdcLw3azNv7nePPJyolEEiTS46t7hQBXi R/rr/lecLsoFq1wQGSsb8YCpY7Q0lkKA3bj+VjKK5y/8ISDGerUPVauVqITwKUwzaj9R tyZg== 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=IVb/tQt8T3kcHCfgUOKV9n1BifC/ykiJtFIf+ha0sfE=; b=KJykwDk0sjRF0ePDrBdO6mHPGYhYpnDBS50N9F/dOqh7R8MzcmaMG3txUH6fcp6DV8 Bw6RmAX3rof/HJgKDjAj4xFZxIKo24OMZRFRs1s5K2rOcIybjVWx2OOIedUM7Y8uKynq 2ugJ63wnQGfayMvg2ljogVCt1CSDYiTULQsXjR8/liLd99txikYuB3Xhoh9yBAd6Chm6 UEtHoUTWocgfWrNpl0oWt0AJNwFqnCAcfx1w/f7TU5LFIALriGTqYvabt/Wmnp3PCWNs 7qChggowM1sybmUAM0zRVi0DnJVWM3g82D1sbftvE9x2oLB16Ysq1wAqe9tDreEcVrxn 6rRw== X-Gm-Message-State: AOAM5303T/dXa+k9W6aqzM+VTI50h5pMvpjEylCPReTEQADtj78NVUqF Jd1EVcItvb1p6i1P0MuvTAY= X-Google-Smtp-Source: ABdhPJxUyiAqkUenXLuonVkHeQ23uUbJmn66IFQQSynsiNoYp3H0I/yxF7kyjZK+3EmhqEgovwxLNw== X-Received: by 2002:a17:907:42d0:: with SMTP id nz24mr4179878ejb.135.1594909146394; Thu, 16 Jul 2020 07:19:06 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id e8sm5153218eja.101.2020.07.16.07.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:05 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 2/9] dt-bindings: fuse: tegra: Add missing compatible strings Date: Thu, 16 Jul 2020 16:18:49 +0200 Message-Id: <20200716141856.544718-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101908_177708_41EEBB72 X-CRM114-Status: GOOD ( 10.47 ) 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:644 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 The Tegra FUSE device tree bindings haven't been updated in a while. Add compatible strings for the SoC generations that were released since the last update. Signed-off-by: Thierry Reding Reviewed-by: Jon Hunter --- .../devicetree/bindings/fuse/nvidia,tegra20-fuse.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt b/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt index 41372d441131..2aaf661c04ee 100644 --- a/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt +++ b/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt @@ -4,8 +4,9 @@ Required properties: - compatible : For Tegra20, must contain "nvidia,tegra20-efuse". For Tegra30, must contain "nvidia,tegra30-efuse". For Tegra114, must contain "nvidia,tegra114-efuse". For Tegra124, must contain "nvidia,tegra124-efuse". - Otherwise, must contain "nvidia,-efuse", plus one of the above, where - is tegra132. + For Tegra132 must contain "nvidia,tegra132-efuse", "nvidia,tegra124-efuse". + For Tegra210 must contain "nvidia,tegra210-efuse". For Tegra186 must contain + "nvidia,tegra186-efuse". For Tegra194 must contain "nvidia,tegra194-efuse". Details: nvidia,tegra20-efuse: Tegra20 requires using APB DMA to read the fuse data due to a hardware bug. Tegra20 also lacks certain information which is From patchwork Thu Jul 16 14:18:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667649 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 6825260D for ; Thu, 16 Jul 2020 14:21:13 +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 3F4E7206F4 for ; Thu, 16 Jul 2020 14:21:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Y8rI4zfV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iPuWs0l1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F4E7206F4 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:References:In-Reply-To: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:List-Owner; bh=/R0CgjjzH794SgOqd2/HkUayyhRLOEJ69tiVSZWWNNo=; b=Y8rI4zfVjVzV1PgUli52oqinj WK0HQw2Z1OSm2Sh6zC9ryNWKqUwi/omBNbHLdyKhfszTQ3WObpiuhju/zqLcZaWfUVACxzjAV3AlC /SFv8UgKSi8X30WBn7pkdT55DRXWh1d0ZXvjrUElhUDEBO4zvNrC3B02kzxCCNkR5rn+iYV7uXDZm qpnYiCwsjE1BnQrMOr2GraZkUOqvwNnQIUtY97hYeIyjJmzU3nMJ3FBAEktBnZDGJC1CzgPL3xlAZ dN1eYLOLGbJF+IfU7YE+dmtl4uPco54/sVrRi/Y1n2BeDDta2j76UZcWaAJzObMpTdQqoPLHYPcn1 f3BuQ8elQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jR-0003zr-5D; Thu, 16 Jul 2020 14:19:29 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4j7-0003tH-UR for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:11 +0000 Received: by mail-ed1-x543.google.com with SMTP id g20so4885954edm.4 for ; Thu, 16 Jul 2020 07:19:09 -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=Vz4JJf+AvBouSQqckAWdIIBtsrDCHUh+IEqSeYUd6tg=; b=iPuWs0l1qwbk+OirRgwUDdskdbzlCZ0ulnJWzQpRWTOfLGn/egsMkwYK8EYXLCdila bn6bSqZju76nS6ajxQBExXJf0yXSH5UZcBhzrAjPSbQp8CbFfwph7b4CrlHNeKylKVoq 4Bfk45g4MLqlevIEvaQxfQWMNMGl246wagzCf1381+RBAy6tH7mAg/cVa0OJOxJKrcSR a+mtOm9jz1YVZGqMNnfRJ4GbnHQpOGQBPMQsdXEIrCo5uBiKMznKSyyhTIMag0lLPz4X 7kR44qEzs1pfCM5be11Ao7c8lt9BKydiSWeyrjEC6kAe3/a7tGOoYZ2G066cEnNC9v23 yiaw== 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=Vz4JJf+AvBouSQqckAWdIIBtsrDCHUh+IEqSeYUd6tg=; b=h97VHJNXbruCZJXUvuqySW3ypQqm2M0tJQTCS1WAlV9rK9Sf6GJAPAeKGp8bgn+1gf bl6hYblvZX3ykwd+kkxnFhcy1ESd9Y3j9/9KA0bZIzue8br9njP4eb3OYoG4h5Txc7UC cmYAR3kszLRIZYswsWB32viY3knxKlzFmHuqDeA1tjKujuDnmHCMIfX1qRSm/raJbw9e Ln+qoWo0bQlWlEjcODGJhX5Pbr2N3HoqcjHptjdHVoX54ZubOs1IrAQLWC/RrSdGTfRR Iq+hVnGrdO4IPh7TOpFOuoCc+UlsJbYi3BIjdSv+iNT0MgwmoeZYBoW+dqTzc0KLs6eO fFQw== X-Gm-Message-State: AOAM531ZdWTXC0oi5oygo1UuocSqV3DyLnJAlKCloKBwiwf4lBjtWrCK B2D4/W5PVMu4KEhCKX7qCBE= X-Google-Smtp-Source: ABdhPJxbVtlYHy7DUffeTg0KSB37ulxN7kuNbi2LOJH6NglYW3XQIsjcVCkmc5s2G7W8X2Ilh55rWA== X-Received: by 2002:aa7:c80f:: with SMTP id a15mr4483996edt.299.1594909148443; Thu, 16 Jul 2020 07:19:08 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id n2sm5429873edq.73.2020.07.16.07.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:07 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 3/9] dt-bindings: fuse: tegra: Document Tegra234 compatible string Date: Thu, 16 Jul 2020 16:18:50 +0200 Message-Id: <20200716141856.544718-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101910_083976_B30E4E09 X-CRM114-Status: GOOD ( 10.31 ) 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:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 The Tegra234 FUSE block is very similar to that on prior chips but not completely compatible. Document the new compatible string. Signed-off-by: Thierry Reding Reviewed-by: Jon Hunter --- Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt b/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt index 2aaf661c04ee..b76cf42639f1 100644 --- a/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt +++ b/Documentation/devicetree/bindings/fuse/nvidia,tegra20-fuse.txt @@ -7,6 +7,7 @@ Required properties: For Tegra132 must contain "nvidia,tegra132-efuse", "nvidia,tegra124-efuse". For Tegra210 must contain "nvidia,tegra210-efuse". For Tegra186 must contain "nvidia,tegra186-efuse". For Tegra194 must contain "nvidia,tegra194-efuse". + For Tegra234 must conatin "nvidia,tegra234-efuse". Details: nvidia,tegra20-efuse: Tegra20 requires using APB DMA to read the fuse data due to a hardware bug. Tegra20 also lacks certain information which is From patchwork Thu Jul 16 14:18:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667653 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 B455560D for ; Thu, 16 Jul 2020 14:21:24 +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 8B77C206F4 for ; Thu, 16 Jul 2020 14:21:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rpSCbR2o"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oMraksKt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B77C206F4 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:References:In-Reply-To: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:List-Owner; bh=+ERMLBugUgVnB/U2KyoLnLVfTzTm7pizDXKCth3zx3E=; b=rpSCbR2o9YfsI40aVyYydJW9y bfSLHmfHvfCqfVh/8F11301ZCDWlQKE50arX/ptAcnjmts2h0czxQ9RsG60gYz84K2f8xR19P2dME lz2X3//AV+56Y/LbhCy50OpalAb4Odn3wO8hBRm3y7Je86F6UyB2Pa+RdXh82tVz0DaRim1vJlNAw NbmOGT1db3Ef8+4bT/hdyDNAQEnl/Pbd+os8qV81kshE8qZzsLgmvaEpaTjpczbHC8E0QOLZUfwFG hSmszEyVNIYXUsWoTewVnC1CuZpYBWYQbKkeiVbHGJvApweOX13QuGIEXIz4oAk93hPd+vadIZp8b +cTqsZKGg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4ja-00042m-Ti; Thu, 16 Jul 2020 14:19:39 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jA-0003tn-Ho for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:13 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a1so6713361ejg.12 for ; Thu, 16 Jul 2020 07:19:11 -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=RaaMz8ttpDHrLSqtbi8GC1r0b/uf3w868/oEJwarDbs=; b=oMraksKtFb0jB45Iecp+NuyHtCDHotY9Gj5o12d5JnbiKcrtRLm26M4a/173wm6LFb gwCvm+6jgUJfUCc2mHkb2Dq/LJkki5xjLYOxUOMVEYT9D1GlvxG3FgciCvf6GRcLirRj hzfHy8eWejfKuthjXO22CeHm5otyC+SPMo/9ttT3+PdrVOrFJfDwEr9LVEKyhDCYUkhG iS4YMSJUwfQIwzExkMg1kKhJjNzY37ZOURyN0S9+Dt90M0SlwZmqLMwOtqeI23szjSBd gdU84O6GvRzWuouZeXchpd2Dwm1hOd8/hXdBEiqeIZSyGXhM6+JgSub/tXZMTUGW9XoI 4KZA== 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=RaaMz8ttpDHrLSqtbi8GC1r0b/uf3w868/oEJwarDbs=; b=dGl5A0xlPhbFZJFYXRohuZw9ed+dkO7d7nGL6tMHYaQlmYPBTS2rdQOfPBXknjR3W9 TF3T0gK0EQBkuU2/S507JP995q+ace0g83ZBQYYSZMyOwXw5eHMHa0bGW0tqOrLmYGHh dJjt6gf+SD+iCtX5XUEPsGknQjRPTIbfnZOkCDWpCqJa/59lFo7Zld6eFelMbf0z7HOL 4neyFiCCkTAj2b/W2KTPkCDWL6lO5GAVDbU1ZI2Dma7YSy6akv62Y72n2bSiGKMH9rQF lSBT94wJyz3HdZyKArzmVmJT7TSsPCmF+PrmYps9AE61eOGdo42crAF42iCUKXA7KHg6 FVDw== X-Gm-Message-State: AOAM530mVy41EICJG2VemVHcQu9rDmEoGbx4WYlretWCNgj0JGhyA4KK PTNON9FkWcMs3NW9Dauw0MY= X-Google-Smtp-Source: ABdhPJzyxwGsivdxPy+VaPBcCsBZl92WRySUuMw1BFUntwCEVWHuuetm7sHlCPyLTGW1k57E3OFOAw== X-Received: by 2002:a17:906:ce51:: with SMTP id se17mr3820587ejb.503.1594909151079; Thu, 16 Jul 2020 07:19:11 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id m6sm2141179ejn.99.2020.07.16.07.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:09 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 4/9] soc/tegra: fuse: Add Tegra186 and Tegra194 SoC IDs Date: Thu, 16 Jul 2020 16:18:51 +0200 Message-Id: <20200716141856.544718-5-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101912_640908_61AA2AB6 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. 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:62d listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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: Sandipan Patra SoC IDs for these generations had never been defined. Do so now. Signed-off-by: Sandipan Patra Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- include/soc/tegra/fuse.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 252ea20fe4c1..1097feca41ed 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -12,6 +12,8 @@ #define TEGRA124 0x40 #define TEGRA132 0x13 #define TEGRA210 0x21 +#define TEGRA186 0x18 +#define TEGRA194 0x19 #define TEGRA_FUSE_SKU_CALIB_0 0xf0 #define TEGRA30_FUSE_SATA_CALIB 0x124 From patchwork Thu Jul 16 14:18:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667655 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 8562560D for ; Thu, 16 Jul 2020 14:21:33 +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 4C063206F4 for ; Thu, 16 Jul 2020 14:21: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="O1ZshKtz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TSBmscnH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C063206F4 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:References:In-Reply-To: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:List-Owner; bh=BIKmBaq9OVYARiyARmT23oZ618V7Rc4aoQpwJKkkKkY=; b=O1ZshKtzaxyfeJABo+7KnmeOm 2X0uReedHDitWTNv+JxYOMapcI/ZUE4eP8Pb4ejvMI4xS3Hx8YJim0O8gihQxRNzjLsRd5oiXYAPA GOY83Z4sqMzjVh9m49Vjb/k9ay5LukxEeJBURnsP0TKZpPpUkUo6Jtd1/ReD0c8d83xHjbdyGa1E4 73D7L0lgpOuVGUD54A85Ur2UPlXTBPokXdFQal0SbiL/CBvbkcG7BNUwkr3MyWCuHkXsQOeSOnJ59 /kdkX45jE1h0iiiJCv8LBXWzejIFruOMrdEG2ZdKWkl3OzMCNTY65dCvQeU7VmbvizpQ5CCDrP1Md bzy87BahQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jo-00047d-LI; Thu, 16 Jul 2020 14:19:52 +0000 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jC-0003uT-8I for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:17 +0000 Received: by mail-ej1-x641.google.com with SMTP id a21so6726708ejj.10 for ; Thu, 16 Jul 2020 07:19:13 -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=kJRt1d0tuOJa8Fmf2Td5qwrg+gnX4K9VBuBPB08W6pA=; b=TSBmscnHkyQR3/JE6MHEYu70nLn0cylf0xdKyZBn1bptqT6wcFCGhVVcIlCB8hbcDa 87S+DPuu6CA+y82kDezba2/cZWCtmll+11ev4CzhHhDCJ1shKu77cPL9IhXFgTT08Mne rHe0H2iezK8thNDE06leZyeVzMgPWwPiCRTDy5WhN4wZBUJ/OdmTkBEMfRz+ecnISF55 A3Sjbm+MkDfy8xDewDtigd6kQczqD6GuphZ+3APOj0StIFVcp2jNLwllJZJKi4ToLgZ3 qupP5WoGbKRv5Izs8h5YqJ+NITCmnqPGsbXHS89I3Iwi4MsdMY8CyGN4/xbDjlsQRjni 8kkA== 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=kJRt1d0tuOJa8Fmf2Td5qwrg+gnX4K9VBuBPB08W6pA=; b=A+nFzdT2PHv0OP4OwRU+6PsEazWTEe5E345q1klaVNk6RW3XwJtlJSbo4D3upIIco6 Ak86pOE4W1SQs+nfsTk842Uh7AtK/mbICkY2gZkoceWJM876mQ60FCAbsX9r8y+h6uuG 5kmgy6f5rbwzrSOz5l9dD/llUmaj9nzZQ+lu1Y/BaYb2YjDgdoW5k0q9rb3Gkqrd55Nq WpyUQsXNY+6lp7XnESU+ebB8JSaqokYIwmCeGMrv5zEAcbq7Mwm76lm5nokrE7e3TMa+ rRAnx9dlmu+XIx+MgVJu913Mv8bDVsEDER8YWlL/8do0ZbapTbKeuHe4g9xcBjyeLedl 2X1g== X-Gm-Message-State: AOAM532W4lmyrcG5PT7a54ItBv1GtrvZ8l3rM7XbSZUFl3UkzxWP8T8/ 3c6mlDINkHDt1HHQXxFnMX+KIswV X-Google-Smtp-Source: ABdhPJwat+/nqVVdWV013vBqcSn/O3qjSdM5/ozEVK9nSvae2FeNCIy2z7O9aIHd17bK99+doM7ZPw== X-Received: by 2002:a17:906:1a54:: with SMTP id j20mr3854851ejf.455.1594909153137; Thu, 16 Jul 2020 07:19:13 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id fi29sm5097702ejb.83.2020.07.16.07.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:12 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 5/9] soc/tegra: fuse: Extract tegra_get_platform() Date: Thu, 16 Jul 2020 16:18:52 +0200 Message-Id: <20200716141856.544718-6-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101914_400933_6431D56E X-CRM114-Status: GOOD ( 14.75 ) 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:641 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 function extracts the PRE_SI_PLATFORM field from the HIDREV register and can be used to determine which platform the kernel runs on (silicon, simulation, ...). Note that while only Tegra194 and later define this field, it should be safe to call this on prior generations as well since this field should read as 0, indicating silicon. Signed-off-by: Thierry Reding Reviewed-by: Jon Hunter --- drivers/soc/tegra/fuse/fuse-tegra.c | 2 +- drivers/soc/tegra/fuse/tegra-apbmisc.c | 5 +++++ include/soc/tegra/fuse.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index d1f8dd0289e6..7e6b6ee59120 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -336,7 +336,7 @@ static ssize_t platform_show(struct device *dev, struct device_attribute *attr, * platform type is silicon and all other non-zero values indicate * the type of simulation platform is being used. */ - return sprintf(buf, "%d\n", (tegra_read_chipid() >> 20) & 0xf); + return sprintf(buf, "%d\n", tegra_get_platform()); } static DEVICE_ATTR_RO(platform); diff --git a/drivers/soc/tegra/fuse/tegra-apbmisc.c b/drivers/soc/tegra/fuse/tegra-apbmisc.c index 3cdd69d1bd4d..89f1479b4d0e 100644 --- a/drivers/soc/tegra/fuse/tegra-apbmisc.c +++ b/drivers/soc/tegra/fuse/tegra-apbmisc.c @@ -47,6 +47,11 @@ u8 tegra_get_minor_rev(void) return (tegra_read_chipid() >> 16) & 0xf; } +u8 tegra_get_platform(void) +{ + return (tegra_read_chipid() >> 20) & 0xf; +} + u32 tegra_read_straps(void) { WARN(!chipid, "Tegra ABP MISC not yet available\n"); diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 1097feca41ed..214908fc5581 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -23,6 +23,7 @@ u32 tegra_read_chipid(void); u8 tegra_get_chip_id(void); +u8 tegra_get_platform(void); enum tegra_revision { TEGRA_REVISION_UNKNOWN = 0, From patchwork Thu Jul 16 14:18:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667657 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 BF89960D for ; Thu, 16 Jul 2020 14:21:40 +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 954A9206F4 for ; Thu, 16 Jul 2020 14:21:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="z6UNxtrd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WUa+a2j2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 954A9206F4 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:References:In-Reply-To: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:List-Owner; bh=zR4O/urFAWXTugo6Bjsjw7i1rW8BzNWBYi1+wro+9os=; b=z6UNxtrdNP8KQtEoytN95+hSS TY6k+mWM4VZgUEyQtJ9ixevCrLjkgLvjhC9rIBzzDTsUkasSOqno3Ki/09Um3NDw22Ztp7Ep4pi7A T4UPeB4zhGM4MlH3qe8XgTwoRPej7ZNEoLrzyebeFLynb6tbIXJk74lwkVmi8pW+1riPOQni9LTSH c22R4C6w68rgkhifFsBp1yoFipYr3/5O8zD7pTcei+Q820LWLKlid52GO2E1Xl1Vp2f8E+6JWo6ka WXiNefSQqJlVq3S4+6PgKACXDmail/4pebnanAC94Ah7LGZQeHCEMmNTPHpPk5I6LUHCzehFZWkJr rvWqMP/iw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4k1-0004Br-NE; Thu, 16 Jul 2020 14:20:05 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jF-0003w9-Ng for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:18 +0000 Received: by mail-ed1-x544.google.com with SMTP id e22so4877503edq.8 for ; Thu, 16 Jul 2020 07:19:17 -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=1JxFS1+GP3Puv1gzomSYgZUeomAGb2SWboVlMfgMHm0=; b=WUa+a2j24vhFvbxF9nF90vTJ66wiB5M/I+EtRDm6ihsr/anOdS5rfbRZ5xoB0fu01E MfRvhW314d5OR60blxxnhR0aFp9B1vIqK24nm7O5kjcUNiX6HDsnCuM1/ZUsYi+Ht/7Q eaTNYcqNIAQReeoFkrakIY0XpgBSonNxhrpDSWPJWWZYRQZIiRErwCoVNMJpSAe+24Vn 90zzWRrKc+u4qCb6MgU2xq3tbJIY1ZKruUI7B+GcO9jVM9Ovjk92PlNmh0M4z+FFsCCw tstOvhFoaQk2pV39XKaRq2U72CeF6NOMYyVxGMSunA25O0R391uOm0UdOMdTYRkScGDA CFiQ== 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=1JxFS1+GP3Puv1gzomSYgZUeomAGb2SWboVlMfgMHm0=; b=RcA4j/6EEd77zb3nDKPmJfZpYFNKIzpBbSJ9F4T/nETQ0SGDP6eosd0F76aJgrlnpQ I3tDGp0kXh9RC4PHibITGKqNkjhWtMhrQAiB2ZAVispJaOArGUpyzU1TzRK9aQLWQCM4 2nC7hJOpKLT0sXC1zzp0pC5xifwifbKUD6QLg9sZH+zXyzqJMfl9BgoW41lRBQolx1ow JfSsIZudm6XeNwxTurOVDZ0Utt1JNXvSoqcs+xfPkr2WuivMYWKiQA4RnjrunSe26WAa 9Z92elFgQeT+TkMU1QT0OazF066T1GHfzSBNC761viglQqIXDfRZQQ07vk8fPGwcP80Y NDjw== X-Gm-Message-State: AOAM5318DtZcvxcrj/BOazT2ia51oCzM+ZLKcvx4GruOoJuq0tiZ17/j YTWGh6Ud5oqqj8QAWUlJbbk= X-Google-Smtp-Source: ABdhPJxbhHQkLSqySIi71LfXhfPFOw0h8nZ8U86OJQ+pcdcSEOwZyDks/CUFy1EVrwOkm8j14jodPA== X-Received: by 2002:a50:931e:: with SMTP id m30mr4907020eda.341.1594909156295; Thu, 16 Jul 2020 07:19:16 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id bc23sm5416893edb.90.2020.07.16.07.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:14 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 6/9] soc/tegra: fuse: Implement tegra_is_silicon() Date: Thu, 16 Jul 2020 16:18:53 +0200 Message-Id: <20200716141856.544718-7-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101917_872119_E77CC74B X-CRM114-Status: GOOD ( 11.78 ) 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:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 function can be used by drivers to determine whether code is running on silicon or on a simulation platform. Signed-off-by: Thierry Reding --- drivers/soc/tegra/fuse/tegra-apbmisc.c | 13 +++++++++++++ include/soc/tegra/fuse.h | 1 + 2 files changed, 14 insertions(+) diff --git a/drivers/soc/tegra/fuse/tegra-apbmisc.c b/drivers/soc/tegra/fuse/tegra-apbmisc.c index 89f1479b4d0e..be6b7fc169ca 100644 --- a/drivers/soc/tegra/fuse/tegra-apbmisc.c +++ b/drivers/soc/tegra/fuse/tegra-apbmisc.c @@ -52,6 +52,19 @@ u8 tegra_get_platform(void) return (tegra_read_chipid() >> 20) & 0xf; } +bool tegra_is_silicon(void) +{ + switch (tegra_get_chip_id()) { + case TEGRA194: + if (tegra_get_platform() == 0) + return true; + + return false; + } + + return false; +} + u32 tegra_read_straps(void) { WARN(!chipid, "Tegra ABP MISC not yet available\n"); diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 214908fc5581..a9db917a1d06 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -24,6 +24,7 @@ u32 tegra_read_chipid(void); u8 tegra_get_chip_id(void); u8 tegra_get_platform(void); +bool tegra_is_silicon(void); enum tegra_revision { TEGRA_REVISION_UNKNOWN = 0, From patchwork Thu Jul 16 14:18:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667659 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 A6ED313B1 for ; Thu, 16 Jul 2020 14:21:56 +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 7D85020787 for ; Thu, 16 Jul 2020 14:21:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Cv4N3uXd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BUJOV4iY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D85020787 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:References:In-Reply-To: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:List-Owner; bh=AHNEKna5gUwsGyw6LLYugPM8ktioLHCQcPXb6TCYmHE=; b=Cv4N3uXditL8xBFrKQt4ua0FQ ZUcFj3V6LyPpHk+Udj2jQomuJP0ZYpyC7eVVacq/SNCuF87CcoaX6KxcudY20pYMdgMSc/ngYJ4D7 53mTaeFtZfmW0poqGqUqdqqLycWOBDnDvouLPHjcwEnMxs98GZzCCgndNSNBfAdgsLiYnN5CE4Ijc H7tUf3ByUz/q32o7v19ybZWbeF3Tqly8VyZ8jP4SQtK3637OYucS0tv87tLTrqvi9SZscql+NxcIx ZUxE0A27PrZpxWa+tSW6wd4aqXgwQHaux89K6NRZiIW+9oC8Snn0MQ4+GI5pGeiWd1NPtWMHgE0jm 0rxOsdEcA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4k9-0004GP-M8; Thu, 16 Jul 2020 14:20:13 +0000 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jH-0003x5-Be for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:20 +0000 Received: by mail-ej1-x641.google.com with SMTP id br7so6739502ejb.5 for ; Thu, 16 Jul 2020 07:19:19 -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=qRvl4Cg342hduyQ87yrRPUpPC9ZQkFYCJmOo+8OGXrg=; b=BUJOV4iY+mmu4QTHeMLd66xownrZFgCNSV0T33X8eEuaIfkHtuNDzbP5MODjumKhtz iuRxSGzHM+g/evz0AvHiRp+7R+vbjJQOI95MJOEoxaPQaQY6TmIEcxQ7NNd6jbM+CEn1 ro8ZgORmpPNewu2cXOJblWHfQ2B8sqDR//YhpFhLXm2JRnP3FYH/S64Ldp3JxEkfuBnY B1MmJfdQjsC5MpOgwIRLIiwOisSq8QQIMGBlXG6p1cmyGg6Sm4tT5WP+g0/W9NBQocqx fpgUDyiCu89Tahgjz8dw2OsqHpEval/L8S35pHTh3HQ8FE96My1ygMQY6TV9USL6xFws AP3g== 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=qRvl4Cg342hduyQ87yrRPUpPC9ZQkFYCJmOo+8OGXrg=; b=lLaCuETfVHITRcvmkzlBS2pdXxOII/x3Yge6g88cxn2cb5cRSxX5H6wsf4vhSWkury pNQWXb9YVI6Mkd+ubrStZ59MLn6T4M8SdjXQUKtngTk+jjlloRp74EOZn3E5/3qTJjD3 aKJC51oaK/IdVdS/I8u67T6npXJ+ujcNviKuOzk7M/PiJDsdLs2W3mwRgvd5fiUxeRB5 JnUujDLy1QbCGZlI2tX6A199II2h60/VYzOe0GKuoCR0Zg9MID3Zi+/SPXZAzXluwfdN FhuxXfmNEOW7oizgB3PAR5B8Z7y8X+JuWafy84O8nF2vQpkySPkNJyxHhKB5ENLxzviD KjUQ== X-Gm-Message-State: AOAM532Qjgh43EF8fRFU+RZXZ1MebKNkS++NqNiiZa1ZcbPCh0gHGXcH WdkhbIYa0k9tMH3YpWkcoRI= X-Google-Smtp-Source: ABdhPJyumddGVxVVMPvNRyPqIgX7LqNR8HU5saWv82oSzzEAk+aKg429HNLC+7XNKFs7YeccPxvrgw== X-Received: by 2002:a17:906:d286:: with SMTP id ay6mr3967155ejb.400.1594909158460; Thu, 16 Jul 2020 07:19:18 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id z11sm5177398ejx.17.2020.07.16.07.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:17 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 7/9] soc/tegra: fuse: Add Tegra234 support Date: Thu, 16 Jul 2020 16:18:54 +0200 Message-Id: <20200716141856.544718-8-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101919_476818_0422EA22 X-CRM114-Status: GOOD ( 15.96 ) 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:641 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 Add support for FUSE block found on the Tegra234 SoC, which is largely similar to the IP found on previous generations. Signed-off-by: Thierry Reding Reviewed-by: Jon Hunter --- drivers/soc/tegra/fuse/fuse-tegra.c | 6 +++++- drivers/soc/tegra/fuse/fuse-tegra30.c | 30 ++++++++++++++++++++++++++ drivers/soc/tegra/fuse/fuse.h | 10 ++++++++- drivers/soc/tegra/fuse/tegra-apbmisc.c | 1 + include/soc/tegra/fuse.h | 1 + 5 files changed, 46 insertions(+), 2 deletions(-) diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index 7e6b6ee59120..94b60a692b51 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -49,6 +49,9 @@ static struct tegra_fuse *fuse = &(struct tegra_fuse) { }; static const struct of_device_id tegra_fuse_match[] = { +#ifdef CONFIG_ARCH_TEGRA_234_SOC + { .compatible = "nvidia,tegra234-efuse", .data = &tegra234_fuse_soc }, +#endif #ifdef CONFIG_ARCH_TEGRA_194_SOC { .compatible = "nvidia,tegra194-efuse", .data = &tegra194_fuse_soc }, #endif @@ -326,7 +329,8 @@ const struct attribute_group tegra_soc_attr_group = { .attrs = tegra_soc_attr, }; -#ifdef CONFIG_ARCH_TEGRA_194_SOC +#if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) static ssize_t platform_show(struct device *dev, struct device_attribute *attr, char *buf) { diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c index 85accef41fa1..9ea7f0168457 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra30.c +++ b/drivers/soc/tegra/fuse/fuse-tegra30.c @@ -356,3 +356,33 @@ const struct tegra_fuse_soc tegra194_fuse_soc = { .soc_attr_group = &tegra194_soc_attr_group, }; #endif + +#if defined(CONFIG_ARCH_TEGRA_234_SOC) +static const struct nvmem_cell_lookup tegra234_fuse_lookups[] = { + { + .nvmem_name = "fuse", + .cell_name = "xusb-pad-calibration", + .dev_id = "3520000.padctl", + .con_id = "calibration", + }, { + .nvmem_name = "fuse", + .cell_name = "xusb-pad-calibration-ext", + .dev_id = "3520000.padctl", + .con_id = "calibration-ext", + }, +}; + +static const struct tegra_fuse_info tegra234_fuse_info = { + .read = tegra30_fuse_read, + .size = 0x300, + .spare = 0x280, +}; + +const struct tegra_fuse_soc tegra234_fuse_soc = { + .init = tegra30_fuse_init, + .info = &tegra234_fuse_info, + .lookups = tegra234_fuse_lookups, + .num_lookups = ARRAY_SIZE(tegra234_fuse_lookups), + .soc_attr_group = &tegra194_soc_attr_group, +}; +#endif diff --git a/drivers/soc/tegra/fuse/fuse.h b/drivers/soc/tegra/fuse/fuse.h index 9d4fc315a007..e057a58e2060 100644 --- a/drivers/soc/tegra/fuse/fuse.h +++ b/drivers/soc/tegra/fuse/fuse.h @@ -115,9 +115,17 @@ extern const struct tegra_fuse_soc tegra210_fuse_soc; extern const struct tegra_fuse_soc tegra186_fuse_soc; #endif +#if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) +extern const struct attribute_group tegra194_soc_attr_group; +#endif + #ifdef CONFIG_ARCH_TEGRA_194_SOC extern const struct tegra_fuse_soc tegra194_fuse_soc; -extern const struct attribute_group tegra194_soc_attr_group; +#endif + +#ifdef CONFIG_ARCH_TEGRA_234_SOC +extern const struct tegra_fuse_soc tegra234_fuse_soc; #endif #endif diff --git a/drivers/soc/tegra/fuse/tegra-apbmisc.c b/drivers/soc/tegra/fuse/tegra-apbmisc.c index be6b7fc169ca..6aeac5ea2d70 100644 --- a/drivers/soc/tegra/fuse/tegra-apbmisc.c +++ b/drivers/soc/tegra/fuse/tegra-apbmisc.c @@ -56,6 +56,7 @@ bool tegra_is_silicon(void) { switch (tegra_get_chip_id()) { case TEGRA194: + case TEGRA234: if (tegra_get_platform() == 0) return true; diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index a9db917a1d06..c702bd2911bc 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -14,6 +14,7 @@ #define TEGRA210 0x21 #define TEGRA186 0x18 #define TEGRA194 0x19 +#define TEGRA234 0x23 #define TEGRA_FUSE_SKU_CALIB_0 0xf0 #define TEGRA30_FUSE_SATA_CALIB 0x124 From patchwork Thu Jul 16 14:18:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667663 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 862EC60D for ; Thu, 16 Jul 2020 14:22:03 +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 5E91E206F4 for ; Thu, 16 Jul 2020 14:22:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="C7kam6mT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cy8g5b53" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5E91E206F4 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:References:In-Reply-To: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:List-Owner; bh=PUsXvVd/hBnhAslOyutLN4haDuvt5PWeCGPi4GmsZps=; b=C7kam6mT1lEBnaCzCB4L3ZcDK j0fRreUNstWjzhRekdtiC/CuKpUn1yki7uG/YUq+mbrG471Yo7lyHxEfOgk7KIZg+2jxQ4ATe9WK8 KXmCoLtoFDHU3zfGDaUj06yHDxKitp0GC/Equn2QBcMQY0thIEa3hG6ISatDXzo7muPiUIFeDSvwD y12kQmd5f/OpHq2G1+4ccyjTDDP/it1nUG5jqTto4tZBfQZz3+16mzSoxpHIFQfNd1bOGg+x/ietT qHu7SbGgMgVewSCpe76vGHQZW+RNcUbnms4cNIRn+kpdgtlmPoNHH2Z5PVrMBR0xdkvgoxiACyh1k 43KHEl7gw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4kD-0004JD-Lx; Thu, 16 Jul 2020 14:20:17 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4jJ-0003xl-Vc for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:23 +0000 Received: by mail-ej1-x643.google.com with SMTP id ga4so6708886ejb.11 for ; Thu, 16 Jul 2020 07:19:21 -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=j9bjPnYHkc1ScxpRo4KaxBbK7+DK+SRAE3wJZb7d3Do=; b=cy8g5b534FiA0iB75cl36AkRrVlXS03zM/Zp3zirVx/LHlYR3vjHPMOxYwe8JLlvOS 2c/10IL6QBBG0UC3Bo0TMovR4w1IpcO9YFN5EejG8tGSlZQtIyi6Y4vQOs9ksxmvmVaO CNhfY3mgwvkNCxQs19kPaO9Q/V5gUh5PFWoOQLye/VGWLPPega8/EXsAZdpODgmXDI6n shKmgGbYXGFA9kcZSuOA0XFa3OXj91LmQ82y+q36kFAsVYPPvlNfATQsLLuJN90hnzvO LcyyfzCcwAlIGRT6OHE5XPX8jD4eJ/3KwRxhbV2wcfz7qKq2MCAjYQp3g79cp8YQ3Qhu y8ow== 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=j9bjPnYHkc1ScxpRo4KaxBbK7+DK+SRAE3wJZb7d3Do=; b=PA23VZ1MWXGgqE8pUGCTlXGAXVGwhoLKYEB9clbaYWJui7G8/9JZzG1ttoLCbM6ay6 06H8ttKY6G0wuF4knPKmpAQjzX2VEjbghPELGYkmah8itY0zF9pdnHFGVUTsAJJOnBdw vAQlZV7ZeVbUGBp4MWV0PkxJ7XWCwiAeDrY0E2c2uHyw3OnTY6YsnosI4gxJ98j6Bbu9 XY5a1jyKzm51ts2SYE9RyzqHfhDOnWZeWSfSrC8Skino40IFCkBHU81KevGbqDKyLiIn 44wMgGH3mIsV0u0HHoaCDYxdAhntvp24Hj2qNU5JAETxwDvhdw8YLf3PnfepOwMHd+CI o3Ww== X-Gm-Message-State: AOAM530e9l55qiBN4U9SWo6BZnF05mFFmafdsASHWH4d8lElHo5+TWJr Ze6ClEM2WkDFCKpYwmtjFBOKop7O X-Google-Smtp-Source: ABdhPJzLMSAWmGHA5ZypciHPNCoDxd6qUqzCy2tFP13QKkOCtOi/Kgs/pLVy9hD6BNt8VFYH0VcoQA== X-Received: by 2002:a17:907:72c7:: with SMTP id du7mr3352525ejc.248.1594909160409; Thu, 16 Jul 2020 07:19:20 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id c18sm5106476eja.59.2020.07.16.07.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:19 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 8/9] firmware: tegra: Enable BPMP support on Tegra234 Date: Thu, 16 Jul 2020 16:18:55 +0200 Message-Id: <20200716141856.544718-9-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101922_135557_BC388893 X-CRM114-Status: GOOD ( 15.64 ) 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:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 Enable support for the BPMP on Tegra234 to avoid relying on Tegra194 being enabled to pull in the needed OF device ID table entry. On simulation platforms the BPMP hasn't booted up yet by the time we probe the BPMP driver and the BPMP hasn't had a chance to mark the doorbell as ringable by the CCPLEX. This corresponding check in the BPMP driver will therefore fail. Work around this by disabling the check on simulation platforms. Signed-off-by: Thierry Reding Reviewed-by: Jon Hunter --- drivers/firmware/tegra/bpmp.c | 3 ++- drivers/mailbox/tegra-hsp.c | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c index 4d93d8925e14..0742a90cb844 100644 --- a/drivers/firmware/tegra/bpmp.c +++ b/drivers/firmware/tegra/bpmp.c @@ -856,7 +856,8 @@ static const struct tegra_bpmp_soc tegra210_soc = { static const struct of_device_id tegra_bpmp_match[] = { #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \ - IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) + IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) { .compatible = "nvidia,tegra186-bpmp", .data = &tegra186_soc }, #endif #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC) diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index 834b35dc3b13..e07091d71986 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -13,6 +13,8 @@ #include #include +#include + #include #include "mailbox.h" @@ -322,7 +324,12 @@ static int tegra_hsp_doorbell_startup(struct mbox_chan *chan) if (!ccplex) return -ENODEV; - if (!tegra_hsp_doorbell_can_ring(db)) + /* + * On simulation platforms the BPMP hasn't had a chance yet to mark + * the doorbell as ringable by the CCPLEX, so we want to skip extra + * checks here. + */ + if (tegra_is_silicon() && !tegra_hsp_doorbell_can_ring(db)) return -ENODEV; spin_lock_irqsave(&hsp->lock, flags); From patchwork Thu Jul 16 14:18:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11667661 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 9624860D for ; Thu, 16 Jul 2020 14:22:00 +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 5FE43206F4 for ; Thu, 16 Jul 2020 14:22:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rPfLDFSA"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bmKEXWQd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FE43206F4 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:References:In-Reply-To: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:List-Owner; bh=R+EUkm0gU2Mnj5EH7J5623aa2CestYNnOoO3s8EI7EA=; b=rPfLDFSAA0KniJweQNHOfbNaq 9VWJnNHa3bEDDZgSul4TNImrDPHA2W0KZWke7yev3hZBXfRzlpi3UurFqXwgbGQ2vkDW7eJkN4AhI RsiU6L9ZBj3j+zRpYCV8mpBpTL6b1Bjumh+wM847gdFCsV+i2BunRF5UxXtVY7doIrNDwWXwumlfg 8rfxtA1H6scmdZfLi96QEVy8ljU6Eme7rcaSgtKHGj/oFR3/l8sVj4VzPWG4yk49XVagMV+uaq7bL QYiM9VZ7IdsoR1Ogh2RaIX7juOXboysa/K+2Dft9N1Qc9wU0Qzra5yTQNHUAJaZNlpfMCKB04p8u/ R8Nk1zOyA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw4kI-0004Ls-MX; Thu, 16 Jul 2020 14:20:22 +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 1jw4jM-0003yk-9A for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 14:19:29 +0000 Received: by mail-ej1-x642.google.com with SMTP id a1so6714100ejg.12 for ; Thu, 16 Jul 2020 07:19:23 -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=O2qUcN0MJzlF2O//I3eS7mCqdWmMMsPXkiKL68YPVxQ=; b=bmKEXWQdkjmgamUeYd70ye/wR9oErO9iKHO0/B5YQ3SveydjlBlJrjIlXBd1zSInId xcpvjoJg9oljXp/ibW4zuiNo3sWQQL30gEejymr7ksYotwhnOU73XjCjKOaXciPgTYdc G5w//bxhBzsEtJ7H1pLwKuhq0OOPHv3oFWerFO6A+gh6m/2s81Jv29gKPj6IZcZCNIFN APBUym3Pd4RZ1n6a2Q1VlNrPcwKVl6//wzLxKKVva9OPS36bjiXSJDpoE2PT4ez8E3F5 tbkwikveXQgKr4wJDsx/l3qO54iOXQ4rtL8tKl9n55UM2SCpAEzlbKjvcACipL7iBhNb Hnqg== 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=O2qUcN0MJzlF2O//I3eS7mCqdWmMMsPXkiKL68YPVxQ=; b=dNbA0pb/RMOKp7MVnHcK8OS9QOT8UlA4KaAiZklUr190Kbs7g/cvontrUN3AmeOSdh zjzMDQXMJxKE21GsHYy98zccNX1+t8MSrDXFDmU7zn6YxwuLiTHMRH87A3w00jR6PTlV t2awGpF7s4B9xH9Jqcv0IpZ1uGntpkM2csNj5nTN9mUXIAPHTWXfuc5O8tt0JJ0EL/oP 8O7QZZHj8giJ0Kf+FeLyG5a8dPiZlYOD3mlKM47gGdh7k/3xiNMNSgHctWK5E0090/TQ qcAU/ddkpJWYdaQqVlA2WZ1N2j8XQIcQ2YFg3xyujniZWF5D+f9snmqVHdLkcFOaD/qG IW5w== X-Gm-Message-State: AOAM530KtyVIKUYaMdVbHerNPnMWcaOkTexOkJXPjDzmwUxosrWZbbui 4NqNkPrFX0MgyOaRRbbS6Xg= X-Google-Smtp-Source: ABdhPJxtoTmgpHYFOsHffgfO/HTEoHVYqI4QCVQIybjsuFyZvBcuJT4ze04rtoH7CXhSJzIbHyebQQ== X-Received: by 2002:a17:906:d286:: with SMTP id ay6mr3967437ejb.400.1594909162618; Thu, 16 Jul 2020 07:19:22 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id p14sm5483114edr.23.2020.07.16.07.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:19:21 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 9/9] arm64: tegra: Initial Tegra234 VDK support Date: Thu, 16 Jul 2020 16:18:56 +0200 Message-Id: <20200716141856.544718-10-thierry.reding@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716141856.544718-1-thierry.reding@gmail.com> References: <20200716141856.544718-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_101924_437667_24093AA4 X-CRM114-Status: GOOD ( 17.12 ) 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:642 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [thierry.reding[at]gmail.com] 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 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"; + }; + + uarta: serial@3100000 { + compatible = "nvidia,tegra234-uart", "nvidia,tegra20-uart"; + reg = <0x03100000 0x10000>; + interrupts = ; + clocks = <&bpmp TEGRA234_CLK_UARTA>; + clock-names = "serial"; + resets = <&bpmp TEGRA234_RESET_UARTA>; + reset-names = "serial"; + status = "disabled"; + }; + + mmc@3460000 { + compatible = "nvidia,tegra234-sdhci", "nvidia,tegra186-sdhci"; + reg = <0x03460000 0x20000>; + interrupts = ; + clocks = <&bpmp TEGRA234_CLK_SDMMC4>; + clock-names = "sdhci"; + resets = <&bpmp TEGRA234_RESET_SDMMC4>; + reset-names = "sdhci"; + dma-coherent; + status = "disabled"; + }; + + fuse@3810000 { + compatible = "nvidia,tegra234-efuse"; + reg = <0x03810000 0x10000>; + clocks = <&bpmp TEGRA234_CLK_FUSE>; + clock-names = "fuse"; + }; + + hsp_top0: hsp@3c00000 { + compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp"; + reg = <0x03c00000 0xa0000>; + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-names = "doorbell", "shared0", "shared1", "shared2", + "shared3", "shared4", "shared5", "shared6", + "shared7"; + #mbox-cells = <2>; + }; + + hsp_aon: hsp@c150000 { + compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp"; + reg = <0x0c150000 0x90000>; + interrupts = , + , + , + ; + /* + * Shared interrupt 0 is routed only to AON/SPE, so + * we only have 4 shared interrupts for the CCPLEX. + */ + interrupt-names = "shared1", "shared2", "shared3", "shared4"; + #mbox-cells = <2>; + }; + + rtc@c2a0000 { + compatible = "nvidia,tegra234-rtc"; + reg = <0x0c2a0000 0x10000>; + interrupt-parent = <&pmc>; + interrupts = <73 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + pmc: pmc@c360000 { + compatible = "nvidia,tegra234-pmc"; + reg = <0x0c360000 0x10000>, + <0x0c370000 0x10000>, + <0x0c380000 0x10000>, + <0x0c390000 0x10000>, + <0x0c3a0000 0x10000>; + reg-names = "pmc", "wake", "aotag", "scratch", "misc"; + + #interrupt-cells = <2>; + interrupt-controller; + }; + + gic: interrupt-controller@f400000 { + compatible = "arm,gic-v3"; + reg = <0x0f400000 0x010000>, /* GICD */ + <0x0f440000 0x200000>; /* GICR */ + interrupt-parent = <&gic>; + interrupts = ; + + #redistributor-regions = <1>; + #interrupt-cells = <3>; + interrupt-controller; + }; + }; + + sysram@40000000 { + compatible = "nvidia,tegra234-sysram", "mmio-sram"; + reg = <0x0 0x40000000 0x0 0x50000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x40000000 0x50000>; + + cpu_bpmp_tx: shmem@4e000 { + compatible = "nvidia,tegra234-bpmp-shmem"; + reg = <0x4e000 0x1000>; + label = "cpu-bpmp-tx"; + pool; + }; + + cpu_bpmp_rx: shmem@4f000 { + compatible = "nvidia,tegra234-bpmp-shmem"; + reg = <0x4f000 0x1000>; + label = "cpu-bpmp-rx"; + pool; + }; + }; + + bpmp: bpmp { + compatible = "nvidia,tegra234-bpmp", "nvidia,tegra186-bpmp"; + mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB + TEGRA_HSP_DB_MASTER_BPMP>; + shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + + bpmp_i2c: i2c { + compatible = "nvidia,tegra186-bpmp-i2c"; + nvidia,bpmp-bus-id = <5>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + reg = <0x000>; + + enable-method = "psci"; + }; + }; + + psci { + compatible = "arm,psci-1.0"; + status = "okay"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + interrupt-parent = <&gic>; + always-on; + }; +}; diff --git a/drivers/soc/tegra/Kconfig b/drivers/soc/tegra/Kconfig index 6bc603d0b9d9..976dee036470 100644 --- a/drivers/soc/tegra/Kconfig +++ b/drivers/soc/tegra/Kconfig @@ -119,6 +119,16 @@ config ARCH_TEGRA_194_SOC help Enable support for the NVIDIA Tegra194 SoC. +config ARCH_TEGRA_234_SOC + bool "NVIDIA Tegra234 SoC" + select MAILBOX + select TEGRA_BPMP + select TEGRA_HSP_MBOX + select TEGRA_IVC + select SOC_TEGRA_PMC + help + Enable support for the NVIDIA Tegra234 SoC. + endif endif diff --git a/include/dt-bindings/clock/tegra234-clock.h b/include/dt-bindings/clock/tegra234-clock.h new file mode 100644 index 000000000000..2c82072950ee --- /dev/null +++ b/include/dt-bindings/clock/tegra234-clock.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. */ + +#ifndef DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H +#define DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H + +/** @brief output of gate CLK_ENB_FUSE */ +#define TEGRA234_CLK_FUSE 40 +/** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC4 */ +#define TEGRA234_CLK_SDMMC4 123 +/** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_UARTA */ +#define TEGRA234_CLK_UARTA 155 + +#endif diff --git a/include/dt-bindings/reset/tegra234-reset.h b/include/dt-bindings/reset/tegra234-reset.h new file mode 100644 index 000000000000..b3c63be06d2d --- /dev/null +++ b/include/dt-bindings/reset/tegra234-reset.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. */ + +#ifndef DT_BINDINGS_RESET_TEGRA234_RESET_H +#define DT_BINDINGS_RESET_TEGRA234_RESET_H + +#define TEGRA234_RESET_SDMMC4 85 +#define TEGRA234_RESET_UARTA 100 + +#endif