From patchwork Fri Nov 23 00:06:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 1792991 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 26FEADF24C for ; Fri, 23 Nov 2012 00:02:58 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tbggq-0001Ez-IU; Fri, 23 Nov 2012 00:00:16 +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 1Tbggh-0001AH-W6 for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 00:00:12 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi1so2980094pad.36 for ; Thu, 22 Nov 2012 16:00:04 -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=Pl2P2ihEKKwN1AM01dBFYnnwqI1hSXmCaYL1kLCBOf0=; b=YIaCdnAAZS8XDpPUUcbNK1IjayXoB7tLGT8Yb9rU0WJE65RtewWWuuBe6X6EpN5jzo iC9pHK+99cxfz2eLtFqaDaVmDZ7EOyR6YnBYtZIc+5oPq/VYz2U7qBiGf6+XOyBTS/2v DIdILVleYW8hLA8GOEjdMVUIj43icfX2U6qHb3YaOiu8IYAtpJvD57DBy2viPSTghcp8 HUISwz5jJQLYuEiwy9rDqHiV7jOQ3Ni8ltka+0le1hVOOH2aZt7u+YArNxQ27pofw2Dr GxhENbFHSoSFpwk2yz+8BmBiwfC5goGCsnnsZOKCC+h+iVPntqyBYDTHSyVN4Q6kKv73 fI7g== Received: by 10.68.136.9 with SMTP id pw9mr8888690pbb.155.1353628804312; Thu, 22 Nov 2012 16:00:04 -0800 (PST) Received: from guhya (y104036.dynamic.ppp.asahi-net.or.jp. [118.243.104.36]) by mx.google.com with ESMTPS id x6sm2631069pav.29.2012.11.22.16.00.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 16:00:03 -0800 (PST) Received: from iwamatsu by guhya with local (Exim 4.80) (envelope-from ) id 1TbgmQ-0001ZM-3X; Fri, 23 Nov 2012 09:06:02 +0900 From: Nobuhiro Iwamatsu To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: Kirkwood: Add support LED of OpenBlocks A6 Date: Fri, 23 Nov 2012 09:06:00 +0900 Message-Id: <1353629160-6002-1-git-send-email-iwamatsu@nigauri.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQlgPBHPcutlYtREGakqh4hfbzqlwQLgoI5kkIJqrZGOk+oHBz7gqKWRUi6IxGFRfLJK/SEF X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121122_190008_377662_D27D7F7E X-CRM114-Status: GOOD ( 11.95 ) 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 --- 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..183df04 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, };