[PATCH v2 1/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Zero
From: Artem Novak
Date: Sun Nov 22 2026 - 05:18:13 EST
Preserve the leds and led_act labels when replacing the deprecated
LED fragment with a board-local gpio-leds node.
These labels are exported as device tree symbols and may be referenced
by overlays.
Signed-off-by: Artem Novak <artem122novak@xxxxxxxxx>
---
arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts b/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts
index 539c19c10946..e01f668cb9e0 100644
--- a/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts
+++ b/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts
@@ -7,7 +7,6 @@
#include "bcm2835.dtsi"
#include "bcm2835-rpi.dtsi"
#include "bcm2835-rpi-common.dtsi"
-#include "bcm283x-rpi-led-deprecated.dtsi"
#include "bcm283x-rpi-usb-otg.dtsi"
/ {
@@ -101,8 +100,17 @@ &hdmi {
status = "okay";
};
-&led_act {
- gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
+/ {
+ leds: leds {
+ compatible = "gpio-leds";
+
+ led_act: led-act {
+ label = "ACT";
+ gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
+ default-state = "keep";
+ linux,default-trigger = "heartbeat";
+ };
+ };
};
&sdhost {
--
2.56.1