Re: [RFC PATCH 0/2] Multicolor PWM LED support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jacek,

Thank you for your feedback!

On 1/25/22 23:31, Jacek Anaszewski wrote:

   1. Currently, the max-brightness property is expected as a property to
      the multi-led node. That seems consistent with the existing
      multicolor class code, but I'm wondering whether it would make
      sense to have a max-brigthness for the individual LEDs as well?

For the proper mixed color calculation all sub-leds should have
the same max_brightness as the global max_brightness.

Look at how sub-led intensities are calculated in
led_mc_calc_color_components().

See also [0] and [1].

OK, thanks. That makes sense.

   2. The current multi-led node definition calls for a node index which
      would in turn require the reg property to be set within the node.
      In this context, that doesn't seem to make sense. Should this
      requirement be lifted from leds-class-multicolor.yaml?

reg is required for all DT nodes with address unit in the name.
If you skipped the address unit, then reg would be also not required.

Yes, I realize this. However, leds-class-multicolor.yaml [0] requires the address unit: "^multi-led@([0-9a-f])$"

Best regards,
Sven

[0] Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux