Re: [PATCH v2 1/2] dt-binding: leds: Document leds-multi-gpio bindings

From: Hermes Zhang
Date: Mon Mar 29 2021 - 02:04:15 EST


On 3/28/21 2:12 AM, Rob Herring wrote:
>> +
>> + led-gpios:
>> + description: Array of one or more GPIOs pins used to control the LED.
>> + minItems: 1
>> + maxItems: 8 # Should be enough
>> +
>> + led-states:
>> + description: |
>> + The array list the supported states here which will map to brightness
>> + from 0 to maximum. Each item in the array will present all the GPIOs
>> + value by bit.
>> + $ref: /schemas/types.yaml#/definitions/uint8-array
>> + minItems: 1
>> + maxItems: 256 # Should be enough
> Isn't this the same as the standard 'brightness-levels' from backlight
> binding? The index is the level and the value is the h/w specific
> setting.

Yes, it seems same.


Best Regards,

Hermes