From patchwork Sat Nov 22 20:26:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 5359881 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C24D7C11AC for ; Sat, 22 Nov 2014 20:27:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A4DC20131 for ; Sat, 22 Nov 2014 20:27:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2368C20138 for ; Sat, 22 Nov 2014 20:27:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbaKVU1Q (ORCPT ); Sat, 22 Nov 2014 15:27:16 -0500 Received: from cantor2.suse.de ([195.135.220.15]:46952 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752707AbaKVU0t (ORCPT ); Sat, 22 Nov 2014 15:26:49 -0500 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3B0F1ACF1; Sat, 22 Nov 2014 20:26:48 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-samsung-soc@vger.kernel.org Cc: Kukjin Kim , =?UTF-8?q?=EA=B9=80=ED=95=99=EC=A3=BC?= , Humberto Naves , Jan Kiszka , Johann Pfefferl , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Ben Dooks , Kukjin Kim , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND...) Subject: [PATCH v2 5/5] ARM: dts: exynos5410: Add ODROID-XU LEDs Date: Sat, 22 Nov 2014 21:26:24 +0100 Message-Id: <1416687984-3546-6-git-send-email-afaerber@suse.de> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1416687984-3546-1-git-send-email-afaerber@suse.de> References: <1416687984-3546-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Signed-off-by: Hakjoo Kim Signed-off-by: Andreas Färber --- v1 -> v2: * Filled in Sob from Hakjoo Kim arch/arm/boot/dts/exynos5410-odroidxu.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/exynos5410-odroidxu.dts b/arch/arm/boot/dts/exynos5410-odroidxu.dts index 97310bb727e2..b02cd3ab7b38 100644 --- a/arch/arm/boot/dts/exynos5410-odroidxu.dts +++ b/arch/arm/boot/dts/exynos5410-odroidxu.dts @@ -15,6 +15,7 @@ /dts-v1/; #include "exynos5410.dtsi" +#include / { model = "ODROID-XU based on EXYNOS5410"; compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5"; @@ -39,6 +40,30 @@ reg = <0x02037000 0x1000>; }; + leds { + compatible = "gpio-leds"; + + blue { + label = "blue:heartbeat"; + gpios = <&gpb2 2 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + + green { + label = "green:activity"; + gpios = <&gpb2 1 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "mmc0"; + }; + + red { + label = "red:activity"; + gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "mmc1"; + }; + }; }; &mmc_0 {