Re: [PATCH v2] dt-bindings: leds: Document commonly used LED triggers

From: Leizhen (ThunderTown)
Date: Tue Jan 26 2021 - 22:54:36 EST


Hi Manivannan:
Do you have time to prepare v3? Hope it can be applied into v5.12


On 2020/12/15 6:36, Rob Herring wrote:
> On Thu, Dec 10, 2020 at 01:54:49PM +0530, Manivannan Sadhasivam wrote:
>> This commit documents the LED triggers used commonly in the SoCs. Not
>> all triggers are documented as some of them are very application specific.
>> Most of the triggers documented here are currently used in devicetrees
>> of many SoCs.
>
> The idea with recent LED binding changes is to move away from
> 'linux,default-trigger' to 'function' and 'trigger-sources' and to have
> some sort of standardized names.
>
>>
>> While at it, let's also sort the triggers in ascending order.
>
> I'm not sure we want that. Probably better to keep related functions
> together.
>
>>
>> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
>> ---
>>
>> Changes in v2:
>>
>> * Added more triggers, fixed the regex
>> * Sorted triggers in ascending order
>>
>> .../devicetree/bindings/leds/common.yaml | 78 ++++++++++++++-----
>> 1 file changed, 60 insertions(+), 18 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
>> index f1211e7045f1..3c2e2208c1da 100644
>> --- a/Documentation/devicetree/bindings/leds/common.yaml
>> +++ b/Documentation/devicetree/bindings/leds/common.yaml