From patchwork Mon Dec 31 02:35:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 1920671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id EC374402E1 for ; Mon, 31 Dec 2012 02:42:48 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TpVH4-0002xR-3D; Mon, 31 Dec 2012 02:38:46 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TpVGb-0002tp-9o for linux-arm-kernel@lists.infradead.org; Mon, 31 Dec 2012 02:38:18 +0000 Received: by mail-pb0-f51.google.com with SMTP id ro12so6820392pbb.10 for ; Sun, 30 Dec 2012 18:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=el3sxC5X/eSNrvGa/oEWmUIJmbKxPI93e1tI7nPaI0w=; b=a3WSATULcf40uPvQHFzAbgitIFECiiIEzOglzsbyQD0qSo23gTSf8et1e0ME3UPVPD 0uDNLMRXeluEHsRI7YP3+CLBMCMgmxxUThUH9rYGxx5FgQvjldURzQ9jcZTa0+hZvSDg 0VKm+K05W+OTi20BcQ7JERApa+5CqKreP5zvM+ndm98og+lpldanqYhUk8RrcTc1zsXF AuK1Iex5zmtkZTuGHBtFoxAY5e90sGStY/sODBBH5Cl+niwirkgaYsUOvZrBbYeJXUDI DYE3jJ/w5wpi7JLq1VLsD0uWmxu01cdf7Ezxst3YfpR9ZHvJFQfUHQXvwM7hsI57j4zc Xpjw== X-Received: by 10.68.220.162 with SMTP id px2mr124855969pbc.109.1356921495905; Sun, 30 Dec 2012 18:38:15 -0800 (PST) Received: from localhost.localdomain ([125.177.223.206]) by mx.google.com with ESMTPS id ty4sm23997033pbc.57.2012.12.30.18.38.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Dec 2012 18:38:14 -0800 (PST) From: Dongjin Kim To: Subject: [PATCH v3 3/4] ODROID-X: dts: Add nodes for leds based on GPIO. Date: Mon, 31 Dec 2012 11:35:12 +0900 Message-Id: <1356921314-12595-4-git-send-email-tobetter@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1356921314-12595-1-git-send-email-tobetter@gmail.com> References: <1356921314-12595-1-git-send-email-tobetter@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121230_213817_499301_836F86A4 X-CRM114-Status: GOOD ( 10.06 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.51 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tobetter[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Kukjin Kim , Russell King , linux-kernel@vger.kernel.org, Thomas Abraham , Dongjin Kim , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds GPIO connected LEDS on ODROID-X board and configure its properties. LED1: use 'heartbeat' trigger, blinking while the board is running. LED2: use 'mmc0' trigger, on when mmc0 is accessing. Signed-off-by: Dongjin Kim --- arch/arm/boot/dts/exynos4412-odroidx.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts index 213b152..f31529f 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -54,4 +54,20 @@ enable-active-high; regulator-boot-on; }; + + leds { + compatible = "gpio-leds"; + led1 { + label = "led1:heart"; + gpios = <&gpc1 0 1>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + led2 { + label = "led2:mmc0"; + gpios = <&gpc1 2 1>; + default-state = "on"; + linux,default-trigger = "mmc0"; + }; + }; };