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*/ "","","","","","","","",