Thread (17 messages) 17 messages, 5 authors, 2024-01-22

Re: [net-next PATCH v9 3/5] net: phy: add support for PHY LEDs polarity modes

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-01-09 01:17:43
Also in: linux-arm-kernel, linux-devicetree, linux-leds, lkml

On Fri, Jan 05, 2024 at 03:27:15PM +0100, Christian Marangi wrote:
Add support for PHY LEDs polarity modes. Some PHY require LED to be set
to active low to be turned ON. Adds support for this by declaring
active-low property in DT.

PHY driver needs to declare .led_polarity_set() to configure LED
polarity modes. Function will pass the index with the LED index and a
bitmap with all the required modes to set.

Current supported modes are:
- active-low with the flag PHY_LED_ACTIVE_LOW. LED is set to active-low
  to turn it ON.
- inactive-high-impedance with the flag PHY_LED_INACTIVE_HIGH_IMPEDANCE.
  LED is set to high impedance to turn it OFF.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help