From: Ryder Lee <ryder.lee@mediatek.com>
To: Matthias Brugger <matthias.bgg@gmail.com>
Cc: <linux-mediatek@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Erin Lo <erin.lo@mediatek.com>, YT Shen <yt.shen@mediatek.com>,
Weiqing Kong <weiqing.kong@mediatek.com>,
Ryder Lee <ryder.lee@mediatek.com>
Subject: [PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight
Date: Mon, 2 Oct 2017 09:54:52 +0800 [thread overview]
Message-ID: <0f9441e9fc40e47e94927a3a4c96dd3f7f287d94.1506908511.git.ryder.lee@mediatek.com> (raw)
In-Reply-To: <cover.1506908511.git.ryder.lee@mediatek.com>
From: Weiqing Kong <weiqing.kong@mediatek.com>
This patch adds board related config for MT2701 pwm backlight.
Signed-off-by: Weiqing Kong <weiqing.kong@mediatek.com>
Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
arch/arm/boot/dts/mt2701-evb.dts | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts
index f484973..63af4b1 100644
--- a/arch/arm/boot/dts/mt2701-evb.dts
+++ b/arch/arm/boot/dts/mt2701-evb.dts
@@ -56,12 +56,29 @@
bt_sco_codec:bt_sco_codec {
compatible = "linux,bt-sco";
};
+
+ 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>;
+ };
};
&auxadc {
status = "okay";
};
+&bls {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm_bls_gpio>;
+};
+
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
@@ -111,6 +128,12 @@
};
};
+ pwm_bls_gpio: pwm_bls_gpio {
+ pins_cmd_dat {
+ pinmux = <MT2701_PIN_208_AUD_EXT_CK1__FUNC_DISP_PWM>;
+ };
+ };
+
spi_pins_a: spi0@0 {
pins_spi {
pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>,
--
1.9.1
next prev parent reply other threads:[~2017-10-02 1:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-02 1:54 [PATCH v3 00/10] update MT7623 and MT2701 dts Ryder Lee
2017-10-02 1:54 ` [PATCH v3 01/10] arm: dts: mt2701: add pwm backlight device node Ryder Lee
2017-10-19 16:48 ` Matthias Brugger
2017-10-02 1:54 ` Ryder Lee [this message]
2017-10-19 16:48 ` [PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight Matthias Brugger
2017-10-02 1:54 ` [PATCH v3 03/10] arm: dts: mt2701: add display subsystem related nodes Ryder Lee
2017-10-02 1:54 ` [PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623 Ryder Lee
2017-10-19 16:49 ` Matthias Brugger
2017-10-02 1:54 ` [PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes Ryder Lee
2017-10-19 16:29 ` Matthias Brugger
2017-10-20 1:55 ` Ryder Lee
2017-10-20 9:12 ` Matthias Brugger
2017-10-02 1:54 ` [PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes Ryder Lee
2017-10-19 16:31 ` Matthias Brugger
2017-10-02 1:54 ` [PATCH v3 07/10] arm: dts: mt7623: add iommu and jpecdec nodes Ryder Lee
2017-10-02 1:54 ` [PATCH v3 08/10] arm: dts: mt7623: add display subsystem related nodes Ryder Lee
2017-10-02 1:54 ` [PATCH v3 09/10] arm: dts: mt7623: enable bananapi-r2 display function Ryder Lee
2017-10-02 1:55 ` [PATCH v3 10/10] arm: dts: mt7623: add PCIe related nodes Ryder Lee
2017-10-19 16:49 ` Matthias Brugger
2017-10-11 9:02 ` [PATCH v3 00/10] update MT7623 and MT2701 dts Ryder Lee
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=0f9441e9fc40e47e94927a3a4c96dd3f7f287d94.1506908511.git.ryder.lee@mediatek.com \
--to=ryder.lee@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=erin.lo@mediatek.com \
--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=weiqing.kong@mediatek.com \
--cc=yt.shen@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
all inboxes | Powered by JetHome®