mbox series

[net-next,v2,0/2] net: phy: adin: add support for setting led-, link-status-pin polarity

Message ID 20240420-adin-pin-polarity-v2-0-bf9714da7648@solid-run.com (mailing list archive)
Headers show
Series net: phy: adin: add support for setting led-, link-status-pin polarity | expand

Message

Josua Mayer April 20, 2024, 11:22 a.m. UTC
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,