From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Cc: Martin Kurbanov <MMKurbanov@sberdevices.ru>,
Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Jonathan Corbet <corbet@lwn.net>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
"linux-leds@vger.kernel.org" <linux-leds@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
kernel <kernel@sberdevices.ru>
Subject: Re: [PATCH v1 1/2] dt-bindings: leds: add binding for aw200xx
Date: Sat, 3 Dec 2022 11:44:03 +0100 [thread overview]
Message-ID: <f4c98f85-a39a-77ff-3b69-e461f482fee7@linaro.org> (raw)
In-Reply-To: <20221202185308.zh5kesfxvyrco2cr@CAB-WSD-L081021>
On 02/12/2022 19:53, Dmitry Rokosov wrote:
> Hello Krzysztof,
>
> On Fri, Dec 02, 2022 at 05:41:37PM +0100, Krzysztof Kozlowski wrote:
>> On 28/11/2022 18:43, Martin Kurbanov wrote:
>>> Hi. Thank you for quick reply.
>>>
>>> On 25.11.2022 11:29, Krzysztof Kozlowski wrote:
>>>>> +
>>>>> + imax:
>>>>> + maxItems: 1
>>>>> + description:
>>>>> + Maximum supply current, see dt-bindings/leds/leds-aw200xx.h
>>>>
>>>> No. Use existing properties from common.yaml. This looks like
>>>> led-max-microamp and it is per LED, not per entire device.
>>>
>>> The AW200XX LED chip does not support imax setup per led.
>>> Imax is the global parameter over the all leds. I suppose, it's better
>>> to add vendor prefix or take minimum from all subnodes?
>>> How do you think?
>>
>> Have in mind that led-max-microamp is a required property in some cases,
>> so skipping it and using per-device properties does not solve the
>> problem of adjusting proper currents. What if each LED you set for
>> something which in total gives more than your imax?
>>
>
> You are right. From my point of view too, we must build our solutions from
> HW capabilities.
And there was no proposal to go around HW capabilities. We talk only
about representation.
> In the current situation, AW200XX chips support global
> Imax value, so it's acceptable decision to use vendor prefix for global
> imax parameter, why not?
Jacek made his statement some time ago quite clear:
https://lore.kernel.org/all/5785F17D.3010108@samsung.com/
"If you question the idea of having different maximum brightness per
sub-LEDs controlled by the same device, then it means that you have
objections to the entire idea of LED subsystem max_brightness property,
whereas it has been broadly accepted and successfully used for years."
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-12-03 10:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-24 20:48 [PATCH v1 0/2] leds: add aw20xx driver Martin Kurbanov
2022-11-24 20:48 ` [PATCH v1 1/2] dt-bindings: leds: add binding for aw200xx Martin Kurbanov
2022-11-25 8:29 ` Krzysztof Kozlowski
2022-11-28 17:43 ` Martin Kurbanov
2022-12-02 16:41 ` Krzysztof Kozlowski
2022-12-02 18:53 ` Dmitry Rokosov
2022-12-03 10:44 ` Krzysztof Kozlowski [this message]
2022-11-24 20:48 ` [PATCH v1 2/2] leds: add aw20xx driver Martin Kurbanov
2022-11-25 2:37 ` kernel test robot
2022-11-25 8:19 ` Krzysztof Kozlowski
2022-11-28 17:45 ` Martin Kurbanov
2022-12-07 19:48 ` Pavel Machek
2022-11-25 19:17 ` kernel test robot
2022-12-07 19:49 ` Pavel Machek
2022-12-31 15:44 ` kernel test robot
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=f4c98f85-a39a-77ff-3b69-e461f482fee7@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=MMKurbanov@sberdevices.ru \
--cc=andy.shevchenko@gmail.com \
--cc=corbet@lwn.net \
--cc=ddrokosov@sberdevices.ru \
--cc=devicetree@vger.kernel.org \
--cc=kernel@sberdevices.ru \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=robh+dt@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 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).