linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH v9 0/5] net: phy: generic polarity + LED support for qca808x
@ 2024-01-05 14:27 Christian Marangi
  2024-01-05 14:27 ` [net-next PATCH v9 1/5] dt-bindings: net: phy: Make LED active-low property common Christian Marangi
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Christian Marangi @ 2024-01-05 14:27 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, William Zhang, Anand Gore, Kursad Oney,
	Florian Fainelli, Rafał Miłecki,
	Broadcom internal kernel review list, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	Heiner Kallweit, Russell King, Jacek Anaszewski,
	Fernández Rojas, Sven Schwermer, Christian Marangi,
	linux-leds, devicetree, linux-kernel, linux-arm-kernel, netdev

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                      | 325 ++++++++++++++++++
 drivers/net/phy/phy_device.c                  |  16 +
 include/linux/phy.h                           |  22 ++
 10 files changed, 429 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/qca,qca808x.yaml

-- 
2.43.0


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

end of thread, other threads:[~2024-01-22 23:14 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-05 14:27 [net-next PATCH v9 0/5] net: phy: generic polarity + LED support for qca808x Christian Marangi
2024-01-05 14:27 ` [net-next PATCH v9 1/5] dt-bindings: net: phy: Make LED active-low property common Christian Marangi
2024-01-09  0:38   ` Andrew Lunn
2024-01-11 11:03   ` Lee Jones
2024-01-13  1:29   ` Rob Herring
2024-01-05 14:27 ` [net-next PATCH v9 2/5] dt-bindings: net: phy: Document LED inactive high impedance mode Christian Marangi
2024-01-09  0:39   ` Andrew Lunn
2024-01-11 11:02     ` Lee Jones
2024-01-13  1:29   ` Rob Herring
2024-01-05 14:27 ` [net-next PATCH v9 3/5] net: phy: add support for PHY LEDs polarity modes Christian Marangi
2024-01-09  1:17   ` Andrew Lunn
2024-01-05 14:27 ` [net-next PATCH v9 4/5] dt-bindings: net: Document QCA808x PHYs Christian Marangi
2024-01-05 14:27 ` [net-next PATCH v9 5/5] net: phy: at803x: add LED support for qca808x Christian Marangi
2024-01-09  1:20   ` Andrew Lunn
2024-01-09  3:14 ` [net-next PATCH v9 0/5] net: phy: generic polarity + " Jakub Kicinski
2024-01-09 13:55   ` Andrew Lunn
2024-01-22 23:14     ` Christian Marangi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).