devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Agner <stefan@agner.ch>
To: shawnguo@kernel.org, kernel@pengutronix.de
Cc: fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Stefan Agner <stefan@agner.ch>
Subject: [PATCH v2 7/9] ARM: dts: imx7-colibri: specify backlight GPIO
Date: Sun, 17 Dec 2017 21:37:21 +0100	[thread overview]
Message-ID: <20171217203723.15896-7-stefan@agner.ch> (raw)
In-Reply-To: <20171217203723.15896-1-stefan@agner.ch>

The Colibri standard defines SODIMM 71 as backlight enable
GPIO. Assign the GPIO to the backlight node in the module
level device tree.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx7-colibri.dtsi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi
index d623ef0f6e3e..689ff6822634 100644
--- a/arch/arm/boot/dts/imx7-colibri.dtsi
+++ b/arch/arm/boot/dts/imx7-colibri.dtsi
@@ -43,7 +43,10 @@
 / {
 	bl: backlight {
 		compatible = "pwm-backlight";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_bl_on>;
 		pwms = <&pwm1 0 5000000 0>;
+		enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
 	};
 
 	reg_module_3v3: regulator-module-3v3 {
@@ -360,7 +363,6 @@
 		fsl,pins = <
 			MX7D_PAD_ECSPI2_SS0__GPIO4_IO23		0x14 /* SODIMM 65 */
 			MX7D_PAD_SD1_CD_B__GPIO5_IO0		0x74 /* SODIMM 69 */
-			MX7D_PAD_SD1_WP__GPIO5_IO1		0x14 /* SODIMM 71 */
 			MX7D_PAD_I2C4_SDA__GPIO4_IO15		0x14 /* SODIMM 75 */
 			MX7D_PAD_ECSPI1_MISO__GPIO4_IO18	0x14 /* SODIMM 79 */
 			MX7D_PAD_I2C3_SCL__GPIO4_IO12		0x14 /* SODIMM 81 */
@@ -436,6 +438,12 @@
 		>;
 	};
 
+	pinctrl_gpio_bl_on: gpio-bl-on {
+		fsl,pins = <
+			MX7D_PAD_SD1_WP__GPIO5_IO1		0x14 /* SODIMM 71 */
+		>;
+	};
+
 	pinctrl_gpmi_nand: gpmi-nand-grp {
 		fsl,pins = <
 			MX7D_PAD_SD3_CLK__NAND_CLE		0x71
-- 
2.15.1

  parent reply	other threads:[~2017-12-17 20:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-17 20:37 [PATCH v2 1/9] ARM: dts: imx7-colibri: move and rename USB Host power regulator Stefan Agner
2017-12-17 20:37 ` [PATCH v2 2/9] ARM: dts: imx7-colibri: make sure multiplexed pins are not active Stefan Agner
2017-12-17 20:37 ` [PATCH v2 3/9] ARM: dts: imx7-colibri: mux pull-ups where appropriate Stefan Agner
2017-12-17 20:37 ` [PATCH v2 4/9] ARM: dts: imx7-colibri: use NAND_CE1 as GPIO Stefan Agner
2017-12-17 20:37 ` [PATCH v2 5/9] ARM: dts: imx7-colibri: specify cpu-supply Stefan Agner
2017-12-17 20:37 ` [PATCH v2 6/9] ARM: dts: imx7-colibri: specify usdhc1 supplies Stefan Agner
2017-12-17 20:37 ` Stefan Agner [this message]
2017-12-17 20:37 ` [PATCH v2 8/9] ARM: dts: imx7-colibri: add MCP2515 CAN controller Stefan Agner
     [not found]   ` <20171217203723.15896-8-stefan-XLVq0VzYD2Y@public.gmane.org>
2017-12-17 21:52     ` Fabio Estevam
2017-12-17 20:37 ` [PATCH v2 9/9] ARM: dts: imx7: add Toradex Colibri iMX7D 1GB (eMMC) support Stefan Agner
     [not found]   ` <20171217203723.15896-9-stefan-XLVq0VzYD2Y@public.gmane.org>
2017-12-17 21:59     ` Fabio Estevam
     [not found]       ` <CAOMZO5BXEj9AKeQEVNhDYMCydpe+PVnXjchvTAuuwdM7Yp6d2w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-17 22:55         ` Philippe Ombredanne
     [not found]           ` <CAOFm3uHFcHnh-CHLfJwgeB1M8niWBtdpVv-f+Dr7b43f70zwbw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-18 12:58             ` Stefan Agner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171217203723.15896-7-stefan@agner.ch \
    --to=stefan@agner.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=fabio.estevam@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).