From patchwork Wed Sep 14 06:35:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanchayan X-Patchwork-Id: 9330463 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 076D460231 for ; Wed, 14 Sep 2016 06:45:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB50F29554 for ; Wed, 14 Sep 2016 06:45:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFE9F29A28; Wed, 14 Sep 2016 06:45:30 +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 9643429554 for ; Wed, 14 Sep 2016 06:45:30 +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 1bk3vW-0005gD-UD; Wed, 14 Sep 2016 06:44:10 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bk3v3-0005S1-6i for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2016 06:43:42 +0000 Received: by mail-pf0-x244.google.com with SMTP id z84so317672pfi.2 for ; Tue, 13 Sep 2016 23:43:21 -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=CvET6g79PwDEizpAzWu59RS33MhSwya9G41rn53aHII=; b=AhvO6SQptIas71aZcfPMIXLGcJrOGjmUfOEgFLdZm+GUm5wTDqvrafQMf+LElz5lAw Fp7fIc6/wW+VBMgRZ+NlghsPqijtWMFKqLxH2WRZN5Tbc9WzxbSFzYK/FIGdQrPQCr9Z 1jrglOdLmCVj/zWZTVSHsfQswP5tO79HxnloUig0P4g9HJJyPlBnCO6tJ8hyQPk1Etpt OwauaQC0KNVvshax/V/Mk40cshZA3IPUvsuxKKaq0+X9H2uDib1ujOj6/lVlV40qMEar 5HjKada2yFIBNlBV5FCS0J58myZS3mlkNLKHvcYFi1WldFWCwfefhFaz8P6Ku+roOUHE 0rjg== 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=CvET6g79PwDEizpAzWu59RS33MhSwya9G41rn53aHII=; b=YnH9bBB0iO7W8tD6SOQ4P8JHXE8QKemJEY+yPfR4YPG0NYfgxS+YFFO7cW554G3QZt yx5DCdvFQe1ZUnbiY6zlRvzMxubLYsHspLY7iG3drnJcHF7bqEyqSXnTA1xJ4E8jyYPg mmz25DTgRQp+HdW5reSWDMZyKIgobFh2FswRWiiMVdngOUYkVuJrZnic7gD5sGO45nMD GNC1hgz4DzB5GJ+am87uZ6fd+UFWFfvAoFy5Cv4lA3aJub03bqGudBScGANUrbNgJXHm AEZZ4onL3UyvLbxXMjXF5oKmuSJ+zd0HZdNbP8ap+8KdWtkYYsPPIPeadTFSITerH1UJ fHww== X-Gm-Message-State: AE9vXwPPYVBA+dKjyAiP93hVUwEn4cg4eoF9qQQTkncP8ZspTyACoj4G4SIIg5fntidAVA== X-Received: by 10.98.134.79 with SMTP id x76mr1669943pfd.21.1473835400613; Tue, 13 Sep 2016 23:43:20 -0700 (PDT) Received: from localhost ([115.115.243.34]) by smtp.gmail.com with ESMTPSA id tw2sm1583995pac.41.2016.09.13.23.43.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Sep 2016 23:43:19 -0700 (PDT) From: Sanchayan Maity To: shawnguo@kernel.org Subject: [PATCH v1 3/3] ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight Date: Wed, 14 Sep 2016 12:05:05 +0530 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: <9d2c17aa2e00e6ff4349a53de8247860d2382607.1473833908.git.maitysanchayan@gmail.com> References: <9d2c17aa2e00e6ff4349a53de8247860d2382607.1473833908.git.maitysanchayan@gmail.com> In-Reply-To: <9d2c17aa2e00e6ff4349a53de8247860d2382607.1473833908.git.maitysanchayan@gmail.com> References: <9d2c17aa2e00e6ff4349a53de8247860d2382607.1473833908.git.maitysanchayan@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160913_234341_378971_27926AC5 X-CRM114-Status: UNSURE ( 9.62 ) 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. While at it also fix the use of brightness levels required by EDT displays which require inverted PWM's. Signed-off-by: Sanchayan Maity --- 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 */