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


Groups > linux.kernel > #1267772

Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver

From Ingi Kim <ingi2.kim@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver
Date 2015-11-12 11:10 +0100
Message-ID <qtWZk-7yp-13@gated-at.bofh.it> (permalink)
References <qt6Hn-7hQ-3@gated-at.bofh.it> <qt6Ho-7hQ-13@gated-at.bofh.it> <qtk7F-7rz-23@gated-at.bofh.it> <qtUXw-62X-7@gated-at.bofh.it> <qtWmD-74z-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Jacek,

On 2015년 11월 12일 18:21, Jacek Anaszewski wrote:
> Hi Ingi,
> 
> On 11/12/2015 08:57 AM, Ingi Kim wrote:
> [...]
>>>> +        regmap_write(led->regmap, RT5033_REG_FLED_FUNCTION1, val);
>>>> +    } else {
>>>> +        regmap_update_bits(led->regmap, RT5033_REG_FLED_FUNCTION1,
>>>> +                   RT5033_FLED_FUNC1_MASK, RT5033_FLED_PINCTRL |
>>>> +                   rt5033_fled_used(led, fled_id));
>>>> +        regmap_update_bits(led->regmap,    RT5033_REG_FLED_CTRL1,
>>>> +                   RT5033_FLED_CTRL1_MASK,
>>>> +                   (brightness - 1) << 4);
>>>> +        regmap_update_bits(led->regmap, RT5033_REG_FLED_FUNCTION2,
>>>> +                   RT5033_FLED_FUNC2_MASK, RT5033_FLED_ENFLED);
>>>> +    }
>>>
>>> How are you distinguishing between setting brightness for iout_joint
>>> case and for individual LEDs? Have you tested this use case?
>>> Even if you don't have a board with two separate LEDs,
>>> you should be able to test two LED class devices with a single
>>> connected LED.
>>>
>>
>> Thanks, I missed a iout_joint case :(
>> I have tested a board with integrated single LED,
>> It looks fine and all feature works well even if it has limitation.
> 
> Please also test two separate LEDs case, by defining two child
> nodes in DT, and in a result you will get two LED class devices.
> After that you can set brightness separately for each LED class
> device, and you'll be able to verify that the driver works properly
> by observing the single LED connected to both outputs.
> In order to make the testing even more valuable, you can
> set triggers for both LEDs
> 

Oh, I ask of you, please do not misconstrue.
I'm sorry if my expression is rather misleading.

I have verified this driver works properly.
It already tested with two child nodes and observed single LED
that is connected to both outputs.

I just wanted to say that it works properly as you said.
--
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 | Find similar | Unroll thread


Thread

[PATCH v4 0/2] Add RT5033 Flash LED driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-10 03:20 +0100
  [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-10 03:20 +0100
    Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-11-10 17:40 +0100
      Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-12 09:00 +0100
        Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2015-11-12 10:30 +0100
          Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-12 11:10 +0100

csiph-web