From patchwork Thu Sep 17 10:07:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782115 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 CD626139A for ; Thu, 17 Sep 2020 10:09:51 +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 8E2662083B for ; Thu, 17 Sep 2020 10:09:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GfypNADs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GH0RH1wH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E2662083B 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=IWQrDa0hy32rs92in7vcPg52FEU0srAbtRwwzirm5Ko=; b=GfypNADstpoJmDCr8mKjBgvM/ FG/h9McZaEjdEDOgW7ucO6vBP0fyYcbdoCv6j/ydZDRkLOMiOsTcm6Cv9ASEDlTuWBP8DbvltZkjZ Ye8jZKWgBDaDrABct4GQM90Swnygmu9rDfEyuCrUbu4+MTo8zP20GcDuAL9FlyXHS7AOIqfnt9QkC cyTAcyAZ/iv3cAM48XTzBxzhQXG+ffAeMv/UVvgX0mvA8Dg7bFpPjcp70Xv/h+Udua6HaWBJwBghK n3958hAFwBMp3v7cQQ9ZGJeOx0LZCPNjvIeqvHfXAhL5mtMZ8dyfNlzlNgzom5anFvuArL3OM9Jdv 0psDPTeeg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpi-0008Ip-Pv; Thu, 17 Sep 2020 10:08:06 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpe-0008Hs-Dr for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:03 +0000 Received: by mail-wr1-x441.google.com with SMTP id w5so1399280wrp.8 for ; Thu, 17 Sep 2020 03:08:02 -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=t/knsyRBmfuowKEryvwF6FXG5P9Byc/LEhIHije4hyM=; b=GH0RH1wH/pMckesP06xq3yYfBkgy7xETCPMmo88fg2btw3zlZ3hpz/Chqq3/RNdsBi r62o7Y4JbXfswAddxfFEtj0E0JwNAJMweIplYNtBQfw6XmDi074ibXJyV/kS+feafuLB 3+oIl+TscupcTyM9esHHCbvMfU13aRkiUnC4C86T9sVHES/tLSJfDEKelnXKN9e1ukZn wz/i8FiBI+rgYWxUj8tCTqDcwKsRHdkuEYDFo68/Ti6qY0UwzD5EnRzB3ffsGeZuovMq 6zKg9NY0lLG4iAQTJDtsl/W8e6CSzj0rIzB3jAr2KLmKA1Ojm1iTWMFApNLLwpfv80lh LvXA== 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=t/knsyRBmfuowKEryvwF6FXG5P9Byc/LEhIHije4hyM=; b=ihcnHAnvkp6Eavo8CrnMZd15qviWQ0Kal4dVfAn2tJDbcw/ydRkF5cejFZb+9oJ3Lr SlEFSLpI0ILDYujBxcsY22bb2+VWxqvvYrvFbYBLZNShdg7PDMeJXfEkiExCVs6l3+Y9 GNpkjD9WRLKm0MJhqEjyqsPFvDnq3pwFj2c79/oJbtVXT0o3Dr8lL/wY0Z1dJlnKk/h9 TFM0mOaJAzz8Z58P8sh1QLXz6z22itG7BL5qJ3hPFaZQ2w59EBQVL0b0hQZsSbZohmWT ZE2YBibBCS1OawONJkkwWrC/8NQ1WNOXMsSKhuUoOHfPckeYhAcpJvca4o9qSSJ5B2wM 5JDw== X-Gm-Message-State: AOAM5331SWQxQ8/bPzJHgfrSRl096ToGMWe+9Bnm3oszI0vNq02jWUsq F8ZAKp9LOmjJ//VOflxQq1r7RzVDf4OqNA== X-Google-Smtp-Source: ABdhPJx1A47oG1vla1IuzoyG2ECZbYk7RbyFhsZVRT/Z8rnQG34qitRx9uslbAOhwWDDY5Co4XVl2Q== X-Received: by 2002:adf:ef4f:: with SMTP id c15mr8265801wrp.390.1600337281325; Thu, 17 Sep 2020 03:08:01 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id l8sm37295430wrx.22.2020.09.17.03.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:00 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 01/14] dt-bindings: misc: tegra-apbmisc: Add missing compatible strings Date: Thu, 17 Sep 2020 12:07:39 +0200 Message-Id: <20200917100752.3516153-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060802_477241_20AF2B47 X-CRM114-Status: GOOD ( 12.39 ) 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:441 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 The compatible string for the Tegra210 APBMISC block was missing from the bindings. Add it and while at it, rewrite the description of the compatible string to make it clearer. Signed-off-by: Thierry Reding --- Note that this actually changes the compatible string for Tegra132 to reflect what current device trees actually ship with. .../bindings/misc/nvidia,tegra20-apbmisc.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/misc/nvidia,tegra20-apbmisc.txt b/Documentation/devicetree/bindings/misc/nvidia,tegra20-apbmisc.txt index 4556359c5876..83f6a251ba3e 100644 --- a/Documentation/devicetree/bindings/misc/nvidia,tegra20-apbmisc.txt +++ b/Documentation/devicetree/bindings/misc/nvidia,tegra20-apbmisc.txt @@ -1,10 +1,13 @@ -NVIDIA Tegra20/Tegra30/Tegr114/Tegra124 apbmisc block +NVIDIA Tegra APBMISC block Required properties: -- compatible : For Tegra20, must be "nvidia,tegra20-apbmisc". For Tegra30, - must be "nvidia,tegra30-apbmisc". Otherwise, must contain - "nvidia,-apbmisc", plus one of the above, where is tegra114, - tegra124, tegra132. +- compatible: Must be: + - Tegra20: "nvidia,tegra20-apbmisc" + - Tegra30: "nvidia,tegra30-apbmisc", "nvidia,tegra20-apbmisc" + - Tegra114: "nvidia,tegra114-apbmisc", "nvidia,tegra20-apbmisc" + - Tegra124: "nvidia,tegra124-apbmisc", "nvidia,tegra20-apbmisc" + - Tegra132: "nvidia,tegra124-apbmisc", "nvidia,tegra20-apbmisc" + - Tegra210: "nvidia,tegra210-apbmisc", "nvidia,tegra20-apbmisc" - reg: Should contain 2 entries: the first entry gives the physical address and length of the registers which contain revision and debug features. The second entry gives the physical address and length of the From patchwork Thu Sep 17 10:07:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782107 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 5839B139A for ; Thu, 17 Sep 2020 10:08: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 24AB92083B for ; Thu, 17 Sep 2020 10:08:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jEUmSqdW"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TUJMp2HS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24AB92083B 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=y8TRdkB1GKnoizMzss0S5SSfIiViaR+zzx3FQb5Gbbg=; b=jEUmSqdWrjvp0F7chZUlJoqbR KRqCOzd0jMyKo6KL9nUdyhij4EY51SyVLKLWyELAnCsBAgHGXIx/Kkuoe8jOGHsLOBYtcwtKD+MOx HPQ5yAAECkMNBpemCe6p8qJ9K9hH1KLUhp/vXIkJYYQ9cz+Wiq4r0gqNHowwCBecalP/vnz8QYq9D Pft/FV6ph49wnn6tlLHpAv6Fuo/FZkpgAPSAfKbc/3vKH2nunJ2OtTU/zx7kXh3Bzjv2F5InsczQ5 6+y72XA58VcjLhtkp71Gakelcs3iAMtZR6mdxR1h4XuhZJTZ+/Ef5CGFuASyv/nE3T3WnjgwpJaoT ovjM3V2hg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpp-0008KF-4x; Thu, 17 Sep 2020 10:08:13 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpg-0008IJ-Oo for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:05 +0000 Received: by mail-wm1-x342.google.com with SMTP id l9so1430154wme.3 for ; Thu, 17 Sep 2020 03:08:04 -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=9SOnLXMYGWEmAszlwx/dtkJXl4pCAVxRgqI/JLE79jA=; b=TUJMp2HS7DtqZquSsbfNOAHKSzEun1xe/4YD9QtVdaaZuUhMiTMf+Fm4XXFpQO7eNP 3sXQ9AAh6KuSQKR4RRLpVgH/EUuK/vMviOST9qAsOC97MlASg6PslJ0gnp7Ps1Nbkzp9 KeyyMLH3Ra+L9IoacqD+8ingp54Vb17iFawnPvMfrFTD0iscUhphiVHYOkPfpDZIfwgu Coq8bia065UPTssxtPd4K2P/KeoQVi04LqsxwqV54rivR/9lOVLDTgCwrUed+8/8OY4c LgMcIpjYs3Cg4eEJK2MPA5ZTFvv6yZ3YvRqjCT4Pdd6o2Yi3gMYsA8cUSV6VVae4SbeS YLKA== 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=9SOnLXMYGWEmAszlwx/dtkJXl4pCAVxRgqI/JLE79jA=; b=nGZ793qOF5rzSLZ/2ExQv6dlOYMiChaQnVT1gggfx6OxLxQ8yjKRX7MGZqI8+Fo6UP 6MVzqLJLhtQWGmBjsm+juk0Atf46xXJv5EojoeZvAcaA3ANC6tLx+YmzP6SxuF7xKHlb 6c/8Q1e+OMIdHKwZJsD6lFGCo9ZvBEXW62dF8PQhjMS73BQ79eQNPD3Pde+ptpjNsMgE e9W/lTDAd5/hGiuuonV8Dpb8U/av0syw1eVH5X9mN0ygLejlyuuCdDInW1hrzBVBH8BM QpJY41/epCy3q1tQqBXgNynbOapM6q7G+d3nxAXF2V1L1hcX6LJZ3cwkbMeT9O/G3gVJ 3zkQ== X-Gm-Message-State: AOAM531U3oms4M2j/MDYYLPMXxzigcajwZ4myPkmySexRRJ+oZ2I0KAT G6emhodGYmxhLR66a0ULJeEM8Je8x27Azw== X-Google-Smtp-Source: ABdhPJwd2UMu5CUafGzYRdftZI00s1wk7UBAsiZxoMhny5MfOqhZMx+gIgCM6Hy0ju/P7JHDLVMK3Q== X-Received: by 2002:a1c:28a:: with SMTP id 132mr7158586wmc.144.1600337283771; Thu, 17 Sep 2020 03:08:03 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id k22sm38824704wrd.29.2020.09.17.03.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:03 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 02/14] dt-bindings: misc: tegra186-misc: Add missing compatible string Date: Thu, 17 Sep 2020 12:07:40 +0200 Message-Id: <20200917100752.3516153-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060804_845289_859DB165 X-CRM114-Status: GOOD ( 11.37 ) 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:342 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 Add the missing compatible string for the Tegra194 MISC block. Signed-off-by: Thierry Reding --- .../devicetree/bindings/misc/nvidia,tegra186-misc.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt b/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt index 892ba4384abc..111dfac70ea7 100644 --- a/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt +++ b/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt @@ -1,11 +1,12 @@ -NVIDIA Tegra186 MISC register block +NVIDIA Tegra186 (and later) MISC register block -The MISC register block found on Tegra186 SoCs contains registers that can be -used to identify a given chip and various strapping options. +The MISC register block found on Tegra186 and later SoCs contains registers +that can be used to identify a given chip and various strapping options. Required properties: - compatible: Must be: - Tegra186: "nvidia,tegra186-misc" + - Tegra194: "nvidia,tegra194-misc" - reg: Should contain 2 entries: The first entry gives the physical address and length of the register region which contains revision and debug features. The second entry specifies the physical address and length From patchwork Thu Sep 17 10:07:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782119 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 8A34A139A for ; Thu, 17 Sep 2020 10:10:04 +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 57F1B2087D for ; Thu, 17 Sep 2020 10:10:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AJk9vx+/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m7s6VX7x" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 57F1B2087D 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=CIy5mbVX3RAOIMoxZH9tKxjrNygYKcHKjEh3RErK/d4=; b=AJk9vx+/98Cs3w1g4KyTp1u0F jXPBpnHyluZCWVmY+/531k607JCyhYPGIEZcfZNfLJFTcmmdPPvMZvO0WysNxGZwuvIlrhB6nuiRQ OGLCIgvQnnBcHNrU5InQfTbvEWVcti0AboJ2MGofJHp3lu5jnltC/GxoocTDkjrasaXxfnBQFHGJm ZK9KqgxNxuDAVZ8NbRm/O0enFxvkY3dmRZQV2rrKymdqI3vXhr/ALJjlwBtR8UkiKkniM+GYKZuqG rqW86qjx0UKCsQpnPhufExK9RRLtz8Ob4n9xhexUMqmo0+/rTgbJIgfvb+uNt66eR/Dfkp6LMkMut jBRZIKrOg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqps-0008L8-W3; Thu, 17 Sep 2020 10:08:17 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpj-0008Iv-Dk for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:08 +0000 Received: by mail-wm1-x341.google.com with SMTP id e11so4097786wme.0 for ; Thu, 17 Sep 2020 03:08: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=yzDyavo/0wiA7VQrCMlOltEtuSoQo9iwyahPJsjM92k=; b=m7s6VX7xOas41kCUouVjr3Jdn/xj0WF/hKRRfyCWiUMICpFiJJa+8ijnSB+4kEKloy 8SWUHylrmSRp5SgSMY8/XJ0BozUYpAURXBudEle64gb0Ta27rCsUAdCm0X/dGnS9hfU7 TQCWHd1mwPZkO1sVghd+JE0QKkRV0IBxxvNXlVitccALv6sHrA/xLOBnbmtdDEaDi6VJ lb2IW8zuxFIxzYreyeM4a34v5AcwEFEU3d0xxLg/Ou6g+9CGGnztkwx1nh/wuviJjzki Kg9+ygOgQneWKyrznLcfLVX8PsQrTtl3l0Zmmt4/A3JPiuc6a3g9qAtuR2HmbVYi9+dP U2Ww== 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=yzDyavo/0wiA7VQrCMlOltEtuSoQo9iwyahPJsjM92k=; b=FVv3qo4VC5BJkhGPKkvnUJ2gQGwhU5RYrh/Wcipkcc93Q5avinR00Ivbqaz5fkX6qw nRHt11t6tnfxjrxjlA8kPmNaMBnjOMxq+TLYaSQX1HzayupwkgRZHvSvtWrUfjuY64S+ 41jmSaO3rxivL3K06xPKO5wfJR4fUCpLeSZjo3NihILGZkObLhqKOX9DX34NTW1WCMp1 dW+VbIlm2kQiFl9O+ip4EJQllM5MgMjwmyP0w4ZhpW7q7aRXaMY4JjtkN3JlR0DlBklm /1yTOEiBZh4tZkRbl5wRAWsqGxHnoJic8bC6jY1bEF6drN9LP/CI99FpkSh0E6pLF0gg 0a6w== X-Gm-Message-State: AOAM533wVBEB0endBFk471+oJGG82qK/VlrNohtQ6nLYfq+vW1vyLnM7 RiO1ypdRx8iHtGkzSz3XSomDD+xj6lbKVg== X-Google-Smtp-Source: ABdhPJxIPhicBdr+i37QjporTqES3j0nrKfVtYBEXn8glNNlpDpOM4mfFrfljFgacQsDSyEk1cN4GA== X-Received: by 2002:a7b:c44b:: with SMTP id l11mr9012514wmi.52.1600337286341; Thu, 17 Sep 2020 03:08:06 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id c16sm8826084wrx.31.2020.09.17.03.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:05 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 03/14] dt-bindings: misc: tegra186-misc: Add Tegra234 support Date: Thu, 17 Sep 2020 12:07:41 +0200 Message-Id: <20200917100752.3516153-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060807_501568_93AFF5C3 X-CRM114-Status: GOOD ( 12.74 ) 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:341 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 The MISC block found on Tegra234 is mostly similar to the one on Tegra194 but supports slightly different register sets that make it incompatible. Signed-off-by: Thierry Reding --- Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt b/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt index 111dfac70ea7..43d777ed8316 100644 --- a/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt +++ b/Documentation/devicetree/bindings/misc/nvidia,tegra186-misc.txt @@ -7,6 +7,7 @@ Required properties: - compatible: Must be: - Tegra186: "nvidia,tegra186-misc" - Tegra194: "nvidia,tegra194-misc" + - Tegra234: "nvidia,tegra234-misc" - reg: Should contain 2 entries: The first entry gives the physical address and length of the register region which contains revision and debug features. The second entry specifies the physical address and length From patchwork Thu Sep 17 10:07:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782109 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 E064F59D for ; Thu, 17 Sep 2020 10:08:41 +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 AD1592083B for ; Thu, 17 Sep 2020 10:08:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wSm0qlR6"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AG4HHZYh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD1592083B 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=YudV3sZw/ggn2NidvzHBt7jBthq/Ut8a4Ctcjz+hraA=; b=wSm0qlR6886SCY6ax+So3nFeR gbzNh7ZmbLJHkJCeMSmRs4kFoYBlbs1eQ+jd1oizUiVZOo5m6sPXLgR5CIMOMpwkHC+JiPTcWVYlR Aqq4zuvCw/epbOwUJoT6gAORpPe+vOsykmAFAdKg6CSwqFIkE2YEqwHHgU5lct76BZRQQAIsfkOVY wJPsjtPExdsdmV1HxbeisUJ2OqIIUBF3TvstdaAmr2BLs8fnawe2YTVkRZ5qGZqgmfL9Umv3DqM2S JyWAYhnDWnTYtx/4uBAmx50UEokAlGg2SMnZKRVa0zkvPLTvg2hyS+J5DSwHhpvcfDUnVpokH1Mh4 XW7xVA7kg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqq3-0008Nx-VL; Thu, 17 Sep 2020 10:08:28 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpm-0008JT-3E for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:10 +0000 Received: by mail-wm1-x344.google.com with SMTP id k18so1423571wmj.5 for ; Thu, 17 Sep 2020 03:08: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=kwIhMiKwFA9UbevhkK+ZQGnCqGV++rJhNBk/vocGlqk=; b=AG4HHZYh/lS4KCl8vF1CBlBPRAA3wg00sNAGurd/cshinKyzmKEZ27FWrgLivznShB yIliV7lRx5ws/J2OenlKgdZ8DxmCknQEdNm9e6ewfJctiAuZ96LQjHhA8MOzAfWCvGlj XaZDlJkfQTo763Y63mQ6KdB0YP8OBmeEJVOZTSpieUV7QRLzDv8RULZ7eDDxrOclaEtn O48rRt6MC5OjtX8hInBDBESe4UDfp+Lt+z5sdvymnzn1tzIOPnlRcNEBz+kDGbNN+ycn daGRi57nlLxN9Dc3+Df6GxHQpVYLy5hPP++VmJI9sn8ybHnqPlu7JxVrBJu2ybnPahd8 Bvsg== 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=kwIhMiKwFA9UbevhkK+ZQGnCqGV++rJhNBk/vocGlqk=; b=NudMIYpwxdg+KbAI9aUtO1ciWQ/e3OZt6cWHN/nuP45eoQ9p99LoBNtv2rDroA4ABa kxOUt7WCj0NW7tYGGG6ItXiIQFGx05KZ/YQH6fmvXfJiqZ+J+NSZWc44rm1TXcDzOXkr D5AYXZascsdlYkeKbvB+rkCdz1I+/Jc6yO4EyPws/6LQUA1gRX90j6yF66S/dnL4xcIw MHpg7HPISmo40XJakJcShEiWV77KFmRVtSRlCqo1qRhYpFYuB3cxnzvIVJhVUPVe+0xN Ez0A6JBYhOcS7o6spuGGivlsluNNRZmVkbQtaYeDNnsd522dWHuQsEmxi4XAtVqcaItT r2+w== X-Gm-Message-State: AOAM533IyAkat2tJvyjwldbhLG2QeYLVBRcOfeASXRKzJL8rVAEcdO7k PG2nI9B/JCJEj2bTY9Zr63s= X-Google-Smtp-Source: ABdhPJxGNXnzvTSiOWew8AxmTOG7GJ/ghclcyySs/R7BA+KwOjDkYDpgQT+sVAAg1uGKeNGRLWECpg== X-Received: by 2002:a7b:c1c3:: with SMTP id a3mr9976780wmj.68.1600337289049; Thu, 17 Sep 2020 03:08:09 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id i11sm38591935wre.32.2020.09.17.03.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:08 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 04/14] dt-bindings: tegra: Add Tegra234 VDK compatible Date: Thu, 17 Sep 2020 12:07:42 +0200 Message-Id: <20200917100752.3516153-5-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060810_207297_21BEB7C9 X-CRM114-Status: GOOD ( 11.26 ) 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:344 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 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. Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- Documentation/devicetree/bindings/arm/tegra.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/tegra.yaml b/Documentation/devicetree/bindings/arm/tegra.yaml index e0b3debaee9e..85006ca503a7 100644 --- a/Documentation/devicetree/bindings/arm/tegra.yaml +++ b/Documentation/devicetree/bindings/arm/tegra.yaml @@ -119,3 +119,7 @@ properties: items: - const: nvidia,p3509-0000+p3668-0000 - const: nvidia,tegra194 + - items: + - enum: + - nvidia,tegra234-vdk + - const: nvidia,tegra234 From patchwork Thu Sep 17 10:07:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782111 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 5D66659D for ; Thu, 17 Sep 2020 10:08:54 +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 290922083B for ; Thu, 17 Sep 2020 10:08:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="omflqk4z"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KOrg0eYa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 290922083B 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=Z0drP5xiEi66xfav8KoAgqqpwd+VjtE/OGI5z1sus7c=; b=omflqk4zTO1TJIahe0T53SbFx lnFnjelfQCgs1pipP6E5VGsCqlfkyK4xGHjg2fiJgngFQ1VPktFd3sdBfQKQJ3KRk6ENs+I4eHSwR 2bv9APhn5TuacacG35i8iyV5sqUFKeXpz7MEZDriBYdRQzKdfeDH155/edtv4bfg8lTCcY+6usNAf eFUqumDfGsFjOTYK2CgHJXqeFSkd06tlv+njEayuZlosz/Jmyht/KLYHsAY2sP6vcvCTlfDTdTbxZ 72ZuRxiBqYnRApSlFdcTCS4VDFkeml/c7HjTByaFA1GIdWGB2XTk6WZH+BaqH88qvrJaIbQ1AGNxl j23H1djcg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqqB-0008SC-AD; Thu, 17 Sep 2020 10:08:35 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpo-0008Jw-Iw for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:13 +0000 Received: by mail-wm1-x341.google.com with SMTP id k18so1423681wmj.5 for ; Thu, 17 Sep 2020 03:08:12 -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=qDEdsImJGmPjV4cplSymy3fo44ZqgQp59/n5co17MVE=; b=KOrg0eYaDIXK2RkYD6TniyClh7P3BK9rKet96xBfhJ/LDs/PpPwDIENv7kVc/L9kXc zHaTVhOvKXBxV15+k5Bn1HzChi5oTYjXHJx6yc7uhpUJsg3ub0ck6bQKMphNHn9Ncw8M K89QxZ9OkgmQYx68ZtNcj+OlgpMtismBFbCfR9ukvMsGQavJOrAmzlnVRhFeybw+ufgq LgDD8JCEVuQYXcgjati4pL9+Lpfxe8eJx6BJbVRBw72fgBxQje/WH+gtxKobA0HPbHg3 U3OjI87mJeKN3Q+dlAWWbnQq2UdBj35hJKS4wzXC7chk48wVxIROzcXEq96TogLk2QOS o4wg== 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=qDEdsImJGmPjV4cplSymy3fo44ZqgQp59/n5co17MVE=; b=uc6kL5EuhmAZdpRwJaRkE0UVHZEA1HQR2ih3eWf5it0UxWG0pC9kwzh2bbHqO00wNa VWwXatiMqL+efi46418mMWxmW7zYDGwjWuzbG3KXcqcNqD0qfbq9kxscl/6EfXByH9eg NtNQnVG99cddSLN2axVwGyBEG5FRGDQbzSh2h8+mARve6zDRIqQCkSCaw+4GvAlz3JsE Zlh9Ot30LqmCnn2Tzrx9Ku9Yaup0oK9UMjrM8IEXZhpgJUczaLRJGnej0MQtb0iXHJJg l2HBxu52nWbURIJwQjC7vIO7elN8SOfKtus1GUXLOtVpyrUEU62h2C/0Vau84JIQmfSS Fj7Q== X-Gm-Message-State: AOAM532Van7i7aUD0uIuH4EH20xkpqk0+O3BBI7xuDF7aCNY9JNs1anN PBAQg/Pzd54ytz3G1jyS/so= X-Google-Smtp-Source: ABdhPJwAgAu6iq1atWEd8YCGH5KAF6xEi42zmB+6VcRG5jUkYGuUd1qAGv8452yMOgXNWYH9m9ronA== X-Received: by 2002:a7b:c1d4:: with SMTP id a20mr9253846wmj.30.1600337291748; Thu, 17 Sep 2020 03:08:11 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id m3sm37940075wrs.83.2020.09.17.03.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:10 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 05/14] dt-bindings: fuse: tegra: Add Tegra234 support Date: Thu, 17 Sep 2020 12:07:43 +0200 Message-Id: <20200917100752.3516153-6-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060812_651685_69159F4E X-CRM114-Status: GOOD ( 12.72 ) 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:341 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 The Tegra234 FUSE block is very similar to that on prior chips but not completely compatible. Document the new compatible string. Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- 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..b109911669e4 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 contain "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 Sep 17 10:07:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782123 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 79CD959D for ; Thu, 17 Sep 2020 10:10:47 +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 49CF22087D for ; Thu, 17 Sep 2020 10:10:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YMXH1y/Q"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hHzBhL4X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49CF22087D 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=lZ67kWawXZtONxiSrZA9z+q2B2MN9pHliAMadGpqynE=; b=YMXH1y/QJbEWNoLuzSYIfxJou E9tl2SSXVp2vOZdGbIwjhOYDGAtnBHywi/gOGjku6pqb/uO4/Ez7V1YPBYlqPYOq2rGqLw+saFdO5 QC2ZbHxiWGayaDXv7wSeW9mtx8z7vX3f8s3E/1sv25ui+2Ep+wviFnXZcmU9cAAKSIS9EJ9N/Rl+s WXBBxdYnEoqLcdsHEmj4icVKiJ/p2TnhFF0p7blTquG4zlsfC+eg8K8cMafXAowfgZ7GqT7FPi6Qn 3WSVGH4bc2RFM7OPbbCiXG7iKHyXxXiFPASnbnUMOYrM4bkX6IA34uYWrH6mwrYRcSuKXz6S1gT6u quOy5g52w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqqL-0008Vm-4p; Thu, 17 Sep 2020 10:08:45 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpr-0008Kk-1D for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:16 +0000 Received: by mail-wm1-x344.google.com with SMTP id a9so1436051wmm.2 for ; Thu, 17 Sep 2020 03:08:14 -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=qrn7b+MOmCjaswJwbEHikp8iIF5tP9q9Ey5OOh70nqo=; b=hHzBhL4XGERTFlv5l3QNe9GKr4RrsW7vwxN1E0NNOVOhrDpcKLPgGbw2NcY+mY6NrJ HDozqkJmBbjJS6UY+m/sn7PJRhnszJPzigHXwOQL90rTX1SIavpo51/Z7yHFtA1Q5RyY e2ZEJR6XgSi1IHv3CVJLt6Ll13gfULTkUCVg6FZvfyVYgk3fH/cRp83SejhDLpadWPCy khuyjebWnkCXwbyVb2ahd8j1mIwmw5IaR1+ao/Z6eAO3yYP0YKZzfqCahxpQnYkOuIkp XCoV3U/m8wOLGjChWptkahHoCWMZTyuM2nM5Hvrq6iU7m0neSKwe1nyMkKymDhsP9ske KZhg== 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=qrn7b+MOmCjaswJwbEHikp8iIF5tP9q9Ey5OOh70nqo=; b=Iz9d3v9qZ7Rxzt67+caknjQMGa3kp02TUvYvjXDXlGdgN5Waskj73XfJ1U4jseyANk p7nZxGU/LM4O3/ibesW0VVa6jFt0cqDfj9psCPF1OH0FjSFpMDUn5OuHN1TCOtz7fnaW bN3MyqSz+QQ0P2scbCXb/S66017DLrroIg4XsSaigfwCYTpLsHS+42rVLwNhHRUxFewN itlstErUV/pak317wIr7+EauMUX9LY6Erne7GY05/Z3M/++Tu3LBZbLSKymXk9Xr2Dzn ajnGgX0gOIAO233M5X1uQ74dMC7xnKWy1tI950y3vUrZQbo489xHdB9xkwoHjaYHzqX5 Uj+A== X-Gm-Message-State: AOAM532UQaVBIhyKQybQHugAU8H+K7337o8zZfPSZLXv/t1C2+dcLFnf 8p6st4FjCnzkW5+d6TyyiVM= X-Google-Smtp-Source: ABdhPJzTQl3eijE4q6pS+i24cO7Y0sJpKv9y4o4TF25bRozye8lI7JVyBwKc3AyRAnKjItEsn7pSLA== X-Received: by 2002:a05:600c:2183:: with SMTP id e3mr9712415wme.49.1600337294198; Thu, 17 Sep 2020 03:08:14 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id o16sm35942420wrp.52.2020.09.17.03.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:13 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 06/14] dt-bindings: tegra: pmc: Add Tegra234 support Date: Thu, 17 Sep 2020 12:07:44 +0200 Message-Id: <20200917100752.3516153-7-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060815_118824_12CE1CC9 X-CRM114-Status: GOOD ( 13.87 ) 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:344 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 The PMC found on Tegra234 is mostly similar to the one on Tegra194 but supports slightly different I/O pads and wake events. Signed-off-by: Thierry Reding --- .../devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt index 2d89cdc39eb0..576462fae27f 100644 --- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt +++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt @@ -4,6 +4,7 @@ Required properties: - compatible: Should contain one of the following: - "nvidia,tegra186-pmc": for Tegra186 - "nvidia,tegra194-pmc": for Tegra194 + - "nvidia,tegra234-pmc": for Tegra234 - reg: Must contain an (offset, length) pair of the register set for each entry in reg-names. - reg-names: Must include the following entries: @@ -11,7 +12,7 @@ Required properties: - "wake" - "aotag" - "scratch" - - "misc" (Only for Tegra194) + - "misc" (Only for Tegra194 and later) Optional properties: - nvidia,invert-interrupt: If present, inverts the PMU interrupt signal. From patchwork Thu Sep 17 10:07:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782113 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 F291259D for ; Thu, 17 Sep 2020 10:09: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 BCE852087D for ; Thu, 17 Sep 2020 10:09:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="yyQShoj5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jKbTCxXl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BCE852087D 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=6YFllffqmJgHXqC2htnXaD/JiXKIeb/KQOeEKMLyrTw=; b=yyQShoj5E1VDObfuYocV5VwDU WOMfBnUixm0Vbq877HgikXtO/L/lNXAov922K1NlGQi7bQ6xFNL9DduGJncHj/xN7GkCW/curszCn S8ORSLmCGdFUHDRrpJpahW6zMxvWT096C0AkRBCbRu6UKg9rwo4EpIlDQ4Gau2TfbOxqqzg+jqot8 P5UhGAOkmClQOgSh+fSTBtjUR5w/ORF6Je1kG9ggrF8TCAOw1UvM3PNZn3JYOAtrh4kInirQsTaRl X8gp85PqBzxdJaqrb3vgEL3D7CPq/EMdzKBmeCqQRpAr2CS9K6fr/qtnh3gu939WvTkXE+bG0rkjH glgInbawg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqqr-0000Kw-1j; Thu, 17 Sep 2020 10:09:17 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpu-0008Lh-8m for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:20 +0000 Received: by mail-wm1-x342.google.com with SMTP id e17so1394206wme.0 for ; Thu, 17 Sep 2020 03:08:18 -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=LTTvnN7h1giqzGBn0jgQpPTrpXXAfS+8xuM6lWplWks=; b=jKbTCxXlp+3Uc6wfjxw56OIRQmme7ezOZtxJGDNCbD7aRPVlc93adtuw0LPBME9/w1 xlj3jeFHkxAkW6+dvIXa5YEU0n6tzKZbdF0QwL3WIWKSND3cxX+oIL0Scmd9NviJya/l fnxOzR4sCdfQeOiJ8w5HVlGx6YPvHVPxlS7bs8bJbDrRnAAD2YuA6VPxESKbj3L32Wio JizhqGsk6tNNI6oP7W54JwKsEDsmhfdliDcA7iTd4OfdL1dJKzcg5OEEzEXZ545q+dsv AZnDTj51F9tYJVu2oXYQHLWYeLgfvPhZ74xReaTL4BgckTUAo+MH6frKsNBuZgwBBiqL LEBw== 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=LTTvnN7h1giqzGBn0jgQpPTrpXXAfS+8xuM6lWplWks=; b=pUAdv+/YRTpUL9ab4qqtRtiBZLorzdlsFKvVqT+YrlGIk473YhMoMTzCdqKk9EK72T Ff9ynpeGPV+CJsAhGAiBz4NWhDY+EMk39+MLdXNNuy+R+ou4pTUdL3UheOVSb/C/2DZQ oo02ZI3sBzOdD7rgR5p0T9BA0jYw3meh7qhd6hnXbb73r1oc3zrCNDj9BwqSHxLJnnyF jbzOTZsFfJ8EVkoMleOnPAR2lkjt9KLkiViR41shUNwZaaozTSaaNApJXgDI13M2uOFI FowcdBP5kQK6hos0sTrdndUtXPCPP8z/sxARZSwFUDMNtLUa/Q/LxP/KbeGqtWaqeDi4 7pzA== X-Gm-Message-State: AOAM530cy1eMP8g7KMqkM6SX6Y2r9ohTKnEmvHwoLUxlUxapHCvu8LHm nU6z9zRNXZgF7WY5XdZykks= X-Google-Smtp-Source: ABdhPJwNbdThURz1CUtSnCJ4UFy3jXBerwtQmeCNSsUIzbbbHJwdvA/uDil996hN/ViJaR0YLibrmA== X-Received: by 2002:a1c:9cd3:: with SMTP id f202mr9133765wme.148.1600337297045; Thu, 17 Sep 2020 03:08:17 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id y1sm10104979wma.36.2020.09.17.03.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:16 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 07/14] soc/tegra: fuse: Extract tegra_get_platform() Date: Thu, 17 Sep 2020 12:07:45 +0200 Message-Id: <20200917100752.3516153-8-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060818_387238_03052ED8 X-CRM114-Status: GOOD ( 16.87 ) 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:342 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 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. Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- 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 8e416ad91ee2..92a2d646c183 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 Sep 17 10:07:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782133 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 E2B5059D for ; Thu, 17 Sep 2020 10:11:23 +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 ADD242087D for ; Thu, 17 Sep 2020 10:11:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3ZjBjBhy"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y1kc3i+c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADD242087D 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=Md4PBiaat4yF5mLVL37DHtM9We6C++PV+0+bDwUfdbc=; b=3ZjBjBhyRia63k4GvT48KrMna dvEs210KZeKjn5Fet7WUmKaEpFGYwuydOnoGTqXQhTG3f9osYzdVo4fVe7khfvdX0+Io4vSDT21tY qVa+d6Lv63lNEuNjLweV5v8UxeNMYkvmA4Cj3ZWxs0oc9MAT8YvmPEF/NeYLHnTXsuGwCfyqW78Qz gKzQoR6Wg54fXWUcyjnUSdm7+M4JW85Jr012TUHp5uBapRZ25wnc9j//5PIu85wVEXpYDGMYZaOp8 AecwA8+MQ8Ad856qFCJ9TT5cQkDVTvm5rj0e4zAYI7z3xmlQpFyNxUi3T5/u1iDKbHS+y9fLFjW98 tP71Uhy1g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqr2-0000Pd-Bt; Thu, 17 Sep 2020 10:09:28 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpx-0008MM-3D for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:22 +0000 Received: by mail-wr1-x444.google.com with SMTP id t10so1419472wrv.1 for ; Thu, 17 Sep 2020 03:08:20 -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=czdPuULQn7FXaX//w2/IuNy72dljJKMueVpajrgEMGA=; b=Y1kc3i+cLkTZfUYpVNr3/Tt0RQyTgiU9SEedoROI54EgQXgxtHdTdtvff5YiCXZObX nwJkfeZX2FVl8Pbq/OHERdX67hcA56er5Otjf/w10OYzFWiD7sUaBDQDtjFKpqG1kZPq t7oM42g95hMQ+hhrfVCHML01DMqabJ/XkHtbaOQBfiHBfaKOG0KNZGjM4rJnV/sK2Z7A k54rVdPO96NJtecrHKY+AaJqycIuuyN+ryJRfMEBz2bR3pTSGJzVkTNh7hFYFRvdQ4Rx cgXvPTTlBy/L8657GEBxlDJn0Pzm2Aue9DZf48UYWFwfdE5puCfGJu7TPnS6vBIhSXb1 Uj/g== 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=czdPuULQn7FXaX//w2/IuNy72dljJKMueVpajrgEMGA=; b=HWH9AfcH5tRfGYxyroAvY1zpv2gSdCw7ctm8NfH9PeQ2e8d6EylpfkyVcfAV6eKsZl XOKPmQXN1tr7BP0lMlwL6yvkrW92FC+sJQzbTx2l3NENl5n/d0BT2Bz2PYKgdO00P6jz PPOXo3J+rXlFNJibubh4W3lCUpClnO4FUPjRqYOZ+SD4/e5Az8K7yKyonoKCI6Lc/uwq 3AkiYmwr5VRSb85ZviabP36h+pcR08xIaValwuiQxPH2WqmgQrx71iUam43+TNnFh6gu IBodxiEA8OndhMX/kurX5aQs6rBFcSA/NB0h8FJaNXztMYXcbr5SvXgbNJUPm/x78np9 kx6g== X-Gm-Message-State: AOAM532ANkbFXlxMuYUhEG8cYx/o9cn2lfJQS7FU4vt+ZU6J3DxXV9oU RKmfFcRUIRvhmw6RVD63fslQ/dHVK/GzKQ== X-Google-Smtp-Source: ABdhPJzwajaKK7EDJ5+O0dX6h6sN+JcQShuZCuXKogyfNUjco+ykT2nWvjnmMPUymdEl2HwB0AkFtQ== X-Received: by 2002:a5d:6acf:: with SMTP id u15mr31044659wrw.221.1600337299786; Thu, 17 Sep 2020 03:08:19 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id o4sm38072371wrv.86.2020.09.17.03.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:18 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 08/14] soc/tegra: fuse: Implement tegra_is_silicon() Date: Thu, 17 Sep 2020 12:07:46 +0200 Message-Id: <20200917100752.3516153-9-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060821_257419_06BA6C01 X-CRM114-Status: GOOD ( 15.03 ) 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:444 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 function can be used by drivers to determine whether code is running on silicon or on a simulation platform. Signed-off-by: Thierry Reding --- Changes in v2: - fix return value for pre-Tegra194 chips and add comment explaining why we always return true for those chips drivers/soc/tegra/fuse/tegra-apbmisc.c | 19 +++++++++++++++++++ include/soc/tegra/fuse.h | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/soc/tegra/fuse/tegra-apbmisc.c b/drivers/soc/tegra/fuse/tegra-apbmisc.c index 92a2d646c183..946a2d9ad117 100644 --- a/drivers/soc/tegra/fuse/tegra-apbmisc.c +++ b/drivers/soc/tegra/fuse/tegra-apbmisc.c @@ -52,6 +52,25 @@ 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; + } + + /* + * Chips prior to Tegra194 have a different way of determining whether + * they are silicon or not. Since we never supported simulation on the + * older Tegra chips, don't bother extracting the information and just + * report that we're running on silicon. + */ + return true; +} + 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 Sep 17 10:07:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782117 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 0227859D for ; Thu, 17 Sep 2020 10:09:57 +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 A865A208DB for ; Thu, 17 Sep 2020 10:09: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="14Uj/4yH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NPokwmFv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A865A208DB 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=gO9gDcCHsZ8jlhU03XR/nPZd3JgH7agbPrkyUmzFyus=; b=14Uj/4yHy2L1HDtH0XoOfTmYi XlRF6Qid88grVJ2TbfYOwvXqs14/JEZHdP0WYoVXnOHxwaLT3hEw4OBT10H/4wzBmWMZJU1tnbVVN OmIA+CsPhEIj1/aMDFiLv8c/Lfj5aqNIHIG6EonWkJeRhGFwLLP7zhrja7PdJbycGKd3b43Hjbd5G uDUTAx/kuA96PKzp9lH2w1vySdyQp8AQZRw010C/q54OegzGBT7dqJq5agXOqVE6Ije+gJYLMIl1H e/IYP/2tuxsQulEyorM78rcD05AWEOeaDDPHBvwdrydvUuTWrJ2WmFchGWMBpZ72Yo6u9a3VmtyGY i3EucMbVA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqrC-0000VD-7p; Thu, 17 Sep 2020 10:09:38 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqpz-0008NC-Fo for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:25 +0000 Received: by mail-wm1-x344.google.com with SMTP id d4so1381992wmd.5 for ; Thu, 17 Sep 2020 03:08: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=NUyGgCyoC1I2akC3uVjZ2yqsqNamKvu1koU581xQ5q0=; b=NPokwmFvc00RyEnIY7d3kKxBS3lsjzXPwvmFpbEUiIWZSupOg9r8KHnHgZqVYrSSWi frxFGj5GSkVnxhMaEcrq8di7lWa+9c35NNkP2kg00tMzZLzkp7rYTB5X0tYLAN7sa2lt haOQqw1TEIfwIMFYBcAohNjBhQ9S5aNN8KuZexCQmNBqYKi3DdyMQiIcFjupdJZcUtpD NwrRVtcvjffaf+9KUkd0VYUH1WLmfQVnIoOMszH+ielX07UfaHhcrcuPbuRguB0OG5Qf 3om8XwOOYq8bSSXSSUI3c4GKkNRpiz0KFAETGtdM2ud6DGozhOAjSCulsiNsDSmiHEFj wGjQ== 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=NUyGgCyoC1I2akC3uVjZ2yqsqNamKvu1koU581xQ5q0=; b=oiO2Wo2lQ9NsK6gcqvDVVccldYih4GLJ37Z3rnymhF9l5OThWYMFWZYNEPnRCz7Npt 7+sbmVbpfJ1pVVYb/UO8KZaXZdcykQ4E7msMCWtWk8tPM8MxIMhYakop68U/zX+pQCEQ vtOaJM4Ssc+gVS7E92sOrejhmKVB0rYqm4+D9MeED04Q0h+qjjULuoRoeT4dz/5JezLe 71vFN3n59SEZARpT5oxDe5V0Eqy+rWnz68dNeRp/9/hNByAAcK7eJawMtGxRedX6M2pe MZ1d0bgxwv8mRE2/0iRoJnFz7yw1bZrY8kPW8+mqUiLbgOzWYgvOgkGTgPWinE8gM9+R pFrA== X-Gm-Message-State: AOAM5310ihq1+FqXeVQGv0SRZpvf62LlFuQ6KBNQdl2wJpIugbbY+TOS RGhcjDe1aj3PgnASorX+zzQ= X-Google-Smtp-Source: ABdhPJzsPPiyeU6zd4gP5gpwmAKBoZ5OjGdiGNbz24uHaFHfG89gdkXjxpwiFYDRlPF+wGLUpWXGNQ== X-Received: by 2002:a1c:1d08:: with SMTP id d8mr9608681wmd.78.1600337302350; Thu, 17 Sep 2020 03:08:22 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id i11sm38592653wre.32.2020.09.17.03.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:21 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 09/14] soc/tegra: fuse: Add Tegra234 support Date: Thu, 17 Sep 2020 12:07:47 +0200 Message-Id: <20200917100752.3516153-10-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060823_582258_D64FC24F X-CRM114-Status: GOOD ( 18.06 ) 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:344 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 Add support for FUSE block found on the Tegra234 SoC, which is largely similar to the IP found on previous generations. Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- 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 946a2d9ad117..0e4eb2656f44 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 Sep 17 10:07:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11782137 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 CEFD259D for ; Thu, 17 Sep 2020 10:11:37 +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 9CA8C206A2 for ; Thu, 17 Sep 2020 10:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bFBEn/ec"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h7uaVhuT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CA8C206A2 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=RJPUf9PoVqHUaMWz6P4GG5haReFpbZomwefloe2Ft1k=; b=bFBEn/ecxd3kHfzScqZ2kvJJu ZCJqPIivlvzTchMHI2uLH6wPnYW9eh8m3aQfTcAby+k5UTiKcSz9NkhMG4W8/Us7EkaQAyPdwt1B0 spOL6znJU+Rp8eCJbGwX7jVhQfYZpmJ4X6GFNQQ21VvDDIJQn9eulCnIBz9stCpvpfw7qQZUshmCa ujRYX1AHfRdFVuh4TU1KOVsny9NEdfwmb/t6P34LQZZbx0ehTGJUmdqlC2OwM0j+s6/NJ68ZU3I0r PsGF51lLIAPCB7+lIxHxpIA9MmalcpoQhxmgvS0uxwR7BU5SWH4yAYDhdCHjZ0bBGnyLK1c164V7V HKp4224UQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqrM-0000al-Kp; Thu, 17 Sep 2020 10:09:48 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqq2-0008OB-1k for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:27 +0000 Received: by mail-wm1-x342.google.com with SMTP id l9so1431234wme.3 for ; Thu, 17 Sep 2020 03:08:25 -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=N86/DIEqSdmVeNovc1C8yzK8wvdIFptYxOOR5li2DG0=; b=h7uaVhuTp4wSTvD2NLgfh/IwrRIYbFnG7GU+LOFWvIDK/z1rOVkK3JEIWKWKZ9PZD9 PUOv99As1raF39mTz69mbqCuQpHcfEIk3dYGHufTqNeNTgbQaLbwgMNS6y0NqoQ8AR18 20ukg4NNXdllQnkFRFWOzvoaGs+74KoiE1uhGfQsfEk3q8qlC7AJtwNa4zCKUYRHhYYh diUbsvvyHqxDy1jwz2mTv7PhCKSvzD6i1uZ6txcv1R709vcyW/ZYiqrVtd3zA78+sNSp UVbfd1Df7uBUe/PRwj7H0Hah/70FSrkmbBqGYxIJkLIv7zTRpntf01i/CH1osohc5dav JpPA== 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=N86/DIEqSdmVeNovc1C8yzK8wvdIFptYxOOR5li2DG0=; b=BhlR753Kz/u7IbzSKt5waJtwkK5PZxtjQfqSUYI5zUobiLPdApwRNnRu+6hVFIGnf/ o/r4nRGAcT5bMrv7vis40wev/nlUg97II+E4P5AiR3PGAOXdMkmchsHZjJTFC+UA0d4S RRP1HHqXj8oGTRvMxT6CGcQ4iRwBQIslVFhzR67uUo+5ZaGmTS9oWokHokTlo9AxSs5m HsD1V65gU7lyNiasZdCqJER6Ozte6Dh5uSVGSXNJUYP2iv4NCuQw8h0waqow9NqmlHMX ai8cMYiEBSB5K27GIWGzdAEz0bVGaz4LPm9eiA/OTBUSV/Fhmr0y4j4hSoFrdE0zovDU WunA== X-Gm-Message-State: AOAM532qMw0nw5zz+0xxj/Ud5TJDINf+H2FSLCYVtOJNlOr526PqOXMX llr90LRbvA9qul3qHdUAW/RqKNU6vROA5g== X-Google-Smtp-Source: ABdhPJzdl8RuDIVdPW1fqzC6HY3feTC/hljvQxd8RYFUyALq/rWFjliORmOm3vKOYrxf57k4WWBpVQ== X-Received: by 2002:a1c:9e0e:: with SMTP id h14mr9053657wme.18.1600337305025; Thu, 17 Sep 2020 03:08:25 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id w7sm38562346wrm.92.2020.09.17.03.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:24 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 10/14] soc/tegra: misc: Add Tegra234 support Date: Thu, 17 Sep 2020 12:07:48 +0200 Message-Id: <20200917100752.3516153-11-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060826_161461_324C4423 X-CRM114-Status: GOOD ( 13.98 ) 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:342 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 The MISC block is largely similar to that found on earlier chips, but not completely compatible. Allow binding to the instantiation found on Tegra234. Signed-off-by: Thierry Reding --- drivers/soc/tegra/fuse/tegra-apbmisc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/tegra/fuse/tegra-apbmisc.c b/drivers/soc/tegra/fuse/tegra-apbmisc.c index 0e4eb2656f44..cee207d10024 100644 --- a/drivers/soc/tegra/fuse/tegra-apbmisc.c +++ b/drivers/soc/tegra/fuse/tegra-apbmisc.c @@ -95,6 +95,7 @@ static const struct of_device_id apbmisc_match[] __initconst = { { .compatible = "nvidia,tegra20-apbmisc", }, { .compatible = "nvidia,tegra186-misc", }, { .compatible = "nvidia,tegra194-misc", }, + { .compatible = "nvidia,tegra234-misc", }, {}, }; From patchwork Thu Sep 17 10:07: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: 11782121 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 9488E139A for ; Thu, 17 Sep 2020 10:10:18 +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 5BD44208DB for ; Thu, 17 Sep 2020 10:10:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="exHMFNvz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="n7BWZ1Dn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BD44208DB 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=FoiYU5FX29TQ6vY+eKSJDs+hwE9Uo9ipAmoa2kzC+CE=; b=exHMFNvzYieGUc/5qGVQi0wSz xrNlkRp6STsGAHGr056jAuvoPBg5lNUeDknG/SRw+qX9ahXJJ8Ue6+lISwhrEfrnL034hb3px5aSR t6O70WFvb/V38STXUlYdCpR0flMY4EaKNGIyBToxZZZa3BZZQb7WU47C1yOVZEcjVZkBgwvVHOFHL OHYk044Zlx48qx7Ojp3AdGdn5pjOXbFGLSwZv6iBSLVZr6MrrHwI5+bzo8VZf80X1laQ4Th1GOzkT M5Vm+0mohFTvOP1gbnWG0GNzVYLcjh5Rdr4lmcWK2JTDL6H2iq3BTwPs/w53zZ8Z2wIqGvWySoTu4 iF33VK68A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqrW-0000f2-Ob; Thu, 17 Sep 2020 10:09:58 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqq4-0008PA-RZ for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:30 +0000 Received: by mail-wm1-x343.google.com with SMTP id l9so1431347wme.3 for ; Thu, 17 Sep 2020 03:08:28 -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=4mD53Yx+O1ZK3RaUnDozb4D2flLg9Q0zHUEzwcICI6A=; b=n7BWZ1DnO/LmGFW0QUKGCmot3Qtl0SKFlW5KcSVodPdfFbGKgCTmFxG5ZVqmlk/lTo z8y6U7LKcB4dbbg7WxUfzp+inaSoPaAQ9L5xIhGY6E5IEUKzZUkLsn/gQ2V4xncg7EKD Fzud7AexCh+Smc2z3CFbWs9fOmE5pP8oVHbuW34Y0KO22v9CZA8BAJiAEtKMNBp/T7+x YiQAkWOyYdTHfNAOfWxtYUD2jl6nGjIalTrcBlVSb2oJmuc/zkYcs9wAj8lq6F/c/1IM enoT+Ss2JULd8/p11aYmSvSiCGPuZj45lZlwSO3npZ0YP3/VEEVqFB3XLAabuuHl6rU/ gbiw== 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=4mD53Yx+O1ZK3RaUnDozb4D2flLg9Q0zHUEzwcICI6A=; b=AxjHT44yqY/O/0sRdUZJX4REayuyfgRrWVhjzi5UFk5LAY/y3IMNZkjxZWASXlqUFB eE82vRW2VGuhtxBVEVSLnCm+S9mPqOqemNGXgnV+RbMMblu7dJTA7uc3YBcWW0pJ018P ugKWZkrxEoc4MWqs/gutvaYaUS8PihhbNmCWgM8DcyI5vjr9qiHyxYi6FQzis0jPbcxh rYESr7vYXxs0i+VfGyV8GeV/tMw1qR8o/aW2LBxe8GJh9TknPp2KHOk07ed9znTFq7st T57VGpDiXksamY8p8vjkwYXVF5PR0k/+rSwEIDfKK1xqxyupwYhqT0NWo/iam9moKzFm uBFw== X-Gm-Message-State: AOAM531w87S/b7e4INk/Ass3dDMrIclYb1PYkz2r9UlsL+zEzPkzRgCu sp5edEQNVMp9irPbL18Wa0o+pnin5ORhbA== X-Google-Smtp-Source: ABdhPJy2i+oP2zSYg7uTpj2CtaVehUUt7SJu9rUpPlYujddunm4ps76/R0iGygi02ZoMu2ogSxLvHg== X-Received: by 2002:a1c:6607:: with SMTP id a7mr9062430wmc.142.1600337307454; Thu, 17 Sep 2020 03:08:27 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id u186sm9985236wmu.34.2020.09.17.03.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:26 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 11/14] soc/tegra: pmc: Reorder reset sources/levels definitions Date: Thu, 17 Sep 2020 12:07:49 +0200 Message-Id: <20200917100752.3516153-12-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060828_923757_D5597647 X-CRM114-Status: GOOD ( 13.28 ) 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:343 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 Move the definitions of reset sources and levels into a more natural location. Signed-off-by: Thierry Reding --- drivers/soc/tegra/pmc.c | 78 ++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index d332e5d9abac..4071181a4a42 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -336,45 +336,6 @@ struct tegra_pmc_soc { bool has_blink_output; }; -static const char * const tegra186_reset_sources[] = { - "SYS_RESET", - "AOWDT", - "MCCPLEXWDT", - "BPMPWDT", - "SCEWDT", - "SPEWDT", - "APEWDT", - "BCCPLEXWDT", - "SENSOR", - "AOTAG", - "VFSENSOR", - "SWREST", - "SC7", - "HSM", - "CORESIGHT" -}; - -static const char * const tegra186_reset_levels[] = { - "L0", "L1", "L2", "WARM" -}; - -static const char * const tegra30_reset_sources[] = { - "POWER_ON_RESET", - "WATCHDOG", - "SENSOR", - "SW_MAIN", - "LP0" -}; - -static const char * const tegra210_reset_sources[] = { - "POWER_ON_RESET", - "WATCHDOG", - "SENSOR", - "SW_MAIN", - "LP0", - "AOTAG" -}; - /** * struct tegra_pmc - NVIDIA Tegra PMC * @dev: pointer to PMC device structure @@ -2784,6 +2745,14 @@ static const u8 tegra30_cpu_powergates[] = { TEGRA_POWERGATE_CPU3, }; +static const char * const tegra30_reset_sources[] = { + "POWER_ON_RESET", + "WATCHDOG", + "SENSOR", + "SW_MAIN", + "LP0" +}; + static const struct tegra_pmc_soc tegra30_pmc_soc = { .num_powergates = ARRAY_SIZE(tegra30_powergates), .powergates = tegra30_powergates, @@ -3061,6 +3030,15 @@ static const struct pinctrl_pin_desc tegra210_pin_descs[] = { TEGRA210_IO_PAD_TABLE(TEGRA_IO_PIN_DESC) }; +static const char * const tegra210_reset_sources[] = { + "POWER_ON_RESET", + "WATCHDOG", + "SENSOR", + "SW_MAIN", + "LP0", + "AOTAG" +}; + static const struct tegra_wake_event tegra210_wake_events[] = { TEGRA_WAKE_IRQ("rtc", 16, 2), TEGRA_WAKE_IRQ("pmu", 51, 86), @@ -3193,6 +3171,28 @@ static void tegra186_pmc_setup_irq_polarity(struct tegra_pmc *pmc, iounmap(wake); } +static const char * const tegra186_reset_sources[] = { + "SYS_RESET", + "AOWDT", + "MCCPLEXWDT", + "BPMPWDT", + "SCEWDT", + "SPEWDT", + "APEWDT", + "BCCPLEXWDT", + "SENSOR", + "AOTAG", + "VFSENSOR", + "SWREST", + "SC7", + "HSM", + "CORESIGHT" +}; + +static const char * const tegra186_reset_levels[] = { + "L0", "L1", "L2", "WARM" +}; + static const struct tegra_wake_event tegra186_wake_events[] = { TEGRA_WAKE_IRQ("pmu", 24, 209), TEGRA_WAKE_GPIO("power", 29, 1, TEGRA186_AON_GPIO(FF, 0)), From patchwork Thu Sep 17 10:07: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: 11782145 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 CA0AC59D for ; Thu, 17 Sep 2020 10:12:12 +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 9AA88206A2 for ; Thu, 17 Sep 2020 10:12:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qTck3Vlk"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bnoEaymz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AA88206A2 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=fLSQUmb6jvLPTj/l/5DpUqDh0IhXgjVeOfhX0yjRThY=; b=qTck3VlkcO0ao7KFvcSl/UP66 qKnVtnEBZx1whpkMsk3AKQjoHwNClm7XBSVx+42DTSqT5ltzydcCq7wUMfC78ocm6Nri6etdVnFTZ +J6Qj8Xhx3r2ctw7SVpyqtD8QrcEBWCgTibVJMfmbYOFzQSaWeUQ7cvG14jwnfS4CEu9xhJe31a9h wc0oYGekmCGXPfKVW8QjOWr+RNiqqZ9jeMxVPrsf+yVlJ0673kGMPUk/8t102pmey8RuwZGToVH7l pz9ATzKd/UYDgWAMej4xLyC+rt0W7+YJ0ugmujtjfklh3zEnuPL3L5Lvj3EaF3nqQBZm5ZkTlTUYk tAjZ6EMOg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqrm-0000o2-17; Thu, 17 Sep 2020 10:10:14 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqq7-0008QJ-5D for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:32 +0000 Received: by mail-wm1-x341.google.com with SMTP id a9so1436827wmm.2 for ; Thu, 17 Sep 2020 03:08:31 -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=4vsTqHDRezfzd8SF1y8hAmLtXdBEdab2904l3pZe9lw=; b=bnoEaymzFihtmsp+uKBU0Z3FhsHQEoFMUiV6DwaJB9YZu1BYNv8Og77NXMY2w/gd1L zbkYagF+6Cc7ZFz4IrOv7uH6joZO5fECK7zx4NCssjbaREmYfa3jTCIK8hgsOCdZzFHa KdgJjzrRvOMhaiFm6qNXp0EZ0TRmZtNDHNT+u5P53SoGV5lUZPv8rNw6P643BCK6Xqah xZuQE6s0ct+Eh0tKIotdgdKgV4t+GPZUCh8oLsloN7yVAoL5mFUh6Dq8zqtbEN4f4nzt mGiNPqGoTQ8A/TjPlTi1AwwDBZxScZwl/r+ourU/MVUvIeXX5iSfItTR31u4Lfgurbtn omcA== 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=4vsTqHDRezfzd8SF1y8hAmLtXdBEdab2904l3pZe9lw=; b=Cb8+6tBcr6GCFXEqWN9w4xYrS5bjtGJtrbZgTZaMlB3EQJ5PPIc74d9FPc5BXg6A5s KRondhLwd8M6Gex8Owmx1iYgJM61egPV50oHcgY2B6CFngGrmoS1j1QmPl+RU0dyUAyp IVZbGZoq4DHug9StAPciIyLh7x41aryC1hmmFOwLXohxrjn6RKmQFRipacrzjwYM1Cl7 EwTEmmmsIUYrPvPWKvsoXcRhBmieimOvUcwvqaTV8mIhkC/Rc2GksILWfOjPGGLhqp/v 1P3gunkY+uzqg6R7xAIVKusgqhcOupzVMt05KJ18FwOfDuDUlooGIWHjD1kD+/nTzpSB Z6/w== X-Gm-Message-State: AOAM531KQPrWhq8QUmBtTFzHeW8So2fRUpSS8XIGN/GgVMrQheul9ibn AULsmD/dWZWuJn9ukzy1QyI= X-Google-Smtp-Source: ABdhPJyYJyqb8oOcqVpklD5SRqFrZG/iWKXym1Vl1fBtJG2U2u9AqM9X/ta3TiKssGcK34kTIB24SQ== X-Received: by 2002:a1c:6487:: with SMTP id y129mr9673845wmb.90.1600337310097; Thu, 17 Sep 2020 03:08:30 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id t22sm12342777wmt.1.2020.09.17.03.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:29 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 12/14] soc/tegra: pmc: Add Tegra234 support Date: Thu, 17 Sep 2020 12:07:50 +0200 Message-Id: <20200917100752.3516153-13-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060831_266637_23D15DA6 X-CRM114-Status: GOOD ( 13.30 ) 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:341 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 The PMC block is largely similar to that found on earlier chips, but not completely compatible. Allow binding to the instantiation found on Tegra234. Signed-off-by: Thierry Reding --- drivers/soc/tegra/pmc.c | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 4071181a4a42..622496df6282 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -3362,6 +3362,73 @@ static const struct tegra_pmc_soc tegra194_pmc_soc = { .has_blink_output = false, }; +static const struct tegra_pmc_regs tegra234_pmc_regs = { + .scratch0 = 0x2000, + .dpd_req = 0, + .dpd_status = 0, + .dpd2_req = 0, + .dpd2_status = 0, + .rst_status = 0x70, + .rst_source_shift = 0x2, + .rst_source_mask = 0xfc, + .rst_level_shift = 0x0, + .rst_level_mask = 0x3, +}; + +static const char * const tegra234_reset_sources[] = { + "SYS_RESET_N", + "AOWDT", + "BCCPLEXWDT", + "BPMPWDT", + "SCEWDT", + "SPEWDT", + "APEWDT", + "LCCPLEXWDT", + "SENSOR", + "AOTAG", + "VFSENSOR", + "MAINSWRST", + "SC7", + "HSM", + "CSITE", + "RCEWDT", + "PVA0WDT", + "PVA1WDT", + "L1A_ASYNC", + "BPMPBOOT", + "FUSECRC", +}; + +static const struct tegra_pmc_soc tegra234_pmc_soc = { + .num_powergates = 0, + .powergates = NULL, + .num_cpu_powergates = 0, + .cpu_powergates = NULL, + .has_tsense_reset = false, + .has_gpu_clamps = false, + .needs_mbist_war = false, + .has_impl_33v_pwr = true, + .maybe_tz_only = false, + .num_io_pads = 0, + .io_pads = NULL, + .num_pin_descs = 0, + .pin_descs = NULL, + .regs = &tegra234_pmc_regs, + .init = NULL, + .setup_irq_polarity = tegra186_pmc_setup_irq_polarity, + .irq_set_wake = tegra186_pmc_irq_set_wake, + .irq_set_type = tegra186_pmc_irq_set_type, + .reset_sources = tegra194_reset_sources, + .num_reset_sources = ARRAY_SIZE(tegra194_reset_sources), + .reset_levels = tegra186_reset_levels, + .num_reset_levels = ARRAY_SIZE(tegra186_reset_levels), + .num_wake_events = 0, + .wake_events = NULL, + .pmc_clks_data = NULL, + .num_pmc_clks = 0, + .has_blink_output = false, +}; + static const struct of_device_id tegra_pmc_match[] = { { .compatible = "nvidia,tegra194-pmc", .data = &tegra194_pmc_soc }, { .compatible = "nvidia,tegra186-pmc", .data = &tegra186_pmc_soc }, From patchwork Thu Sep 17 10:07: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: 11782147 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 BE9DB139A for ; Thu, 17 Sep 2020 10:12: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 858BB206A2 for ; Thu, 17 Sep 2020 10:12: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="PlsXVAj8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tQSs3303" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 858BB206A2 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=2Ig6vcM3yDFnohlSypnSpNr36aiqUzbuN9/OYFr/kyc=; b=PlsXVAj8k3u9hgbte6V67skaE VLVeIrzHnj+63Lbxq3IfRSP4kSdLOa4kaU0j2Nbw8w/rmwEMP/+7DmSkOCuzG05Rx9zQVel6l1C+5 Q+Gl9Fd+HbsaqpYe4XINoWI4GwEDTub3pg9AjidvCCMrEM0KyvmlyxXt0U0/OwjTsE3m6jvUa/gpN sihKVgwLHlGkQ8klVm3xJj6myHNDy2nEtKslHZRDJcplMpqE4me5AuLuxPgSfmU+oS/5n17q4pyjS CdsSdReTi/MvmZ2yFdXW6mqnGtd3d4KOU6M0lA9M7pcjsU0iZsRk6oQIYG8Vi1Ri7VHPG1qVgDdMI t4R1rjCww==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqry-0000xi-9l; Thu, 17 Sep 2020 10:10:26 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqq9-0008RM-Tj for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:34 +0000 Received: by mail-wr1-x443.google.com with SMTP id o5so1383392wrn.13 for ; Thu, 17 Sep 2020 03:08:33 -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=TiJR36A6WzVMF6xqdDOcepS7F4dEZ9OVgowRWFZ1uks=; b=tQSs3303aEdukcfpHyNesIC7F63IBi+loPYOYanS55q/KqNEMlKQyZJOqWW+PDaIdy Hzl3dmK1CsDW3oNj4JMtelUVB2zs2H+s2LfZFYJ8a1BAp3lVK0SlCl3LKFcr1Rg7ectM QkdA535G27LaZOykS9/XPKmtEJkM52bEgyitkf8ubOYdWMAjTu9zqftA5WbZ4aXOaLj+ 2W2+r58U0BMhzBzrRCwwhxGQjSRFZx1MC83qMtwkOw2V46YrAzqqCFOLRCKzO4cEq/5g oI86hCCnPTqZtN82QvnmAt/wb3RBr/FbyVi464WaR/JxJy6q1nUfzm8TcdLHGQA9+B9+ ORFw== 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=TiJR36A6WzVMF6xqdDOcepS7F4dEZ9OVgowRWFZ1uks=; b=daijXJxy8wd5MBR+I7rlTkdnB/WyRCy+sA5iKOQ9FE8vRqkcKBbtr9gGJ7BfTGHGAG PjsQp+l8AR1Bc0FbTkE/akVoQzLwLm6+6Ck31rzM5XT5luhVqKwk1itWmAH6/sCpe2Wu Syw6gllTfa5A8P53hf9muHJkeeaNN2eU3BX1EIe5Qhex2zvz2XHH92oTehlEcF5Ud137 +zfr5pRhaEcAd/xKqbYtxCnTGziL+cPUXwzhcXp0g0kHW7owzWWkoJ9EPWt2dIfJk1vj TZr56WhjuXnbbOWpNS5KSePYCuabMCU6OBMkqfoJtkIrGBwp5ipV/39WKIvFGfMBcJEX QEJA== X-Gm-Message-State: AOAM530sQt2WfsJxXu9+TTvc6ngIhf1WP9PtDTenDZrysZvd7qmwRuuQ on0wNFWhlT0HnMOAQwt2BGo= X-Google-Smtp-Source: ABdhPJzKfbB/ieqKnYMMtGHW2A1dx/j0OzK0xW4LCwmh8FFA4m8tRA17CVIdhPuORy0L8AIxISw+kA== X-Received: by 2002:adf:9bcf:: with SMTP id e15mr26392211wrc.93.1600337312861; Thu, 17 Sep 2020 03:08:32 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id h76sm11507895wme.10.2020.09.17.03.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:31 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 13/14] firmware: tegra: Enable BPMP support on Tegra234 Date: Thu, 17 Sep 2020 12:07:51 +0200 Message-Id: <20200917100752.3516153-14-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060834_007343_9A712D66 X-CRM114-Status: GOOD ( 17.87 ) 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:443 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 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. Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- 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 Sep 17 10:07: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: 11782125 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 8C62D139A for ; Thu, 17 Sep 2020 10:10:51 +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 4FCBF2083B for ; Thu, 17 Sep 2020 10:10:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RgzEumWT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KTkhBl7H" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FCBF2083B 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=T72vs206AS8Z8koh9kKuwY2jP/Xiirr38an8EI+lDn4=; b=RgzEumWTkG6V+NQ8KHdzEK7HQ 5+kpqgLOCk8aOqOql5uJa29fSb79EtXLIyQ0EMKREMvZfubOjSx/g0wiBB80ayJVzxkympZ+yqBoQ iv6ZRsKhHp8rwAF+f3RhpES200UmLak7E+bslWRcuQsUazpQ0QL55QXoh0j2ZzftRiulwqKzUNTOM UDwz5cawbQL78WZvBEqum4RwD/OGDIQOC7OarjgSRmt6mgIYylPzJKmkzmMXK2TrEKaqIyzL1P9i9 RViBGbKbwI+3eMSC203YN/6ArPUkK8utncXUcx5dvo3F3BKcpZ2bnpfVvEADg12cQtyVTNvbIHz7T Te7gLMhUA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqs9-00014t-UQ; Thu, 17 Sep 2020 10:10:38 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqqC-0008Sq-8F for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 10:08:38 +0000 Received: by mail-wm1-x341.google.com with SMTP id w2so1393362wmi.1 for ; Thu, 17 Sep 2020 03:08:36 -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=WwtmUU2xza1QbboPfaTnSXPWTgY+PkqC6A8ukr3UUPc=; b=KTkhBl7H0eZUuai+qJNFzWV6ys6cgQgB8upaKWfbdEkSGKM+oNzMHbl9MgFGeUjHOQ 5gNcTtld7F5N2L3UplvVv+5tqcs/R2Dd2o1Sp3rJ+zlxS3Iekry7PSnXOUl1KtW+WoH0 oRgur9jhD/Z/Xx9SYzyZgDvS1ZkaidmLkuqz9ZC8qgZgENDz2nXh8R+U7TJ30AIS1cLC emRr9uNnloK3sxP8GI0tMgDptYWpJr89OtzkyZevdy/WkC9jp5UX7UuQJQ36Lm55iokm wzljFSQM2dvxX+5pEpkw+vPbgCd0UZsgCl56eSqPBz6yMsiGyjHsQr9T6y59L65nOjwJ RskQ== 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=WwtmUU2xza1QbboPfaTnSXPWTgY+PkqC6A8ukr3UUPc=; b=RRPy0qZWQrFgHaFJIBB8rZD/m5IHdcxJ2/kLTSm9Q9rEzAfj/KjByOzW8m6AhBIJ8K 21U4MG600OGeHO6OHeQ9RNknAgSriQueDgK+j4Tr7DCF5Ta+37/XvsiCcxuQ32ZplweH uDcZH2aCi6irLx0S0P/p/zM984i9+lG+gH2CYmK2fwZ0JGrnZkoHdSbrWA1pTSCvs66z m+SMda8x/pIIXUeoZGQlP3QKvKSSgQTuBo5XR6s/3th7DUW5rnFXOpz6RbEvwfVKxz18 k57v+5tELIjMixtgtycdyiv4mx2uD4k8Gh/CO+aAEPyiIcqSuW/vgMmbWsnUIkRDdJrA JLLA== X-Gm-Message-State: AOAM532kz2AcFESugMTmwOmdVP8d5roDfoqYQHOzeuwQZZpHil5wz1LN 5zDU5n9ABl94p/uV8tCKQXo= X-Google-Smtp-Source: ABdhPJzkoguP19vjgJoOGnU/guNx1ONPKYb4kWR/mdBd3TJrgxl545Lsfmplrvl513m1YOQ2jBcDvQ== X-Received: by 2002:a1c:e4c5:: with SMTP id b188mr8233781wmh.67.1600337315256; Thu, 17 Sep 2020 03:08:35 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id h2sm39346270wrp.69.2020.09.17.03.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 03:08:34 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 14/14] arm64: tegra: Initial Tegra234 VDK support Date: Thu, 17 Sep 2020 12:07:52 +0200 Message-Id: <20200917100752.3516153-15-thierry.reding@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917100752.3516153-1-thierry.reding@gmail.com> References: <20200917100752.3516153-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-20200917_060836_376383_043A1F7F X-CRM114-Status: GOOD ( 20.42 ) 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:341 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 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 --- Changes in v2: - drop compatible string for BPMP shared memory nodes - add fallback compatible string for RTC arch/arm64/boot/dts/nvidia/Makefile | 1 + .../boot/dts/nvidia/tegra234-sim-vdk.dts | 40 ++++ arch/arm64/boot/dts/nvidia/tegra234.dtsi | 189 ++++++++++++++++++ drivers/soc/tegra/Kconfig | 10 + include/dt-bindings/clock/tegra234-clock.h | 14 ++ include/dt-bindings/reset/tegra234-reset.h | 10 + 6 files changed, 264 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..f0efb3a62804 --- /dev/null +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -0,0 +1,189 @@ +// 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", "nvidia,tegra20-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 { + reg = <0x4e000 0x1000>; + label = "cpu-bpmp-tx"; + pool; + }; + + cpu_bpmp_rx: shmem@4f000 { + 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