From: sashiko-bot@kernel.org
To: "Muzaffer Kadir" <muzafferkadir@mainlining.org>
Cc: devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org,
linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-input@vger.kernel.org, robh@kernel.org,
conor+dt@kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v6 11/11] arm64: dts: qcom: generalmobile-shamrock: new device
Date: Wed, 28 Oct 2026 11:28:36 +0000 [thread overview]
Message-ID: <sashiko-outbox-187817@kernel.org> (raw)
In-Reply-To: <20261028-msm8952-initial-support-v6-11-e07ddd8bcf4c@mainlining.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] arm64: dts: qcom: shamrock: missing color property on status LEDs breaks RGB
--
commit 8fec21f5539dc733f3dc08f3078a4a994d335e11
Author: Muzaffer Kadir <muzafferkadir@mainlining.org>
arm64: dts: qcom: generalmobile-shamrock: new device
This commit adds initial device tree support for the Qualcomm MSM8952-based
General Mobile GM 5 Plus (shamrock) smartphone.
> diff --git a/arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts b/arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts
> new file mode 100644
> index 0000000000000..26a269f0f7694
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts
> @@ -0,0 +1,439 @@
[ ... ]
> + multi-led {
> + compatible = "leds-group-multicolor";
> + color = <LED_COLOR_ID_RGB>;
> + function = LED_FUNCTION_INDICATOR;
> + leds = <&red_status>, <&green_status>, <&blue_status>;
> + };
[ ... ]
> + led-controller@68 {
> + compatible = "si-en,sn3193";
> + reg = <0x68>;
> +
> + shutdown-gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + red_status: led@1 {
> + reg = <1>;
> + label = "red:status";
> + led-max-microamp = <17500>;
> + };
> +
> + green_status: led@2 {
> + reg = <2>;
> + label = "green:status";
> + led-max-microamp = <17500>;
> + };
> +
> + blue_status: led@3 {
> + reg = <3>;
> + label = "blue:status";
> + led-max-microamp = <17500>;
> + };
> + };
[Severity: Medium]
Should the child LED nodes under led-controller@68 use the color and function
properties instead of the deprecated label property?
When is31fl319x_probe() registers each child LED via
devm_led_classdev_register_ext(), led_classdev_register_ext() in
drivers/leds/led-class.c only populates led_cdev->color when the color
property is present on the node:
if (fwnode_property_present(init_data->fwnode, "color"))
fwnode_property_read_u32(init_data->fwnode, "color",
&led_cdev->color);
Because red_status, green_status, and blue_status only specify label and omit
color, led_cdev->color remains 0 (LED_COLOR_ID_WHITE) for all three LEDs.
When leds_gmc_probe() in drivers/leds/rgb/leds-group-multicolor.c subsequently
probes the multi-led node, it sets each channel's color_index from
led_cdev->color:
for (i = 0; i < count; i++) {
struct led_classdev *led_cdev = priv->monochromatics[i];
subled[i].color_index = led_cdev->color;
/* Configure the LED intensity to its maximum */
subled[i].intensity = max_brightness;
}
Without color = <LED_COLOR_ID_RED>, <LED_COLOR_ID_GREEN>, and
<LED_COLOR_ID_BLUE> on led@1, led@2, and led@3, multi_index in sysfs reports
"white white white" instead of "red green blue".
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261028-msm8952-initial-support-v6-0-e07ddd8bcf4c@mainlining.org?part=11
prev parent reply other threads:[~2026-10-28 11:28 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 11:17 [PATCH v6 00/11] Add Initial Support For MSM8952, Add General Mobile Shamrock Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 01/11] dt-bindings: nvmem: Add compatible for MSM8952 Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 02/11] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 03/11] dt-bindings: watchdog: qcom-wdt: Document MSM8952 watchdog Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 04/11] dt-bindings: sram: qcom,imem: Document MSM8952 compatible Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 05/11] dt-bindings: mailbox: qcom: Add MSM8952 APCS compatible Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 06/11] dt-bindings: clock: qcom,a53pll: Add MSM8952 compatible Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 07/11] dt-bindings: display: msm: dsi-controller-main: " Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` Muzaffer Kadir
2026-10-28 11:17 ` [PATCH v6 08/11] dt-bindings: remoteproc: qcom: adsp: Add MSM8952 ADSP compatible Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` [PATCH v6 09/11] arm64: dts: qcom: Add initial support for MSM8952 Muzaffer Kadir
2026-10-28 11:17 ` Muzaffer Kadir via B4 Relay
2026-10-28 11:51 ` sashiko-bot
2026-10-28 11:17 ` [PATCH v6 10/11] dt-bindings: input: touchscreen: goodix: Add binding for GT970 Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` Muzaffer Kadir
2026-10-28 11:17 ` [PATCH v6 11/11] arm64: dts: qcom: generalmobile-shamrock: new device Muzaffer Kadir via B4 Relay
2026-10-28 11:17 ` Muzaffer Kadir
2026-10-28 11:28 ` sashiko-bot [this message]
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-187817@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=muzafferkadir@mainlining.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.