From patchwork Fri Nov 23 20:24:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 1796871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 2274BDF254 for ; Fri, 23 Nov 2012 20:21:24 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tbzi5-00068H-4J; Fri, 23 Nov 2012 20:18:49 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tbzi1-00067d-Ld for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 20:18:46 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi1so3467492pad.36 for ; Fri, 23 Nov 2012 12:18:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=a7FiDQmvlS+hDx/erUgUhfkKov/ExTsSBGSrEIDe3Lk=; b=TCV0ngf2mTqDpXas0/iKqbyxwt4fVpuTsNypIBQwr9YnbZUSDO5Nzfjc7jwGpV8oNg tD+wxc3URGU+WLNUW7xMu4nBENERugy4PGWETnh6CyuplzpHRW9aY1dfV1rfRHkFRG/c hquef50tn4xhq90oDiIi7oni4L5l2hh4+dZobjbB3lxapB6KmxnPMehS+0VVJlZb6qrc u3SSn+KJYqrKoPpwpsk8EBsz8jQtc5/ij16fJA4FFfhYRHh9xl0WZIIjjlBlUv2Rx6PM PM+gqikTotwaMIlnjYd833fXiDOYGZ3Yj8nT4rzv/ELFsq+Jhi2uzTkDhJZiHMwzoejI YGhw== Received: by 10.66.87.202 with SMTP id ba10mr12849552pab.72.1353701921971; Fri, 23 Nov 2012 12:18:41 -0800 (PST) Received: from guhya (y104036.dynamic.ppp.asahi-net.or.jp. [118.243.104.36]) by mx.google.com with ESMTPS id bv6sm4176984pab.13.2012.11.23.12.18.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2012 12:18:40 -0800 (PST) Received: from iwamatsu by guhya with local (Exim 4.80) (envelope-from ) id 1Tbzni-0001CZ-1P; Sat, 24 Nov 2012 05:24:38 +0900 From: Nobuhiro Iwamatsu To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] ARM: Kirkwood: Add support LED of OpenBlocks A6 Date: Sat, 24 Nov 2012 05:24:09 +0900 Message-Id: <1353702249-4589-1-git-send-email-iwamatsu@nigauri.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmtTWNkwIFo/kkYUSeg9S9ua+WhcgF23CliUx9BmgQkcc5VMjDilxNnDQb8qsboO1MFHVjO X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121123_151845_914598_9C246578 X-CRM114-Status: GOOD ( 11.98 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Andrew Lunn , Jason Cooper , Nobuhiro Iwamatsu 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 OpenBlocks A6 has three leds via GPIO. This supports them. And this fix typo about led, because hardware manual has typo. Signed-off-by: Nobuhiro Iwamatsu --- v2: Use gpio-leds, not gpio_leds. arch/arm/boot/dts/kirkwood-openblocks_a6.dts | 19 +++++++++++++++++++ arch/arm/mach-kirkwood/board-openblocks_a6.c | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts index 37dc3a7..e303169 100644 --- a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts +++ b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts @@ -75,4 +75,23 @@ }; }; }; + + gpio-leds { + compatible = "gpio-leds"; + + led-red { + label = "obsa6:red:stat"; + gpios = <&gpio1 9 1>; + }; + + led-green { + label = "obsa6:green:stat"; + gpios = <&gpio1 10 1>; + }; + + led-yellow { + label = "obsa6:yellow:stat"; + gpios = <&gpio1 11 1>; + }; + }; }; diff --git a/arch/arm/mach-kirkwood/board-openblocks_a6.c b/arch/arm/mach-kirkwood/board-openblocks_a6.c index e71f984..815fc64 100644 --- a/arch/arm/mach-kirkwood/board-openblocks_a6.c +++ b/arch/arm/mach-kirkwood/board-openblocks_a6.c @@ -55,8 +55,8 @@ static unsigned int openblocks_a6_mpp_config[] __initdata = { MPP38_GPIO, /* INIT */ MPP39_GPIO, /* USB OC */ MPP41_GPIO, /* LED: Red */ - MPP42_GPIO, /* LED: Yellow */ - MPP43_GPIO, /* LED: Green */ + MPP42_GPIO, /* LED: Green */ + MPP43_GPIO, /* LED: Yellow */ 0, };