public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv3 9/9] ARM: sun7i: a20-olinuxino: Enable the user LED
Date: Sun,  4 Aug 2013 11:58:50 +0200	[thread overview]
Message-ID: <1375610330-18185-10-git-send-email-maxime.ripard@free-electrons.com> (raw)
In-Reply-To: <1375610330-18185-1-git-send-email-maxime.ripard@free-electrons.com>

The A20-olinuxino Micro has a LED connected to the PH2 pin. Use the
gpio-led driver to enable the control over this LED.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index 4d988df..34a6c02 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
@@ -19,6 +19,15 @@
 	compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
 
 	soc at 01c00000 {
+		pinctrl at 01c20800 {
+			led_pins_olinuxino: led_pins at 0 {
+				allwinner,pins = "PH2";
+				allwinner,function = "gpio_out";
+				allwinner,drive = <1>;
+				allwinner,pull = <0>;
+			};
+		};
+
 		uart0: serial at 01c28000 {
 			pinctrl-names = "default";
 			pinctrl-0 = <&uart0_pins_a>;
@@ -37,4 +46,16 @@
 			status = "okay";
 		};
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&led_pins_olinuxino>;
+
+		green {
+			label = "a20-olinuxino-micro:green:usr";
+			gpios = <&pio 7 2 0>;
+			default-state = "on";
+		};
+	};
 };
-- 
1.8.3.4

      parent reply	other threads:[~2013-08-04  9:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-04  9:58 [PATCHv3 0/9] ARM: sunxi: Introduce Allwinner A20 support Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 1/9] " Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 2/9] ARM: sun7i: Add Allwinner A20 DTSI Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 3/9] ARM: sun7i: Add Olimex A20-Olinuxino-Micro support Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 4/9] pinctrl: sunxi: Add Allwinner A20 pins set Maxime Ripard
2013-08-12  8:33   ` Maxime Ripard
2013-08-19 11:23     ` Maxime Ripard
2013-08-21 21:46   ` Linus Walleij
2013-08-04  9:58 ` [PATCHv3 5/9] pinctrl: sunxi: Fix inconsistent indentation Maxime Ripard
2013-08-12  8:27   ` Maxime Ripard
2013-08-19 11:23     ` Maxime Ripard
2013-08-21 21:49   ` Linus Walleij
2013-08-21 21:54     ` Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 6/9] ARM: sun7i: Add the PIO controller node to the DTSI Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 7/9] ARM: sun7i: DT: Add UART muxing options " Maxime Ripard
2013-08-04  9:58 ` [PATCHv3 8/9] ARM: sun7i: a20-olinuxino: Enable UARTs muxing Maxime Ripard
2013-08-04  9:58 ` Maxime Ripard [this message]

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=1375610330-18185-10-git-send-email-maxime.ripard@free-electrons.com \
    --to=maxime.ripard@free-electrons.com \
    --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