devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Edward Cragg <edward.cragg@codethink.co.uk>
To: linux-arm-kernel@lists.infradead.org
Cc: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Russell King <linux@arm.linux.org.uk>,
	Carlo Caione <carlo@caione.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] ARM: meson: Add status LED for Odroid-C1
Date: Fri,  9 Oct 2015 15:37:10 +0100	[thread overview]
Message-ID: <1444401430-4396-2-git-send-email-edward.cragg@codethink.co.uk> (raw)
In-Reply-To: <1444401430-4396-1-git-send-email-edward.cragg@codethink.co.uk>

Add the blue status LED to the Hardkernel Odroid C1 board DTS.
This is the only programmable LED on the board.

Signed-off-by: Edward Cragg <edward.cragg@codethink.co.uk>
---
 arch/arm/boot/dts/meson8b-odroidc1.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index a8e2911..3b03523 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -1,6 +1,8 @@
 /*
  * Copyright 2015 Endless Mobile, Inc.
  * Author: Carlo Caione <carlo@endlessm.com>
+ * Copyright 2015 Codethink Ltd.
+ * Author: Edward Cragg <edward.cragg@codethink.co.uk>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -46,6 +48,7 @@
 
 /dts-v1/;
 #include "meson8b.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Hardkernel ODROID-C1";
@@ -58,6 +61,16 @@
 	memory {
 		reg = <0x40000000 0x40000000>;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		blue {
+			label = "c1:blue:alive";
+			gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "heartbeat";
+			default-state = "off";
+		};
+	};
 };
 
 &uart_AO {
-- 
2.5.0

  reply	other threads:[~2015-10-09 14:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09 14:37 [PATCH 0/1] ARM: meson: Add status LED for Odroid-C1 Edward Cragg
2015-10-09 14:37 ` Edward Cragg [this message]
     [not found]   ` <1444401430-4396-2-git-send-email-edward.cragg-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-10-12 19:15     ` [PATCH 1/1] " Carlo Caione
2015-10-30 17:55     ` Edward Cragg
2015-10-30 18:13       ` Carlo Caione

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=1444401430-4396-2-git-send-email-edward.cragg@codethink.co.uk \
    --to=edward.cragg@codethink.co.uk \
    --cc=carlo@caione.org \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.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).