From: mamlinav@gmail.com (Aleksei Mamlin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ARM: dts: sun7i: Add backlight node to Wexler TAB7200 tablet
Date: Fri, 18 Dec 2015 11:52:22 +0300 [thread overview]
Message-ID: <1450428742-5737-1-git-send-email-mamlinav@gmail.com> (raw)
In-Reply-To: <1450428591-5597-1-git-send-email-mamlinav@gmail.com>
Add a backlight for controlling the lcd panel backlight on Wexler TAB7200 tablet
Signed-off-by: Aleksei Mamlin <mamlinav@gmail.com>
---
arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts b/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts
index 1dc9079..f47e5f1 100644
--- a/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts
+++ b/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts
@@ -48,6 +48,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pwm/pwm.h>
/ {
model = "Wexler TAB7200";
@@ -57,6 +58,16 @@
serial0 = &uart0;
};
+ 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>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&bl_enable_pin>;
+ enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+ };
+
chosen {
stdout-path = "serial0:115200n8";
};
@@ -158,6 +169,13 @@
};
&pio {
+ bl_enable_pin: bl_enable_pin at 0 {
+ allwinner,pins = "PH7";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
ts_reset_pin: ts_reset_pin at 0 {
allwinner,pins = "PB13";
allwinner,function = "gpio_out";
--
2.4.10
next prev parent reply other threads:[~2015-12-18 8:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-18 8:49 [PATCH 0/4] ARM: dts: sun7i: Devicetree improvements for the Wexler TAB7200 Aleksei Mamlin
2015-12-18 8:51 ` [PATCH 1/4] ARM: dts: sun7i: Enable touchscreen on Wexler TAB7200 tablet Aleksei Mamlin
2015-12-18 21:25 ` Maxime Ripard
[not found] ` <CAF==cZWcY=FH9Sr8RY4j4Ob8iuiYrBGkajZDWpNQzS-t4d074Q@mail.gmail.com>
2015-12-21 15:43 ` Maxime Ripard
2015-12-21 15:44 ` Maxime Ripard
2015-12-18 8:52 ` [PATCH 2/4] ARM: dts: sun7i: Enable PWM controller " Aleksei Mamlin
2015-12-18 21:25 ` Maxime Ripard
2015-12-18 8:52 ` Aleksei Mamlin [this message]
2015-12-18 21:27 ` [PATCH 3/4] ARM: dts: sun7i: Add backlight node to " Maxime Ripard
2015-12-21 15:45 ` Maxime Ripard
2015-12-18 8:52 ` [PATCH 4/4] ARM: dts: sun7i: Add PA gpio pin " Aleksei Mamlin
2015-12-21 15:45 ` 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=1450428742-5737-1-git-send-email-mamlinav@gmail.com \
--to=mamlinav@gmail.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).