public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v1 0/3] net: dsa: microchip: add single-led-mode support
@ 2026-01-28 13:38 Heinrich Toews
  2026-01-28 13:38 ` [PATCH v1 1/3] dt-bindings: net: dsa: microchip: add microchip,single-led-mode flag Heinrich Toews
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Heinrich Toews @ 2026-01-28 13:38 UTC (permalink / raw)
  To: netdev; +Cc: andrew, f.fainelli, olteanv, robh+dt, krzysztof.kozlowski+dt

This series adds support for single LED mode to KSZ9477 switches.

The first patch adds the YAML device tree binding documentation for the
new 'microchip,single-led-mode' property.

The second patch implements the mode configuration in the ksz_common
driver, including a necessary hardware workaround for Errata Module 19
(DS80000754F), which requires an additional write to a debug register to
ensure proper LED activity.

Heinrich Toews (3):
  dt-bindings: net: dsa: microchip: add microchip,single-led-mode flag
  net: phy: micrel: add flag for KSZ9477 LED erratum
  net: dsa: microchip: add single-led-mode support for KSZ9477

 .../bindings/net/dsa/microchip,ksz.yaml       |  6 ++++
 drivers/net/dsa/microchip/ksz_common.c        | 34 +++++++++++++++++++
 drivers/net/dsa/microchip/ksz_common.h        |  4 +++
 include/linux/micrel_phy.h                    |  1 +
 4 files changed, 45 insertions(+)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/3] dt-bindings: net: dsa: microchip: add microchip,single-led-mode flag
@ 2026-01-30 19:19 Tim Harvey
  2026-02-03 13:44 ` Heinrich Toews
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Harvey @ 2026-01-30 19:19 UTC (permalink / raw)
  To: netdev, Heinrich Toews, Andrew Lunn
  Cc: Florian Fainelli, Vladimir Oltean, Rob Herring,
	Krzysztof Kozlowski

> Hi Andrew,
>
> > Am 28.01.26 um 16:22 schrieb Andrew Lunn:
> > Is that really true? Generally, what actually happens is the
> > configuration is left alone. So if the boot loader, for example, has
> > set the configuration, that configuration is left unchanged. So it
> > could actually be in single LED mode, not tri-colour.
> >
> Oh, you're right. We cannot assume a hardware reset state here.
> Since the driver currently does not touch these registers, the configuration is indeed
> "inherited" from the bootloader or the
> hardware strapping.

Hi Heinrich,

The setting the SW_RESET bit of REG_SW_OPERATION in
ksz9477_reset_switch() resets all switch registers so even when the
mode/errata are taken care of in boot firmware that gets clobbered
when Linux starts. It is not inherited.

I have this switch with single-led mode on two of the boards I support
(imx8mp-venice-gw74xx.dts and imx8mm-venice-gw7901.dts) and am
interested in seeing your v2 of this series. Please add me to the cc
if you would not mind.

Best Regards,

Tim

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

end of thread, other threads:[~2026-02-03 13:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28 13:38 [PATCH net-next v1 0/3] net: dsa: microchip: add single-led-mode support Heinrich Toews
2026-01-28 13:38 ` [PATCH v1 1/3] dt-bindings: net: dsa: microchip: add microchip,single-led-mode flag Heinrich Toews
2026-01-28 13:59   ` Andrew Lunn
2026-01-28 15:10     ` Heinrich Töws (TWx)
2026-01-28 15:22       ` Andrew Lunn
2026-01-28 15:53         ` Heinrich Töws (TWx)
2026-01-28 18:06   ` Rob Herring
2026-02-03 10:22     ` Heinrich Toews
2026-01-28 13:38 ` [PATCH v1 2/3] net: phy: micrel: add flag for KSZ9477 LED erratum Heinrich Toews
2026-01-28 13:38 ` [PATCH v1 3/3] net: dsa: microchip: add single-led-mode support for KSZ9477 Heinrich Toews
2026-01-29  2:25   ` [v1,3/3] " Jakub Kicinski
2026-02-03 11:13     ` Heinrich Toews
  -- strict thread matches above, loose matches on Subject: below --
2026-01-30 19:19 [PATCH v1 1/3] dt-bindings: net: dsa: microchip: add microchip,single-led-mode flag Tim Harvey
2026-02-03 13:44 ` Heinrich Toews

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox