Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966101AbdIZCGG (ORCPT ); Mon, 25 Sep 2017 22:06:06 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:54142 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754032AbdIZCDK (ORCPT ); Mon, 25 Sep 2017 22:03:10 -0400 X-UUID: 4b93a6d23bc043869f95ca752fd9fd6a-20170926 From: Ryder Lee To: Matthias Brugger CC: , , , , Erin Lo , YT Shen , Weiqing Kong , Ryder Lee Subject: [PATCH v2 02/10] arm: dts: mt2701: enable display pwm backlight Date: Tue, 26 Sep 2017 10:02:53 +0800 Message-ID: <0f9441e9fc40e47e94927a3a4c96dd3f7f287d94.1506390597.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1345 Lines: 60 From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- 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 = ; + }; + }; + spi_pins_a: spi0@0 { pins_spi { pinmux = , -- 1.9.1