All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Ingi Kim <ingi2.kim@samsung.com>,
	Jacek Anaszewski <j.anaszewski@samsung.com>
Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
	ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
	sameo@linux.intel.com, lee.jones@linaro.org, rpurdie@rpsys.net,
	inki.dae@samsung.com, sw0312.kim@samsung.com,
	beomho.seo@samsung.com, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org
Subject: Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver
Date: Thu, 12 Nov 2015 10:21:02 +0100	[thread overview]
Message-ID: <564459FE.8020209@gmail.com> (raw)
In-Reply-To: <56444681.9020604@samsung.com>

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

-- 
Best Regards,
Jacek Anaszewski

  reply	other threads:[~2015-11-12  9:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10  2:17 [PATCH v4 0/2] Add RT5033 Flash LED driver Ingi Kim
2015-11-10  2:17 ` Ingi Kim
2015-11-10  2:17 ` [PATCH v4 1/2] leds: rt5033: Add DT binding for RT5033 Ingi Kim
2015-11-10  2:17 ` [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim
     [not found]   ` <1447121864-15460-3-git-send-email-ingi2.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-11-10 16:30     ` Jacek Anaszewski
2015-11-10 16:30       ` Jacek Anaszewski
2015-11-12  7:57       ` Ingi Kim
2015-11-12  9:21         ` Jacek Anaszewski [this message]
2015-11-12 10:07           ` Ingi Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=564459FE.8020209@gmail.com \
    --to=jacek.anaszewski@gmail.com \
    --cc=beomho.seo@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=ingi2.kim@samsung.com \
    --cc=inki.dae@samsung.com \
    --cc=j.anaszewski@samsung.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=rpurdie@rpsys.net \
    --cc=sameo@linux.intel.com \
    --cc=sw0312.kim@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.