From patchwork Fri Mar 24 16:18:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9643309 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 D15F4601E9 for ; Fri, 24 Mar 2017 16:32:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2C94223B2 for ; Fri, 24 Mar 2017 16:32:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B66CF26212; Fri, 24 Mar 2017 16:32:07 +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 7E525223B2 for ; Fri, 24 Mar 2017 16:32:07 +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=TdHJgjfQu+XFOm0U6EkFjwttwo+4G8q3kQtPFe5+KEA=; b=j/MZSqO3ylZ9nUql1FQq5LyN1w 1DgIbVnX4rfDgnjQXMU6aVPWhSYHh+EFIn6Mnvhv8lqZdR3+rFq8fNaU9k7IYo0q1WDfGHPzZTrD4 dHZIYgEaHfqLw2XL07Cm9RRDpOoJX/+q4h7Jc9V/qrBllJ2SydjJDY6vKI1NNRny8qVw1ZhJyOqxs Ae2MMNSKsuUTBvd3B+qum+OKD3DuVfqWHpUsCy4iLzp0afMQqTx9qS0OqMUhRr73Za5n/+jy1o/FX 7g79PbC7YHoQlfa5yInlC0okfaCRnJAxhgNi4TYrYYDKhVIU0a5v1XH+mkSAKBZkuklyXDsj0Wy25 d/xM1vdA==; 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 1crS81-0001wR-6K; Fri, 24 Mar 2017 16:31:53 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crRyA-00037K-0s for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 16:21:44 +0000 Received: by mail-pg0-f66.google.com with SMTP id w20so1359518pgc.1 for ; Fri, 24 Mar 2017 09:21:21 -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=/EyNdFrnC7PvCblgST/FqBnvDgUg8O6zqAao918L0Iw=; b=jnFRxdm+FABizNLbloDSgJlFLZgOCftOfiuOOe+nVgRhYfIneejbc14L2JAXyt9Vow AgAOXPVO3q9jI+zKm01rpG3y7z4VlWnDedBiFob5jjnofGJ8bhUiX5MNJigOUxzkqurv C0/ep1wsOs73/pA2hbrPEkrIS/BQFbZFtWRg0kWxsbc+3Mva9N2j8UPpndrr6m2dZQP6 +v1uTn2mjXACPqvsFD8iC6pI9/Ey7m6JCQxsE5Llfg0dPFIWDoTlfu+pAjLgl1o3Cs16 wNKiyXuzSFQbpvZPic54fC5dqSMO4t4nGWrcgjBXMhPY16uR0kG2hyjkh+S+3GF6LKC8 Zsmw== X-Gm-Message-State: AFeK/H26vTwZ7XGloQrqZZfY6ndHVX2LaPZx0ekGXsfLunYE2sD1egPOQc+5tO1gxPyN5w== X-Received: by 10.99.127.29 with SMTP id a29mr9875948pgd.11.1490372481156; Fri, 24 Mar 2017 09:21:21 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.64]) by smtp.gmail.com with ESMTPSA id t133sm5645519pgc.24.2017.03.24.09.21.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 09:21:19 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 01/15] ARM: dts: imx6ul-geam: Add backlight support for lcdif Date: Fri, 24 Mar 2017 21:48:36 +0530 Message-Id: <1490372330-5611-2-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_092142_150373_8043EBB6 X-CRM114-Status: GOOD ( 10.59 ) 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 GEAM6UL 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-geam.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-geam.dtsi b/arch/arm/boot/dts/imx6ul-geam.dtsi index 940aef6..ee5220c 100644 --- a/arch/arm/boot/dts/imx6ul-geam.dtsi +++ b/arch/arm/boot/dts/imx6ul-geam.dtsi @@ -49,6 +49,23 @@ reg = <0x80000000 0x08000000>; }; + 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>; + }; + chosen { stdout-path = &uart1; }; @@ -143,6 +160,12 @@ display = <&display0>; }; +&pwm8 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm8>; + status = "okay"; +}; + &tsc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_tsc>; @@ -290,6 +313,12 @@ >; }; + pinctrl_pwm8: pwm8grp { + fsl,pins = < + MX6UL_PAD_ENET1_RX_ER__PWM8_OUT 0x110b0 + >; + }; + pinctrl_tsc: tscgrp { fsl,pin = < MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0xb0