Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1739439

[PATCH v2 02/10] arm: dts: mt2701: enable display pwm backlight

From Ryder Lee <ryder.lee@mediatek.com>
Newsgroups linux.kernel
Subject [PATCH v2 02/10] arm: dts: mt2701: enable display pwm backlight
Date 2017-09-26 04:10 +0200
Message-ID <utNtV-6AN-31@gated-at.bofh.it> (permalink)
References <utNtT-6AN-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/10] update MT7623 and MT2701 dts Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 03/10] arm: dts: mt2701: add display subsystem related nodes Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 06/10] arm: dts: mt7623: add subsystem clock controller nodes Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 09/10] arm: dts: mt7623: enable bananapi-r2 display function Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623 Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 05/10] arm: dts: mt7623: update pio, usb and crypto nodes Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
    Re: [PATCH v2 05/10] arm: dts: mt7623: update pio, usb and crypto  nodes Yingjoe Chen <yingjoe.chen@mediatek.com> - 2017-09-26 12:20 +0200
  [PATCH v2 02/10] arm: dts: mt2701: enable display pwm backlight Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 01/10] arm: dts: mt2701: add pwm backlight device node Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 07/10] arm: dts: mt7623: add iommmu and jpecdec nodes Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 08/10] arm: dts: mt7623: add display subsystem related nodes Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200
  [PATCH v2 10/10] arm: dts: mt7623: add PCIe related nodes Ryder Lee <ryder.lee@mediatek.com> - 2017-09-26 04:10 +0200

csiph-web