Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751839AbdFZHw0 (ORCPT ); Mon, 26 Jun 2017 03:52:26 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:21550 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751441AbdFZHvw (ORCPT ); Mon, 26 Jun 2017 03:51:52 -0400 From: Erin Lo To: Matthias Brugger CC: , , , , , Weiqing Kong , Erin Lo Subject: [PATCH v3 3/4] arm: dts: mt2701: Add display bls related nodes for MT2701 Date: Mon, 26 Jun 2017 15:51:31 +0800 Message-ID: <1498463492-24633-4-git-send-email-erin.lo@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498463492-24633-1-git-send-email-erin.lo@mediatek.com> References: <1498463492-24633-1-git-send-email-erin.lo@mediatek.com> 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: 1217 Lines: 57 From: Weiqing Kong This patch adds board related config for backlight Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo --- 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 a483798..3c1cf20 100644 --- a/arch/arm/boot/dts/mt2701-evb.dts +++ b/arch/arm/boot/dts/mt2701-evb.dts @@ -22,13 +22,40 @@ 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>; + }; }; &auxadc { status = "okay"; }; +&bls { + status = "okay"; +}; + +&mmsys { + status = "okay"; +}; + &pio { + pwm_bls_gpio: pwm_bls_gpio { + pins_cmd_dat { + pinmux = ; + }; + }; + spi_pins_a: spi0@0 { pins_spi { pinmux = , -- 1.9.1