From: Hans de Goede <hdegoede@redhat.com>
To: Jacek Anaszewski <jacek.anaszewski@gmail.com>,
Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Yauhen Kharuzhy <jekhor@gmail.com>
Cc: linux-leds@vger.kernel.org
Subject: Re: [PATCH 3/5] leds: cht-wcove: Add support for breathing mode use hw_pattern sysfs API
Date: Wed, 19 Apr 2023 15:05:11 +0200 [thread overview]
Message-ID: <1b574301-3b13-61da-01e9-0c89f1546a1c@redhat.com> (raw)
In-Reply-To: <f3b16d48-50c0-0bf9-afe3-898434964e67@gmail.com>
Hi,
On 4/17/23 22:00, Jacek Anaszewski wrote:
> Hi Hans,
>
> On 4/16/23 22:31, Hans de Goede wrote:
>> Hi Jacek,
>>
>> On 4/16/23 17:17, Jacek Anaszewski wrote:
>>> Hi Hans,
>>>
> [...]
>>>> +===========================================================
>>>> +Kernel driver for Intel Cherry Trail Whiskey Cove PMIC LEDs
>>>> +===========================================================
>>>> +
>>>> +/sys/class/leds/<led>/hw_pattern
>>>> +--------------------------------
>>>> +
>>>> +Specify a hardware pattern for the Whiskey Cove PMIC LEDs.
>>>> +
>>>> +The only supported pattern is hardware breathing mode::
>>>> +
>>>> + "0 2000 1 2000"
>>>
>>> Why 1? What is the peek brightness in this mode?
>>
>> 255, but the pattern only controls the timing. For max brightness
>> the last set brightness is used and the max brightness can be changed
>> while breathing by writing the brightness attribute.
>>
>> This is just like how blinking works in the LED subsystem,
>> for both sw and hw blinking the brightness can also be changed
>> while blinking. Breathing on this hw really is just a variant
>> mode of blinking.
>
> Thanks for the explanation. So it would be nice to have it
> also mentioned explicitly here.
Ack, I'll add something like the above explanation to the
docs for v2.
Regards,
Hans
next prev parent reply other threads:[~2023-04-19 13:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 15:18 [PATCH 0/5] leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver Hans de Goede
2023-04-13 15:18 ` [PATCH 1/5] " Hans de Goede
2023-04-14 12:44 ` Pavel Machek
2023-04-19 13:04 ` Hans de Goede
2023-04-20 12:17 ` Hans de Goede
2023-04-13 15:18 ` [PATCH 2/5] leds: cht-wcove: Add suspend/resume handling Hans de Goede
2023-04-14 12:46 ` Pavel Machek
2023-04-13 15:18 ` [PATCH 3/5] leds: cht-wcove: Add support for breathing mode use hw_pattern sysfs API Hans de Goede
2023-04-16 15:17 ` Jacek Anaszewski
2023-04-16 20:31 ` Hans de Goede
2023-04-17 20:00 ` Jacek Anaszewski
2023-04-19 13:05 ` Hans de Goede [this message]
2023-04-13 15:18 ` [PATCH 4/5] leds: cht-wcove: Set default trigger for charging LED Hans de Goede
2023-04-13 15:18 ` [PATCH 5/5] leds: cht-wcove: Use breathing when LED_INIT_DEFAULT_TRIGGER is set Hans de Goede
2023-04-15 20:32 ` [PATCH 0/5] leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver Yauhen Kharuzhy
2023-04-16 13:04 ` Hans de Goede
2023-04-25 13:37 ` Hans de Goede
2023-04-26 11:12 ` Yauhen Kharuzhy
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=1b574301-3b13-61da-01e9-0c89f1546a1c@redhat.com \
--to=hdegoede@redhat.com \
--cc=jacek.anaszewski@gmail.com \
--cc=jekhor@gmail.com \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
/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;
as well as URLs for NNTP newsgroup(s).