From patchwork Tue Jul 27 03:33:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12401405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A4BBC4338F for ; Tue, 27 Jul 2021 03:41:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E42FA60238 for ; Tue, 27 Jul 2021 03:41:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E42FA60238 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=utAGQNYvcOWOnCOCou54txZT6uAlObTn+n78D+GUBA4=; b=ayA6csVy0GeHHJ K5YHTSOeGvrpJT5TIdU0E7flpTS8pZdadMdwJ60/G5ihBFcnZoxSTvK5XpAwYL1+vm6txk1DNSwU6 no/R/WIJffisBvTVrLJno+68/W9qWVjvwFpk7lr5Hy2nkzFUkeA/lW1PCFwlJe6a+YhrlDDJfhVd5 tcpDHLvQdnG0CKvDSM0RyccvYiQi435iY9Y60Bnbh7nCofwpLMdYfDqfqPdpjhgNNDxBiOLVuifmf G6YFEo0g8EwvOLN9iHmd2J3JCM540+8vj8GBjDMibppQdzdHICqO6Gy+bXLqjIEck11nuVNbayOJG vVgQsCUvktIu75n+cqbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Dw7-00D28m-4Q; Tue, 27 Jul 2021 03:39:20 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8DqZ-00D0gU-PM for linux-arm-kernel@lists.infradead.org; Tue, 27 Jul 2021 03:33:37 +0000 Received: by mail-pj1-x102f.google.com with SMTP id j1so15852841pjv.3 for ; Mon, 26 Jul 2021 20:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sgogXb1SnR/+7JQk31e50axmieq/LTndC4H+WEUwDIw=; b=X6t5Cd7NfOGCRbIAFIr3P9GYdw0wu5JRbP6NAYNMt2RPW04bFrn4al2wU1ZT779jZu 42xhpYW/Xn2mOH5hcVjXJbNaT1jmxr+QbPrWpgZxZUqoYRbi/vUxEmSJr3xxFFT5ZvOh iM03F/PXyoL1GGU+UFySIDioBfYXCEwOfZMu367ZtO89tds0xDj2dkDlO5A2IKHayb8A W027MTD7MxLEeksSCq2wLo8hVOobuRkYNL2450pqpfAatQnphxwA1BrhTiRKCUR4JVE1 ej2cH9FczsKOU6worj6A7hV8F1cIKKZGZ0YHYE69aucpBmNqP92mSfPYuvVGmNExci2V /dog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=sgogXb1SnR/+7JQk31e50axmieq/LTndC4H+WEUwDIw=; b=mAftVaQUbB3TesK8UemkBTwmXpZ7sfSxa71H+HtN74Xb60el1bbSfBxBYJN76nhpGP Z/1RDdrGWXt+H68kAZVIpebptnH9S5a2uwnLfGOTWYVTxxN6h4M6TsRkc/XFOIZPYIZm ALbemV40fmgPk6MKFuid31N0/hYOSmUwfZY8bzurUzcgHumXsq8hMahfdW/vzCs6AI7L ND3MtLOxm3voXvlDbBqtPu4ErqFJBXGKqGYIRuq1oyyUEzNe5jqm6nlTWG2XcPvfZm5/ EkXwdND2oepCjr2VrYiaCrFgc76mG5OjAnp5W7FcLN56PwFm546mUGubkhdKn3ubvWdB W0pg== X-Gm-Message-State: AOAM533E88OG4k8HhMCg+pTiFeRZik8VNR2C1bULUICY3dW4i2MpRSIt X0zCkbM9yeMYrBVdYEdYhhA= X-Google-Smtp-Source: ABdhPJx5l2G6QtAdpW4Jl6gRF8PJvSae7WXoRyi/MOc+INvwcgnB6mIMwiMbQq8WDcsKw98VJx3Q0Q== X-Received: by 2002:a17:90b:3653:: with SMTP id nh19mr2117160pjb.169.1627356814893; Mon, 26 Jul 2021 20:33:34 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id s193sm1528351pfc.183.2021.07.26.20.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 20:33:34 -0700 (PDT) From: Joel Stanley To: openbmc@lists.ozlabs.org, andrew@aj.id.au Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: dts: rainier, everest: Add TPM reset GPIO Date: Tue, 27 Jul 2021 13:03:18 +0930 Message-Id: <20210727033319.473152-2-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210727033319.473152-1-joel@jms.id.au> References: <20210727033319.473152-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_203335_911116_35B40975 X-CRM114-Status: GOOD ( 12.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The GPIO is used to place the BMC-connected TPM in reset. This state is latched until the BMC is next reset, blocking access to the TPM for that boot. On both machines this net is called TPM_RESET_LATCH_B. Signed-off-by: Joel Stanley Reviewed-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 2 +- arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index aa24cac8e5be..4536cd538af9 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -253,7 +253,7 @@ &gpio0 { /*O0-O7*/ "","","","","","","","", /*P0-P7*/ "","","","","led-pcieslot-power","","","", /*Q0-Q7*/ "","","","","","","","", - /*R0-R7*/ "","","","","","I2C_FLASH_MICRO_N","","", + /*R0-R7*/ "bmc-tpm-reset","","","","","I2C_FLASH_MICRO_N","","", /*S0-S7*/ "","","","","","","","", /*T0-T7*/ "","","","","","","","", /*U0-U7*/ "","","","","","","","", diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts index 481d0ee1f85f..06b3d1573780 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts @@ -271,7 +271,7 @@ &gpio0 { /*O0-O7*/ "","","","usb-power","","","","", /*P0-P7*/ "","","","","pcieslot-power","","","", /*Q0-Q7*/ "cfam-reset","","","","","","","", - /*R0-R7*/ "","","","","","","","", + /*R0-R7*/ "bmc-tpm-reset","","","","","","","", /*S0-S7*/ "presence-ps0","presence-ps1","presence-ps2","presence-ps3", "","","","", /*T0-T7*/ "","","","","","","","", From patchwork Tue Jul 27 03:33:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12401407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B0D8C4338F for ; Tue, 27 Jul 2021 03:44:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 EC8BE6105A for ; Tue, 27 Jul 2021 03:44:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EC8BE6105A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9XAavl2jvwpTSHdMNolgPcW3xyRMBSmicP3fBcPcRjw=; b=1/zQkqUBSGQIgx HLSpC4nT6WSqgARPzuwKVHbdSGYzS/zIOJqn0uouwcIBYQqvZknEDJjzbmz2ODNt1pDkU4xpx51ba pLXLq4Fakoic7vNNLSYIjTovjNXRNy0kaSg/fy+mWkfYfga99fUTt5sp4kk/Rk6R1es6RFQai+VTl W5ztLEz+w8t/wtsTbhd9QnMK8P779Vpv90gQXfNjFRo9pr0v9C9UCPjZxeMjriYvxBYJ6hnXUznCz A/BJhhS/5XHeuaLqNcBTzbghA5kvChWuKUzQeTLQF2acNr52zvaIgizrCSOwJSS99GKcnxxx6Mqnn MsNWAm1wc3RpFSJfncjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Dxr-00D2b0-Hw; Tue, 27 Jul 2021 03:41:09 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Dql-00D0hX-AU for linux-arm-kernel@lists.infradead.org; Tue, 27 Jul 2021 03:33:48 +0000 Received: by mail-pj1-x102c.google.com with SMTP id a4-20020a17090aa504b0290176a0d2b67aso2171424pjq.2 for ; Mon, 26 Jul 2021 20:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qOL68tjGXBWZUtM6TEQ+vHsPqA+ZyHl0bEMzbX1MytQ=; b=TmuRNCK6tDuk+6L/gDbostE1q2l1pQbexZxt9/tVFilOVlqmzRNG2ZvTLAUhO9y4Ah ED/d+jPdjvUvioUCsQNLWVt4AeeBr5Z52TK18ncEVEN5cjaH6A6dJuPg3CTBZLpHXNV4 QbHwBXNg0/UsvWzIDjMy1ZgbkKa9y1LO+OYYon7bNII4ji6C2MsiINyw7PUsDpPtWxNz Ovcnu0+S3FMUEzWU9DR+Lqkqrc/O0lsyU6CdyjpUf85wznj7h4UGtvTG+4eApb9oD+qH Kh8d2faLoIZOre+LM8g28LSl+COtQ2sBMy472fI1U16rwZ0vIHrDDYaraeovYKjlCZpY uB+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=qOL68tjGXBWZUtM6TEQ+vHsPqA+ZyHl0bEMzbX1MytQ=; b=U+D/623d32Wqu0Op7SVlRub17dFYc8u3gQU9da5BJPqArVmeEGkP+LRhZfow1uxISu JosKiDy2SvZ2KMbU/EzqwAvzmKjFiNAnSdrcyW7wd+Y86/fRzQ5eyhbAOZYYkjv2FpQI bsRt8/xij1vUHC6o+RuYmTIIFzVicV14H98k4Pa1PR1MLrsrKg4A3D59STXZz2yTigN0 8FIJa1pfoyp7vyCJ7S+ndK/m9M1bylUM4eKUfHo6MFhlw4pn4mKiRMhhC1ANqsgujXi7 8N//BviZJp5A+cZDciSu9hrwH8Sq/cLro8hrcv3iLdZgafkVnkZGdcnHoCzIz6ZYnihu xH7A== X-Gm-Message-State: AOAM530+tk8G6Ckg9+pKs22ir27Ty/LQhmMyNTMkNaM5iE2rrXL2dvsU HnJRcmbTE5LdCx7ouc+LTSY= X-Google-Smtp-Source: ABdhPJzdGk9WD94Uuhh2J2EKF3olnE354fTv7+8mcMzsHhMYZxC0qXFcg36oTmHG3jjyHqrrPAspeg== X-Received: by 2002:a17:90b:215:: with SMTP id fy21mr7846770pjb.203.1627356818140; Mon, 26 Jul 2021 20:33:38 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id s193sm1528351pfc.183.2021.07.26.20.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 20:33:37 -0700 (PDT) From: Joel Stanley To: openbmc@lists.ozlabs.org, andrew@aj.id.au Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: dts: aspeed: tacoma: Add TPM reset GPIO Date: Tue, 27 Jul 2021 13:03:19 +0930 Message-Id: <20210727033319.473152-3-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210727033319.473152-1-joel@jms.id.au> References: <20210727033319.473152-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_203347_423157_14FFA819 X-CRM114-Status: GOOD ( 12.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The GPIO is used to place the BMC-connected TPM in reset. The net is called BMC_TPM_RST_N on Tacoma. Signed-off-by: Joel Stanley Reviewed-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts index e33153dcaea8..e39f310d55eb 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts @@ -126,7 +126,7 @@ &gpio0 { /*M0-M7*/ "","","","","","","","", /*N0-N7*/ "","","","","","","","", /*O0-O7*/ "led-rear-power","led-rear-id","","usb-power","","","","", - /*P0-P7*/ "","","","","","","","", + /*P0-P7*/ "","","","","","bmc-tpm-reset","","", /*Q0-Q7*/ "cfam-reset","","","","","","","fsi-routing", /*R0-R7*/ "","","","","","","","", /*S0-S7*/ "","","","","","","","",