From patchwork Wed Mar 8 07:17:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9610455 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 A328460414 for ; Wed, 8 Mar 2017 07:21:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 687782846E for ; Wed, 8 Mar 2017 07:21:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A084285DB; Wed, 8 Mar 2017 07:21:09 +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 90D5B2846E for ; Wed, 8 Mar 2017 07:21:08 +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=4CBL2z+JLdO8u9Tvs8HwhJ2QEjjsCXozuDihVAFk8CU=; b=iTf 6snSyB/+JDlzy9tKcd/T83Zj0Ms/bj0qOTFeTDN91zQ+5NKig5vKcqO+g5z2+NlBfo5dncIikU9Oy gzGynZL8CMBWfkWcSdw14E6jXFCuFwyaP15792OoTxBq8UzSw/P2FJXmVnpf+il5gVRdiX+aay0Fz VjD/q0N9V0c48LHGofcbATPdWy84I4neI5RBiC/g/vEPCD/87QszmvmvWNjEtBBlCuhgnCQZiqiUz Va3sLZ8u6Amm5u80ikaHwerXd4wh4+wd77R4jrT6GurZonkO5Fg7n9CKn8HQOlgzX+XGgF/SwY9HK EiMp9vSYQJmouqYxOdyIloRG22b9kFA==; 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 1clVuD-0007cQ-4l; Wed, 08 Mar 2017 07:21:05 +0000 Received: from mail-pf0-f193.google.com ([209.85.192.193]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clVu8-00074A-TC for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2017 07:21:02 +0000 Received: by mail-pf0-f193.google.com with SMTP id 67so2830306pfg.2 for ; Tue, 07 Mar 2017 23:20:39 -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=dVFkaDUhonCtRYS+575QeiD8ASWwi5e9wNi3LSG0POo=; b=PVcvNhCL65BEVGlKpnjghXLFDgiBf7W2RrPqS5shFAClf8IZZ6fPIjr8JyetQjUGfT vLVpiHOQqAfqKbASRQcIQ3IonAKGwuiV8xrHdkQ+f5ylqYqJFqVkn8GqDN6xHpHpr6x/ HKZkMrVlvDPKUSaoT0BrPGM7rdrlAyhuJ5n2iBfXrp3X20uQWMoh4vlGaaMtdO9E8bmH t4H+xK4INQwJUkhjpn6U7MzvowloO2iPyJpfI4tmRUz67j08mft0bcd+KRKXGGPdViZ7 3AqWSUol12s4HRPS2e/JCbi8i4wK+1Bz+U2AXRdpBjyV36ClhGsbe6FPsZLITVrQQivy 4UwQ== X-Gm-Message-State: AMke39km/D8Bra+dyzP5XKOZjb/hlOM0gtpgTaVnyoaBi+PDyZpDZNrk+/E0Qpd/yuJjWg== X-Received: by 10.98.38.5 with SMTP id m5mr5259217pfm.65.1488957639049; Tue, 07 Mar 2017 23:20:39 -0800 (PST) Received: from localhost.localdomain ([117.254.78.170]) by smtp.gmail.com with ESMTPSA id l19sm3880522pgo.13.2017.03.07.23.20.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 23:20:37 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v4 1/7] arm: dts: imx6qdl-icore: Add backlight support for lvds Date: Wed, 8 Mar 2017 12:47:51 +0530 Message-Id: <1488957477-5621-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-20170307_232101_016922_E6FE58CD X-CRM114-Status: UNSURE ( 9.50 ) 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 v4, v3, 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