linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH 5/5] ARM: dts: sun5i: Add backlight node to sun5i-q8-common.dtsi
Date: Sun, 20 Sep 2015 11:21:54 -0400	[thread overview]
Message-ID: <55FECF12.7030601@redhat.com> (raw)
In-Reply-To: <55FECD38.9010503@redhat.com>

Hi,

On 09/20/2015 11:14 AM, Hans de Goede wrote:
> Hi,
>
> On 09/20/2015 10:46 AM, Chen-Yu Tsai wrote:
>> On Sun, Sep 20, 2015 at 8:30 PM, Hans de Goede <hdegoede@redhat.com> wrote:
>>> All A13 based q8 formfactor tablets use the same backlight setup, add
>>> a backlight devicetree node for controlling the backlight on these devices.
>>>
>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>> ---
>>>   arch/arm/boot/dts/sun5i-q8-common.dtsi | 11 +++++++++++
>>>   1 file changed, 11 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/sun5i-q8-common.dtsi b/arch/arm/boot/dts/sun5i-q8-common.dtsi
>>> index 0641d68..76a5204 100644
>>> --- a/arch/arm/boot/dts/sun5i-q8-common.dtsi
>>> +++ b/arch/arm/boot/dts/sun5i-q8-common.dtsi
>>> @@ -41,11 +41,22 @@
>>>    */
>>>   #include "sunxi-q8-common.dtsi"
>>>
>>> +#include <dt-bindings/pwm/pwm.h>
>>> +
>>>   / {
>>>          aliases {
>>>                  serial0 = &uart1;
>>>          };
>>>
>>> +       backlight: backlight {
>>> +               compatible = "pwm-backlight";
>>> +               pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
>>> +               brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
>>> +               default-brightness-level = <8>;
>>> +               /* TODO: backlight uses axp gpio1 as enable pin */
>>> +               /* TODO: backlight is powered by AXP209 DCDC1SW */
>>
>> There's no DCDC1SW on AXP209. The reference design shows the backlight
>> regulator is powered directly from IPSOUT,
>
> Ah, right, I'll do a v2 dropping this comment line.
>
>  > but the PWM pullup is powered
>> by LCD-VCC,  which itself is enabled by AXP209 GPIO0.
>>
>> Would that be the case, or maybe closer, given we don't have schematics?
>
> gpio0 needs to be driven high to get the backlight to lite up, that
> is pretty much all I know.

Correction, gpio1. I guess that pullup is only there to keep the backlight
off while the pwm pin is still muxed as input, rather then pwm-output.

Regards,

Hans

  reply	other threads:[~2015-09-20 15:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20 12:30 [PATCH 0/5] ARM: dts: sunxi: Add backlight node to q8 tablets Hans de Goede
2015-09-20 12:30 ` [PATCH 1/5] ARM: dts: sun5i: Add PWM controller node for A13/A10s Hans de Goede
2015-09-22 14:28   ` Maxime Ripard
2015-09-20 12:30 ` [PATCH 2/5] ARM: dts: sun5i: Add PWM channel 0 pinmux setting " Hans de Goede
2015-09-22 14:29   ` Maxime Ripard
2015-09-20 12:30 ` [PATCH 3/5] ARM: dts: sunxi: Enable PWM controller on Q8 format tablets Hans de Goede
2015-09-20 12:30 ` [PATCH 4/5] ARM: dts: sun8i: Add pwm-backlight device for A23/A33 " Hans de Goede
2015-09-22 14:44   ` Maxime Ripard
2015-09-20 12:30 ` [PATCH 5/5] ARM: dts: sun5i: Add backlight node to sun5i-q8-common.dtsi Hans de Goede
2015-09-20 14:46   ` Chen-Yu Tsai
2015-09-20 15:14     ` [linux-sunxi] " Hans de Goede
2015-09-20 15:21       ` Hans de Goede [this message]
2015-12-19 10:54   ` 8001010 at gmail.com
2015-12-22  3:21     ` Chen-Yu Tsai
     [not found] ` <fc4adcf5-4362-4d4c-b42e-729922c79f65@googlegroups.com>
2015-12-21 12:59   ` [linux-sunxi] Re: [PATCH 0/5] ARM: dts: sunxi: Add backlight node to q8 tablets Hans de Goede
2016-01-11 10:34     ` 8001010
2016-01-11 11:09       ` Hans de Goede

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=55FECF12.7030601@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).