From patchwork Mon Feb 20 07:02:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9582013 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 CB4F0600C1 for ; Mon, 20 Feb 2017 07:04:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAFA528853 for ; Mon, 20 Feb 2017 07:04:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF5E42885E; Mon, 20 Feb 2017 07:04:15 +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 5A00A28853 for ; Mon, 20 Feb 2017 07:04:15 +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=8CJZYhB0BvUJOamyWXYP6RkhJUKuo3kD7IgIeLcfWUQ=; b=Z/U 3tUqTbVRoaXuokhlQ+/3mAjcJWj3k8M8OutHjOITwkO/P0aOvc8gAo1YfEXel7h3Tb4CHVzG5i5kE xinyYhPQHkoems4XCITJVjspTIHX9m2Jv9by4iJdAfz6xOOONeI0EymifXi0arYkRhgnaAf0ikZrJ 95f/NKRBKnr8AFF97q7CjBmtHb6AnNEES6nnRByICNQYopa1xTHyeoLJ2tIpxvgsuEX49H0CKnq/y lEd0IkpoMjn9LruPFLR2iP7AJRxbZlQBM6Gh5QRnkva9KEF1vbYXj4la6dzEjlkaZdvUHt6lvrDkC G593EGL5dKk8fy1wB2KqSVg8gYSRqmw==; 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 1cfi0z-0002Gj-EP; Mon, 20 Feb 2017 07:04:05 +0000 Received: from mail-pg0-f68.google.com ([74.125.83.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfi0Z-0002EE-G2 for linux-arm-kernel@lists.infradead.org; Mon, 20 Feb 2017 07:03:41 +0000 Received: by mail-pg0-f68.google.com with SMTP id s67so1173766pgb.1 for ; Sun, 19 Feb 2017 23:03:17 -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=c4rUbaWdTu7xgdys40gDW6Xsbljsl8uZxoizetAvu5A=; b=h+S9ZnSW5kuCFe41Y/Caocp3oAi3nNmzgcMGHzxikxnXVwqX0I/wHVVnX5IRUcHsVO QJs5lqKBCGASS8nly1iP0PXwDYUuSXqNQJ5oW9W//ogbN8D4sZQs3PuTfJvCGAaF5HcN ThnRUpmeJU4sD3MS2q2veYpTihUVhz8yfLhEr7b7aAn9/UrOzAsmsHkFnQACvXE94ZDn idpvzYXKTEh4/95b6QMLXmlZKAKcFyel+UHtPqOMTw/fUozz3HB5zuKVWG4QY2Pqw9Df /l2jufwykN1nTU6VIbvq0TlQ7bSHBwHHGB2jOhnqaDaV1U6i95dl6wCB5pom43UEgN3e FQrQ== X-Gm-Message-State: AMke39nujRCAjv5+mppMr/bg/EC0G7UB1vg3fwHs3NGNrb5/OszaLfcLRDsPJkbrjAUdFA== X-Received: by 10.84.237.22 with SMTP id s22mr29905103plk.145.1487574197058; Sun, 19 Feb 2017 23:03:17 -0800 (PST) Received: from localhost.localdomain ([106.220.28.238]) by smtp.gmail.com with ESMTPSA id n28sm33074666pgd.5.2017.02.19.23.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Feb 2017 23:03:15 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH 1/2] arm: dts: imx6qdl-icore: Add backlight support for lvds Date: Mon, 20 Feb 2017 12:32:59 +0530 Message-Id: <1487574180-5182-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-20170219_230339_568787_5C963274 X-CRM114-Status: UNSURE ( 9.46 ) 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 --- 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