Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
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 3/5] arm: dts: mt2701: Add display bls related nodes for MT2701
Date: Tue, 1 Aug 2017 15:03:31 +0800	[thread overview]
Message-ID: <1501571013-22327-4-git-send-email-erin.lo@mediatek.com> (raw)
In-Reply-To: <1501571013-22327-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 | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts
index f484973..b96e34d 100644
--- a/arch/arm/boot/dts/mt2701-evb.dts
+++ b/arch/arm/boot/dts/mt2701-evb.dts
@@ -23,6 +23,19 @@
 		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>;
+	};
+
 	sound:sound {
 		compatible = "mediatek,mt2701-cs42448-machine";
 		mediatek,platform = <&afe>;
@@ -62,6 +75,10 @@
 	status = "okay";
 };
 
+&bls {
+	status = "okay";
+};
+
 &i2c0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c0_pins_a>;
@@ -86,6 +103,10 @@
 	};
 };
 
+&mmsys {
+	status = "okay";
+};
+
 &pio {
 	i2c0_pins_a: i2c0@0 {
 		pins1 {
@@ -111,6 +132,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

  parent reply	other threads:[~2017-08-01  7:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-01  7:03 [PATCH 0/5] Add some DT nodes for Mediatek MT2701 Erin Lo
2017-08-01  7:03 ` [PATCH 1/5] arm: dts: mt2701: Add ethernet device node Erin Lo
2017-08-01  7:03 ` [PATCH 2/5] arm: dts: mt2701: Add display bls related nodes for MT2701 Erin Lo
2017-08-01  7:03 ` Erin Lo [this message]
2017-08-01  7:03 ` [PATCH 4/5] arm: dts: mt2701: Add display subsystem " Erin Lo
     [not found] ` <1501571013-22327-1-git-send-email-erin.lo-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-08-01  7:03   ` [PATCH 5/5] arm: dts: mt2701: Add usb3 device nodes Erin Lo
2017-08-01 14:06 ` [PATCH 0/5] Add some DT nodes for Mediatek MT2701 Matthias Brugger
     [not found]   ` <f1ea36ee-0a8b-135a-f5f1-67ba7f6dbbce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-02  4:56     ` 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=1501571013-22327-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