From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: "Weber, Thomas" <Thomas.Weber@corscience.com>,
"hns@goldelico.com" <hns@goldelico.com>,
"andrey_utkin@fastmail.com" <andrey_utkin@fastmail.com>
Cc: "linux-leds@vger.kernel.org" <linux-leds@vger.kernel.org>
Subject: Re: leds-is31fl319x
Date: Sun, 22 Sep 2024 14:39:22 +0200 [thread overview]
Message-ID: <e6b2eaae-580a-ea68-c0ba-ef55b2b699ff@gmail.com> (raw)
In-Reply-To: <BE1P281MB266384F3566241E8B6B5D048FA6C2@BE1P281MB2663.DEUP281.PROD.OUTLOOK.COM>
Hi Thomas,
On 9/20/24 16:48, Weber, Thomas wrote:
> Hello,
> you are listed as module authors for the leds-is31fl319x driver.
>
> Should the color property and the pattern property be functional in this module?
>
> I added this to my device tree
>
> is31fl@64 {
> compatible = "issi,is31fl3199";
> reg = <0x64>;
> #address-cells = <1>;
> #size-cells = <0>;
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_is31_sdb>;
> shutdown-gpios = <&gpio5 6 GPIO_ACTIVE_HIGH>;
>
> led@1 {
> reg = <1>;
> label = "IND_LED_WH_1";
> color = <LED_COLOR_ID_WHITE>;
> linux,default-trigger = "pattern";
> led-pattern = <0 1000 255 2000>;
> };
>
> led@2 {
> reg = <2>;
> label = "IND_LED_BU_1";
> color = <LED_COLOR_ID_BLUE>;
> };
>
> But in the rootfs I get this:
>
> root@vsm:/sys/class/leds/IND_LED_BU_1 cat color
> white
Are you working with mainline kernel? LED class does not create 'color'
sysfs file AFAICS, but uses that DT property to construct LED class
device name (and in LED class multicolor).
And anyway, this driver does not use
devm_led_classdev_register_ext(), which is required to parse color
property, so the LED class device name is created using what
is provided in 'label' DT property.
> root@vsm:/sys/class/leds/IND_LED_WH_1 cat trigger
> [none] timer heartbeat cpu cpu0 cpu1 cpu2 cpu3 default-on panic mmc2 sbs-2-000b-charging-or-full sbs-2-000b-charging sbs-2-000b-full sbs-2-000b-charging-blink-full-solid rfkill-any rfkill-none bluetooth-power
>
>
> What am I doing wrong?
You seem to have LEDS_TRIGGER_PATTERN turned off in kernel config.
> Best regards
> Thomas
>
--
Best regards,
Jacek Anaszewski
prev parent reply other threads:[~2024-09-22 12:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 14:48 leds-is31fl319x Weber, Thomas
2024-09-20 15:52 ` leds-is31fl319x H. Nikolaus Schaller
2024-09-25 9:00 ` AW: leds-is31fl319x Weber, Thomas
2024-09-22 12:39 ` Jacek Anaszewski [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=e6b2eaae-580a-ea68-c0ba-ef55b2b699ff@gmail.com \
--to=jacek.anaszewski@gmail.com \
--cc=Thomas.Weber@corscience.com \
--cc=andrey_utkin@fastmail.com \
--cc=hns@goldelico.com \
--cc=linux-leds@vger.kernel.org \
/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.