Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1279661

Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED binding information

From "Kim, Milo" <milo.kim@ti.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED binding information
Date 2015-11-30 09:20 +0100
Message-ID <qArQJ-14d-7@gated-at.bofh.it> (permalink)
References <qyYH7-1f6-3@gated-at.bofh.it> <qyYH7-1f6-9@gated-at.bofh.it> <qzpeh-27s-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Jacek,

On 11/27/2015 8:19 PM, Jacek Anaszewski wrote:
> Hi Milo,
>
> On 11/26/2015 07:56 AM, Milo Kim wrote:
>> LM3633 LED device is one of TI LMU device list.
>>
>> Cc: Rob Herring <robh+dt@kernel.org>
>> Cc: devicetree@vger.kernel.org
>> Cc: Lee Jones <lee.jones@linaro.org>
>> Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
>> Cc: Mark Brown <broonie@kernel.org>
>> Cc: linux-leds@vger.kernel.org
>> Cc: linux-kernel@vger.kernel.org
>> Signed-off-by: Milo Kim <milo.kim@ti.com>
>> ---
>>    .../devicetree/bindings/leds/leds-lm3633.txt       | 24 ++++++++++++++++++++++
>>    1 file changed, 24 insertions(+)
>>    create mode 100644 Documentation/devicetree/bindings/leds/leds-lm3633.txt
>>
>> diff --git a/Documentation/devicetree/bindings/leds/leds-lm3633.txt b/Documentation/devicetree/bindings/leds/leds-lm3633.txt
>> new file mode 100644
>> index 0000000..a553894
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/leds/leds-lm3633.txt
>> @@ -0,0 +1,24 @@
>> +TI LMU LM3633 LED device tree bindings
>> +
>> +Required properties:
>> +  - compatible: "ti,lm3633-leds"
>> +
>> +Child nodes:
>> +  Each node matches with LED control bank.
>> +  Please refer to the datasheet [1].
>
> leds/common.txt documentation says that child nodes represent discrete
> LED elements.
>
>> +  Required properties of a child node:
>> +  - led-sources: List of enabled channels from 0 to 5.
>> +                 Please refer to LED binding [2].
>
> led-sources property should contain always one element -
> a control bank identifier that the iout is to be associated with.
> For example, if there are three LEDs and they should be controlled
> with control bank A, then the bindings should look as follows
> (assuming that control bank identifiers start from 0 [A:0, B:1,
> C:2, etc. - it has to be also explicitly stated in the documentation]:

My understanding is 'led-sources' means output channel rather than 
control bank. Output channel is visible and intuitive - just output LED.
On the other hand, control banks works inside the silicon, LM3633.
I'm not sure other LED devices have control bank or not, but output 
channel is common concept.

>
> lvled1 {
> 	led-sources = <2>;
> 	led-max-microamp = <1000>;
> }
>
> lvled2 {
> 	led-sources = <2>;
> 	led-max-microamp = <29000>;
> }
>
> lvled3 {
> 	led-sources = <2>;
> 	led-max-microamp = <7000>;
> }

For this reason, I don't understand this LED configuration - one output 
channel with multiple LED devices. LED child node should be matched with 
led class device.
If three output channels are controlled by one control bank, then it 
should be represented as below.

lvled-group-A {
	led-sources = <0>, <1>, <2>;
	led-max-microamp = <some value>;
}

Please let me know if I misunderstand.

Best regards,
Milo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED binding information Milo Kim <milo.kim@ti.com> - 2015-11-26 08:00 +0100
  Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED  binding information Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-11-27 12:20 +0100
    Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED  binding information "Kim, Milo" <milo.kim@ti.com> - 2015-11-30 09:20 +0100
      Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED  binding information Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-11-30 13:30 +0100
        Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED  binding information "Kim, Milo" <milo.kim@ti.com> - 2015-12-07 09:50 +0100
          Re: [PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED  binding information Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-12-07 12:00 +0100

csiph-web