From patchwork Thu Jun 1 06:08:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erin Lo X-Patchwork-Id: 9758711 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 26A2960360 for ; Thu, 1 Jun 2017 06:09:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1870D1FFB1 for ; Thu, 1 Jun 2017 06:09:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D50326E4E; Thu, 1 Jun 2017 06:09:37 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E4571FFB1 for ; Thu, 1 Jun 2017 06:09:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5jGAFoaDhpGx6vLBPoC/5iX3tp+2awAlJ68kXNTnKFU=; b=f2YZ0wLTD+2CTr cmPVT8+2voDicvMzUs0yPpUjorSVCJCw4p+l/3BDYXMXglu9JjK+7YVSp3qy39eXA2iLHD82iagGn v9/XIQavqhAW4EsxTZpwk14tuygsuuCcF7JibSRz0Gi7Xv1cDSrH5awOpJwnqj2Ex26MrxBRFe1lb qRgkThS9qXobdeoOY4lUfzWKFNPwpGaaAioxRuWivaLFai8ssDc2zFX+JWwc4J6FFJt+ZQRldzmn7 w8JJpAvIEbsLymTEzjSZbclfwGYbqPyhBY+W3Kjnt+OTHfpOXCEQteSUA7vfxpKzvlo8C3ZeUnW7q VwB3w7jXEPJmYfEyTuMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dGJIb-0004ud-Mq; Thu, 01 Jun 2017 06:09:33 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGJIN-0004eK-Rx; Thu, 01 Jun 2017 06:09:21 +0000 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1436009165; Thu, 01 Jun 2017 14:08:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 1 Jun 2017 14:08:53 +0800 Received: from mtkslt209.mediatek.inc (10.21.15.96) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 1 Jun 2017 14:08:53 +0800 From: Erin Lo To: Matthias Brugger Subject: [PATCH 2/3] arm: dts: mt2701: Add display bls related nodes for MT2701 Date: Thu, 1 Jun 2017 14:08:43 +0800 Message-ID: <1496297324-21091-3-git-send-email-erin.lo@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1496297324-21091-1-git-send-email-erin.lo@mediatek.com> References: <1496297324-21091-1-git-send-email-erin.lo@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-20170531_230920_057894_48C51BFF X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, srv_heupstream@mediatek.com, Erin Lo , linux-kernel@vger.kernel.org, Weiqing Kong , linux-mediatek@lists.infradead.org, YT Shen , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: YT Shen This patch adds the device node of display backlight for MT2701 Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo --- 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 a483798..e49c2b7 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 = <&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>; + }; +}; + +&bls { + status = "okay"; +}; + +&mmsys { + status = "okay"; +}; + +&pio { + pwm_bls_gpio: pwm_bls_gpio { + pins_cmd_dat { + pinmux = ; + }; + }; }; &auxadc { diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index de88bd7..4f110d5 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi @@ -366,6 +366,15 @@ #clock-cells = <1>; }; + bls: bls@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"; + }; + larb0: larb@14010000 { compatible = "mediatek,mt2701-smi-larb"; reg = <0 0x14010000 0 0x1000>;