[PATCH 2/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Model B

From: Artem Novak

Date: Sun Nov 22 2026 - 04:52:40 EST


Replace the deprecated LED fragment with a board-local gpio-leds
node, preserving the ACT LED GPIO assignment and configuration.

Signed-off-by: Artem Novak <artem122novak@xxxxxxxxx>
---
arch/arm/boot/dts/broadcom/bcm2835-rpi-b.dts | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/broadcom/bcm2835-rpi-b.dts b/arch/arm/boot/dts/broadcom/bcm2835-rpi-b.dts
index 72764be75a79..040ba7f45216 100644
--- a/arch/arm/boot/dts/broadcom/bcm2835-rpi-b.dts
+++ b/arch/arm/boot/dts/broadcom/bcm2835-rpi-b.dts
@@ -3,7 +3,6 @@
#include "bcm2835.dtsi"
#include "bcm2835-rpi.dtsi"
#include "bcm2835-rpi-common.dtsi"
-#include "bcm283x-rpi-led-deprecated.dtsi"
#include "bcm283x-rpi-smsc9512.dtsi"
#include "bcm283x-rpi-usb-host.dtsi"

@@ -93,8 +92,17 @@ &hdmi {
status = "okay";
};

-&led_act {
- gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
+/ {
+ leds {
+ compatible = "gpio-leds";
+
+ led-act {
+ label = "ACT";
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
+ default-state = "keep";
+ linux,default-trigger = "heartbeat";
+ };
+ };
};

&pwm {
--
2.56.1