From patchwork Tue Mar 14 09:48:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9622805 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 E0AC660492 for ; Tue, 14 Mar 2017 09:50:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA2A628556 for ; Tue, 14 Mar 2017 09:50:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEEAD28559; Tue, 14 Mar 2017 09:50:14 +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 6B45228556 for ; Tue, 14 Mar 2017 09:50:14 +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=IaNqNhIO0EYEXw3WXOGzK3MzW7LgPSQ8T1NNRXAUptA=; b=lPHXgxCu1OANRcOMcHHuf4/LkM zDpUK1g5+tNmXhBXHBAhR1Jc2VplEBMMVJKewQffx7WrIURnK/WGZVw3OZLZ3Yr2R+v1Lx1nTuKfF 2jJo+Nv6yc0GwghnPH9dq++1xlD5J4jEtUFz4XmMYsgfPTKCwgndfW3Gw7zlwgFwq4WmOcUuPqMcf OI+kW2UBNGfqIMDRhA/zoTkY2GE6zoscyfbMO9Tdob++2nl2AafuBWtCcCrJZZhFBRgoN23jrZ1GS 2gtmrtnognlHKXOWt4QICqhsWTILnsFuyDYkycyCJ5OKj7WzdN+VCEcfqnWeUbtD5tp7hYcGoYCkO GLr1RIbg==; 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 1cnj5j-00059g-4v; Tue, 14 Mar 2017 09:50:07 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnj4q-0004fU-Oi for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2017 09:49:14 +0000 Received: by mail-pg0-f65.google.com with SMTP id 77so23336328pgc.0 for ; Tue, 14 Mar 2017 02:48:52 -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=jUGr5XmkjBGUAlxzJoDo0htHGJc5fVkpCNDbrxMyU64=; b=KUNzlCrY3g0ZKY2AG6fby5Bd9fWUJrhZKYz0bFRHloaWy1grAjwYQYm6DbAczeH1v/ E9V1Vgi1P016ut5QDDko57NGCIQW3WJngQpKNT/Gq4cva7x8Ttekwr1fElnK7JyQIkqe +1g+8ORg7IwzeYxgg6SNm4915psoSKPKGf1yLkeTKI2dczp9Z2ODmzD1hrV7NdLsgLhd vxqZkXeGOOrWM/T/RuLM7NgNJu4PzNxiJ60q7v7p67B1OOiha9pxGWF7ymZIasH3Jm6J vaxJerb7ENdkWBsms3YwTSy1HMC8ZeSN7s9j7tGkKW1COg1qkWs+HqqTiEL/sAqlqV7w SqZg== X-Gm-Message-State: AMke39lcGgoih1EYtpf7OVVshcNGkpZEfaD4t3pH6OfJ8s/2lnQqjsx6RCXcThvElfzgjw== X-Received: by 10.99.167.74 with SMTP id w10mr42743144pgo.2.1489484932041; Tue, 14 Mar 2017 02:48:52 -0700 (PDT) Received: from localhost.localdomain ([117.247.26.199]) by smtp.gmail.com with ESMTPSA id v143sm37693719pgb.47.2017.03.14.02.48.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 02:48:50 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v5 1/8] ARM: dts: imx6qdl-icore: Add backlight support for lvds Date: Tue, 14 Mar 2017 15:18:10 +0530 Message-Id: <1489484897-14933-2-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489484897-14933-1-git-send-email-jagan@openedev.com> References: <1489484897-14933-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170314_024912_872311_2F69F751 X-CRM114-Status: GOOD ( 10.54 ) 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, Domenico Acri , Jagan Teki , 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 lvds backlight on i.CoreM6 QDL variant boards. Cc: Domenico Acri Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v5: - %s/arm/ARM/g with subject prefix - remove status=okay for backlight node - remove -1 suffix from pwm3grp iomux node Changes for v4, v3, v2: - none arch/arm/boot/dts/imx6qdl-icore.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index 55bebfc..56d0c5d 100644 --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi @@ -48,6 +48,13 @@ reg = <0x10000000 0x80000000>; }; + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm3 0 100000>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <7>; + }; + reg_3p3v: regulator-3p3v { compatible = "regulator-fixed"; regulator-name = "3P3V"; @@ -136,6 +143,12 @@ status = "okay"; }; +&pwm3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm3>; + status = "okay"; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>; @@ -246,6 +259,12 @@ >; }; + pinctrl_pwm3: pwm3grp { + fsl,pins = < + MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1 + >; + }; + pinctrl_usbotg: usbotggrp { fsl,pins = < MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059