From patchwork Wed May 26 19:57:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jorge Ramirez-Ortiz, Foundries" X-Patchwork-Id: 1484257 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=bmDnpbgo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fr1vC6HNcz9sRK for ; Thu, 27 May 2021 05:57:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34ED582E3C; Wed, 26 May 2021 21:57:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.b="bmDnpbgo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CF54B82E4A; Wed, 26 May 2021 21:57:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6D39682E2F for ; Wed, 26 May 2021 21:57:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jorge@foundries.io Received: by mail-wm1-x331.google.com with SMTP id f20-20020a05600c4e94b0290181f6edda88so1253901wmq.2 for ; Wed, 26 May 2021 12:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=goyabJbPh5gerj1xNTpwO7qtqP2vJIHCxN1RWZJXW2g=; b=bmDnpbgogv/CvaczgGy4hg+TgteMWO/Ox0xA41MDirwwLSaaYfdSzKKfKhX3nB4J0b EKHSMV++bBFCCFUmbCbJQ0gYNpb+FbWdQsnrQtM4rTpSfh2WcyZonwk81PZgEJ+Udt0V 66VETyaZK+iejV36oV0JNYSynN9UwUXZB2/1UsjVNWZ9EsBCAph6VLujLAKRASysi+OJ /Cx1DMXZ3DjFs59JkL9VHNzWnRmnwVe9kIezlPFVb4k8RdbD1YfUCkKJjrwUvsz3Rr0C fX+3uyCCHp+pub7IgpH/wOcp+NlxDzpZ4iKx/0fu24cQ2mYR1Dt/ok1bp2Q3/+7ZQB+S 8bGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=goyabJbPh5gerj1xNTpwO7qtqP2vJIHCxN1RWZJXW2g=; b=DjCviwoqDlJG7a3zpNkGUINvVBH9wYN59dXKTz0R9lzZ0aQWZeZBxIbN4OFtyWzVIO cl7zPuEtflvoMXevFd+RVnKeWCd7GPCaSJILFN6Is44+F13QmaWatWEHJ2wQy8jWngqC +YO1VT9bjE/1FFLEAhZtx2rjQ9pd2D36Q7dmJvHAfnGePjKWwp8UJbgIXVjLmA2mPsOD A572CLWq6g577++f/HzlxhNNhD+Qb/DHHVz8Ik6RkISCv6t+mqEeW3POtYlJJgq0q1RG jXOk+pFnOkNPH6SIysySDOYcx//risN1k6VX+hCHkmHCVolfHW1tTCh1cNAsKsAZlo9m YHOA== X-Gm-Message-State: AOAM530d3v/FEtyLa8TxE29PWO0wrvqTMcmh44Sx2wGmd2c24LGapqwq O/cHTHPLjTJAOD5JXhjrOWbkbg== X-Google-Smtp-Source: ABdhPJw2aKJA34WTKBx041e8GL/A4oMz1G+TdToZnr9qRQ+hzg037Jicl7Nkpe2EmNK6HO1VzNFK9A== X-Received: by 2002:a1c:7c0b:: with SMTP id x11mr78918wmc.51.1622059036960; Wed, 26 May 2021 12:57:16 -0700 (PDT) Received: from localhost.localdomain (117.red-83-34-190.dynamicip.rima-tde.net. [83.34.190.117]) by smtp.gmail.com with ESMTPSA id 11sm83611wmo.24.2021.05.26.12.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 12:57:16 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, sjg@chromium.org, bruno.thomsen@gmail.com, michal.simek@xilinx.com Cc: u-boot@lists.denx.de Subject: [PATCH] drivers: tpm2: update reset gpio semantics Date: Wed, 26 May 2021 21:57:12 +0200 Message-Id: <20210526195712.15210-1-jorge@foundries.io> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Use the more generic reset-gpios propery name. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Simon Glass --- doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt | 2 +- drivers/tpm/tpm2_tis_spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt b/doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt index 3a2ee4bd17..bbcd12950f 100644 --- a/doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt +++ b/doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt @@ -6,7 +6,7 @@ Required properties: - reg : SPI Chip select Optional properties: -- gpio-reset : Reset GPIO (if not connected to the SoC reset line) +- reset-gpios : Reset GPIO (if not connected to the SoC reset line) - spi-max-frequency : See spi-bus.txt Example: diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c index 4b33ac8fd3..94ac52d9ce 100644 --- a/drivers/tpm/tpm2_tis_spi.c +++ b/drivers/tpm/tpm2_tis_spi.c @@ -589,7 +589,7 @@ static int tpm_tis_spi_probe(struct udevice *dev) if (CONFIG_IS_ENABLED(DM_GPIO)) { struct gpio_desc reset_gpio; - ret = gpio_request_by_name(dev, "gpio-reset", 0, + ret = gpio_request_by_name(dev, "reset-gpios", 0, &reset_gpio, GPIOD_IS_OUT); if (ret) { log(LOGC_NONE, LOGL_NOTICE, "%s: missing reset GPIO\n",