From patchwork Tue Feb 21 05:06:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9583897 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 CDB62600CA for ; Tue, 21 Feb 2017 05:14:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF9501FE6A for ; Tue, 21 Feb 2017 05:14:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B12B125E13; Tue, 21 Feb 2017 05:14:52 +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 377021FE6A for ; Tue, 21 Feb 2017 05:14:52 +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: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:In-Reply-To: References:List-Owner; bh=dUiEAr9sSdqgam42Sl78yqp4Scu5ArXB9irYIY82gNw=; b=cBX L+EPoCgqU+ICice2/jUZsLHqrTHEfYd6jx/9Ev6yQloWTV8EP37rfA1ejd0CTy8wrVs+D8i1JIQH7 GR8QkCgvO6gz8bBrLzBnXA0fADjIBlHL6+am0qQ0/xqxgsmdGJEpX8zsi1bei9hJKulixohDZmX6G l/8/FTPpt3pp8Lxb/LLPJJrHqLen3bKNUR/Mza/zSUWC4FjAG07AKn/GDmANY5KjhHiW7i3EzcjaN T+jJm2aB+ywYndvNOuBb1BT50PXaircfgGC31ZsERujKhOompZc03AKWAR/ZL+iUD3By9lXA1gKi6 1umNLbIawE6wLHxSYedD1oyvIc92oCg==; 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 1cg2mh-0002sM-4d; Tue, 21 Feb 2017 05:14:43 +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 1cg2fL-0005kS-N1 for linux-arm-kernel@lists.infradead.org; Tue, 21 Feb 2017 05:07:10 +0000 Received: by mail-pg0-f65.google.com with SMTP id a123so13429989pgc.3 for ; Mon, 20 Feb 2017 21:06:47 -0800 (PST) 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; bh=5ycoG97DS9+RFc7DZmMG3li6BH49cLC+KyUgUS9Oo38=; b=Ti2FYftzI+5+WFgmm9X4lciwE83ZSCbRFyVpQVJ/yvqcb25p7Y9EKrQmdQuHEfKUTe B1GArnT8Kz3W/9eyv5VFYs0ds1xnmTnpVamphSJtADMex/OWbTuo85GSgnFG9KXbpSu9 fFvCpEekcaFWqEnrscfudgFkr9aiq9hGonanrabNYmcujOUBQ8J5cXB9l3PBsI4ErbG3 B7Hnq/RVfBGDhUsy9zS+MdeZhf+SdeZyq5SQ68++e/24WIoLWp73XUvbciSlOyQBZhSG VGYFFW/10cZwviguHX/3musp1Js460qe2nQ4yr9NenODAHryskmmtQpWtvVMQ/Rp8Ovv vlAQ== X-Gm-Message-State: AMke39lTxTluhBEM3ZL+y7mo2sXPE1Que5IwvmNU+/WV2fCvmD4n6cuGG+FnUGDaYxDy4w== X-Received: by 10.99.224.69 with SMTP id n5mr3385466pgj.113.1487653606782; Mon, 20 Feb 2017 21:06:46 -0800 (PST) Received: from localhost.localdomain ([106.220.207.210]) by smtp.gmail.com with ESMTPSA id l72sm16398864pfi.93.2017.02.20.21.06.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Feb 2017 21:06:45 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v3 1/4] arm: dts: imx6qdl-icore: Add backlight support for lvds Date: Tue, 21 Feb 2017 10:36:30 +0530 Message-Id: <1487653593-3457-1-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170220_210707_872954_D28634B2 X-CRM114-Status: UNSURE ( 8.87 ) 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, 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 v3: - none Changes for v2: - none arch/arm/boot/dts/imx6qdl-icore.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index 55bebfc..7dda608 100644 --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi @@ -48,6 +48,14 @@ 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>; + status = "okay"; + }; + reg_3p3v: regulator-3p3v { compatible = "regulator-fixed"; regulator-name = "3P3V"; @@ -136,6 +144,12 @@ status = "okay"; }; +&pwm3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm3>; + status = "okay"; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>; @@ -246,6 +260,12 @@ >; }; + pinctrl_pwm3: pwm3grp-1 { + fsl,pins = < + MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1 + >; + }; + pinctrl_usbotg: usbotggrp { fsl,pins = < MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059