From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795789420; b=03LQB5/WBrfJP0AsBYR0S3AlrWanYS5rdN/k/fyDnhEU5uyqgkEQj4f8F8vDXqrhNThK gzh0V5TWf4wk3iXDFccb/128bsH8/uTpYcNW9cuQPRTwJRkt8mzVvBW4D7b29sREfW0+V Z6diHkbB8pgZU4+2TG9Y1I5nnOK1GvmBVEOb+jPbsviJNzViPskn72fditGEWbV3pzESl yI0clSoN5jKMU0T53obKzX5mKeSqYQNAg3rNr85nwfZyQpYmSPMNzvbHXwil9oCS5PPtZ cuZcmsCFF9P5wCNl/BOxyYOScC7le+D6zWk/fw+5T0N1u+1cOT9MeDxXzPXudm25L1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795789420; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject: From:To:X-Mailer:References:In-Reply-To:X-Last-TLS-Session-Version; bh=rJjYlq0N0CiTq+K7tDYqTk/syJTuOendfcqgC38Nxt4=; b=qu2GB1o5OoS9hdOQ2D06FTOZ1wH0P64EIwclwnsCE4RdTGf/IhFJzwB5VEwn1bY6ZcM1 QS3mRKrZwj3aklREsdDDP2ieuEb2nJCHKbcOX7qAJTNgK9DFc9Pq1MukH3orxAhyX5IKa FLhYVFv1LAGq08fEeOmi9dW7ViOjrx7KmK6o6LTEhxIeS5KIKjVsMPx+y6LVH8kUYUyaM xDH04C7xAcKyh/NlBfvJiLD6LrnKYqXgnPASFArYYtOoKCBTyMqBG/gF2RVocy9BmHjmU IRVY0YyfwVWi3aU32WI7LT/Z0QyDreaZaq03PKrF/FPyimaj2T66mnYEMu8FB0ugy0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=HdYgIQpd; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B50DA606A331; Fri, 27 Nov 2026 14:23:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B50DA606A331 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=HdYgIQpd Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 834B9C2AC4C; Fri, 27 Nov 2026 14:23:46 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B8B466049C; Fri, 27 Nov 2026 14:23:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7CA9A11E69040; Fri, 27 Nov 2026 15:23:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795789414; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=rJjYlq0N0CiTq+K7tDYqTk/syJTuOendfcqgC38Nxt4=; b=HdYgIQpdInN/Vp1iLZ4xl1gYvHUpbTPH7eK+GmBt2veiML6L0T6kz+Yk5DmgYIDt12xFI1 XnjgOCfrPlAlHLd2WB2NPZdGZiJcs3ZnrwwdIWOc84DvpYc3DAB1tU18HkxCdjGK9GJtBM 4MgxWztMigmYKGrXHFyBP4/6TIYOD4kcdAAPnEHg3sE5Him9gJME5Ryizt8uwbRAPScPil 4Y3hdpM79V39XaVuHbUaj3gwnz5fW3pPx+SGA/1ePTdD/kdj3Z88hb6blun/ZNWl+GhpfN lJDHXH4ydCuWnQsJPeovZudsl0UFJI+pVhm8soBYmbSgRQlrr3SBsykhjC8hLQ== X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 27 Nov 2026 15:23:27 +0100 Message-Id: Cc: "Vladimir Oltean" , "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Frank Li" , "Jerry Ray" , , , , "Bo Mellberg" , "Pascal Eberhard" , "Thomas Petazzoni" , "Miquel Raynal" Subject: Re: [PATCH net-next 3/3] net: dsa: lan9303: add LED mode configuration From: "Paul Louvel" To: "Andrew Lunn" , "Paul Louvel" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261126-lan9303-leds-v1-0-a96731317859@bootlin.com> <20261126-lan9303-leds-v1-3-a96731317859@bootlin.com> <4d2a5db3-2829-4383-8f8d-05cf7c94fddc@lunn.ch> In-Reply-To: <4d2a5db3-2829-4383-8f8d-05cf7c94fddc@lunn.ch> X-Last-TLS-Session-Version: TLSv1.3 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/ProductDoc= uments/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, --=20 Paul Louvel, Bootlin Embedded Linux and Kernel engineering https://bootlin.com