* [PATCH] dt: aspeed: clemente: move hdd_led to its own gpio-leds group
@ 2025-10-23 10:26 Alex Wang via B4 Relay
2025-11-14 3:57 ` Andrew Jeffery
0 siblings, 1 reply; 2+ messages in thread
From: Alex Wang via B4 Relay @ 2025-10-23 10:26 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
Andrew Jeffery
Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
george.kw.lee, Alex Wang
From: Alex Wang <alex.ts.wang@fii-foxconn.com>
The gpio-leds driver requires all GPIOs in a group to be available;
if any GPIO in the group is missing the whole group will not be
created. The hdd_led GPIO is only present after standby power is
enabled, which can prevent other LEDs in the same group from being
created and blocks properly setting 'bmc_ready_noled'.
Move the 'hdd_led' node into a separate gpio-leds group so that other
LEDs are not blocked and the 'bmc_ready_noled' flag can be set
correctly.
Signed-off-by: Alex Wang <alex.ts.wang@fii-foxconn.com>
---
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
index 450446913e36..c58922695f46 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
@@ -96,7 +96,12 @@ led-3 {
gpios = <&gpio0 ASPEED_GPIO(P, 5) (GPIO_ACTIVE_HIGH|GPIO_TRANSITORY)>;
};
- led-hdd {
+ };
+
+ hdd-leds {
+ compatible = "gpio-leds";
+
+ led-0 {
label = "hdd_led";
gpios = <&io_expander13 1 GPIO_ACTIVE_LOW>;
};
---
base-commit: b5dd162282164dc202541ce6551cf705d345820e
change-id: 20251023-leo-dts-add-shunt-resistor-2810206a5dae
Best regards,
--
Alex Wang <alex.ts.wang@fii-foxconn.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt: aspeed: clemente: move hdd_led to its own gpio-leds group
2025-10-23 10:26 [PATCH] dt: aspeed: clemente: move hdd_led to its own gpio-leds group Alex Wang via B4 Relay
@ 2025-11-14 3:57 ` Andrew Jeffery
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Jeffery @ 2025-11-14 3:57 UTC (permalink / raw)
To: alex.ts.wang
Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
george.kw.lee, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Joel Stanley
On Thu, 2025-10-23 at 18:26 +0800, Alex Wang via B4 Relay wrote:
> From: Alex Wang <alex.ts.wang@fii-foxconn.com>
>
> The gpio-leds driver requires all GPIOs in a group to be available;
> if any GPIO in the group is missing the whole group will not be
> created.
>
To me its behaviour appears inconsistent. Contrast:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/leds/leds-gpio.c?h=v6.18-rc1#n176
with
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/leds/leds-gpio.c?h=v6.18-rc1#n281
The driver should probably pick one policy or the other?
> The hdd_led GPIO is only present after standby power is
> enabled, which can prevent other LEDs in the same group from being
> created and blocks properly setting 'bmc_ready_noled'.
>
> Move the 'hdd_led' node into a separate gpio-leds group so that other
> LEDs are not blocked and the 'bmc_ready_noled' flag can be set
> correctly.
How is standby power applied? What are you doing to enable the use of
hdd-leds once that occurs?
Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-14 3:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-23 10:26 [PATCH] dt: aspeed: clemente: move hdd_led to its own gpio-leds group Alex Wang via B4 Relay
2025-11-14 3:57 ` Andrew Jeffery
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).