All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH 00/11] net: Add basic LED support for switch/phy
@ 2023-03-07 17:00 ` Christian Marangi
  0 siblings, 0 replies; 78+ messages in thread
From: Christian Marangi @ 2023-03-07 17:00 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
	Krzysztof Kozlowski, Heiner Kallweit, Russell King,
	Gregory Clement, Sebastian Hesselbarth, Christian Marangi,
	John Crispin, netdev, devicetree, linux-kernel, linux-arm-kernel,
	Lee Jones, linux-leds

This is a continue of [1]. It was decided to take a more gradual
approach to implement LEDs support for switch and phy starting with
basic support and then implementing the hw control part when we have all
the prereq done.

This series implements only the brightness_set() and blink_set() ops.
An example of switch implementation is done with qca8k.

For PHY a more generic approach is used with implementing the LED
support in PHY core and with the user (in this case marvell) adding all
the required functions.

Currently we set the default-state as "keep" to not change the default
configuration of the declared LEDs since almost every switch have a
default configuration.

[1] https://lore.kernel.org/lkml/20230216013230.22978-1-ansuelsmth@gmail.com/

Andrew Lunn (6):
  net: phy: Add a binding for PHY LEDs
  net: phy: phy_device: Call into the PHY driver to set LED brightness.
  net: phy: marvell: Add software control of the LEDs
  net: phy: phy_device: Call into the PHY driver to set LED blinking.
  net: phy: marvell: Implement led_blink_set()
  arm: mvebu: dt: Add PHY LED support for 370-rd WAN port

Christian Marangi (5):
  net: dsa: qca8k: add LEDs basic support
  net: dsa: qca8k: add LEDs blink_set() support
  dt-bindings: net: dsa: dsa-port: Document support for LEDs node
  dt-bindings: net: dsa: qca8k: add LEDs definition example
  dt-bindings: net: phy: Document support for LEDs node

 .../devicetree/bindings/net/dsa/dsa-port.yaml |   7 +
 .../devicetree/bindings/net/dsa/qca8k.yaml    |  24 ++
 .../devicetree/bindings/net/ethernet-phy.yaml |  22 ++
 arch/arm/boot/dts/armada-370-rd.dts           |  14 ++
 drivers/net/dsa/qca/Kconfig                   |   7 +
 drivers/net/dsa/qca/Makefile                  |   1 +
 drivers/net/dsa/qca/qca8k-8xxx.c              |   4 +
 drivers/net/dsa/qca/qca8k-leds.c              | 238 ++++++++++++++++++
 drivers/net/dsa/qca/qca8k.h                   |  69 +++++
 drivers/net/phy/marvell.c                     |  81 +++++-
 drivers/net/phy/phy_device.c                  | 115 +++++++++
 include/linux/phy.h                           |  33 +++
 12 files changed, 610 insertions(+), 5 deletions(-)
 create mode 100644 drivers/net/dsa/qca/qca8k-leds.c

-- 
2.39.2


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

end of thread, other threads:[~2023-03-16 22:09 UTC | newest]

Thread overview: 78+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 17:00 [net-next PATCH 00/11] net: Add basic LED support for switch/phy Christian Marangi
2023-03-07 17:00 ` Christian Marangi
2023-03-07 17:00 ` [net-next PATCH 01/11] net: dsa: qca8k: add LEDs basic support Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 23:16   ` Andrew Lunn
2023-03-07 23:16     ` Andrew Lunn
2023-03-07 17:57     ` Christian Marangi
2023-03-07 17:57       ` Christian Marangi
2023-03-08  0:49       ` Andrew Lunn
2023-03-08  0:49         ` Andrew Lunn
2023-03-07 19:41         ` Christian Marangi
2023-03-07 19:41           ` Christian Marangi
2023-03-08  1:07           ` Andrew Lunn
2023-03-08  1:07             ` Andrew Lunn
2023-03-16 22:07   ` kernel test robot
2023-03-16 22:07     ` kernel test robot
2023-03-07 17:00 ` [net-next PATCH 02/11] net: dsa: qca8k: add LEDs blink_set() support Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 23:16   ` Andrew Lunn
2023-03-07 23:16     ` Andrew Lunn
2023-03-07 17:00 ` [net-next PATCH 03/11] net: phy: Add a binding for PHY LEDs Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 23:17   ` Andrew Lunn
2023-03-07 23:17     ` Andrew Lunn
2023-03-07 18:00     ` Christian Marangi
2023-03-07 18:00       ` Christian Marangi
2023-03-08  0:54       ` Andrew Lunn
2023-03-08  0:54         ` Andrew Lunn
2023-03-07 17:00 ` [net-next PATCH 04/11] net: phy: phy_device: Call into the PHY driver to set LED brightness Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 17:00 ` [net-next PATCH 05/11] net: phy: marvell: Add software control of the LEDs Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 17:00 ` [net-next PATCH 06/11] net: phy: phy_device: Call into the PHY driver to set LED blinking Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 17:00 ` [net-next PATCH 07/11] net: phy: marvell: Implement led_blink_set() Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 17:00 ` [net-next PATCH 08/11] dt-bindings: net: dsa: dsa-port: Document support for LEDs node Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-08  1:00   ` Andrew Lunn
2023-03-08  1:00     ` Andrew Lunn
2023-03-08 18:58   ` Krzysztof Kozlowski
2023-03-08 18:58     ` Krzysztof Kozlowski
2023-03-07 17:00 ` [net-next PATCH 09/11] dt-bindings: net: dsa: qca8k: add LEDs definition example Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-08 10:58   ` Krzysztof Kozlowski
2023-03-08 10:58     ` Krzysztof Kozlowski
2023-03-08 13:57     ` Andrew Lunn
2023-03-08 13:57       ` Andrew Lunn
2023-03-08 18:49       ` Krzysztof Kozlowski
2023-03-08 18:49         ` Krzysztof Kozlowski
2023-03-08 19:02         ` Christian Marangi
2023-03-08 19:02           ` Christian Marangi
2023-03-08 19:09           ` Krzysztof Kozlowski
2023-03-08 19:09             ` Krzysztof Kozlowski
2023-03-08 19:23             ` Christian Marangi
2023-03-08 19:23               ` Christian Marangi
2023-03-08 19:42               ` Andrew Lunn
2023-03-08 19:42                 ` Andrew Lunn
2023-03-07 17:00 ` [net-next PATCH 10/11] dt-bindings: net: phy: Document support for LEDs node Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-08  1:01   ` Andrew Lunn
2023-03-08  1:01     ` Andrew Lunn
2023-03-08 11:00   ` Krzysztof Kozlowski
2023-03-08 11:00     ` Krzysztof Kozlowski
2023-03-08 18:56     ` Krzysztof Kozlowski
2023-03-08 18:56       ` Krzysztof Kozlowski
2023-03-08 18:56   ` Krzysztof Kozlowski
2023-03-08 18:56     ` Krzysztof Kozlowski
2023-03-08 19:03     ` Christian Marangi
2023-03-08 19:03       ` Christian Marangi
2023-03-07 17:00 ` [net-next PATCH 11/11] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Christian Marangi
2023-03-07 17:00   ` Christian Marangi
2023-03-07 23:20   ` Andrew Lunn
2023-03-07 23:20     ` Andrew Lunn
2023-03-07 18:03     ` Christian Marangi
2023-03-07 18:03       ` Christian Marangi
2023-03-08  1:20 ` [net-next PATCH 00/11] net: Add basic LED support for switch/phy Andrew Lunn
2023-03-08  1:20   ` Andrew Lunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.