Message ID | 20230912-topic-tps6598x_reset-v3-0-0c2873070a77@wolfvision.net |
---|---|
Headers | show
Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="DnpwOjRd" Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2074.outbound.protection.outlook.com [40.107.15.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC44D5C; Thu, 23 Nov 2023 07:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=btQRfktGYIydjd9iyvWgPGViA8w/6OQGnrWamkG9c0mJAZklPZlmbk7kxQCpvsps3gf/iieRJSv8inN1dkkRh9XKFnW58Id1tTR0WEocPMPAfHJVGw2vX0+Fk2TWjayhXM3MLkYg5kuQple+Ejj01OYdMX3nV/xn/bququNzAEIUdZ2/U5TP2e9stgVAvFPrJUgXdxBOCNWA8wjIXBsnpO/e/Gdt6SoEnutMY6kaOROKRi4HPRIXQXcGmbhMIOU183yVO7yVVCQSopnHNJ7BvST0/vEWwMlJCinUmVubt9/xk7HJlkRrWm/D1xls6+xRXQ4naCc8Ra6/z885vOo0QA== 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=/O1E0BPBEC1ZHg2m5TDbwK2fzyCXbIheULNNnxOFhzM=; b=IeIV2vIrh4Qaw9nJ9v6YmsdcCq4cjI2AcxpaVWks3AuD+dIu9C7zP+VMNofD0yFrNMgzwlAHh7r+ekPotLlFBprHqOomEz5FZUSpL3jysd4kYpoCE3GPUDXL8uwyJT32Jx3/i5StbUjZ6mMQvbeLfGf+c5dv54NZu+ssFCWZuM1aS0bdWm5AE5Om+oXbLDn964pYzI1nUyn77OSqadgVef1eht7fhDV+XT3iw0dDJn4UAgvp+8FBPQg+SC36m1M6vLMWeJuuEDD4srHCLMo17tzggT7eoV5vxqkrZkaicoBkmySLeFO8RfwMp+0NPBY7z04PVX2jVuJzest+wTPuoA== 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=/O1E0BPBEC1ZHg2m5TDbwK2fzyCXbIheULNNnxOFhzM=; b=DnpwOjRdjB1kK0uS0UdebgB9M15vntgW9GofyVlpG6wxWzDNpK/AvDyOugt3dP8eFVpU/3Bm7ZJ3GTrZmqDk+b1VKjivdKNUWA+hwO8vLHMoyxMQJwF8qDLdngksG0oW92QR59lbZZVLcgGiiyd+9gxdtolwCMXPIWymP6kMHs0= 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 VE1PR08MB5599.eurprd08.prod.outlook.com (2603:10a6:800:1a1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 15:37:23 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 15:37:23 +0000 From: Javier Carrasco <javier.carrasco@wolfvision.net> Subject: [PATCH v3 0/2] usb: typec: tps6598x: add reset gpio support Date: Thu, 23 Nov 2023 16:37:00 +0100 Message-Id: <20230912-topic-tps6598x_reset-v3-0-0c2873070a77@wolfvision.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJxxX2UC/42Oyw7CIBREf6VhLQZun7jyP4wxlN5akgYaQKxp+ u/SunShy5lkzpmFeHQaPTllC3EYtdfWpJAfMqIGae5IdZcyAQY5ExxosJNWNEy+KkUz3xx6DLQ sURSiwKYqBEnTVnqkrZNGDWlsHuOYyslhr+fddbmmPGgfrHvt6si39oclcspo3XSKtX3Fa8HOT zv2n89Hg4Fs1Aj/kCCRGEgOCKhKJr9I67q+Ad3m0rkcAQAA To: Heikki Krogerus <heikki.krogerus@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco <javier.carrasco@wolfvision.net>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700753842; l=1454; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=maSGGdCBegLJdGyRin2n6My+ZRfJxyU4BRrlYBoJEGc=; b=jNQgIV/li+8ahuupsTT5v2CTxE920xOhbLzZvzMJLL2ofwFpS9WtmeALRzZBQL6hen9Vu60wC GSt+39JlLJRB5v+EOtYpXkKn8kh50pbGekt986J55VzfCRZScP4o7Bq X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR09CA0156.eurprd09.prod.outlook.com (2603:10a6:803:12c::40) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: <devicetree.vger.kernel.org> List-Subscribe: <mailto:devicetree+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:devicetree+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|VE1PR08MB5599:EE_ X-MS-Office365-Filtering-Correlation-Id: ecd4e5ae-6e19-45ac-28da-08dbec3a1663 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Up5CaTX9mBcWwzAG6JrviLrpx1Rz5dflUKLsDXMJUcwooDhN4m5pM89N2m9ccNKPXqN7BWtCzgk9yJ8YYjWsuHpWqAjXZlqhJgrD6JQeAQKfdK0cJRi5qWzaKDlUHZL529MxxFkTEf4k755NkEKdzJrWIVE7RaXqBtJw6oUN293va0BRpdRLh2v9P01zCzpqTh/c3Gcdh48TohxOZXD0CA+ncKsxcXLyWhTCeJwz2YSmXdqsne4Xged0uA/WPH4Tas04UXv/S4i4xwcZkHza+z5o0MvoKIOyOB97dq/Cc04cha54747I1f8D+PMd6qRjd2FCREYkPufTj4HmoJyyxepYp6sNGzXWtKW5X3C3FKfYegcCPecOurP2T6t4WVZVRoeDkCHtXbG1V3LSSmI/rt02eJXbtK3XakbocJaimEHBNbUsl8ixrG02ZmXl+hq6/nOVq6YxXeg8QFgGMVy+XC2IIf3K6xiXAic4E/OcJknv1SKS7GUEBXvzPx9WDUFnrl4pGm2TDMSj+0PDmflwP0co/srUitt+O9s4R6av9kNkNds3dpiCkPIz3SliOFNGMEFFfFEXoLoCXLEXrEm17LmOl87ciWdSgXcctAqRxaY= 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)(346002)(39840400004)(376002)(136003)(366004)(396003)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(86362001)(44832011)(5660300002)(7416002)(38100700002)(26005)(83380400001)(6666004)(316002)(110136005)(6506007)(54906003)(52116002)(6512007)(2616005)(4326008)(66476007)(66556008)(66946007)(8676002)(8936002)(41300700001)(6486002)(38350700005)(478600001)(966005)(2906002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0oXwvROGSFtby5LGC7x9gjMjofXW?= =?utf-8?q?CblAOjbBRw//6Ta0mwlk8lyBwgw9KmiKWZEJMpAaG90cFC/RRFxd5kq9n8rTp6Z1C?= =?utf-8?q?BJsSdqfZ9plqdLYS1h9yKF/bCX3lWb+dMsmgTP524bKvhr5+qmaHjWj34v6z1G4No?= =?utf-8?q?+4ppX3CckhAnVWh75LD6keF1johJVqr/KyGjYocyVMD67pjg2c9npKjglhQRaqAZo?= =?utf-8?q?9Fee6UNzo6tqGHB3QhUZi2/D9dRvTFcgxhvqodDvEZw81o0gHDBKDfM0HCibgbWiA?= =?utf-8?q?HWhdP4vYTNVr4yVktaziX/Pp1fNGD/vCfU6WeWp0aSYOkDiHdY83a9K5VeRUCdCC/?= =?utf-8?q?Q5dW0Ffm/Gqf4t4YxbE2uvdxwi83MvVU3VTokc2aVLOqWbcqH/OFJzUbUBsY9bdCO?= =?utf-8?q?qgTKGVK+SEUgGCOnSIphESpbkofcabz22mcmC+eryOBBCS/dx7OlCeQxHHjvsmw6i?= =?utf-8?q?mkEmCqzr9w/Vl/gaDYsWKt1ma4CQupG53YiYVf63Z1kNUwbJKNF3HUzictaT8uSOM?= =?utf-8?q?D7LerI6Pxb0WIviSP9zU9NTtD3EtAPMNL9rEM69bACMDsZSSXX5sVQ+gmNR8XvC2o?= =?utf-8?q?D5DXXMKoQhuO8F0NdaH2Dv+3MwnbYbxYAHgrZbuTCbrru+Kj9yYp6NtMz9qQ4Q2xn?= =?utf-8?q?xLYnhapu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6B2OI7llP53PlATymh8uoIA=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ecd4e5ae-6e19-45ac-28da-08dbec3a1663 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 15:37:23.2710 (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: KlnLeQqEqGYRFVFwEVsngvo5KH0xI7bEvhKSNX6ChPj5JrZ2P8t2WkaE8lcQ6IVOjwuK7vWC2WHB85i6uvWuBwub9/AYHC9Co4YYnUwRon4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5599 |
Series |
usb: typec: tps6598x: add reset gpio support
|
expand
|
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. This series adds and documents the reset signal management. It also includes the basic reset management for initialization and suspend/resume control. Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net> --- Changes in v3: - core.c: added TPS_ prefix to the setup time definition for code consistency. - Link to v2: https://lore.kernel.org/r/20230912-topic-tps6598x_reset-v2-0-02a12e2ec50a@wolfvision.net Changes in v2: - core.c: minor coding style correction ({} in 'else' after 'if {}') - ti,tps6598x.yaml: reference to the device instead of the driver in the commit message. - Link to v1: https://lore.kernel.org/r/20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net --- Javier Carrasco (2): usb: typec: tps6598x: add reset gpio support dt-bindings: usb: tps6598x: add reset-gpios property .../devicetree/bindings/usb/ti,tps6598x.yaml | 6 ++++++ drivers/usb/typec/tipd/core.c | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) --- base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86 change-id: 20230912-topic-tps6598x_reset-55e9494e8649 Best regards,