From patchwork Sat Apr 20 11:22:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13637119 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2138.outbound.protection.outlook.com [40.107.20.138]) (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 4C8371B809; Sat, 20 Apr 2024 11:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.138 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713612193; cv=fail; b=m3YOIiZ0G8TmnhBw3SqwGu8V81tgH7Jc/e+qYH88EaT+1LXiUiAcR6+1g2Lvw/3tb4XC3us8FDLYNKFJS1k2xFppCUf6psZQuHJqUu32iWdI5JvezGyuDSX+Xc47GIxCIOHshKDvowtat3l6wEK8UC9EXp6U6QUhRPY2c8uMHMk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713612193; c=relaxed/simple; bh=4pSN99gt38h0Ev7v3kdwR39sT8HIKi4d5DlbSap0tbI=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=KEhfFGZWeE0N6D9ZFVaY6qfEhLlU/rNbDAT1p0SQLZ0bMaB2+e+IxWLz3X2fb7kvUKdfjMRUzSujTVhg4W/tzdAuRxvKrXmyclSoXTGvVfZA9l30u4niMOA9te37Ea3z0mkq+n4VIwqC2pFdqV8ggqrsPw1Ucmbkbd/PzbgK9jo= 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=GMmY3Dt7; arc=fail smtp.client-ip=40.107.20.138 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="GMmY3Dt7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HwBdDydCLllf8IzX3BkxTtdmLtQL3AhcqJcpuGITd2Fnhx/GNL/rIdk6OJKm7fUAy5qzut7+icoPltrfvvr1Pal9/gUIpiqHA9/Geriqjx01rDBW/etgUg6UslMgSYwdevl4OInkEbMrEuA2lCUK/eBV05baoZulRQnEGsChAr8T+KByKXa/YLaCO4Tzn2KNtJ43N3VpWvnugGx3Xze/fOcpAJIQ6lt4R/a66VkSE5WYoqT22ktKtTcOFB6iCP+l2ptLjwj8EtuAZri8iv8LdxR6lac/Jjr4MSfnEAoyBs/qduY+REVu/Xf/EFJyQM4mzdGzDNTagCfCVb6krIygaQ== 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=F+aQFYcvebDOPJj4jg9nX0pgTKdnBjHUSkqcjbqyTwg=; b=kLgPp9HA6LgqJV3eLVWoA/lZNQZF4xKYLCzCbi3lmYVVaxeudcQnSk0Zbjxyo8s/bAtQVU5I1wsoJyYB/nsZXysD8V1N7JJVsQtXY0qkYhJ+SniGXyC/rSjFFvnNQU56aLeCwjcmM65Q0WX5PTPgQUdvUAtkxyrLI4vBHEVZNa2FTI0SX4iPmShs+7xLPu6tEHbdCMXrn/xf5PoVxLVAK3IA7LcSpcU5Ye4LhD3/o32c6JkcoWtSF1UvTDQMF6JswDeB2+ffOceN0bcyOhRp/mXaKwt8s+bs6RSZeriM+QmtHgZCvRkaxMv+uJ19z6zJi17T8epXFS7/c45fCn8KMg== 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=F+aQFYcvebDOPJj4jg9nX0pgTKdnBjHUSkqcjbqyTwg=; b=GMmY3Dt7NJZf0CRL5p9L3Xg0/A4aXwEqR5NHbZAdstfZZXZ3vq0DKYW7NEu3xw+PG6SUVbF/Fhd+cUEnEdTFxeXJulu1WlxsWnsmuEMgoJafVaj4nGfqnIpOQN3WOz7Bm0iOCGl0MOjgak8MDNjmHuqdvhWgueOCcbOBBVJZjgQ= 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 AM9PR04MB7588.eurprd04.prod.outlook.com (2603:10a6:20b:2dd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Sat, 20 Apr 2024 11:23:08 +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.044; Sat, 20 Apr 2024 11:23:07 +0000 From: Josua Mayer Subject: [PATCH net-next v2 0/2] net: phy: adin: add support for setting led-, link-status-pin polarity Date: Sat, 20 Apr 2024 13:22:59 +0200 Message-Id: <20240420-adin-pin-polarity-v2-0-bf9714da7648@solid-run.com> X-B4-Tracking: v=1; b=H4sIAJOlI2YC/32NTQ6CMBCFr0Jm7ZiC/FRX3sOwqHQqk2BL2kogp He3cgAXb/Hl5X1vh0CeKcCt2MHTwoGdzVCdChhGZV+ErDNDJapa1OUVlWaL8y9uUp7jhhdhOiM b03ZNC3k3ezK8Hs4HWIpoaY3Q52bkEJ3fjrOlPPo/3qVEgaQUyU5I/ZT6HtzEGv3Hngf3hj6l9 AV3nHMgwAAAAA== 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: FR0P281CA0109.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a8::9) 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_|AM9PR04MB7588:EE_ X-MS-Office365-Filtering-Correlation-Id: eae1eb14-3285-4d50-0538-08dc612c4089 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+xGkTU8mNsS04Lr5nKIkHlqPn7GNWPc?= =?utf-8?q?soJhZ/0206bsK4F69qqaGAVGrLwh7L1QFvHFR9NXSzEOiM8fZ/vanLkIYPI1GJLFs?= =?utf-8?q?hS9Dkqt3Zz5PWrGlBOKGz3ei5nTiiM3VEb/IXxddxQVHTlSqZoSqXphccl7tBcfyc?= =?utf-8?q?1H2HBk+CkuVZbAOYpjlsECCa68CjUhO4UInF/w7I8X0aF7fnukXyOGx99doQ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zaU3t?= =?utf-8?q?wFFErLTs3JOAGnTIYvprAqy3hY2fXWWMCV1/UHC6PemsxYTt2NSC9Dem2oXzdqBCX?= =?utf-8?q?QrpnT2lH7XmRPrlWUMAHdIfCTedU7/85ZaIi2HVY4ASKseK9dlULigjvRqYFTTx7V?= =?utf-8?q?84OTlZ07U6IlDpr65nwfo2oBjCT4ewp0EeNmp67ujtw1FeaLvJgDyTV/Q70ontWZS?= =?utf-8?q?5yrgqkTBk7iozqY4BDGQrkDlGwadXmgw9XfduqEvobeHpaQ+W2lL2AwI=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)(366007)(1800799015)(52116005)(7416005)(376005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?u641Z2Mu+CNPrWZlklOKKBTD8Irm?= =?utf-8?q?qwIHXoW5etzeHorrZd9IeYPvfw5Jm7isoaDRKEJzCnNWeJuPDW2FbWOMUcXrgAToo?= =?utf-8?q?G3Q3xOt7QBsGrcFSWPxWAndyV2q4SuXNW0S1GdQlY+KlP//VbwNSroKuPIcelRnZr?= =?utf-8?q?22+0XOQ0KuWEwKKbzizu0J99wyUZhD+RdNnII4PdEUNT6D1TDtkygdkcr5L4qX0Ag?= =?utf-8?q?rTtrUMHow41AzYfYmaK+I1w/BksJE17+tWbnNBfU6/YwIYAEuQSwnzRHfnOb30OPN?= =?utf-8?q?nQ7anG1GT6Qmb0iK+0/g/7oMDTBPnENrzpJs8CuqriJ87/OkyS79h1kRIrNSnRlmN?= =?utf-8?q?RpxU88nvM0Rq0hc4zYmLoK+EfXszNQwtJRnCY5EqRz0Vw98hZQZm9FwqrIZCHdDD8?= =?utf-8?q?pKvc1zM4eRDPgy7F9Iiddfmi8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16lxTgd3kUz8UBgpz7aKPJ0xEA2gM6DweL?= =?utf-8?q?tJmAY0efkXPzjfaVBQYHtFvvUCQuxiRCy5jyRnLDyZ0qc9mg7Gg9AeFo+b9ghWZvj?= =?utf-8?q?mXksLo/3uMOsSAV8rfwjDmOL+Xwmo2UZwLkRpLFeUxkcrGvcJdDFC7/BmrYOzDMRH?= =?utf-8?q?KVq2q1IMDPjNHDxW0aAtSzfcKpQdSFFueZqEe6CFLRPB+1+Z2+GC6v6zGCs3qyKPN?= =?utf-8?q?KUZ9gFM8gBGs?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: eae1eb14-3285-4d50-0538-08dc612c4089 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2024 11:23:06.9959 (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: JHX5V2dK0VVXrvR1LNt2W6vz3EqJ9rfonBRR5T7y1nLhOWrZV/q6gT1sXfSPkDqDdNa4grOxpRqNFfbWX5AjEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7588 X-Patchwork-Delegate: kuba@kernel.org ADIN1300/1200 support software control over pin polarity for both LED_0 and LINK_ST pins. LED_0 polarity can be supported in led framework with led_polarity_set callback in a future patch-set. LINK_ST is a fixed-function output not suitable for led framework. Add bindings for specifying the polarity of LINK_ST pin in device-tree, and implement in adin phy driver. Signed-off-by: Josua Mayer --- Changes in v2: - removed led0 configuration since it can be supported through led framework - Link to v1: https://lore.kernel.org/r/20240419-adin-pin-polarity-v1-0-eaae8708db8d@solid-run.com --- Josua Mayer (2): dt-bindings: net: adin: add property for link-status pin polarity net: phy: adin: add support for setting link-status-pin polarity .../devicetree/bindings/net/adi,adin.yaml | 9 +++++++ drivers/net/phy/adin.c | 29 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240419-adin-pin-polarity-30f7f85f6756 Sincerely,