From: Erin Lo <erin.lo@mediatek.com>
To: Matthias Brugger <matthias.bgg@gmail.com>
Cc: <srv_heupstream@mediatek.com>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<linux-mediatek@lists.infradead.org>,
Weiqing Kong <weiqing.kong@mediatek.com>,
Erin Lo <erin.lo@mediatek.com>
Subject: [PATCH v2 3/4] arm: dts: mt2701: Add display bls related nodes for MT2701
Date: Thu, 22 Jun 2017 16:43:38 +0800 [thread overview]
Message-ID: <1498121019-21984-4-git-send-email-erin.lo@mediatek.com> (raw)
In-Reply-To: <1498121019-21984-1-git-send-email-erin.lo@mediatek.com>
From: Weiqing Kong <weiqing.kong@mediatek.com>
This patch adds board related config for backlight
Signed-off-by: Weiqing Kong <weiqing.kong@mediatek.com>
Signed-off-by: Erin Lo <erin.lo@mediatek.com>
---
arch/arm/boot/dts/mt2701-evb.dts | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts
index a483798..e49c2b7 100644
--- a/arch/arm/boot/dts/mt2701-evb.dts
+++ b/arch/arm/boot/dts/mt2701-evb.dts
@@ -22,6 +22,35 @@
memory {
reg = <0 0x80000000 0 0x40000000>;
};
+
+ backlight_lcd: backlight_lcd {
+ compatible = "pwm-backlight";
+ pwms = <&bls 0 100000>;
+ brightness-levels = <
+ 0 16 32 48 64 80 96 112
+ 128 144 160 176 192 208 224 240
+ 255
+ >;
+ default-brightness-level = <9>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm_bls_gpio>;
+ };
+};
+
+&bls {
+ status = "okay";
+};
+
+&mmsys {
+ status = "okay";
+};
+
+&pio {
+ pwm_bls_gpio: pwm_bls_gpio {
+ pins_cmd_dat {
+ pinmux = <MT2701_PIN_208_AUD_EXT_CK1__FUNC_DISP_PWM>;
+ };
+ };
};
&auxadc {
--
1.9.1
next prev parent reply other threads:[~2017-06-22 8:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-22 8:43 [PATCH v2 0/4] Add some DT nodes for Mediatek MT2701 Erin Lo
2017-06-22 8:43 ` [PATCH v2 1/4] arm: dts: mt2701: Add ethernet device node Erin Lo
2017-06-22 8:43 ` [PATCH v2 2/4] arm: dts: mt2701: Add display bls related nodes for MT2701 Erin Lo
2017-06-22 8:43 ` Erin Lo [this message]
2017-06-22 9:27 ` [PATCH v2 3/4] " Yingjoe Chen
2017-06-23 2:10 ` Weiqing Kong
2017-06-22 8:43 ` [PATCH v2 4/4] arm: dts: mt2701: Add display subsystem " Erin Lo
2017-06-23 4:13 ` Erin Lo
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=1498121019-21984-4-git-send-email-erin.lo@mediatek.com \
--to=erin.lo@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=srv_heupstream@mediatek.com \
--cc=weiqing.kong@mediatek.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).