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=-15.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 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 D7213C4707F for ; Thu, 27 May 2021 07:15:50 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5DC9613BC for ; Thu, 27 May 2021 07:15:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5DC9613BC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 279CB81F30; Thu, 27 May 2021 09:15:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="KgJhhOta"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 65C8481FF5; Thu, 27 May 2021 09:15:45 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7ea9::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7B416814A4 for ; Thu, 27 May 2021 09:15:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michals@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WoWP6PrUtxEqIGuLUzRVg5OfGhUutbZlvx6mHHyXhsm98TRas12sbjSdrsjtjNCbfK+hLdRDqUEXUp0d0Ao2N02QAA9csYZVMcj0DFi2R/ANxrVtgyhovQSqk/4Jz7Fay4x9LnzHEU0xUnj+H/hBtqkh+gaLv5xeobNTUMIfJJz8NMuvK2z1eo8d4GaLPOREIzfXtFuZ/4DZ1b9XtaP/46foIcai3tMujFHg6vna2dQxyFAdHGxUAfu2aCa6Pr0et76Z8zWuNa3LAodWV3l1iLo/i9EfJyOhBEpcRbuAWsiVPCTrRpDIKdLIckLrV5oGT1BOlZgG8TO5F+7u8A6o4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ssMcfSDgypAs3U54tWqWFwNcssAwpwen/I1zP5kWRZ4=; b=jDhmQqUrkkuyh9UqdiFsRnyVZ3ERLm6RYxJKhOa09aJs7H4jcF/1vhIWSg8uVwSeYVzAym/CCZv9jV9NDhzqRILTUQNgzSlyf4mRm2KIEPk/hUp47zEn8JXLX5tCsS3iFqM6XOuduHfUo4fzhD2IyIozh8pxFhEzi1UZUxJzA1fmhK8hi4vnH47YryGlwNrUTbLKxvmhJr3artFY67Tii+wSbSnWqOwN65QbtrXak85ABepA+fnM+y/x8jGI+OjiUuM36Ed+CDQlzpnjaNaIKnYJoeNak58WJhKpXgO8iJEi5mSDuJjQ5iOOfIN2OlE7nXL1/eJqBI0Tg+8GVlf/Xg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ssMcfSDgypAs3U54tWqWFwNcssAwpwen/I1zP5kWRZ4=; b=KgJhhOtaILA2WHx/pVDq3XZgftSlPVheoD3AkaRyNWWN0Qc0NrIARnBCGWoJqoNSlc39j1rKuO7Fc9yUVsV54MVCHEIaG8WLjGOk9/U4amCDebMcVVTPWAkH6DkjQ288R0dG3z/rygAjj3eK6/taF8eQ3bIc9fKPhlDfndGv170= Received: from SA0PR11CA0126.namprd11.prod.outlook.com (2603:10b6:806:131::11) by MN2PR02MB6671.namprd02.prod.outlook.com (2603:10b6:208:1d5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20; Thu, 27 May 2021 07:15:37 +0000 Received: from SN1NAM02FT0050.eop-nam02.prod.protection.outlook.com (2603:10b6:806:131:cafe::ac) by SA0PR11CA0126.outlook.office365.com (2603:10b6:806:131::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Thu, 27 May 2021 07:15:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0050.mail.protection.outlook.com (10.97.5.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4129.27 via Frontend Transport; Thu, 27 May 2021 07:15:35 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 27 May 2021 00:15:34 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 27 May 2021 00:15:34 -0700 Envelope-to: u-boot@lists.denx.de, bruno.thomsen@gmail.com, sjg@chromium.org, jorge@foundries.io Received: from [172.30.17.109] (port=34200) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lmAEw-0000Qo-3H; Thu, 27 May 2021 00:15:34 -0700 Subject: Re: [PATCH] drivers: tpm2: update reset gpio semantics To: Jorge Ramirez-Ortiz , , , CC: References: <20210526195712.15210-1-jorge@foundries.io> From: Michal Simek Message-ID: <95ea140e-0122-a978-139a-407355ce4448@xilinx.com> Date: Thu, 27 May 2021 09:15:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210526195712.15210-1-jorge@foundries.io> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ea2ea38-68c5-44ed-6391-08d920df38db X-MS-TrafficTypeDiagnostic: MN2PR02MB6671: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SMivhlqHe2jwC6jBXWEAjTfYzmXMytgEsczqLgn5oXyX96N8KT28G4fo3jGnNt7fCnrVCkB1cKwgbt2vzWJ3lz9JHzj0QPiwnskp3MKMLljWWqDNlTCv2knODt0wXJ2Mp9Dh/QtcglvVNMp1PGQ7thFTasiDSF+4YLYdQ4W5mqEdgax++mr+kC+vAy6h/PPHB6n4TlAUgOeKgv7cF6sVad8mNa4RBXPlqE1sCfb1mp42KTd6Y+BYTQSUwSBcwboKSwLKluHYKQDwIE/XaQgSUdSyFfT87dmwKlrsJn9hIpjKWHwhk4CGzZvxemzxX84ktmfjb/THWeGgYCoSjThdVCMjgTxWim6v+NHFLoHPm963JysblNA8m03nhUbflI/37ohiXr/zzBkhLTkwd0UyVdYOaguDWzOcvISCGkkmIvKGknfpDHmokff4hF2xUVg+tirCCMfqbsLTtewNjh1nZS8S1zb8IGX0gBRs1YEyoZhH+zE5NKRab2monpcb7kBYSuyIVCCAm+mpLuAL7TQG0IP6IYKJVIAr4NkymvaRIHFi/OvLahDWfzR0VehwlTDuT1HZ0jyWH3d3mmNg3M37lVlZRzYJ+vjZRVSrMCnpDMf/1uJZmhDKLuOu0gCFVxMFWIxZSl0WtYR8BcYSu3TK0ogM4qWThV/rQYYoKWukjiRbmhOAGUIRHImdWCcXotCaL73i+WHDL+CTfUHQxloHTA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(136003)(396003)(346002)(39860400002)(376002)(46966006)(36840700001)(9786002)(47076005)(82310400003)(5660300002)(478600001)(70586007)(44832011)(53546011)(31686004)(426003)(2616005)(110136005)(26005)(70206006)(336012)(186003)(36906005)(316002)(7636003)(8676002)(4326008)(2906002)(36860700001)(83380400001)(82740400003)(356005)(36756003)(8936002)(31696002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2021 07:15:35.2523 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ea2ea38-68c5-44ed-6391-08d920df38db X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0050.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB6671 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 On 5/26/21 9:57 PM, Jorge Ramirez-Ortiz wrote: > Use the more generic reset-gpios propery name. > > Signed-off-by: Jorge Ramirez-Ortiz > --- > 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", > I think you should deprecate gpio-reset but keep supporting that option with any warning and add code for reset-gpios. Also would be good to add it as optional property to Linux kernel to keep it in sync. Thanks, Michal