From patchwork Fri Sep 15 06:50:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 723517 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D25613FC7; Fri, 15 Sep 2023 06:52:00 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2070.outbound.protection.outlook.com [40.107.6.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A18A2716; Thu, 14 Sep 2023 23:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xo+PgHGr2ph5y/kZYeBvwZcj0rydPuyysN6FDcvOzcn8LtGJkzSUgJivQvk0fV4SqRgADRCMqUKK7s3v/VcdxBj64auxhb+aX+qzJ80Cd9nqvR7lkQemRLfm/XbixTAxaGlS9eJaxp3wk8r81ys2Ka/0QZmRt0eOomghpzseIWmMyzF+ZCD7rw5myqLSCTnUBGjXsJcenUaetB0DVkS24aTiJ6ydDqTpTgkktMqEMXLlvxW22aNKe1JybcQS93XTH0m4dVTLsIZWwRg2aYJaSiOTPMXYVE6RmAm5em2HhXqXDvtrI+d7tBImsSbUyJWC3aGvWLjHjeXtbDRTECVhYA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9vfS5YpyxmiD66WrZrkniGEVIkCVjT0hD8nQSQTqroc=; b=CP3QYdtfJgZ2yjf3IUVkNRU9KP4cvwMSUEmnezQDQIu8/iunOX6O93eZ+SLPFqtFPa2oW1ZG5e6ZzkjJ4vdoSmm40x1PZek2ZaI6lWqcAppB/n7owUOgmazPKzxzAjA54wF7W4t8bN4ZWVDI7+da8O8S5ldh1WlVsLAbLYUKGY8/I+0QnfvFekdanlRDqS68RMiP+bynRPtGMuDKhreSmzrD85MQsgyE9Ht1lD+qOUsfvDDdWotO46jo6SuRqqumcChMS0hzAkK1bjUgaORrqQUTyIicdDFuihHpBn6/mR+ufO30h1qCy9gMK3nL77FvLoomcHcjMm5op6QHDhFNlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9vfS5YpyxmiD66WrZrkniGEVIkCVjT0hD8nQSQTqroc=; b=kXxj1PNhy7H50nXuvmtJ66k9q7lnfh6ZUcxC1/zAUnkC1b7+QB3Q1F0Hf8NfU5Izt56Yp1yjoO9jFQH9qaSGPz0NK5QUyXGtgyMYPXibrWvGeXzprSNN84qOgvQNY7bREPDBNW50culUQd4jxL6ffP1En8XSlIwl+u3/OG4T45g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB9322.eurprd08.prod.outlook.com (2603:10a6:10:41d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Fri, 15 Sep 2023 06:51:54 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63%6]) with mapi id 15.20.6792.020; Fri, 15 Sep 2023 06:51:54 +0000 From: Javier Carrasco Date: Fri, 15 Sep 2023 08:50:52 +0200 Subject: [PATCH 1/2] usb: typec: tps6598x: add reset gpio support Message-Id: <20230912-topic-tps6598x_reset-v1-1-78dc0bf61790@wolfvision.net> References: <20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net> In-Reply-To: <20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net> To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694760668; l=3283; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=gSmzjlh8KOJx1IoqMs+6APAdn+wiS1ECkMChs9brKfw=; b=b7LUIm/08xuhK9YkTXoxEo3spOKggkmRoBC9vYIsJb2NQxTaNnKub/OBGugwgUlRV6cOG6imI EBK2fzFGjzsAZeUAeOyvu71yIGY9AvTWij9XYH2drw2vag2AAjHVWID X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR07CA0296.eurprd07.prod.outlook.com (2603:10a6:800:130::24) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB9322:EE_ X-MS-Office365-Filtering-Correlation-Id: 40a7b4bf-0bf1-4a5a-3cd5-08dbb5b8252c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gLDYA+oJSxopnAODPCfxazJkSoB38z3/Q737IqFiVeWeAWbGkFsZwInOu58/vRR560C2b1/KHTVYZKelUaYVMj+AhkGcTHeF3SJPISHWbTRdKROHM/Pyg9McQqV2oCBr8R2UNaclh1q2TUum3BCthMbbjtpChNlGRVIK2BI5WYpt/jMErn9YrQ+A0g7ATzDFoAeVL3ZcMSXqSLI8dtmJbipDsdjHXTv5gnSmNPfIYH6+VkgEaw0WnWBrRrr43vBGKU7kKP/f+T0pNziO/UKYk4mtNN92bO2iifE3m/F5JEK82jLZQE84l6EeHDTaH3mt8I1MgKk3m47CxBwstFJLY6u164udHCUa/g4Waj1mf3bxR50iVigix+nZg2+ZTn7T2A6O2qoTUQeAshx0R1ufg/AcWDpRe2LEOMnmWG/Djz+TqwzYKoZ+Cbv/eMJG39mbEP0dSRnMreVHEFaHXf+LCHEbR59VxK4SOCMR4sdHOOxpXKK+HyNJ5Oz9Fa2mEyVeq28TmWjV5UBm17JTeT36R5LILupwyk4Ria797gMKj+i4XawU9neorNTaN/iFxp9WGJbBlHmqr/UdkLlFWo37hXJTY4qs7PN5okdtMpuzj2o= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4974.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(366004)(136003)(346002)(39850400004)(1800799009)(186009)(451199024)(110136005)(44832011)(316002)(26005)(66556008)(66946007)(107886003)(83380400001)(36756003)(6486002)(52116002)(6512007)(6506007)(38100700002)(38350700002)(86362001)(2616005)(66476007)(966005)(478600001)(2906002)(4326008)(8676002)(8936002)(41300700001)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KPbRJfH/VHLgZFysn5d54CZzAA6Y?= =?utf-8?q?zQifBhbScq45TZa9VryxgJNmljpTet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RTADqh4oGVBKRV1bTKt+O2yuT6VYtzIPe/CKmYO?= =?utf-8?q?LOb9/4ejxF39v5tPlB7WgkVr6M18503N1gpOyfgmEgd9TRkfciJDbVLcmgUvw6jX+?= =?utf-8?q?kwvaQ7SYVKPhj6KEtVaDdRI4mLsCz/NKL9O6P+JBsAGNAsBP04ph8WhN+PEMFUAn7?= =?utf-8?q?dsyngMOb/D77IMqfB2rkALHJWdbfLdZfLM66JXGkNiYLRLa3jT8p2UlyJ1AC4HFvX?= =?utf-8?q?SXhpPcKM1WWI1bFEochi9Oe8LUw4HZpbtqiuXbFTB9BpXJucSviPRoehtqbDVsyzX?= =?utf-8?q?5FvLvfP46sSNLiNl4MPAYFyVD3zrYw7LSgwlgH+iudRF7dDi4AVwLGr6ZP4kqEE5O?= =?utf-8?q?SOsdMuxfTH7ENLPRSfU5G8GiymPQUMEi/BRVBmhN4nC37gTYI5SrjmBO04GwbJbyU?= =?utf-8?q?ZEIUB5elJVKPOFV6B1gpIFArUIiID0SrTqvePljezDIvQ0S8fPsdExv/8rTDSrEKD?= =?utf-8?q?x4Rp6HVmXc1linTeOnYdfnHM0cTuHXVrw2lt1A8QBa0vzZAoyeC+oWFG0/iC0cHU1?= =?utf-8?q?2wJoJPKbafXpvKtkW6Fy3DvkWrkYTsLNOnss5Fg+UA87x0N3brrAps58wn4OvU8XC?= =?utf-8?q?6iZr7pfWEVSBeWO5mcEaoWJi8XJJYTi3m7GB3iSYQfrqBoyTdYTrjNU=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 40a7b4bf-0bf1-4a5a-3cd5-08dbb5b8252c X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 06:51:10.6706 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 63arxPl/sUn2qCkSU2V/IkFQ7xSl62F1tE2vYm4HoqebaxdKRiokQhLr/YuQr5poJutKXZqRt1/9psTrcqOBVsQmDlraX/z2hlT1OUmhWvU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9322 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The TPS6598x PD controller provides an active-high hardware reset input that reinitializes all device settings. If it is not grounded by design, the driver must be able to de-assert it in order to initialize the device. The PD controller is not ready for registration right after the reset de-assertion and a delay must be introduced in that case. According to TI, the delay can reach up to 1000 ms [1], which is in line with the experimental results obtained with a TPS65987D. Add a GPIO descriptor for the reset signal and basic reset management for initialization and suspend/resume. [1] https://e2e.ti.com/support/power-management-group/power-management/ f/power-management-forum/1269856/tps65987d-tps65987d-reset-de-assert- to-normal-operation/4809389#4809389 Signed-off-by: Javier Carrasco --- drivers/usb/typec/tipd/core.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c index 37b56ce75f39..550f5913e985 100644 --- a/drivers/usb/typec/tipd/core.c +++ b/drivers/usb/typec/tipd/core.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -43,6 +44,9 @@ /* TPS_REG_SYSTEM_CONF bits */ #define TPS_SYSCONF_PORTINFO(c) ((c) & 7) +/* reset de-assertion to ready for operation */ +#define SETUP_MS 1000 + enum { TPS_PORTINFO_SINK, TPS_PORTINFO_SINK_ACCESSORY, @@ -86,6 +90,7 @@ struct tps6598x { struct mutex lock; /* device lock */ u8 i2c_protocol:1; + struct gpio_desc *reset; struct typec_port *port; struct typec_partner *partner; struct usb_pd_identity partner_identity; @@ -717,6 +722,13 @@ static int tps6598x_probe(struct i2c_client *client) mutex_init(&tps->lock); tps->dev = &client->dev; + tps->reset = devm_gpiod_get_optional(tps->dev, "reset", GPIOD_OUT_LOW); + if (IS_ERR(tps->reset)) + return dev_err_probe(tps->dev, PTR_ERR(tps->reset), + "failed to get reset GPIO\n"); + if (tps->reset) + msleep(SETUP_MS); + tps->regmap = devm_regmap_init_i2c(client, &tps6598x_regmap_config); if (IS_ERR(tps->regmap)) return PTR_ERR(tps->regmap); @@ -892,6 +904,9 @@ static void tps6598x_remove(struct i2c_client *client) tps6598x_disconnect(tps, 0); typec_unregister_port(tps->port); usb_role_switch_put(tps->role_sw); + + if (tps->reset) + gpiod_set_value_cansleep(tps->reset, 1); } static int __maybe_unused tps6598x_suspend(struct device *dev) @@ -902,7 +917,8 @@ static int __maybe_unused tps6598x_suspend(struct device *dev) if (tps->wakeup) { disable_irq(client->irq); enable_irq_wake(client->irq); - } + } else if (tps->reset) + gpiod_set_value_cansleep(tps->reset, 1); if (!client->irq) cancel_delayed_work_sync(&tps->wq_poll); @@ -918,6 +934,9 @@ static int __maybe_unused tps6598x_resume(struct device *dev) if (tps->wakeup) { disable_irq_wake(client->irq); enable_irq(client->irq); + } else if (tps->reset) { + gpiod_set_value_cansleep(tps->reset, 0); + msleep(SETUP_MS); } if (!client->irq) From patchwork Fri Sep 15 06:50:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 723912 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EFAC6AD8; Fri, 15 Sep 2023 06:52:03 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2070.outbound.protection.outlook.com [40.107.6.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A141C2707; Thu, 14 Sep 2023 23:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TtpXWgwbR1oHIpOI/KHBZF6ZFpvvh6T0AN3zaXaJ+RDtztUWKjhvZkkbS24B0T9QjbtOJDK0B/0/fB1a7oy0GNwhm33GjkQ0o6Q+DvgtT62Upkwap05L/6PzDvGRZwaMMO56ncD8xAoV1OaxZEMbGb/BK8/5+8UZ6RdVIglyzYzqCGs+pIlonilw8nobsLCjz+VyzNh90jcZi8nYrGtKR/TDDnuTGglPo3Oqt8NlUCNpybnNEboEIsgvKy8Otl3o+XtWvn/Bdt+HaG35A/yuX3Z+vDRxBgKQEw74qfpcLlgxSiuGTjACveBSwwY1rGTxyOwOJFZTskK7fOVEnJlP4Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ukOIz1Pdsy/PjF/gqYINmL+CxjpII62ECaD8soHyT68=; b=m4zqeqGen1X1uraGdVGmC1+nRfPLBC2nwrgPuc5vYcnpIr7KOldFo1wt0KLRRXV+WeuqGSqwpGcqVl0QxWzreac/qpGW+s8707NOKxWxzdT1xII+xYt51nDmKSS5j7HdyQWJlMwFEX+ObyWT2C+nLRVzzTFi1kZyLSBUcRe+YtEJv+fckn4XX1LeHewsOLt94Q4Z0bGwRgVYNrnG+D3KPH2ZuTOONvqW5KY8m79eCKVsZQTkS20uFbw0LdDJTkwUdUun3uC5HBjDJYAcunDX+EPwzUqv2w/0/Iq72uPjVHKUAcF8x1T+n8RwzG/1Hc6Gc+v556n7DNyIyukFeW21+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ukOIz1Pdsy/PjF/gqYINmL+CxjpII62ECaD8soHyT68=; b=ljz/qNorflt91HkSIP2ARud3ksznAlVMcCYIdSvAf8yYh0dRumaSfzyW8O5E8UqaqkyuSNW5axWoCbitqUlEqzgvFGipkDQ/674YOfcIOQHDDKKlOzXHLONHooqnRb45bfwHkNlo6U62qMYzydvSvyBC2lhDO+Ev0BWbVg7NYxE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB9322.eurprd08.prod.outlook.com (2603:10a6:10:41d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Fri, 15 Sep 2023 06:51:55 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63%6]) with mapi id 15.20.6792.020; Fri, 15 Sep 2023 06:51:55 +0000 From: Javier Carrasco Date: Fri, 15 Sep 2023 08:50:53 +0200 Subject: [PATCH 2/2] dt-bindings: usb: tps6598x: add reset-gpios property Message-Id: <20230912-topic-tps6598x_reset-v1-2-78dc0bf61790@wolfvision.net> References: <20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net> In-Reply-To: <20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net> To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694760668; l=1264; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=lRll9wS40knwX97TAkwcHx+ORXPs6OvKVeKUWONOPKs=; b=6/+vZVzXnidIhtNKXr633WGQz6xFexmWehet/q/uZ1v+sjvt43Be1BnQnZX120CAsu+q6/yT2 kInbhwhARc4D8z3x4Kl6V/7I6YRZ3VgufqbBQJOBZayl8b7aL6XbhIw X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR07CA0296.eurprd07.prod.outlook.com (2603:10a6:800:130::24) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB9322:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c9ebd6c-9e2d-4d6f-5faa-08dbb5b82571 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y8IIZDiYXQBpGFJ3nrpk/OfQjW95M89YApMCy9mdEJAnuJqS/Dpo9LK1W0/v9bLF30LY/Y1UzAaNPNdm08hdLBnk3IriOFafKpa0OI64UjGlarMW6e2mP+wLTwAMKLjxDDVIXblsn7n52x5/C2MvbjSN5vpTTNnGaLAjzqpPKhqRuCFM7TqxkAakTCcJoQt+h+lO/4p6bMS4i5TqImwSBzm103AczybEyTbZvK0hI+sO8tgJHpDuCcYanAl0pplRiPG6hoi3fF8D5PlM3wYzLiY8h7F68EhAGdu3NYwScrMYMU6kflP2NuMpvz+8MgHO6TpIFDtTEG2ub9ywMZT0QxVbBfABw7+qNwXZ95wEzZKJ226v1FL656K8Tshqti552Ir77ZrkPClBoVovtrCtYcgZgvdVK8Tj+T0Nj3V2FF1m391YBK1NZmTnHfZjulC4E5yNOCJ8zEm5eUzYxDXn7giuvnrxgVyDoBTlfB4d8IvkPcKE/mqVMcviH3J7CfZwq7wuvr2sbaSxm5qx52UbaQkMmwQXoXiqXIH6TLAUhJ7VNn0bA4Nuw6KUSbkY3FbfhxmJ61Sg3xK61+bB0TudYFnDw5Bay2RrKSaCgoBf8J61zfn1SczEnUe4+lqgHkqb X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4974.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(366004)(136003)(346002)(39850400004)(1800799009)(186009)(451199024)(110136005)(44832011)(316002)(26005)(66556008)(66946007)(107886003)(36756003)(6486002)(52116002)(6512007)(6506007)(38100700002)(38350700002)(86362001)(2616005)(66476007)(478600001)(2906002)(4326008)(8676002)(8936002)(41300700001)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?g+OY0r2Dn8JO1CsSzmeAC/HurcpD?= =?utf-8?q?O70UFe2784IzR2aelYsOQsqes6hOtyxKwHt4dZi5xSalXA4dLfd4BU9k3bxbqA/L3?= =?utf-8?q?t3ZskupXsDjpE/r+PlAHzvnupY0SmfnEYmJRhzO6bzRib1c5Iq6ebrR9zvxCH61pb?= =?utf-8?q?oskoZ3ieyb9sdGknM6gnt9L7ljiyvxdRmKzjHoEWS/Q+f6t6WJGRV3+3Z5UuJhRzD?= =?utf-8?q?O12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FWydho6nsbLrkSeJ2+ReBNSAkuq+FqsrdDsf0CE/k3hkzeYowp2FhM52d+4?= =?utf-8?q?JlM1VQeaC5XY2qgp3uwxQte5h4T88jCrjOPABLJgkPNBT6/X6npQsKdxu5uBOVZnY?= =?utf-8?q?NKtDw4g/IOj3Z8CnmzIO3GYMQ6mTrGOC7ldEDYq9aDMre9ND77zfQtk8zqA6SnKSX?= =?utf-8?q?jTXFGa6WM9Ns7tI5Kgrd6Ha1QDzSSL/qxx1EIIhO1QuwGlo3GrdgJXiu5Ygfo0UCz?= =?utf-8?q?13whvxEsWh3UNr1aSu27Wz/5pnLVnia68WbjfV71I/i7rOupA4dCP8Rgppo1Ve+/R?= =?utf-8?q?1BbCZ6YxawboYBx65DXVREGDdM3vuml1/0/oMavuReR/BHJEUlnr30tzQKvfoICZx?= =?utf-8?q?PXTDFeggTnWG0qTwMm120TGDw34ssuIq7e4s3bqRB3ixjC0Xqt/DJdoFt+MzBJww1?= =?utf-8?q?PO6VRpCV1o6CKPvcyyhZnenXHpv/yRYdwCw9W+2w+5MmEfllZsQwDiM=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 9c9ebd6c-9e2d-4d6f-5faa-08dbb5b82571 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 06:51:11.5080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XYAHhOVDcZ3IhsznhboC2BE5d8iI43qA3yeLBNQ0nhnQEWZF4NQMI/IWLSm8hqv4G7rf1/6fof5J7S2vtGGE+7dktpqAuq7f4SOSJ7ZJlp0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9322 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The TPS6598x driver supports an optional high-level reset GPIO. Document the new property and add it to the example. Signed-off-by: Javier Carrasco --- Documentation/devicetree/bindings/usb/ti,tps6598x.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml index 5497a60cddbc..b1a621e06127 100644 --- a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml +++ b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml @@ -23,6 +23,10 @@ properties: reg: maxItems: 1 + reset-gpios: + description: GPIO used for the HRESET pin. + maxItems: 1 + wakeup-source: true interrupts: @@ -40,6 +44,7 @@ additionalProperties: true examples: - | + #include #include i2c { #address-cells = <1>; @@ -56,6 +61,7 @@ examples: pinctrl-names = "default"; pinctrl-0 = <&typec_pins>; + reset-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; typec_con: connector { compatible = "usb-c-connector";