From patchwork Mon Jul 11 08:18:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiqing Kong X-Patchwork-Id: 9223005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6594060572 for ; Mon, 11 Jul 2016 08:21:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 559DE27569 for ; Mon, 11 Jul 2016 08:21:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4988427AC2; Mon, 11 Jul 2016 08:21:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BB7F027569 for ; Mon, 11 Jul 2016 08:21:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMWSo-0000ME-W7; Mon, 11 Jul 2016 08:21:15 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMWSk-00009J-8P; Mon, 11 Jul 2016 08:21:11 +0000 Received: from mtkhts07.mediatek.inc [(172.21.101.69)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1399404265; Mon, 11 Jul 2016 16:20:50 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkhts07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.266.1; Mon, 11 Jul 2016 16:20:48 +0800 From: Weiqing Kong To: Thierry Reding , Mark Rutland , Matthias Brugger , Subject: [PATCH V2 3/3] dts: Add disp bls dtsi and dts config for MT2701 Date: Mon, 11 Jul 2016 16:18:09 +0800 Message-ID: <1468225089-28576-4-git-send-email-weiqing.kong@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1468225089-28576-1-git-send-email-weiqing.kong@mediatek.com> References: <1468225089-28576-1-git-send-email-weiqing.kong@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160711_012110_561892_A1C3961D X-CRM114-Status: GOOD ( 13.72 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, yh.huang@mediatek.com, Russell King , srv_heupstream@mediatek.com, Pawel Moll , Ian Campbell , erin.lo@mediatek.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , linux-mediatek@lists.infradead.org, Sascha Hauer , Kumar Gala , yt.shen@mediatek.com, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add disp_bls node in dtsi for CCF, add backlight_lcd in dts for backlight subsystem driver, and init pwm gpio mode. Signed-off-by: Weiqing Kong --- arch/arm/boot/dts/mt2701-evb.dts | 29 +++++++++++++++++++++++++++++ arch/arm/boot/dts/mt2701.dtsi | 9 +++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts index 082ca88..6d572f4 100644 --- a/arch/arm/boot/dts/mt2701-evb.dts +++ b/arch/arm/boot/dts/mt2701-evb.dts @@ -22,6 +22,35 @@ memory { reg = <0 0x80000000 0 0x40000000>; }; + + backlight_lcd: backlight_lcd { + compatible = "pwm-backlight"; + pwms = <&disp_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>; + }; +}; + +&disp_bls { + status = "okay"; +}; + +&mmsys { + status = "okay"; +}; + +&pio { + pwm_bls_gpio: pwm_bls_gpio { + pins_cmd_dat { + pinmux = ; + }; + }; }; &uart0 { diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 42d5a37..49b8767 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi @@ -234,6 +234,15 @@ status = "disabled"; }; + disp_bls: dispsys@1400a000 { + compatible = "mediatek,mt2701-disp-pwm"; + reg = <0 0x1400a000 0 0x1000>; + #pwm-cells = <2>; + clocks = <&mmsys CLK_MM_MDP_BLS_26M>, <&mmsys CLK_MM_DISP_BLS>; + clock-names = "main", "mm"; + status = "disabled"; + }; + imgsys: syscon@15000000 { compatible = "mediatek,mt2701-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>;