lkml.org 
[lkml]   [2015]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] ARM: meson: Add status LED for Odroid-C1
Date
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


\
 
 \ /
  Last update: 2015-10-09 17:01    [W:0.038 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site