From: Hans de Goede <hdegoede@redhat.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
devicetree <devicetree@vger.kernel.org>,
Hans de Goede <hdegoede@redhat.com>
Subject: [PATCH v3 4/4] ARM: dts: sun5i: Add backlight node to sun5i-q8-common.dtsi
Date: Sun, 11 Oct 2015 11:55:08 +0200 [thread overview]
Message-ID: <1444557308-10892-4-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1444557308-10892-1-git-send-email-hdegoede@redhat.com>
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>
---
Changes in v2:
-Drop the comment about DCDC1SW, the axp209 used on A13 boards does not
have a DCDC1SW
---
arch/arm/boot/dts/sun5i-q8-common.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i-q8-common.dtsi b/arch/arm/boot/dts/sun5i-q8-common.dtsi
index 0641d68..a78e189 100644
--- a/arch/arm/boot/dts/sun5i-q8-common.dtsi
+++ b/arch/arm/boot/dts/sun5i-q8-common.dtsi
@@ -41,11 +41,21 @@
*/
#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 */
+ };
+
chosen {
stdout-path = "serial0:115200n8";
};
--
2.5.0
next prev parent reply other threads:[~2015-10-11 9:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-11 9:55 [PATCH v3 1/4] ARM: dts: sun5i: Add PWM controller node for A13 / A10s Hans de Goede
2015-10-11 9:55 ` [PATCH v3 2/4] ARM: dts: sun5i: Add PWM channel 0 pinmux setting for A13/A10s Hans de Goede
2015-10-12 13:51 ` Maxime Ripard
[not found] ` <1444557308-10892-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-11 9:55 ` [PATCH v3 3/4] ARM: dts: sunxi: Enable PWM controller on Q8 format tablets Hans de Goede
2015-10-12 13:51 ` Maxime Ripard
2015-10-11 9:55 ` Hans de Goede [this message]
2015-10-12 13:52 ` [PATCH v3 4/4] ARM: dts: sun5i: Add backlight node to sun5i-q8-common.dtsi Maxime Ripard
2015-10-12 13:50 ` [PATCH v3 1/4] ARM: dts: sun5i: Add PWM controller node for A13 / A10s Maxime Ripard
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=1444557308-10892-4-git-send-email-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=thierry.reding@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;
as well as URLs for NNTP newsgroup(s).