From patchwork Mon Aug 19 19:02:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Swenson X-Patchwork-Id: 13768879 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2089.outbound.protection.outlook.com [40.107.241.89]) (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 002C01D54D4; Mon, 19 Aug 2024 19:02:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724094139; cv=fail; b=aAfYDi5WUGioqjjvSlWBi/KIm6XfTl9lEA06ZSFYHnqzkqu9EZPadblMOgovkwHuti+BIvDSJNq1etcVR4xNzZ8UCzh8RsAxJ5zUwMcLtxVYcpjaXoyjIy9uAocZghbkWubsKzpnMDLhEgVBZoWsRkCnRHvqVIdGuQ0JS6gccU0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724094139; c=relaxed/simple; bh=WwXsIjF3q0d5Zl1JBFHmQ2AM7DY5WVioix+ALE/iznk=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=TLp/CaTypVJpWy1Hd0W7598hZpMtCvEqupcRv4czuHer6u/eofvsJwIAsy4lDe7cCMAimSNq+9lHmk3zTMogvbyUkcwRd3hvYJqKx9DZrQyVGHzqm19NOXzBmzFmgWJ/zlPHcpoGOa2hPCt5qbw0nVbufDU+XtplsJy3KKp2jMg= 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=TO8pYvmx; arc=fail smtp.client-ip=40.107.241.89 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="TO8pYvmx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NYaf0mjaBny+n1nmVPTcg90Nt61j+MnMWtMBrmdizE41ZjlOU9cieX41KVFtN01uMYZccefe7p8Ie6KKTrC8uWFR5iMDS0JdR3P53YwO6ec1yIxlaJnFYShHLeTFxPInhiHG8ULzNIZcBhfoL1AAP410dQKfub4KBuw5nHfSDTMAuY0JXedWP/Df1ynKlIHI7Nd2iNjVL5F50tZrvIKw+JrQMAbYDU99Ks5eGYw1CkjC4dGfV8OfiYU6F3tRiiS3uZN18qGvDMYgXjx4DqLxAykmwboWKT175wyYw3E7f+vBk2pe55PThBb9eTu2fMsDEaLbP4nBXAX30SymPQ0tmA== 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=DmycmqGR/WgZMgWF1BDbq/1m8ggYkroPndvnYwNpYBg=; b=IiMkrOOo402St55A2Evjvhq9wz2DQ82Oqyx7kROWa0KJyqqgj5wndgqnG1bsvGl75km4M34iQ1MuRWc2GlvUm1tGZ4+refot0tYccJUqpiKYW9Ki5/cUQLJOgyRBsVd90YddFdUdN/rI2Gs90fDAzUo0LbcB2FkaS7ex+8QNUEIfa8TyaMPFYvsSxFzajtOrUmNe8FyZ8y4mSJVqLB57OSyoMyYrA0Qs8KMAFd8NBQImAXdeBKYRl9cR/ib97/+FK5HQkurO+xBO/8tJDsHXUUDhdywW6/a622SgiR/QkfqNIL90hjfkS02J2SW6xGhIG2sjMMrMgWjdBjvpsT5/zA== 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=DmycmqGR/WgZMgWF1BDbq/1m8ggYkroPndvnYwNpYBg=; b=TO8pYvmxhCQkCvFxsqFfRAdOpMpm9W4ZT6XESSA48s6WQXvTQ0ciUP6Cu6/PgljD8alEYCxUqG4Lzq0C9XY+i1NFiqg2KEKItjRZfw6wvHuKCZuksSQqJNnf0K9YvY1utzuQx1OulfrpOmbH6eEwLpe7yFVjLmmrAMC+VOHqEww= Received: from AM7P189MB0807.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:115::19) by DB8P189MB1109.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:14a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Mon, 19 Aug 2024 19:02:13 +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.7875.019; Mon, 19 Aug 2024 19:02:13 +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" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" CC: "thomas.petazzoni@bootlin.com" , Kyle Swenson , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH net-next 1/2] dt-bindings: net: pse-pd: tps23881: add reset-gpios Thread-Topic: [PATCH net-next 1/2] dt-bindings: net: pse-pd: tps23881: add reset-gpios Thread-Index: AQHa8mpN0YpdDvrWdUeonjfwn/G2Sg== Date: Mon, 19 Aug 2024 19:02:13 +0000 Message-ID: <20240819190151.93253-2-kyle.swenson@est.tech> References: <20240819190151.93253-1-kyle.swenson@est.tech> In-Reply-To: <20240819190151.93253-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_|DB8P189MB1109:EE_ x-ms-office365-filtering-correlation-id: 30938793-857e-4768-6336-08dcc0816f94 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?kYSfyPUKyYaGti50I1XoduYZCs?= =?iso-8859-1?q?GcGOQjSjC/Wlq2PTICdjLA6WIF5qG2CxoEL4TiFSTgg0Mi7+L85ORqjuI1cj?= =?iso-8859-1?q?fhNfknHdGgnMqRu/4faU0w7w3opxKfRZAShsRaxEgGdkg9ujHTicDDgMHXKT?= =?iso-8859-1?q?qg/IC0Fumm9jjrCUZGvj5tqqqyEwEGheNGdU5quvE0R6KS/z5sY/y9H0SN0N?= =?iso-8859-1?q?Lj9ozSSvK6H6jN2+R6CA0aqx7faG+oW0dSGoDSPNqNkkHOL2QPShE7qCyAbG?= =?iso-8859-1?q?qrVhFhtqG4Ig947RS1z9OgN97hx2q6kulTTnNm1LeHV/SjMpLE0MtGg23aYN?= =?iso-8859-1?q?4HcbdjspiM1fpdN0GzbcfvG/OexX/PaX1GfoNn8mkqsVJ/qUy0HKV6U/r4/p?= =?iso-8859-1?q?Ch9XkTizHmnX7lVpjbWLnHn3s7khL5QZvQfBka1kW+v3AcDY+HlSU0M96osT?= =?iso-8859-1?q?4ZJ9jA3+8s8N8nXklGXOoY4vLBP/vLWFwIWCDOq5tMZ+6d+/oMHcma0t41xD?= =?iso-8859-1?q?ty/TXyvYhMTq6kN6mSD6/MZhKFqal/EXFBXT2vj+bx1xC+Slkul/OSc5Bex6?= =?iso-8859-1?q?BsvXKGRYzwZB642/5lBqTRl2DYIPKPAv3c+/RxFxBZQtlyyFNGbe/VY7kfUq?= =?iso-8859-1?q?EsH8vqANsv8T3OeHPxtP41LZGdjeSJJY8NhWXxUG+tZzYGD2+I0Zo3NFud3S?= =?iso-8859-1?q?Px2pXlr0VkW3vDSyI1a2UkZaKWzALTyX/pLLGM3PEGrMeZf5kUzuSE6HpAJ4?= =?iso-8859-1?q?w/SoHeFUvBYIJq0FhSfKKV/Ky/K66Q+C5BtlnbjEZEfOnIfpZGp3GqUNLEOM?= =?iso-8859-1?q?CE5HitZyG777maiaqJwNoNXr3YpOPVPrWv0A6TaLLc+saorukDyn7DZ/9R9E?= =?iso-8859-1?q?eXCl9ND02PQRK23CE+m7zdcBBcOk+mHPt6U7mOo55M65LmbqWBUDdFqsKGQW?= =?iso-8859-1?q?MAdhGw6IaIXTRTyhoOtMt+7/MUTfI/3EKxzRlZ3Zw+nC2OJpQ1x4R57PC7Tf?= =?iso-8859-1?q?79QavkcQmo8FyMgl/v0HXYZJNLFcNpjnyAYXaR22CEsyuvd73H364E9IJhhp?= =?iso-8859-1?q?c+AM1Z0urPh6iKo7HELWHaXcEyx5dbf3PumuHiohvb8ZuRQIuVOGpB/XQ/rv?= =?iso-8859-1?q?c/foqYQTZcKMmgVnGrzO0T7hbMBv3P3ys6IpWUbzqKFQU7DkCOt7LniGJ7pz?= =?iso-8859-1?q?taeFlMHcSeT3vxam0JID7tjsyZmtdUgYvuG3iuG0dg3Dswt8REod26b/w8f5?= =?iso-8859-1?q?LI9KcVqyU1mxAmp4guNNuCLaAo/HdvWcVq7pQfHUJx5HA1tU64StKBv9BaNV?= =?iso-8859-1?q?bcfgFJXRlqKZQ7iF7GlgpiENK+LDwdBvr6p1S7FaJ5N1XXsVCHDRt8Kk3B1O?= =?iso-8859-1?q?jJzSEnosJ6X5mz+IM9PnYXEt178V5fSv4sBt3uiDTf5eHeSaigOaO2n2Efcx?= =?iso-8859-1?q?QhqVkXosw/Z3ANiEBqrmBUmw=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)(366016)(1800799024)(376014)(7416014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?33c8wOFn3UqZHlZzp2dXxcM?= =?iso-8859-1?q?sOsJ4boRkTN5e+u/SrGM8YLC8IpRnDh7tuZU+NDoyqQcPjURuSjsq3Bn8uE0?= =?iso-8859-1?q?wtx44wGqaq/LcdftifbT7hSN1mM6ZUV+k3QS0Ee/akmO+h2YmgerrfBngjO7?= =?iso-8859-1?q?fX5y91TEn/7r9sqge+krnjVrEYx4NKhBE55auYlOKJktT8Su0q11BLkMC7pb?= =?iso-8859-1?q?lZMQt2LUUgdiKCYF+g86/ZgOIDpI1Dla22NqE053HMXlTKceexgzDuTuRM6z?= =?iso-8859-1?q?3LlzAprHIlGckawuxf1YMP9jdnzEVhXe1E3mabvp+hnJjGXNGjfsUfJlFMvU?= =?iso-8859-1?q?rbTcJ+OHpoU31ETEHlThxe+lska7zp9pMDxrLqugtYzuaj3yHXOI7FzcKZi3?= =?iso-8859-1?q?UxjJ9R2WtBJ+ZVG6RJauAOq2ciYz9e58PQxMLNKe8Bpg7Td7UVs6/bniXMal?= =?iso-8859-1?q?rCQmF0vkZnXOmLOWsKj1KxnWng9LAquZjUfxEI8qWS6ok8rlu163rlH3Si3q?= =?iso-8859-1?q?+q3ishfRizkGJXZrKZXCTpXKMgiOE+dYUbEOfMnkkzoYjIvwpFBn24Kxz6Kb?= =?iso-8859-1?q?OiKu+VMrw7WjSmyhlG052e87CjGqnwz6o2bbOpGL4iaGVrZCO+CBCBBEnugJ?= =?iso-8859-1?q?xhtquM8nD82Mp3SrJ5majVDi9W4D+pRn5fXg7UpkNcF9GYgab0T9FY+c+Lae?= =?iso-8859-1?q?K2tmg/g41Ljj6T3Lpwx+MGCqkVedglQ+jFCOf7KsE4WjFlrCuPihwf4beg3a?= =?iso-8859-1?q?uPhSPjif8fSblaFF3Lly40P3U6UX2S3ixMFPSIA6ek2rF27Jcg+3IWRqzJjh?= =?iso-8859-1?q?mPO92T4+Tq65fy4Sv895nPRdsC3VMNVJGDwFz3G0G+/SbDjZzLbBLV4JnChM?= =?iso-8859-1?q?RgAnq6QaeHOaSDun4+ucfY3H1fpfkjSiiOgunKm46MWCVLMqpW0wEFNi3i8+?= =?iso-8859-1?q?ne1hIrd0JL4IflfpCVhrlv7vgTBiuW6LfqInjFNqIsISof4ac8cHqk7/hZAL?= =?iso-8859-1?q?/poW4uyhfT/acoj594tBvXbrmJqNEPKWEXA4SmTlxtUDXaKYmaLULsjm4YgD?= =?iso-8859-1?q?JBNMVYPHnKHilpbtNE1QktT/THP6awiA86KmqOTSBkMD/vJigT6HoiYjYhU2?= =?iso-8859-1?q?zR0a9NkTj6ffk3f+NV07wFU6sDtindcNiFu+wsXnjZZcTzKxiI8l3oaUPAW1?= =?iso-8859-1?q?/z2+rO0jsURs2WmU8ZGQGRuYMeV1iXP+lKExv3V3jPCjw0AyHQvbllYBPhoG?= =?iso-8859-1?q?NVWGrFNTT5a7wry57LTPTF+8kZBSxwW7kDYbWPcxAkK+0A0tcE0t4RRtw7vH?= =?iso-8859-1?q?UuG9v7Ms+KW5pnmoQQcomHLggzhnkPSVcfdKzKm0EcZSxBkY6gXu8qVufa2d?= =?iso-8859-1?q?9hA6f+amx4fASlNjJZCL5iZKSOAZj+9kRgT4fJXdPcmhuCfwdocz/mkWpzpq?= =?iso-8859-1?q?iuKa3Z6mY+JxzTKqOXrD3ZTYDA6/r0ASl1BFXSFbw0Eq6cH9IhAvfSrLnkQn?= =?iso-8859-1?q?n+BE0hFlYsq5FRNyoOs//eW5R0rDE2xIc9W/LqYkzx0L5pgRv5YqNcgrhWB3?= =?iso-8859-1?q?oOUWdiW6C9aioS/fElI8rEU8s0wKYl4QRqM97GbreRQhcVn3iwCZkCKObm7O?= =?iso-8859-1?q?Ah8kIUXOX7lxv0KMSLQn1qQ7lCzPcxonrJDjP9g=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: 30938793-857e-4768-6336-08dcc0816f94 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2024 19:02:13.4888 (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: hS8RIH3aF9iT26/UVNf7hkNzJl80TCZrZ/R0yj3RFq6clu7fZvr2ASeHLHn5Pj3eNauqaSOP/rGZLTBPKTo73A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8P189MB1109 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 --- 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 Mon Aug 19 19:02:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Swenson X-Patchwork-Id: 13768880 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2089.outbound.protection.outlook.com [40.107.241.89]) (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 D11011D54E9; Mon, 19 Aug 2024 19:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724094141; cv=fail; b=ShfwzO8BtUUB6jjpfoTrx5s03b+7FVRwNRjStFoaeQFNhLx4DLiih7VnPwWTOieq7wZBi2bqW+Q8or3fexg4YxIOBE0DaMdEIV8MH0r8IZu/dQj+jnHnXpqvokhj36DXi9CwrvLru0NDQct31EFx6UAfYuLut3j2cV3iMjlsJaE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724094141; c=relaxed/simple; bh=Lh99dE4MK8U55sy1Iust28fVOYrjw54Ue/MjH+6sC+M=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Hzo4RibdScwMx4OY6xskmoguM6ULKymZoC72SkkOQICxgt1LUH5i2iBBuF6MaXoIEml/nzLZ/WlhX1nMe9nQUpUaqFfpj/9ZrMoguyRIKPNxHSoMRGz07JlHaofn4YbxgzuVl425k39fMqnmhkpZ/6El6VSxMuAhSen3XYIHOp0= 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=iPinE0s0; arc=fail smtp.client-ip=40.107.241.89 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="iPinE0s0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Wf+SDKvE/0Y0V/hOxB/LNkv+6rbBPlWfiy1ZT8dq083rmyMkd90Vyq2HxTr96O0afNLqlAJLMhOmMsfc4lCCTBvU+Elx+QTe7tqU8iyqEyxbmT8aYNrBSqPByzVIhVKcu0i8JVtgexUVUWxIXOkkKwICtCqnNe26FgSKfliVvXRQwK2rIYKTKNmexiB+FpK4wRJ7sbcPb25fbCTvyaG2SSlJegCrslupRoyJljvh0EY83iDV19w4zcvFziquy9tDXDOWOn2us8EhDrq65MmcAk3YuFNSftipwzJAfbyzthMABWaHQMedXfTyESAXSEqxxbqHgyIBU4VwA1oXSAsWjA== 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=g8t2sOhK/EgDhEkXkg2zr5OGqh/T7EjbB1FiXqhlo5g=; b=Xt7lYL7De/lnwrHiAo/UsAR7GHIQXN59Ccj20/VeavaRSBCBvrfkNAw6dD9UCDNYrtd67DSViwX+W+XvSxkybWY/+VvEA3T0Z7r5P+T7CVoGSNWt5vEKfW4U99XK7QlpdKchNKfdcFotecUvLv9pwhxVFgzNa6lBH1/IRurU7vZMyJKCk30/v7vogCmMW9GkTChYp1a4HxqXt4CrQthpus3TbuCS58RQayalLwg+42g8FKR6hW4rIInNfucJDsEDruk9wsM3946kasCigbGbYvKALJ4oe3kWD6IeJoy4WG8Ja5bS+AeCfxeONYiwYVhTK2rI9mw1SGz8J51RXlrbMQ== 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=g8t2sOhK/EgDhEkXkg2zr5OGqh/T7EjbB1FiXqhlo5g=; b=iPinE0s0EWzvpJNPYldPGZTPo6O49UDydiUmny/eRH71FkduwAECiBW/ewMBfhlZJAKzKRq46VDFXMT450vNcGJCvVJp8Mn/Pz4ZtEdHuxkFl5CvUTVpCFts4zdKYzsR9Lu4FV5cMAG4tOModG/rGSB3Jv/b1X6A85xg2eEy1+E= Received: from AM7P189MB0807.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:115::19) by DB8P189MB1109.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:14a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Mon, 19 Aug 2024 19:02:14 +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.7875.019; Mon, 19 Aug 2024 19:02:14 +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" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" CC: "thomas.petazzoni@bootlin.com" , Kyle Swenson , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH net-next 2/2] net: pse-pd: tps23881: support reset-gpios Thread-Topic: [PATCH net-next 2/2] net: pse-pd: tps23881: support reset-gpios Thread-Index: AQHa8mpN+TA+JG1k4E2yihVubvKI7Q== Date: Mon, 19 Aug 2024 19:02:14 +0000 Message-ID: <20240819190151.93253-3-kyle.swenson@est.tech> References: <20240819190151.93253-1-kyle.swenson@est.tech> In-Reply-To: <20240819190151.93253-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_|DB8P189MB1109:EE_ x-ms-office365-filtering-correlation-id: 29be2183-15ac-4292-1c9a-08dcc0817053 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?utXGLsqaXHlXA8EzAkzz9O79XY?= =?iso-8859-1?q?jXPaTnu7C7ZZ5NlvFbKtkRRl8xirRb2pNpEEzfke+d/0AafpaoKnj8dvNHIv?= =?iso-8859-1?q?n0b6CMsDgZyvN2f7+N041PFN2bk2He2g5G6mEF+DIvJI5eZdbRoXOZ+A/Upd?= =?iso-8859-1?q?29IP8qzi0snijh9UzhMDXF7IXBn+OCP4EgUbRy/0MwktIab3omTBWv1EMr5p?= =?iso-8859-1?q?tEzgF0lav4Eg/kowvYixw7kYjFfF7ZUO0HiBajtqcuAehOk1sEfgQzLp/1jr?= =?iso-8859-1?q?oVsmddKUHaSxCxAmLPq/WuGgYsa2POG+AOfdBoLu8zZ7HWPzonYGcyq0TtNK?= =?iso-8859-1?q?/Rc2ZR7Nrsu6/70bZlOzvBrzflZ6gPoRMF4duwqs5lNS29KTpwugPtjf5mqv?= =?iso-8859-1?q?24jDsnYHeHukyrgIjRRUccRdM00q7Bn4DZgEmzC+gw2uAlgqa4LnPe5aVbSB?= =?iso-8859-1?q?7mKfc7k8xFZo22x176MjGTxo999OXK1ffDtoX1FZ0rFa4X8JHo79kryd7aSH?= =?iso-8859-1?q?6fJfjBI7MDhobYrOIInzEvPpsHZEQhqPE364Tzzf8dfDcRCWBfCEPAqFiqvl?= =?iso-8859-1?q?T0iMXkAeZiMYOS0lflaMMTuYRB4buKk3i6RS+Lm+QIucJvG+RvQG0re1GpZy?= =?iso-8859-1?q?5XPaNMEd/YYYeUX/ezfD6cw4dM1ZA+PmqPCMnGtBWQnEWj4vCgdNHs38W+ne?= =?iso-8859-1?q?HteOQAPBOi+adfa6M3mWiNUuojCNgZsxEc8IwE38V8bpYEcwcFv9CbLF3dh/?= =?iso-8859-1?q?s8H68d3sSF6uj0uEZsnN3M/S//y82atQfNmTnROUyvH5rXCrtBce450kzaUF?= =?iso-8859-1?q?2EU779yQkjzhWhLxfaANj+RULhmP48O5krf0J7DCdgkzB9TGgkvsT//OTKWr?= =?iso-8859-1?q?4AwYRBvjzIadSa0DXdAAbLoLthY4g7obpiD9FNeiYYa5wVSlvmoipPSrtD3w?= =?iso-8859-1?q?Pw45HgwxOSyOk59rTY2CP5RbjuoGLj/epi+jWcPzQx3ryuGB9a8ahu+8NkXb?= =?iso-8859-1?q?+k4puyFUas5j8SM43clKz3leJXym4zpGBxSWoRFnxRTmtHeBAUwKqARkZhCg?= =?iso-8859-1?q?iYH4Ax7BLdiu+RFZMb0XQfP/I1nWkeGNWVy9uk08+rc3Q9xZm27mXPVc9hpX?= =?iso-8859-1?q?IoPkvwIMlNN84W2dSne3/r/ZAlb/7lMwOcMnu2l+Yvo4Z554NciPY1vw0qLG?= =?iso-8859-1?q?Ad5ZgeZF/MQtOJYNJLtz49br1k1hBxcu/Uj7cy9yRJQANLdOE9PoXdx+3Xis?= =?iso-8859-1?q?hv2RTqYA3nmNi/E9KzXbjVcewTZ1/QaMRlIsUP8+BzUjrS2wuUDf+qdygFyz?= =?iso-8859-1?q?0+YHTDGOCH43/4WPAvhBXS+8WgJlnqmXFT9i6IfEx6d7FANNBOtso0uiAYvB?= =?iso-8859-1?q?15LzTkV0FXDq64/eMhBRJmP/xU0bj/JvGypHqzFZgM/rxPYv8WaD9WdwnaAN?= =?iso-8859-1?q?QV/12snJOqFy7+a57ryD2jYA=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)(366016)(1800799024)(376014)(7416014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?+yE7kEiCWubG/HuibjQuE7C?= =?iso-8859-1?q?QXOXGYT7vcq5QnYy5zPfKjo2K5eEKvnxvmSVo1lYRIfMGYFBunxuWBnHz083?= =?iso-8859-1?q?ouaQJ56RnIUW2GohDu8RrSVmcuqHVWT+NnZiAwMYm9Xj2jhGXURMkqXKb8IN?= =?iso-8859-1?q?pSyp6gUHvCRX5BKjy3Oz4WQlLXFJrXCLsvQSS3Go42oObOlacYssfsHRdzqT?= =?iso-8859-1?q?gn2W0YL/ov/DagdeLlE7NMEKNfDSqjWmMnH3RQGjUK1oEJ3fH61px+LqWk6a?= =?iso-8859-1?q?CdCppjjtl4r82ts6OrIUV4xzRfD3d8obqS7efMtOMM3b0n/ek2w2zbeh4+jk?= =?iso-8859-1?q?e979aWuIAa7GMAEDaCZBNtD9q0dT6mhkpv1hopH6aV+Q01cSMiBVActEViy+?= =?iso-8859-1?q?O+s7gqqpx/pZeEp9QntJexjbxdt17Y+WP66IGBFC7AxuJaQuWUU6nhfjmdKt?= =?iso-8859-1?q?9ITvuvsu6UqS1I5VM05FCSxAulwlJxSTxm3lt0NIzQPE8jyOl4TBF4sx4xI8?= =?iso-8859-1?q?2ZfZN3OxxuRm4AerBEBE2sK+Dh2gniaHxWZHXY7xNCaraWmgGejW0Jux/rKi?= =?iso-8859-1?q?KR/XRj1l23ajHtYh6DljEiwIdAQxAXe+4i6F0YpsVvqzoEkzHuN6TW3e60Iv?= =?iso-8859-1?q?NxgO362qP5sNhJR6KIdXRsAm3At5qumWTsCiZDF/N9kXEQDYB7G6FpW7txNT?= =?iso-8859-1?q?7CCoDSBhs9VIdOqzEXGkYKBaaLhzfuZvevLqaViBGB2G6fY024lJrBJxwgmh?= =?iso-8859-1?q?iWQqNGFaJqHdFEALziAv04VwGUN91LnY/XnZwv8nKw0M5eFNkgl+3DpybNud?= =?iso-8859-1?q?5a6F5mahpVOGuWwoS22C6DAAR5Yb0fs8D3rqVPKp07gunRut/0TIHbY8IbE5?= =?iso-8859-1?q?ZAWvEgPst9UHwLxolobGSFN/yB+QFo6M7YNkTnOcgGelE9III39ajuHxrNfb?= =?iso-8859-1?q?JclvJklZasanyTZaUR92iVePGHVcwmzM4o5B17sbuycsmi2RQHeb6MV7v7aN?= =?iso-8859-1?q?hi9Lsg9pMm5pVjten3kasQDEn7QaCKsoEeo00LEm78sdVQQV7fm427ay9Rwh?= =?iso-8859-1?q?MOFtjoZMEUoiIJDa9+Vx1PsqlvLTnDoR9Rjht8KBwE7ASg9uOuOFn/kQub1k?= =?iso-8859-1?q?Qa+buUBLSon/mfJrCwsw7pVMPvgkapZu2k9pnPtwBkfeCdJxbTfLk4/3AcSD?= =?iso-8859-1?q?7W/VnuXDcpFcXzRhll5yc3XJ9zE4DOL0puG99waVVB0UOrbgTw8TP6r6CYOc?= =?iso-8859-1?q?7dybW0eHzoWuZ9svU8uRZByT7JlqVX44WfH0EQgkLE/E7TWLCiAX4pmtH0Y0?= =?iso-8859-1?q?P3JFdNjMK2S23SYFiEXvXxHvK7m82fXFDKkMfzXzvzmCTnjjj40Oqv72ENIz?= =?iso-8859-1?q?sTRh4AkD7llgKKXs0il8p7CdY6KBAxN/KQo7VJzdSotHn88pG42MHngRYt+p?= =?iso-8859-1?q?QnO3/ZYIIzd9ylFKQzOssB5Gs1/+7lcgK2SH5lrN5gxl8ZgV2WDh/UPjnDmZ?= =?iso-8859-1?q?CprLJGJ9Zi6ieAYFhQ4511mdE54z6HYI+5ZuYVwnalRn3z2YvwXoeDbgOUFX?= =?iso-8859-1?q?AqaiO3eFYC2nBoqJ6a6RrNpKBBUsBvCDzY1hOYNlKO00mHq7hPA4mRG5rKvL?= =?iso-8859-1?q?hjPWKNIKOVaw6nSstYcdGbem0AChTjFGqmH5VJQ=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: 29be2183-15ac-4292-1c9a-08dcc0817053 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2024 19:02:14.7426 (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: 0ZY+wTDM4zDXg+jhTttNq9dEtP5b5wNLR0h3Wf/y2Th0TqhCxKUwr7f40lEtO284VgvArxCzC4xsnoPpNYLDDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8P189MB1109 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 --- drivers/net/pse-pd/tps23881.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c index 2ea75686a319..837e1a2119ee 100644 --- a/drivers/net/pse-pd/tps23881.c +++ b/drivers/net/pse-pd/tps23881.c @@ -6,16 +6,16 @@ */ #include #include #include +#include #include #include #include #include #include - #define TPS23881_MAX_CHANS 8 #define TPS23881_REG_PW_STATUS 0x10 #define TPS23881_REG_OP_MODE 0x12 #define TPS23881_OP_MODE_SEMIAUTO 0xaaaa @@ -735,10 +735,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 +748,20 @@ 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) { + usleep_range(1000, 10000); + gpiod_set_value_cansleep(reset, 0); /* De-assert reset */ + usleep_range(1000, 10000); + } + 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) {