All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dongjin Kim <tobetter@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
	thomas.abraham@linaro.org, Dongjin Kim <tobetter@gmail.com>,
	Russell King <linux@arm.linux.org.uk>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO.
Date: Tue, 18 Dec 2012 04:55:06 +0900	[thread overview]
Message-ID: <1355774107-364-4-git-send-email-tobetter@gmail.com> (raw)
In-Reply-To: <1355774107-364-1-git-send-email-tobetter@gmail.com>

This patch adds GPIO connected LEDS on ODROID-X board, and describe its
properties.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
 arch/arm/boot/dts/exynos4412-odroidx.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 2d45dcb..3943011 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -59,4 +59,18 @@
 		enable-active-high;
 		regulator-boot-on;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		led1 {
+			label = "led1:heart";
+			gpios = <&gpc1 0 0>;
+			linux,default-trigger = "heartbeat";
+		};
+		led2 {
+			label = "led2:mmc0";
+			gpios = <&gpc1 2 0>;
+			linux,default-trigger = "mmc0";
+		};
+	};
 };
-- 
1.7.9.5

WARNING: multiple messages have this Message-ID (diff)
From: tobetter@gmail.com (Dongjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO.
Date: Tue, 18 Dec 2012 04:55:06 +0900	[thread overview]
Message-ID: <1355774107-364-4-git-send-email-tobetter@gmail.com> (raw)
In-Reply-To: <1355774107-364-1-git-send-email-tobetter@gmail.com>

This patch adds GPIO connected LEDS on ODROID-X board, and describe its
properties.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
 arch/arm/boot/dts/exynos4412-odroidx.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 2d45dcb..3943011 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -59,4 +59,18 @@
 		enable-active-high;
 		regulator-boot-on;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		led1 {
+			label = "led1:heart";
+			gpios = <&gpc1 0 0>;
+			linux,default-trigger = "heartbeat";
+		};
+		led2 {
+			label = "led2:mmc0";
+			gpios = <&gpc1 2 0>;
+			linux,default-trigger = "mmc0";
+		};
+	};
 };
-- 
1.7.9.5

WARNING: multiple messages have this Message-ID (diff)
From: Dongjin Kim <tobetter@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
	thomas.abraham@linaro.org, Dongjin Kim <tobetter@gmail.com>,
	Russell King <linux@arm.linux.org.uk>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO.
Date: Tue, 18 Dec 2012 04:55:06 +0900	[thread overview]
Message-ID: <1355774107-364-4-git-send-email-tobetter@gmail.com> (raw)
In-Reply-To: <1355774107-364-1-git-send-email-tobetter@gmail.com>

This patch adds GPIO connected LEDS on ODROID-X board, and describe its
properties.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
 arch/arm/boot/dts/exynos4412-odroidx.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 2d45dcb..3943011 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -59,4 +59,18 @@
 		enable-active-high;
 		regulator-boot-on;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		led1 {
+			label = "led1:heart";
+			gpios = <&gpc1 0 0>;
+			linux,default-trigger = "heartbeat";
+		};
+		led2 {
+			label = "led2:mmc0";
+			gpios = <&gpc1 2 0>;
+			linux,default-trigger = "mmc0";
+		};
+	};
 };
-- 
1.7.9.5


  parent reply	other threads:[~2012-12-17 19:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17 19:55 [PATCH 0/4] ODROID-X: Adding dt-based ODROID-X support Dongjin Kim
2012-12-17 19:55 ` Dongjin Kim
2012-12-17 19:55 ` [PATCH 1/4] ODROID-X: dts: Add board dts file for ODROID-X Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-18  1:22   ` Thomas Abraham
2012-12-18  1:22     ` Thomas Abraham
2012-12-18  1:56   ` Olof Johansson
2012-12-18  1:56     ` Olof Johansson
2012-12-18  1:56     ` Olof Johansson
2012-12-18  6:00     ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-18  6:00       ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-18  6:14       ` Olof Johansson
2012-12-18  6:14         ` Olof Johansson
2012-12-18  6:47         ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-18  6:47           ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-17 19:55 ` [PATCH 2/4] ODROID-X: dts: Add fixed-regulator for peripherals Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-17 19:55 ` Dongjin Kim [this message]
2012-12-17 19:55   ` [PATCH 3/4] ODROID-X: dts: Add nodes for leds based on GPIO Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-17 19:55 ` [PATCH 4/4] ODROID-X: dts: Add mshc node for ODROID-X board Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-17 19:55   ` Dongjin Kim
2012-12-17 21:40   ` Tomasz Figa
2012-12-17 21:40     ` Tomasz Figa

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=1355774107-364-4-git-send-email-tobetter@gmail.com \
    --to=tobetter@gmail.com \
    --cc=kgene.kim@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=thomas.abraham@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.