From patchwork Mon Sep 19 05:11:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanchayan X-Patchwork-Id: 9338527 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 1C968607D0 for ; Mon, 19 Sep 2016 05:22:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 069E628E5D for ; Mon, 19 Sep 2016 05:22:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED8F2290C1; Mon, 19 Sep 2016 05:22:25 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 716C728E5D for ; Mon, 19 Sep 2016 05:22:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1blr0k-0004Ji-Ba; Mon, 19 Sep 2016 05:20:58 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1blr0J-0004Du-HU for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2016 05:20:32 +0000 Received: by mail-pa0-x241.google.com with SMTP id hi10so537620pac.2 for ; Sun, 18 Sep 2016 22:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=UaZxm9zsMD1a0dHN3t6RkGRyAW+DRBZJYNojd7GUdGE=; b=MvwKeTRFpf/RkZXHBV/FMll4ZoadshbsjSZJS05MpG5CTER8Da3QPgk1PzHGrNSs7x G4ZGPwx7164ANMdgJtduYdmSwogVew8wpLqzG2rxKlbiQCHH2E6sCjbFRPAgQTUXkPJ0 iBxtitio+ak1CDLscvIOhUAlRMl1MVKEzbK06gCURj+mOzLAlOjz9hQvF6eyAlvZxjan WWZAKVyywc9wONKRVrc3+XThakN8ABDAgvLmQESZxBqmVg+/r9M87SuCSlg1ScmBmAt2 LkHs2TeKSrid43QAzx/E2qAo57LulU3wrtGPEbQOFG4PnGYvpyPoeuhKWBLXxMAy5s6q ktzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=UaZxm9zsMD1a0dHN3t6RkGRyAW+DRBZJYNojd7GUdGE=; b=kpP2BIhTsyreBGGm6hAV6BtMwE2S9BONE8tM/12T66hm7ABfNfTf3zJhemIx9UumeZ angnG16Q1SI564jYZWWd438yHthC0R4KYIByR7JDL9hu2kEimFkn8sqs7TGLgsnDPJtj of54cFdWxsNtqncYRYo846PmQaSUW6kIXFx8Js3PI/NVSezfeydSQgAXfAK0uC6kL/Mv tbrDJsfZns34pn5A2COkpOzM69UoJVLJUXb3ouB4kso+kcQz2Bh0hTAYrNUvafXydwfA D8YFqRrm6NTBTPDxQiVLHfcpRtZvK8mlvdc27TtxWOzL5qc8hnXn9KYWBwXaUxsAy3Jd 4oiA== X-Gm-Message-State: AE9vXwP1RYf7idLbgWx5yKOLAjncr00gkCNZsyxL4XBsQjZlZWB5o25snVXffh+4z0V67Q== X-Received: by 10.66.253.133 with SMTP id aa5mr30088685pad.161.1474262410566; Sun, 18 Sep 2016 22:20:10 -0700 (PDT) Received: from localhost ([115.115.243.34]) by smtp.gmail.com with ESMTPSA id k80sm29493653pfk.27.2016.09.18.22.20.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Sep 2016 22:20:10 -0700 (PDT) From: Sanchayan Maity To: shawnguo@kernel.org Subject: [PATCH v2 3/3] ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight Date: Mon, 19 Sep 2016 10:41:53 +0530 Message-Id: <2206aa18153f33a2b6763e2bc6c87bf83eadb674.1474260360.git.maitysanchayan@gmail.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <2263d508999ada9476268138b2922702eb50131f.1474260360.git.maitysanchayan@gmail.com> References: <2263d508999ada9476268138b2922702eb50131f.1474260360.git.maitysanchayan@gmail.com> In-Reply-To: <2263d508999ada9476268138b2922702eb50131f.1474260360.git.maitysanchayan@gmail.com> References: <2263d508999ada9476268138b2922702eb50131f.1474260360.git.maitysanchayan@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160918_222031_681959_81F62DD4 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, marcel.ziswiler@toradex.com, linux-kernel@vger.kernel.org, stefan@agner.ch, Sanchayan Maity , 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 Use enable-gpios property of PWM backlight driver for backlight control. Signed-off-by: Sanchayan Maity --- Changes since v1: Fix commit message v1: https://lkml.org/lkml/2016/9/14/55 --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 8c67dd8..9100bde 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -49,7 +49,10 @@ backlight: backlight { compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_bl_on>; pwms = <&pwm4 0 5000000>; + enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; status = "disabled"; }; @@ -614,6 +617,12 @@ >; }; + pinctrl_gpio_bl_on: gpioblon { + fsl,pins = < + MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x1b0b0 + >; + }; + pinctrl_gpio_keys: gpio1io04grp { fsl,pins = < /* Power button */