From: tobetter@gmail.com (Dongjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 3/4] ODROID-X: dts: Add nodes for leds based on GPIO.
Date: Mon, 31 Dec 2012 11:35:12 +0900 [thread overview]
Message-ID: <1356921314-12595-4-git-send-email-tobetter@gmail.com> (raw)
In-Reply-To: <1356921314-12595-1-git-send-email-tobetter@gmail.com>
This patch adds GPIO connected LEDS on ODROID-X board and configure its
properties.
LED1: use 'heartbeat' trigger, blinking while the board is running.
LED2: use 'mmc0' trigger, on when mmc0 is accessing.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
arch/arm/boot/dts/exynos4412-odroidx.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 213b152..f31529f 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -54,4 +54,20 @@
enable-active-high;
regulator-boot-on;
};
+
+ leds {
+ compatible = "gpio-leds";
+ led1 {
+ label = "led1:heart";
+ gpios = <&gpc1 0 1>;
+ default-state = "on";
+ linux,default-trigger = "heartbeat";
+ };
+ led2 {
+ label = "led2:mmc0";
+ gpios = <&gpc1 2 1>;
+ default-state = "on";
+ linux,default-trigger = "mmc0";
+ };
+ };
};
--
1.7.10.4
next prev parent reply other threads:[~2012-12-31 2:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1356921314-12595-1-git-send-email-tobetter@gmail.com>
2012-12-31 2:35 ` [PATCH v3 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
2013-01-02 20:31 ` Olof Johansson
2013-01-02 22:27 ` Kukjin Kim
2012-12-31 2:35 ` [PATCH v3 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim
2012-12-31 2:35 ` Dongjin Kim [this message]
2012-12-31 2:35 ` [PATCH v3 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
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=1356921314-12595-4-git-send-email-tobetter@gmail.com \
--to=tobetter@gmail.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;
as well as URLs for NNTP newsgroup(s).