The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Paul Louvel" <paul.louvel@bootlin.com>
To: "Andrew Lunn" <andrew@lunn.ch>, "Paul Louvel" <paul.louvel@bootlin.com>
Cc: "Vladimir Oltean" <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@kernel.org>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Frank Li" <Frank.Li@nxp.com>,
	"Jerry Ray" <jerry.ray@microchip.com>, <netdev@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	"Bo Mellberg" <bo.mellberg@se.com>,
	"Pascal Eberhard" <pascal.eberhard@se.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	"Miquel Raynal" <miquel.raynal@bootlin.com>
Subject: Re: [PATCH net-next 3/3] net: dsa: lan9303: add LED mode configuration
Date: Fri, 27 Nov 2026 15:23:27 +0100	[thread overview]
Message-ID: <DN627T3YFWKR.2YJE24R4DRSDN@bootlin.com> (raw)
In-Reply-To: <4d2a5db3-2829-4383-8f8d-05cf7c94fddc@lunn.ch>

Hi Andrew,

On Thu Nov 26, 2026 at 4:04 PM CET, Andrew Lunn wrote:
> Ah. This should of been in the cover letter...
>
> [Goes and looks at the data sheet]
>
> https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/00002308A.pdf
>
> So you have the choice of using the pin as a GPIO. So you can
> implement pure on/off. That gives you the minimum you need for
> /sys/class/leds.
>
> TABLE 12-1: LED OPERATION AS A FUNCTION OF LED_FUN[1:0]
>
> The functions are rather scattered all over the place, but i don't see
> a blocker to supporting hardware offload. It will be messy, yes, but
> possible.
>
> We have been pushing back on vendor properties for LEDs for a number
> of years, so i don't really want to add one now.
>
>    Andrew

Thanks for pointing me in the right direction.

At first, I thought that the fact that this PHY has a single field for all LEDs
function would make the vendor property somewhat acceptable.

Best regards,
-- 
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2026-11-27 14:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 14:13 [PATCH net-next 0/3] net: dsa: lan9303: add LED mode configuration Paul Louvel
2026-11-26 14:13 ` [PATCH net-next 1/3] dt-bindings: net: dsa: lan9303: add Microchip LAN9354 compatible Paul Louvel
2026-11-26 14:13 ` [PATCH net-next 2/3] dt-bindings: net: dsa: lan9303: add smsc,led-mode property Paul Louvel
2026-11-26 14:13 ` [PATCH net-next 3/3] net: dsa: lan9303: add LED mode configuration Paul Louvel
2026-11-26 15:04   ` Andrew Lunn
2026-11-27 14:23     ` Paul Louvel [this message]
2026-11-26 14:52 ` [PATCH net-next 0/3] " Andrew Lunn
2026-11-27 14:24   ` Paul Louvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DN627T3YFWKR.2YJE24R4DRSDN@bootlin.com \
    --to=paul.louvel@bootlin.com \
    --cc=Frank.Li@nxp.com \
    --cc=andrew@lunn.ch \
    --cc=bo.mellberg@se.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=jerry.ray@microchip.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=pascal.eberhard@se.com \
    --cc=robh@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox