Devicetree
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: phy: adin: add support for setting led-, link-status-pin polarity
@ 2024-04-20 11:22 Josua Mayer
  2024-04-20 11:23 ` [PATCH net-next v2 1/2] dt-bindings: net: adin: add property for link-status pin polarity Josua Mayer
  2024-04-20 11:23 ` [PATCH net-next v2 2/2] net: phy: adin: add support for setting link-status-pin polarity Josua Mayer
  0 siblings, 2 replies; 9+ messages in thread
From: Josua Mayer @ 2024-04-20 11:22 UTC (permalink / raw)
  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, devicetree, linux-kernel,
	Josua Mayer

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 <josua@solid-run.com>
---
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,
-- 
Josua Mayer <josua@solid-run.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-29  9:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20 11:22 [PATCH net-next v2 0/2] net: phy: adin: add support for setting led-, link-status-pin polarity Josua Mayer
2024-04-20 11:23 ` [PATCH net-next v2 1/2] dt-bindings: net: adin: add property for link-status pin polarity Josua Mayer
2024-04-20 16:10   ` Andrew Lunn
2024-04-20 16:56     ` Josua Mayer
2024-04-20 17:09       ` Andrew Lunn
2024-04-21  9:07         ` Josua Mayer
2024-04-21 17:54           ` Andrew Lunn
2024-04-29  9:54             ` Josua Mayer
2024-04-20 11:23 ` [PATCH net-next v2 2/2] net: phy: adin: add support for setting link-status-pin polarity Josua Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox