[net-next,v10,0/5] net: phy: generic polarity + LED support for qca808x

Message ID 20240125203702.4552-1-ansuelsmth@gmail.com
Headers
Series net: phy: generic polarity + LED support for qca808x |

Message

Christian Marangi Jan. 25, 2024, 8:36 p.m. UTC
  This small series add LEDs support for qca808x.

QCA808x apply on PHY reset a strange polarity settings and require
some tweak to apply a more common configuration found on devices.
On adding support for it, it was pointed out that a similar
feature is also being implemented for a marvell PHY where
LED polarity is set per LED (and not global) and also have
a special mode where the LED is tristated.

The first 3 patch are to generalize this as we expect more PHY
in the future to have a similar configuration.

The implementation is extensible to support additional special
mode in the future with minimal changes and don't create regression
on already implemented PHY drivers.

(changelog present in single patch)

Christian Marangi (5):
  dt-bindings: net: phy: Make LED active-low property common
  dt-bindings: net: phy: Document LED inactive high impedance mode
  net: phy: add support for PHY LEDs polarity modes
  dt-bindings: net: Document QCA808x PHYs
  net: phy: at803x: add LED support for qca808x

 .../devicetree/bindings/leds/common.yaml      |  12 +
 .../bindings/leds/leds-bcm63138.yaml          |   4 -
 .../bindings/leds/leds-bcm6328.yaml           |   4 -
 .../devicetree/bindings/leds/leds-bcm6358.txt |   2 -
 .../bindings/leds/leds-pwm-multicolor.yaml    |   4 -
 .../devicetree/bindings/leds/leds-pwm.yaml    |   5 -
 .../devicetree/bindings/net/qca,qca808x.yaml  |  54 +++
 drivers/net/phy/at803x.c                      | 327 ++++++++++++++++++
 drivers/net/phy/phy_device.c                  |  16 +
 include/linux/phy.h                           |  22 ++
 10 files changed, 431 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/qca,qca808x.yaml
  

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 27, 2024, 5:10 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 25 Jan 2024 21:36:56 +0100 you wrote:
> This small series add LEDs support for qca808x.
> 
> QCA808x apply on PHY reset a strange polarity settings and require
> some tweak to apply a more common configuration found on devices.
> On adding support for it, it was pointed out that a similar
> feature is also being implemented for a marvell PHY where
> LED polarity is set per LED (and not global) and also have
> a special mode where the LED is tristated.
> 
> [...]

Here is the summary with links:
  - [net-next,v10,1/5] dt-bindings: net: phy: Make LED active-low property common
    https://git.kernel.org/netdev/net-next/c/c94d1783136e
  - [net-next,v10,2/5] dt-bindings: net: phy: Document LED inactive high impedance mode
    https://git.kernel.org/netdev/net-next/c/355c6dc37efa
  - [net-next,v10,3/5] net: phy: add support for PHY LEDs polarity modes
    https://git.kernel.org/netdev/net-next/c/7ae215ee7bb8
  - [net-next,v10,4/5] dt-bindings: net: Document QCA808x PHYs
    https://git.kernel.org/netdev/net-next/c/91e893b43d1c
  - [net-next,v10,5/5] net: phy: at803x: add LED support for qca808x
    https://git.kernel.org/netdev/net-next/c/7196062b64ee

You are awesome, thank you!