Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Artem Novak" <artem122novak@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Zero
Date: Sun, 22 Nov 2026 10:27:25 +0000	[thread overview]
Message-ID: <sashiko-outbox-227892@kernel.org> (raw)
In-Reply-To: <20261122101759.206056-2-artem122novak@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ARM: dts: bcm2835: redundant inlining of
  bcm283x-rpi-led-deprecated.dtsi
--

commit 6102946db777d06293b2fcb5e3eab012124a2da6
Author: Artem Novak <artem122novak@gmail.com>

ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Zero

This commit replaces the bcm283x-rpi-led-deprecated.dtsi include in
bcm2835-rpi-zero.dts with an inline gpio-leds node.

> diff --git a/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts b/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts
> index 539c19c10946c..e01f668cb9e04 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";
> +		};
> +	};
>  };

[Severity: Low]
Why inline bcm283x-rpi-led-deprecated.dtsi here?

Commit 1156e3a78bcc ("ARM: dts: bcm283x: Move ACT LED into separate dtsi")
factored the legacy leds and led_act node into
bcm283x-rpi-led-deprecated.dtsi so existing Raspberry Pi boards could share
the deprecated label = "ACT" property (needed to preserve /sys/class/leds/ACT
for userspace) without new boards inheriting it from bcm2835-rpi.dtsi.

Open-coding the same node in bcm2835-rpi-zero.dts retains the deprecated
label = "ACT" property while duplicating the shared fragment used by the
other Raspberry Pi boards, and introduces a second / { ... }; root node block
in the middle of the phandle overrides.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261122101759.206056-1-artem122novak@gmail.com?part=1

  reply	other threads:[~2026-11-22 10:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  9:52 [PATCH 0/2] ARM: dts: bcm2835: replace deprecated LED fragment Artem Novak
2026-11-22  9:52 ` [PATCH 1/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Zero Artem Novak
2026-11-22 10:02   ` sashiko-bot
2026-11-22  9:52 ` [PATCH 2/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Model B Artem Novak
2026-11-22 10:02   ` sashiko-bot
2026-11-22 10:17 ` [PATCH v2 0/2] ARM: dts: bcm2835: replace deprecated LED fragment Artem Novak
2026-11-22 10:17   ` [PATCH v2 1/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Zero Artem Novak
2026-11-22 10:27     ` sashiko-bot [this message]
2026-11-22 10:17   ` [PATCH v2 2/2] ARM: dts: bcm2835: replace deprecated LED fragment on Raspberry Pi Model B Artem Novak
2026-11-22 10:26     ` sashiko-bot

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=sashiko-outbox-227892@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=artem122novak@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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