From patchwork Fri Oct 9 14:37:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed X-Patchwork-Id: 7362221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E76359F65E for ; Fri, 9 Oct 2015 14:39:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29C892078B for ; Fri, 9 Oct 2015 14:39:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4294E206BC for ; Fri, 9 Oct 2015 14:39:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZkYnr-0000hE-La; Fri, 09 Oct 2015 14:37:47 +0000 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZkYnf-0000Wb-EF for linux-arm-kernel@lists.infradead.org; Fri, 09 Oct 2015 14:37:36 +0000 Received: from localhost (localhost [127.0.0.1]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTP id 39A5F460BF7; Fri, 9 Oct 2015 15:37:16 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at ducie-dc1.codethink.co.uk Received: from ducie-dc1.codethink.co.uk ([127.0.0.1]) by localhost (ducie-dc1.codethink.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Adv5q-u0bjIJ; Fri, 9 Oct 2015 15:37:11 +0100 (BST) Received: from pomo (pomo.dyn.ducie.codethink.co.uk [10.24.1.222]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPSA id 40A6D46191D; Fri, 9 Oct 2015 15:37:11 +0100 (BST) Received: from ed by pomo with local (Exim 4.86) (envelope-from ) id 1ZkYnG-00019b-CA; Fri, 09 Oct 2015 15:37:10 +0100 From: Edward Cragg To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] ARM: meson: Add status LED for Odroid-C1 Date: Fri, 9 Oct 2015 15:37:10 +0100 Message-Id: <1444401430-4396-2-git-send-email-edward.cragg@codethink.co.uk> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1444401430-4396-1-git-send-email-edward.cragg@codethink.co.uk> References: <1444401430-4396-1-git-send-email-edward.cragg@codethink.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151009_073735_717197_603ABC86 X-CRM114-Status: GOOD ( 13.26 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , Kumar Gala , Carlo Caione MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 + * Copyright 2015 Codethink Ltd. + * Author: Edward Cragg * * 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 / { 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 {