From patchwork Thu Aug 22 22:01:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Swenson X-Patchwork-Id: 13774261 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2074.outbound.protection.outlook.com [40.107.249.74]) (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 F2AAB56446; Thu, 22 Aug 2024 22:01:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724364085; cv=fail; b=Lnz3YDMDytMZNdcbDIGiQW6VpgQ1XJEfxP9GLsm/ZYb/yaEFRVuEUpkGHuDEQqwOZaqbLFOk6TI7QAmTEyYa8snnhNM/r4CEiRiA7A8/pvQ61zWbjZPQcPHNWqQvwGRjCUhBRMULwcoCMJbl0TCd948oAyAQ/taJlgqXioGYdAg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724364085; c=relaxed/simple; bh=CvHDmBqhdc1YayKXQ77rcunnaVti7/DLXUEvnt9kr4I=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=d7FIgOuXIhjlJLHcMN4ZcHdHi/39o7BRgfPM+4pNi33vnkmwfDZoZZkakwBsW9NCqxqxW1Pc2ZbDPmNER5udkRwAKouJAxOOEmBmW43R6kCXx5C9unFpZCufjN+uu2Mx9B/BYPC0402rV+SCZOi+Z/CUU4+fmb+7N6DsxTuojY0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=est.tech; spf=pass smtp.mailfrom=est.tech; dkim=pass (1024-bit key) header.d=est.tech header.i=@est.tech header.b=Vx63iSmB; arc=fail smtp.client-ip=40.107.249.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=est.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=est.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=est.tech header.i=@est.tech header.b="Vx63iSmB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LuGafOlWNm6aWUk1cgrOrgbReXvvKd5fZRyfJrpazgX1KIwG97OuVxZgKqKfJ+mVDryBLfUMuIsrOtn0M6snzKYA5laY1+JawvGhlag79HhR6drP3qTMLmzVDBav4B0ALzdgZmXzrVpMUABffY+JG3Z8GzRk2ld+nQOvseXkXiy0jGCR7NTUXA5phc4HtdU7fM3ZVMziqoA5qCzzJ3h8uSNmjogW5lsVFFBB+NKTfsYz17XY32rvoTML9coyaz5OGpeOJ66abyqKPrBbLsrVHJxaqhf0byawP07LSpCEZhudyUxo3yedxUzHve428uA2Hd+/9cqhdfuTaa5AtyZT1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=CTtsVMTgqMrO5BdnBFhmpidOl8stuihw7kfC93r3ytQ=; b=kDPv4OCZSkEHYNUtRDT7CS7mfvc4ooLonmnWvyJm6xANZ/nSjmqOuoreba2fBXGUe8sPeBigNFxDQJno+FhJwaDllXLSbQdQKTMY/DJVPlVy3wmlwHyrKlK+cOlOUjBwr3XklVWUADG8V6tmFQl2iLmOTkBgh8bj2qJ5z5GsV/z9aqJWaJVLy4qN9kqjmT0DQqKNguRre2z17S19IgHfZTS2/p0GxAm825LfWbCJWy5i5qqZ9ZAo7pxliiWpXr8BDZX65+WrQOCKpl/91+hbyCvku20c89uV98UNHnWt65RV3fwRJCq1QeFTdG8NDSJelUuVaA+5nHp7Wleuj2QBMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CTtsVMTgqMrO5BdnBFhmpidOl8stuihw7kfC93r3ytQ=; b=Vx63iSmBnLIT5NgHRdEPIe3vNv5x3pWjVRmmQBPDrS/8RIs6t9tAW1slC/WxKiwHiNUi1H9cZ/wFWnAUhDjPidK6+HbjiINqELxna/EuQyIEdYnbInZRT8q6heL/JXASFQah+vKifVORXQdNorGkjmbEVUU2np/j7V/gEtrRcwA= Received: from AM7P189MB0807.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:115::19) by PRAP189MB1828.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:27a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 22:01:21 +0000 Received: from AM7P189MB0807.EURP189.PROD.OUTLOOK.COM ([fe80::53cd:a2f6:34be:7dab]) by AM7P189MB0807.EURP189.PROD.OUTLOOK.COM ([fe80::53cd:a2f6:34be:7dab%6]) with mapi id 15.20.7897.014; Thu, 22 Aug 2024 22:01:21 +0000 From: Kyle Swenson To: "o.rempel@pengutronix.de" , "kory.maincent@bootlin.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" CC: "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "thomas.petazzoni@bootlin.com" , Kyle Swenson , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , Krzysztof Kozlowski Subject: [PATCH net-next v2 1/2] dt-bindings: pse: tps23881: add reset-gpios Thread-Topic: [PATCH net-next v2 1/2] dt-bindings: pse: tps23881: add reset-gpios Thread-Index: AQHa9N7Sr9C21L+L6UCVPD2OAYDzUg== Date: Thu, 22 Aug 2024 22:01:21 +0000 Message-ID: <20240822220100.3030184-2-kyle.swenson@est.tech> References: <20240822220100.3030184-1-kyle.swenson@est.tech> In-Reply-To: <20240822220100.3030184-1-kyle.swenson@est.tech> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM7P189MB0807:EE_|PRAP189MB1828:EE_ x-ms-office365-filtering-correlation-id: b2d4584b-93b9-4b63-1ce2-08dcc2f5f4e8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?Sg/nZeUamXenYt4r7KL/pT6//q?= =?iso-8859-1?q?O/yq1DL9O6D9QytQXhvXJGxN/MLSxdvLIAaet+07qYSPQr8JNee2ooXsMEBC?= =?iso-8859-1?q?aEp1/7AhtXMhJP8WitVZ0GWk052Y4CbzHUv/Tm5aCF072ok27JHc+HGOiO9L?= =?iso-8859-1?q?Eu+ncMVm+40S40FNy9oSjcfyf2I0zfPsGmc2+s7+foyryziURkt8btZfeEWV?= =?iso-8859-1?q?wVl4wP/MxK0Wz5eip78EhVxUUOeVSp1BX/utyxVhpkFgVnqbOloF4c7tW/q1?= =?iso-8859-1?q?qakh95Wf5LEPA3HE/+22nmvO8S0RqeBbMgHOAcgIcDs6/GxYzBb/ngN0lQ4+?= =?iso-8859-1?q?SySzvyhxP2swg8fDrfLZ1Xj5UDz/Oq1339zYYETBgXr3u1qKim+2a95zQbUa?= =?iso-8859-1?q?fkONxxNvrWrcDfAdAnw6fDx37STfJC3/obVqtsRf3wyWeRkxC7DWubhrD+sT?= =?iso-8859-1?q?bIYdVvRm4BRzC7p4tPIB1bsX/QgVIapvvtKpRZC0JXluAHdXn7yqnWQ4D9UJ?= =?iso-8859-1?q?6pZpTs/d1MXPQrCenkKcDpLdi16V1xhADXwhpBVyeTpq6pcWSloledA3qiTU?= =?iso-8859-1?q?mIld3MXlk90ShIK9tF1Tbserewlg5t7PwjHk8ACPzIIjtkKR9mUlskrcPq+Y?= =?iso-8859-1?q?z/bH97YNut/zXpE2CZvzRug2hpjShr3+q4yWO2U2SckPxnL+NeQMWPJSdlxZ?= =?iso-8859-1?q?Csl7lsKv0RO6jf21myEReY9N4TmR6lbNJYYtbsGG/mSF1U68CrXNXbQGOrog?= =?iso-8859-1?q?zHmgK3JRdEDj+AKln7/axCf8xA2bQjnUgadxSl0KDlsb6MGzhu0nrCIEpaUM?= =?iso-8859-1?q?i9jUnVfuMMjkWSJTYiIWgGsFvH2QszEngTlvLBepZKQxRlY6avuhnVu+eo94?= =?iso-8859-1?q?4BvyVX+ANs34PwY1r8A0Qg9w46PDhyIjVbEoXkrgXjg/hSAClYHayG+0Hqqu?= =?iso-8859-1?q?lyRCrFq5kfRdeskRJ4rpnH6iJcfluiFbMZ6LeSU/i9HBN8k094wDPeks/zhD?= =?iso-8859-1?q?8k8YBKe7CuVXMt6GtjULWYq7/NX2/Hs++w2zcOxpvoyaD3Id15XBAObQjEBW?= =?iso-8859-1?q?21hGX78c6ZgnSYEAKwQ9fcyz7JUqYBEXftsQRyPVnqwAdIbOMMf5Roxl2HTc?= =?iso-8859-1?q?8fhRBiehS7AzBl4luJip089opapp6I+KrUJIvanTSSYFW5b7fDKqsLhymgXZ?= =?iso-8859-1?q?9htmtvJG3rro8BoqPHTxmD3GRBL7Rx/a8zDU9MZjRqVOu6q7u4TN8rH2UALQ?= =?iso-8859-1?q?tXvC81QdvvBfMPdWVoEipsP0WqbYnHUC95+/1/gD8qqRsnxIhMiph+/bPrW2?= =?iso-8859-1?q?lIWwv3GXjT4sHLuDCZ1t+QJx+crQiD/RegteqWXTqybRxb6tBss08qT7au5a?= =?iso-8859-1?q?kmSvfhskazTTRF/s+I/NANy9TuKHiqYIV+WVNmPVE0D1wl6GKUsefnDJcxN0?= =?iso-8859-1?q?/rnURrnGle60/p7aoxko1aFw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7P189MB0807.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?H718l12NFRk7xBHjzVAYUtw?= =?iso-8859-1?q?XEJhFysKhn5fFuRhrQ1rjZBRebf7fKPrmeBs8/YewKCkDNkPDiTQKF+NGkK8?= =?iso-8859-1?q?NkUouDJiDgUWeKbbgsJDL4cYpGdeB2MGy/PAV9Q9wIYYrwy9MhZkeqEsauNP?= =?iso-8859-1?q?fQEQst+vaY6qpHlNV65QbnzVtIZ+25fDBCj3pUtMR3zUcYDgZSG6efWNLf+f?= =?iso-8859-1?q?fxc8Jc5R8m6caOJtcaxTuekyl03uvaUvXTCoPUsD4DLRZ5W5h2Qfz4+Yrizj?= =?iso-8859-1?q?tY3BowzSSdcaEmew1Ce336p0KPfWfmgN8w/cx2VUe2Mctdo15l9zUUHLw+LP?= =?iso-8859-1?q?ubmpfi/pnTkUqmC8yAYaXwbyUk+yRnb1VALs0evxzlnCdIdpCt9KKVq7KrwY?= =?iso-8859-1?q?AK4r/Lxp6wybtGhGovHbLBVM+CBQYTNrDxgDij3e+nGhKctgTu9JsYHYiDE/?= =?iso-8859-1?q?6IMm3cOZ13ARhsME2mKRO7P/efUEJW5SXctGjhr9e3P8F2KFSYGSUiZjaRbB?= =?iso-8859-1?q?05tq3Ax8wF1yq7eg52E2kBz+f0L/EEGDkX0iwpmB71fZMaBOlggg/Vawo4lB?= =?iso-8859-1?q?QxpbukLBfnlnzqKrPjJx6qhGWYf/eLlzCEwRdmVARq1rvPJZItBu4z+8Delc?= =?iso-8859-1?q?j3Fy7Mh7N60IyltkvCa30h5UvCD5qIQqtXqB1+ez64G6deP583/mMQ6mNXD3?= =?iso-8859-1?q?3XT7v/o/8poxnlDq/UfwuijA16trfSGiSCuT8QhGMTg5aB2F7+Jz61d5g/VW?= =?iso-8859-1?q?u4w31GnNBGIDe/VlkTwCQLRQphQ/d3Ztfys1kCAAjvY1WZX4FuNCqbOU+G1g?= =?iso-8859-1?q?lPjNjbd4pc5UAoCjpFVbTzgaK85xTjhxhdB2+7PSUp9Ps0ffJi2cWVXm0FJi?= =?iso-8859-1?q?q7O5C2VHs0USuwQ/Vk3ralButqjISvPiv7VjYTdwYa1cndZh5UMXOSpj8cLO?= =?iso-8859-1?q?G5QCnolRNHCbZSh1n3it5ZLusDLw9gVhCDaDcyD1UtGqZpOTqza3qdmjPy5c?= =?iso-8859-1?q?2LYrHuGM2lsNhDL3GxVP7GWKopG6tMF72lX7M3bFbl8g6+m14/CHSE5395Oc?= =?iso-8859-1?q?7bqzKTFT5usTYOWltXkEj09MbtF5rG1gQY2Bg7ZzF/MsnvDNzZzYQmb97bkh?= =?iso-8859-1?q?spaBNVhFuhvIwzFTusOBzRayAGYA7v6qU7uDQS8BoQDvZ735pcmGOATVhx9v?= =?iso-8859-1?q?vsGORwPUvGoDPy9lD0WBbYH3o9BV8p4mOh9Isnh6lBz2ma1Z7qRYYCM+udYY?= =?iso-8859-1?q?i97Tv0Aj32SEQvUzR6KNPuiCFi50nRdkTMeM6ubyJ9Vd71mPKOSijSGqoAsR?= =?iso-8859-1?q?nkYo365hIW18eFbrSnGvCMFsBZh/QiHbBn9tD5wY/92ykXk+acW1KB8eHUFK?= =?iso-8859-1?q?jRv3uq6koM0hOQT5mPjsxruQltA2xn40z5ASUOwlTXSpf23F4NB+MBcJmhs5?= =?iso-8859-1?q?wx8gbF5uyvh6j+6eLSa1265UWzUDN9WC8+YufmaztU4+z6iYWqGhrc3u6Tcw?= =?iso-8859-1?q?7Li3QvusDclvmdrW5Hu/mswTq/B4+tq9YTq1J6MtYKaqGBRJAbPFCFO5P+W5?= =?iso-8859-1?q?+oRZnFZw0ui7ZYclEfB/yNJTnmXtmshCdltoT9Oz/CVInRd9GGHWph+dYffq?= =?iso-8859-1?q?Gh5333EARg4Jue6hDn+J7HrElhe9GH7YvjLmAjQ=3D=3D?= Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM7P189MB0807.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: b2d4584b-93b9-4b63-1ce2-08dcc2f5f4e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2024 22:01:21.0812 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KUkNWtQf3zSZWG79Og/+JybNLM5s28mgkO73g+qcpJ4nbiL6TIIJdyFBOd+VOtBK3cKT8WTCqhmR3M6qghQ6iA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PRAP189MB1828 X-Patchwork-Delegate: kuba@kernel.org The TPS23881 has an active-low reset pin that can be connected to an SoC. Document this with the device-tree binding. Signed-off-by: Kyle Swenson Reviewed-by: Krzysztof Kozlowski Reviewed-by: Oleksij Rempel Reviewed-by: Kory Maincent --- Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml index 6992d56832bf..d08abcb01211 100644 --- a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml @@ -21,10 +21,13 @@ properties: maxItems: 1 '#pse-cells': const: 1 + reset-gpios: + maxItems: 1 + channels: description: each set of 8 ports can be assigned to one physical channels or two for PoE4. This parameter describes the configuration of the ports conversion matrix that establishes relationship between the logical ports and the physical channels. From patchwork Thu Aug 22 22:01:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Swenson X-Patchwork-Id: 13774262 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2074.outbound.protection.outlook.com [40.107.249.74]) (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 C608F1D1F50; Thu, 22 Aug 2024 22:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724364087; cv=fail; b=aijsCcrEwyaowcHC3OdY8uPzrD9VWR6Zi+ldZuDEH/an95RDsb8LxnZhpQUWWj6OpYIZGJ6fYeW97AFYJSv+TZxOHCPCrFZwynKBz2q6crko0XAmVB1f/hLmCaPMZLCpuNfsz3DiJJvtHRv3xLMl9pDQ5X6A7BrpochbRtUgcRM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724364087; c=relaxed/simple; bh=xLbJpuX9HhNR0ZV7nGzIbn+qa8rhRWpmZ/L+/G5WYUg=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=V03nZvHPeBFkcJRZ0xNihKgxNyStbWwePKcXOIqRxPl4016TN48Rr5s9xRK3gz/G/gJvHSsrwTQZE2d3uZ7T4iReBxO8UbR7PUySb+/xbLAvV5D2EtcGjcgJucvQZWFYnjGdFcaf1fwFlm7gjhGnL8Ikwof6GkgLzL08eVT+gfg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=est.tech; spf=pass smtp.mailfrom=est.tech; dkim=pass (1024-bit key) header.d=est.tech header.i=@est.tech header.b=ayQA1A7j; arc=fail smtp.client-ip=40.107.249.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=est.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=est.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=est.tech header.i=@est.tech header.b="ayQA1A7j" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wS0wLU4S35gjUNc4Ad8rTW3NOc5L8KvuFWv8DUERg317HC1mz/VcsIGRlyGXdJFKLqVYWB/3tl6UxXQeEeHV8GMtXbHEt+QpVHavmJQRC+ZXpqNpB5kYPpgN8cEHBMAcnTaat9zeesKTKAe2kOB8tj3+aPsZMl05dyb+VHuMsA78vWINV2ecHkshW2BIh/dH0atJjZkOYcmWgH0pUnfZQWSjLgiaDv3aot0SxlJps5wOdwUpBD6M3hBE1eD0DxpbHsO8iYX8sl7dcCc6nfEnVcNjOwbvyW1ZVz1HhtgbsaVmiMPosdQbDw7NUqx4RV5ftaA8mOWXRzTXZF+aMNyP0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=M1+c90ViFgnoHYXSMmljfEgNQKRL7U0g9sqAaPhSrrc=; b=Ia1OZqcQByxkrH5nr2thWr4QESO1fEfMQ4kPdHPGXm2oOg6FPavTprpVNScwn8K9yRKfX357NdtonJaXglLu7c7e2zZ/fHpH16aV2/vsFe2DOh9yA21HO9HwJyz5Wj//S6jutwYSBecbBzFK7LUDNQkDKwMsydAVxTaIG/ZOCg0Og3KvZ7upnj257QuF8XvQn/9+1Gmyui1tSjE+gNSqgYyI+66CjeoFyIZb2bsMwvdzOg0Iss2Yp2c/W8FeaLKNYnFBPshcZKfHa/KEy2Eh+es/7JKeGMNSb+jax9Qv4K9a5kuBM9fBkX6NBUDtILyJTbhpe07rp9Rzgp/cxBrz7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M1+c90ViFgnoHYXSMmljfEgNQKRL7U0g9sqAaPhSrrc=; b=ayQA1A7jihzevWY7lWzsmqAcotYZOUITgYqZXVvo9vxYaxPKdSGI62Ki0rhzpcvu3aysGzpLgYJa193DpUOygFmk2J/msZ1gdf6AMTQKqgVHfmy987LKWbHG/n5EcZBCET66zgrd62euXDmoxvCgpsnnLhKCX4Mpv0H56bYOPeA= Received: from AM7P189MB0807.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:115::19) by PRAP189MB1828.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:27a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 22:01:22 +0000 Received: from AM7P189MB0807.EURP189.PROD.OUTLOOK.COM ([fe80::53cd:a2f6:34be:7dab]) by AM7P189MB0807.EURP189.PROD.OUTLOOK.COM ([fe80::53cd:a2f6:34be:7dab%6]) with mapi id 15.20.7897.014; Thu, 22 Aug 2024 22:01:22 +0000 From: Kyle Swenson To: "o.rempel@pengutronix.de" , "kory.maincent@bootlin.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" CC: "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "thomas.petazzoni@bootlin.com" , Kyle Swenson , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH net-next v2 2/2] net: pse-pd: tps23881: Support reset-gpios Thread-Topic: [PATCH net-next v2 2/2] net: pse-pd: tps23881: Support reset-gpios Thread-Index: AQHa9N7ToI4XRfgfPE60nFrdlScw3w== Date: Thu, 22 Aug 2024 22:01:22 +0000 Message-ID: <20240822220100.3030184-3-kyle.swenson@est.tech> References: <20240822220100.3030184-1-kyle.swenson@est.tech> In-Reply-To: <20240822220100.3030184-1-kyle.swenson@est.tech> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM7P189MB0807:EE_|PRAP189MB1828:EE_ x-ms-office365-filtering-correlation-id: 5b9cdd57-2629-4e03-be97-08dcc2f5f593 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?cSfKsSVSLTnbc+HPT56z0xyKTX?= =?iso-8859-1?q?4dpyK/YY4dZGb0YqnjaAzyu3OQo8cBEP6cfLU57oA37LuQN944wbz5rAELpD?= =?iso-8859-1?q?rcarLsTZYOzjqjJ39AWbv4SaqtP5AMXS3XLm4TRtsomkRHpxHZ1BN7lZ9yVu?= =?iso-8859-1?q?qjHUjv5ZH0y99yylPe/niGdKiWBjzE2l4ZYvf3zRkMSz33FPyvu4dyNPafV9?= =?iso-8859-1?q?l09s2dERjEkpZI9mZ0cC3ppXoqs2Vl9RltpOOP7YpSjWo2THY4Cu3MSrVgZi?= =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4FxxUrONFhqZkvlkD3YA1/Qzvy4Ig5OQRLSAXGFubwXtf?= =?iso-8859-1?q?Sb+OrxEJh5cvXjU44Vi5hgponhbNHQEIg2c/2IS5NA1gSwyqnhFwaiArUUWm?= =?iso-8859-1?q?VKDZVUXwGN2BywUzB4SgZ9ChtpxBwt2HDYpfIER2WJIlKS7wDZEvuU4qPiJq?= =?iso-8859-1?q?J0qQ1PQUJh4cmNvMWp8mlfpAMqextSAHg+Lso1q73c5xO4gVSRi09JT2+nIa?= =?iso-8859-1?q?kEC1ovcG9RikfoKInQuLDHomXcKDSRddfSPk93CWugngQ08NNmBcGcLiCDyS?= =?iso-8859-1?q?UiaHBsYu5GvSljKTxu2gvqdw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7P189MB0807.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?k+82PZXaHGHX+C3s/IhKY1b?= =?iso-8859-1?q?yb8xrkzDXg+zqNjqNQcUuRobXZpEjsq0JO+5grKBBDP0+qd7WwgiEAu6/kfG?= =?iso-8859-1?q?lXX0tXdBKHD7lPHJjsZrHGUwQq/IxWSWc1p8nQny3B3ZmHYvNyaNMGrCTw0W?= =?iso-8859-1?q?y6te07icfCLBhLOId41gxTcWHOrE2vhIrbcsYRwIR5Poe14dAMaeKCeHpswA?= =?iso-8859-1?q?R0mVvN2nD+4YvThFFi054Z13U23jy2pipB5vsET2wne6NZ+U+RsuJCOrvXrz?= =?iso-8859-1?q?6Z9AAknZ4f4weUH6OO2ZwqCUhB/GYhybDbgfdw0nHwYZhdKI1as8n5DFDZXc?= =?iso-8859-1?q?T77bUn+RISFyvCLElVH5a1H9fMr/S1fTYyvRztHyJhvEd0G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q?o+QxnGDvWfpODKOZvADdwQ+t9jhDPaaGwFC/PKOhfD7i7700hg3FXW5egW54?= =?iso-8859-1?q?1B9QkzgbzNnwKbgV2iUUkXcWvUXIknO5p3PF4/2OwasKXbii1bMgE7oPS9mz?= =?iso-8859-1?q?LqdfCRJ4xLNE2CgPYFHi4OX8MBSBTv2R4xHrZmfsclbDLjqse1Caezz2e+04?= =?iso-8859-1?q?aOPcbxKdM/9gCRwSPgo0Qjncr9zxgL1jMGy4YbKwCfB1sex2dayiIuPDoQfv?= =?iso-8859-1?q?FBTkiLE10I76Ul6vf0TkT5KEC9oTjdpAj4Yew+OhdCc6T8If3ldEptszgYsb?= =?iso-8859-1?q?UkhYY9o8IX1j0Y+0mdceybr+4lS8SOGc4ICLHncoBFR5x+CmcyutrLU4VCH7?= =?iso-8859-1?q?BVApWGywQ0n93SrnjLeBKCrKyV3tWIGjMbuA8zg=3D=3D?= Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM7P189MB0807.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 5b9cdd57-2629-4e03-be97-08dcc2f5f593 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2024 22:01:22.2114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qzAWgKrLxP1K3cgr3M3IAYoAiJL33OrrPJQerKrek7mqH9BTnxfkHtIkT8oucKvA10SksjI/tlxg+HYBmdhhBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PRAP189MB1828 X-Patchwork-Delegate: kuba@kernel.org The TPS23880/1 has an active-low reset pin that some boards connect to the SoC to control when the TPS23880 is pulled out of reset. Add support for this via a reset-gpios property in the DTS. Signed-off-by: Kyle Swenson Acked-by: Oleksij Rempel Reviewed-by: Kory Maincent --- drivers/net/pse-pd/tps23881.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c index 2ea75686a319..5c4e88be46ee 100644 --- a/drivers/net/pse-pd/tps23881.c +++ b/drivers/net/pse-pd/tps23881.c @@ -6,10 +6,11 @@ */ #include #include #include +#include #include #include #include #include #include @@ -735,10 +736,11 @@ static int tps23881_flash_sram_fw(struct i2c_client *client) static int tps23881_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct tps23881_priv *priv; + struct gpio_desc *reset; int ret; u8 val; if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { dev_err(dev, "i2c check functionality failed\n"); @@ -747,10 +749,29 @@ static int tps23881_i2c_probe(struct i2c_client *client) priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; + reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); + if (IS_ERR(reset)) + return dev_err_probe(&client->dev, PTR_ERR(reset), "Failed to get reset GPIO\n"); + + if (reset) { + /* TPS23880 datasheet (Rev G) indicates minimum reset pulse is 5us */ + usleep_range(5, 10); + gpiod_set_value_cansleep(reset, 0); /* De-assert reset */ + + /* TPS23880 datasheet indicates the minimum time after power on reset + * should be 20ms, but the document describing how to load SRAM ("How + * to Load TPS2388x SRAM and Parity Code over I2C" (Rev E)) + * indicates we should delay that programming by at least 50ms. So + * we'll wait the entire 50ms here to ensure we're safe to go to the + * SRAM loading proceedure. + */ + msleep(50); + } + ret = i2c_smbus_read_byte_data(client, TPS23881_REG_DEVID); if (ret < 0) return ret; if (FIELD_GET(TPS23881_REG_DEVID_MASK, ret) != TPS23881_DEVICE_ID) {