From patchwork Fri Apr 19 15:35:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13636528 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2095.outbound.protection.outlook.com [40.107.104.95]) (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 23BBE12FB36; Fri, 19 Apr 2024 15:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713540931; cv=fail; b=cj0cVioeYOnT7Qh7GYLbsqPfyJoXXWDdm75ZBXVwExJvX3ql/jX7gBWhE0eI/oFwIWAtGGYGMkMZrikU60wNqSMigLrwSyxJphwaMBjVPBBXstf3FK4KoxfQ59HOxrBuuZfE69sus6bGxot8VxPjaMIGenjQ0+89h8wRsHykYRw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713540931; c=relaxed/simple; bh=N6H7YL7f0PmyoeVx37xKKuZJNaCks/iFeWs5nfQCXAg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=qR3sjOlNPZKeDL9+7cCg8f+Qe80RCnHnL7m3ESies4cu+lSWDJjlN9IJu4RZPKqMH8PqIEqkUM52nclZKSlxiSbws78n8DjfqjErEPmHvhGmTDUj/C530szabzoxPAhZ8OnI5p3vYHHq2txALkCfVNkppuFsfQ5U4VTT+QrUz7c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=solid-run.com; spf=pass smtp.mailfrom=solid-run.com; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b=UBcffJom; arc=fail smtp.client-ip=40.107.104.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="UBcffJom" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VpQhgwurlNNp2ZCqx+SlLkrppFsIEmzJkN7J6FejJBBSo7slND5mrq0ExANh5vsCcpJG5ICjeLntI2/FdHl3o9nmRX5zFq2Fk/CCDs0UBaOq2LBJmMIX0/mjMUkfCC/3gyOHEF97c6JecWxCzHEgRQxGtroSn6qtXzgWPZ92rGspg0SZV1HFUlEKkse5pwhdcBy78rdECtTuGmzit5FT2Jgq+UJIo/qWoDopnJk9TV9HEjOSolpV2wWs+7W6A8GoQcoUolJNenOToduJ8I9jsJjWd2XUTYUF5z1aeQhgmgDZlQlf8CoYq3wnDgbsYrmcerxFNw/7pteys8O0kP5C3A== 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=bg50pzHC35/sx6AzZuqlrk/cXNBJs3dyU+JjycmuXpI=; b=T63s4XZ3oJvji8kIUtUCW4h22EERTrbXS0aB5RKerCZp37XkMN7APUabTlxZXQSC8aApObQTg/aE3nFywVGfAlfQaFiWV84CxAQ7SEsntQYbqhh+gpEByn22PleKoXYvUfhy+/fUrv1SGOdSjheGLT4KuF6UiLCeZehDMFJLxDeK7NMwSy5Ho14XTyXPaOuyrEO5EIbTJ1nEJbFbotM/x7eCvIqE19pM7P9HBAyr813uyczM6ooGjUsx94qG8iPRDj844FUKrqMo1nEe5HIx/FK0WjrIV4tJOeQnf3F6Nk2Zz201qSaWKcYUFxw4dgIv5BJNKH1fz8JRW7WN0QaCeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bg50pzHC35/sx6AzZuqlrk/cXNBJs3dyU+JjycmuXpI=; b=UBcffJom5EkvMvxD7wMLvsHYM3faDI5r3wqwD8+9osiZrU7OSbG0zeE+E2Oz176u05I5TqvvLUCtEpcGY33QdNZji8QPVJ3heqGt3FjKlXgq/DRpe3/kck/T9R8kizlLRNwtC6qrUiM7jvcaLV3o9t0h5u4ORgRJKSMmOuHyjcQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by DB9PR04MB8250.eurprd04.prod.outlook.com (2603:10a6:10:245::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.43; Fri, 19 Apr 2024 15:35:25 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%7]) with mapi id 15.20.7472.042; Fri, 19 Apr 2024 15:35:25 +0000 From: Josua Mayer Date: Fri, 19 Apr 2024 17:35:17 +0200 Subject: [PATCH net-next 1/2] dt-bindings: net: adin: add pin polarity properties for LED_0, LINK_ST Message-Id: <20240419-adin-pin-polarity-v1-1-eaae8708db8d@solid-run.com> References: <20240419-adin-pin-polarity-v1-0-eaae8708db8d@solid-run.com> In-Reply-To: <20240419-adin-pin-polarity-v1-0-eaae8708db8d@solid-run.com> To: Michael Hennerich , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandru Tachici , Andrew Lunn , Heiner Kallweit , Russell King Cc: Jon Nettleton , Yazan Shhady , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0122.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:94::6) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DB9PR04MB8250:EE_ X-MS-Office365-Filtering-Correlation-Id: 603bae6d-8e95-4613-e714-08dc60865570 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?gCQV9G3wARRaJwCJS16smIyQcyFChRc?= =?utf-8?q?fZEBXCPfBc+fd7XI33RngFxa1nfxGwHZut60X7VFIhZ/VDNQXTykrlQowxF2GcmqQ?= =?utf-8?q?JrpnUKM8qZtRQoefpxVpbZ90ZeZuGUvqPpIiOnKMXeWlNPOVTgLVcc2jFlA4171x/?= =?utf-8?q?yRrVMJIkeasaED/LC6Wtxyc4txX5IiTr/bSV7zciOAOVFijEjBHxUCReYYKV0O3Cr?= =?utf-8?q?/bxTPWUZ/8hm5BapODahjZVSvZztoXnY8QiWNzlxSiV7J6Qce6EbHHuoZ53fw6n8F?= =?utf-8?q?/pNJwX+1W9FqeSqMPrLXwP+6xf+fw0T2qTYrt7ATAzSYT0G8ThNSwRUlMoVYEGV+v?= =?utf-8?q?A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lW9z44dVTikmC/rN0boYE/PQNkUqaiHysfS+ApDGW5AXvQqPEek+UIBPCDsX?= =?utf-8?q?LSvcNWtBGJ+mH/9sw9PzV1YcPLe0oFM93ck4asI4MU567pT5kP7hIrWU=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(7416005)(376005)(52116005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?JWC4i+YmYS0q0vn8Um2iDbyCL1im?= =?utf-8?q?c0vlXOXO+a+VvZdTvcFq6CX4H+Z6jaNU6qxD1d3Ew5q6ISXeJT6+98NyafAlzKVZQ?= =?utf-8?q?UBLU9Yh3h0Aic+DQv2ZhPRH2yQGsQiMWcaKHzwvvZ9vdfk0rXuP0q8jgYLmthqTQK?= =?utf-8?q?W+H5cLLmqxbeedJh4cqt8bRHoET6c/Rmke3IChy0PBeKVWATxYP1quZGFRHyDvBoA?= =?utf-8?q?L2XHgBsM4ah2BriafG3TxNyIYWJ7gT4iB4i8hIudpzmqq0WDVXFOKZbKTj7Z/iSfa?= =?utf-8?q?JxTZh893JPP/NGopa+52EBwf35AJ4FAMWogJRM3UkdjrqhZxnqhxwh9Tzd8f2/Vlq?= =?utf-8?q?/9j7ASz0sS3bAMxDpYCraTEGj+EnBhK4VJ7WzMQYyvoy0tz1PcFBbILO3oCaxbp0d?= =?utf-8?q?6CybTBb1pDNXoCpWLlT33U8meVfNpHT+WDWk1JsqUUuVewq6BRW5uxGwGZccZf8uc?= =?utf-8?q?SdToWYmP5aS81Slc8VTNCY9aOVwVzD6zrzGbnPbrmUzLEOpL7cWtyVMaTJDcFGfBI?= =?utf-8?q?IOLJcKHlttrvNcwYraddmi5FmmR4NI1loS5PKt9Fl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JwS6R1NDxQCOOtT0C5?= =?utf-8?q?/CJ+D5cOP/7N0E+bLHnVmif+sJOouXROse1S5K/li/NEnTpH2HvtjDymA4VfBHr1U?= =?utf-8?q?P1CE4Fj/D6Za?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 603bae6d-8e95-4613-e714-08dc60865570 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 15:35:25.5897 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Dxx9MdN2OCLsIlEwmbS65+wGfUm556jA6bUjzf2a+k37xaqYw46DWy/zyn36FfEwjZHRgNxzmw8+LwO8oT1yKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8250 X-Patchwork-Delegate: kuba@kernel.org ADIN1300 supports software control over pin polarity for both LED_0 and LINK_ST pins. Add new properties to set pin polarity: - adi,led-polarity: LED_0 is used as hardware configuration signal during reset. Depending on external voltage on the line default value is either active-high (0) or active-low (1). - adi,link-st-polarity: LINK_ST is always active-high (0) after reset. Signed-off-by: Josua Mayer --- Documentation/devicetree/bindings/net/adi,adin.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/net/adi,adin.yaml b/Documentation/devicetree/bindings/net/adi,adin.yaml index 929cf8c0b0fd..ff9262dc69f9 100644 --- a/Documentation/devicetree/bindings/net/adi,adin.yaml +++ b/Documentation/devicetree/bindings/net/adi,adin.yaml @@ -52,6 +52,24 @@ properties: description: Enable 25MHz reference clock output on CLK25_REF pin. type: boolean + adi,led-polarity: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + LED_0 pin polarity. If unspecified keep phy reset-default derived + from hardware configuration pins. + enum: + - 0 # active high + - 1 # active low + + adi,link-st-polarity: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + LINK_ST pin polarity. + enum: + - 0 # active high + - 1 # active low + default: 0 + unevaluatedProperties: false examples: