From: manabian@gmail.com (Joachim Eastwood)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/9] ARM: dts: lpc4357-ea4357: add mmio-gpio leds
Date: Fri, 31 Jul 2015 00:24:24 +0200 [thread overview]
Message-ID: <1438295067-24407-7-git-send-email-manabian@gmail.com> (raw)
In-Reply-To: <1438295067-24407-1-git-send-email-manabian@gmail.com>
Hook up LEDs on the outputs from the D-type flip-flop found on
the address/data bus.
Note that the LEDx label in the schematics is reversed in regard
to the bits on the data bus. Hence the reverse ordering used here.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 69 +++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
index 7768d724c379..5f7bdad80963 100644
--- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
+++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
@@ -85,6 +85,75 @@
gpios = <&gpio LPC_GPIO(4,13) GPIO_ACTIVE_LOW>;
};
};
+
+ leds_mmio {
+ compatible = "gpio-leds";
+
+ led1 {
+ gpios = <&mmio_leds 15 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ };
+
+ led2 {
+ gpios = <&mmio_leds 14 GPIO_ACTIVE_HIGH>;
+ };
+
+ led3 {
+ gpios = <&mmio_leds 13 GPIO_ACTIVE_HIGH>;
+ };
+
+ led4 {
+ gpios = <&mmio_leds 12 GPIO_ACTIVE_HIGH>;
+ };
+
+ led5 {
+ gpios = <&mmio_leds 11 GPIO_ACTIVE_HIGH>;
+ };
+
+ led6 {
+ gpios = <&mmio_leds 10 GPIO_ACTIVE_HIGH>;
+ };
+
+ led7 {
+ gpios = <&mmio_leds 9 GPIO_ACTIVE_HIGH>;
+ };
+
+ led8 {
+ gpios = <&mmio_leds 8 GPIO_ACTIVE_HIGH>;
+ };
+
+ led9 {
+ gpios = <&mmio_leds 7 GPIO_ACTIVE_HIGH>;
+ };
+
+ led10 {
+ gpios = <&mmio_leds 6 GPIO_ACTIVE_HIGH>;
+ };
+
+ led11 {
+ gpios = <&mmio_leds 5 GPIO_ACTIVE_HIGH>;
+ };
+
+ led12 {
+ gpios = <&mmio_leds 4 GPIO_ACTIVE_HIGH>;
+ };
+
+ led13 {
+ gpios = <&mmio_leds 3 GPIO_ACTIVE_HIGH>;
+ };
+
+ led14 {
+ gpios = <&mmio_leds 2 GPIO_ACTIVE_HIGH>;
+ };
+
+ led15 {
+ gpios = <&mmio_leds 1 GPIO_ACTIVE_HIGH>;
+ };
+
+ led16 {
+ gpios = <&mmio_leds 0 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
&pinctrl {
--
1.8.0
next prev parent reply other threads:[~2015-07-30 22:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 22:24 [PATCH 0/9] LPC18xx DTS changes for 4.3 part2 Joachim Eastwood
2015-07-30 22:24 ` [PATCH 1/9] ARM: dts: lpc18xx: add usb otg phy node Joachim Eastwood
2015-07-30 22:24 ` [PATCH 2/9] ARM: dts: lpc18xx: add pl111 lcd controller node Joachim Eastwood
2015-07-30 22:24 ` [PATCH 3/9] ARM: dts: lpc18xx: add pl172 memory-controller node Joachim Eastwood
2015-07-30 22:24 ` [PATCH 4/9] ARM: dts: lpc4357-ea4357: add usb0 Joachim Eastwood
2015-07-30 22:24 ` [PATCH 5/9] ARM: dts: lpc4357-ea4357: add emc pins and static memory devices Joachim Eastwood
2015-07-30 22:24 ` Joachim Eastwood [this message]
2015-07-30 22:24 ` [PATCH 7/9] ARM: dts: lpc4350-hitex-eval: add pinctrl and uart0 muxing Joachim Eastwood
2015-07-30 22:24 ` [PATCH 8/9] ARM: dts: lpc4350-hitex-eval: add ethernet Joachim Eastwood
2015-07-30 22:24 ` [PATCH 9/9] ARM: dts: lpc4350-hitex-eval: add emc pins and static memory devices Joachim Eastwood
2015-08-06 7:28 ` [PATCH 0/9] LPC18xx DTS changes for 4.3 part2 Olof Johansson
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=1438295067-24407-7-git-send-email-manabian@gmail.com \
--to=manabian@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).