From patchwork Fri Mar 24 16:18:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9643249 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 929C260327 for ; Fri, 24 Mar 2017 16:22:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 841402022B for ; Fri, 24 Mar 2017 16:22:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78E9222376; Fri, 24 Mar 2017 16:22:05 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no 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 0B04C2022B for ; Fri, 24 Mar 2017 16:22:05 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=0sOA6AzGzkg90d3UOMEO/4Ywk1LWHQqXh6SxwwYZROM=; b=HcBvH75DT3qEJi/MAJQcwGOyko jtde261Y2OH6ruIhhh5EGcGncnG8bZkpP/9+0g41oQIcIMF94NrzGBhLCkC71TrNkiOVcHB4iLJI7 U2y08XxTKdTZ/f4VuwYXJc5DGnNgjeKOf0u70luaoAKCCMHe5jTV4QKwDex7wZ/RnR+trM5MmGwc4 O2+po7KXhkVEs5Mz2NP91cH3a5mpyqBmxRC+yndvBMP2aiE6+BETp5e2Z5RIyzOkDEXfWyjTDwJlX 5QgaCxaoqH5LFNSqjlAcALHycauL+svJ9jGAiEadZkZcLDRZ6kTmLWFu+bbkycPZOKDQ7vzi4WqXq c7SywBCg==; 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 1crRyW-0003WV-CT; Fri, 24 Mar 2017 16:22:04 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crRyD-00037o-Vw for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 16:21:49 +0000 Received: by mail-pf0-f195.google.com with SMTP id n11so1135131pfg.2 for ; Fri, 24 Mar 2017 09:21:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uka4pWJrHzUmyCCDc9zTFESfx/EL02QnOhcd2nSVC3c=; b=D3VJfYMwh88G0NkBiidRmsn7UBMT3jrgSVEola7MhCl9PCfSmssaLico8AvfxwiR86 cSYZD89hPuZko9IqkGzgHuRZ4Xc7lnhlCDgtm75TdKzU8Vnv24hpCM5cXHeGduWByDUF c72ZL4sID3Hg+BV0reQWwfbVdV8dUNiTyJAymOm3wWfK9z0gTPv80+Qwjka+QFNFSFgP ZG3Edd0zriwNpqoVAxYDLRwLxPBtnNrlizLT2NzfDMISurvb2HsHBxMySyl418pKN/6F P030JFrJ95hEqQHv0cP3lAzzR/DjOPzdke13Wdsw1H0N4awF5dT1uecJW4y3t+803kcB 4N1w== X-Gm-Message-State: AFeK/H1c27KC/kCBa7Mw+yOCnAEbGaSaMvf7+D7R9vw803tLJQOZNK75WxwBaKRqq/6cOg== X-Received: by 10.84.135.34 with SMTP id 31mr12198017pli.50.1490372485131; Fri, 24 Mar 2017 09:21:25 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.64]) by smtp.gmail.com with ESMTPSA id t133sm5645519pgc.24.2017.03.24.09.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 09:21:23 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 02/15] ARM: dts: imx6ul-isiot: Add backlight support for lcdif Date: Fri, 24 Mar 2017 21:48:37 +0530 Message-Id: <1490372330-5611-3-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490372330-5611-1-git-send-email-jagan@openedev.com> References: <1490372330-5611-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_092146_252036_9F45A6DE X-CRM114-Status: GOOD ( 10.42 ) 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, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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: Jagan Teki This patch add support for lcdif backlight on Is.IoT MX6UL variant boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/boot/dts/imx6ul-isiot.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-isiot.dtsi b/arch/arm/boot/dts/imx6ul-isiot.dtsi index 0b43699..5ccc3df 100644 --- a/arch/arm/boot/dts/imx6ul-isiot.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot.dtsi @@ -52,6 +52,29 @@ chosen { stdout-path = &uart1; }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm8 0 100000>; + brightness-levels = < 0 1 2 3 4 5 6 7 8 9 + 10 11 12 13 14 15 16 17 18 19 + 20 21 22 23 24 25 26 27 28 29 + 30 31 32 33 34 35 36 37 38 39 + 40 41 42 43 44 45 46 47 48 49 + 50 51 52 53 54 55 56 57 58 59 + 60 61 62 63 64 65 66 67 68 69 + 70 71 72 73 74 75 76 77 78 79 + 80 81 82 83 84 85 86 87 88 89 + 90 91 92 93 94 95 96 97 98 99 + 100>; + default-brightness-level = <100>; + }; +}; + +&pwm8 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm8>; + status = "okay"; }; &uart1 { @@ -72,6 +95,12 @@ }; &iomuxc { + pinctrl_pwm8: pwm8grp { + fsl,pins = < + MX6UL_PAD_ENET1_RX_ER__PWM8_OUT 0x110b0 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1