Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Tomasz Figa <t.figa@samsung.com>
To: "Andreas Färber" <afaerber@suse.de>,
	"Tomasz Figa" <tomasz.figa@gmail.com>,
	"Ajay kumar" <ajaynumb@gmail.com>
Cc: Ajay Kumar <ajaykumar.rs@samsung.com>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>,
	Kukjin Kim <kgene.kim@samsung.com>,
	sunil joshi <joshi@samsung.com>,
	Prashanth G <prashanth.g@samsung.com>,
	Olof Johansson <olof@lixom.net>
Subject: Re: [PATCH] ARM: dts: enable pwm backlight on exynos5250-snow
Date: Thu, 08 May 2014 18:08:36 +0200	[thread overview]
Message-ID: <536BAC04.4000203@samsung.com> (raw)
In-Reply-To: <536BA90A.60406@suse.de>

On 08.05.2014 17:55, Andreas Färber wrote:
> Hi,
> 
> Am 07.05.2014 22:50, schrieb Tomasz Figa:
>> On 07.05.2014 22:47, Ajay kumar wrote:
>>> On Thu, May 8, 2014 at 2:04 AM, Tomasz Figa <tomasz.figa@gmail.com>
>>> wrote:
>>>> On 07.05.2014 14:56, Ajay Kumar wrote:
>>>>>
>>>>> Add PWM backlight node for exynos5250 and enable the same on exynos5250
>>>>> based snow board.
>>>>>
>>>>> Signed-off-by: Olof Johansson <olof@lixom.net>
>>>>> Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
>>>>> ---
>>>>>    arch/arm/boot/dts/exynos5250-pinctrl.dtsi |    7 +++++++
>>>>>    arch/arm/boot/dts/exynos5250-snow.dts     |    5 +++++
>>>>>    arch/arm/boot/dts/exynos5250.dtsi         |   10 ++++++++++
>>>>>    3 files changed, 22 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
>>>>> b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
>>>>> index 9a49e68..2a4680c 100644
>>>>> --- a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
>>>>> +++ b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
>>>>> @@ -351,6 +351,13 @@
>>>>>                          samsung,pin-drv = <0>;
>>>>>                  };
>>>>>
>>>>> +               backlight_pwm: backlight-pwm {
>>>>> +                       samsung,pins = "gpb2-0";
>>>>> +                       samsung,pin-function = <2>;
>>>>> +                       samsung,pin-pud = <0>;
>>>>> +                       samsung,pin-drv = <0>;
>>>>> +               };
>>>>
>>>>
>>>> This looks like a generic PWM output function, not specific to
>>>> backlight in
>>>> any way.
>>>>
>>>> Please see patch [1] adding PWM output pin groups for Exynos5420 for
>>>> reference.
>>>>
>>>> [1]
>>>> https://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg29869.html
>>>>
>>> Right! I just referred to the manual again, and it actually reads TOUT_0.
>>> So, I should be probably renaming this as "pwm0_out" like in the other
>>> patch?
>>
>> Yes, please. You should also add remaining ones, while at it. Basically
>> same patch as [1] but for Exynos5250.
> 
> Don't we also need patches to exynos_defconfig? linux.git only has
> CONFIG_S3C24XX_PWM=y but for snow I've seen github.com/linux-exynos add:
> CONFIG_PWM=y
> CONFIG_PWM_SAMSUNG=y
> CONFIG_BACKLIGHT_PWM=y

Right. The current exynos_defconfig lacks many other options as well.
But this should be fixed by separate patch. Feel free to send a patch to
enable what you need on your hardware.

Best regards,
Tomasz

      reply	other threads:[~2014-05-08 16:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 12:56 [PATCH] ARM: dts: enable pwm backlight on exynos5250-snow Ajay Kumar
2014-05-07 20:34 ` Tomasz Figa
2014-05-07 20:47   ` Ajay kumar
2014-05-07 20:50     ` Tomasz Figa
2014-05-08  9:54       ` Ajay kumar
2014-05-08 11:52         ` Tomasz Figa
2014-05-08 15:55       ` Andreas Färber
2014-05-08 16:08         ` Tomasz Figa [this message]

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=536BAC04.4000203@samsung.com \
    --to=t.figa@samsung.com \
    --cc=afaerber@suse.de \
    --cc=ajaykumar.rs@samsung.com \
    --cc=ajaynumb@gmail.com \
    --cc=joshi@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=prashanth.g@samsung.com \
    --cc=tomasz.figa@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox