From patchwork Mon Feb 20 20:05:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9583575 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 82F47604A0 for ; Mon, 20 Feb 2017 20:06:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7621028882 for ; Mon, 20 Feb 2017 20:06:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B3D828888; Mon, 20 Feb 2017 20:06:13 +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 E6B7028882 for ; Mon, 20 Feb 2017 20:06:12 +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=u+cDhlzH9FIgAGpuB/ALKnTUIanw7kHwQf9kvX8/PeM=; b=CCu 2L4Lbvm55TzPVP1djxM40L3idI8mvnMiGUmfF3y1N25LkBZZAgoYFXfjpN/KpmSrSI8SQbWrFusK5 h2doJvrkbQZgunqPK+21Y1jRjTHn3aJr8ge1YIUzHZmQnWhoTWTg2WvxxUUcC6ytBXj8rWvsQED+q CjQUJmHx9B9Fc+HvR9yjTuoDjZ9N7lKO0cNr0dpyEr1+ccwxa+WQs6yMoVfyzd9G5vjVt5bBc8i5m RQWjcDCmnYlNmWOUrcX68lQ39GzvxrtB4jpFTnwsfmsf/aD7KhQI5d1DxcUAzBnJ1GfoI0vulC35/ vz0YxUn4WV+0+Gvvz8JVlpuK5ZfA2Cw==; 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 1cfuDq-0004YL-9A; Mon, 20 Feb 2017 20:06:10 +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 1cfuDl-0004WL-Jg for linux-arm-kernel@lists.infradead.org; Mon, 20 Feb 2017 20:06:08 +0000 Received: by mail-pg0-f66.google.com with SMTP id 1so7052279pgz.2 for ; Mon, 20 Feb 2017 12:05:44 -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=4w3m58hTymqSRfC5VpZ01KIpaq5Z3d3iYbcuNEeChPg=; b=j0kQnjnV1ZjOE2Dc4hX3SowmFSy+IhG0KZPIZclG22Ln44zsCm2muQlt48UW8WMLOP eyA4FYXCUPiXIqHmSbvQnYWsawygCzMBL97ZH6JOxGmWfDP1TwsTJI5eKg/ofSp27S5y Futa8oly4oiG9V6xT9doeEFac0jbakdGAoMnpQGV/Y0sS4avV8MYnM7VqGHM4mPA0EmB 9MjMuRXgAMzwbdCPQHzYzrLxXMQY/t9SmcLUUzAaRErbCvE+wZLASIGpuuyCBqihWWul 7g4tTrPeB9bDP7bxl1IoKScUrmJ2DbI58rpuP3/g8qmHy9T9DWT5mSQksjrSC2Yl88on So+A== X-Gm-Message-State: AMke39lzaixtprMG0iVexPnmNSy22MTvmYM35Zd8xanF4NM4v/cu4miOCYG9QsN3eEIoIw== X-Received: by 10.84.130.34 with SMTP id 31mr34485131plc.111.1487621144164; Mon, 20 Feb 2017 12:05:44 -0800 (PST) Received: from localhost.localdomain ([106.220.28.238]) by smtp.gmail.com with ESMTPSA id 19sm36661251pft.46.2017.02.20.12.05.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Feb 2017 12:05:42 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 1/4] arm: dts: imx6qdl-icore: Add backlight support for lvds Date: Tue, 21 Feb 2017 01:35:18 +0530 Message-Id: <1487621121-6051-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_120605_682303_AD1F811D X-CRM114-Status: UNSURE ( 9.07 ) 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 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