Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: stefan@agner.ch (Stefan Agner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 7/9] ARM: dts: imx7-colibri: specify backlight GPIO
Date: Wed,  6 Dec 2017 16:30:03 +0100	[thread overview]
Message-ID: <20171206153005.6144-7-stefan@agner.ch> (raw)
In-Reply-To: <20171206153005.6144-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>
---
 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-06 15:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-06 15:29 [PATCH 1/9] ARM: dts: imx7-colibri: move and rename USB Host power regulator Stefan Agner
2017-12-06 15:29 ` [PATCH 2/9] ARM: dts: imx7-colibri: make sure multiplexed pins are not active Stefan Agner
2017-12-16 14:01   ` Fabio Estevam
2017-12-17 20:02     ` Stefan Agner
2017-12-06 15:29 ` [PATCH 3/9] ARM: dts: imx7-colibri: mux pull-ups where appropriate Stefan Agner
2017-12-16 14:02   ` Fabio Estevam
2017-12-06 15:30 ` [PATCH 4/9] ARM: dts: imx7-colibri: use NAND_CE1 as GPIO Stefan Agner
2017-12-16 14:02   ` Fabio Estevam
2017-12-06 15:30 ` [PATCH 5/9] ARM: dts: imx7-colibri: specify cpu-supply Stefan Agner
2017-12-16 13:59   ` Fabio Estevam
2017-12-06 15:30 ` [PATCH 6/9] ARM: dts: imx7-colibri: specify usdhc1 supplies Stefan Agner
2017-12-16 14:03   ` Fabio Estevam
2017-12-06 15:30 ` Stefan Agner [this message]
2017-12-16 14:03   ` [PATCH 7/9] ARM: dts: imx7-colibri: specify backlight GPIO Fabio Estevam
2017-12-06 15:30 ` [PATCH 8/9] ARM: dts: imx7-colibri: add MCP2515 CAN controller Stefan Agner
2017-12-07  8:59   ` Stefan Agner
2017-12-16 14:05   ` Fabio Estevam
2017-12-06 15:30 ` [PATCH 9/9] ARM: dts: imx7: add Toradex Colibri iMX7D 1GB (eMMC) support Stefan Agner
2017-12-16 14:09   ` Fabio Estevam
2017-12-16 14:18     ` Philippe Ombredanne
2017-12-16 14:00 ` [PATCH 1/9] ARM: dts: imx7-colibri: move and rename USB Host power regulator Fabio Estevam

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=20171206153005.6144-7-stefan@agner.ch \
    --to=stefan@agner.ch \
    --cc=linux-arm-kernel@lists.infradead.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