From patchwork Sat Nov 9 21:07:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 3164251 Return-Path: X-Original-To: patchwork-linux-arm@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 6EEBBC045B for ; Sat, 9 Nov 2013 21:08:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B5BA202EC for ; Sat, 9 Nov 2013 21:08:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 48EBD202B8 for ; Sat, 9 Nov 2013 21:08:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VfFlf-0003o8-Nl; Sat, 09 Nov 2013 21:08:31 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VfFld-00058G-9H; Sat, 09 Nov 2013 21:08:29 +0000 Received: from mic92-1-81-57-185-249.fbx.proxad.net ([81.57.185.249] helo=smtp.natisbad.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VfFlZ-00057h-9k for linux-arm-kernel@lists.infradead.org; Sat, 09 Nov 2013 21:08:26 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 536222C0CCF; Sat, 9 Nov 2013 22:08:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1384031281; bh=1dVd0QFvOXTqn3VDr5HiCJWCFuKYNNopv53WytsYazk=; h=From:To:Cc:Subject:Date; b=QOk5t+0JYsOLf/srcgrV1DjUAnK9ZX9mPoqf4+c+kSmZDdyLmqoyOlG8wPWNd0Ab0 8IM8OmcGWi22DC77fj5kKxt8FbwJcKAYXmBdGfcgHgbyksKNNOVentt4RPfmhl6oe/ oJ2BeRo0Lb67lZKtti2mFvE39R1s71DjqlKZA22o= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, KHOP_BIG_TO_CC,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from small (localhost [127.0.0.1]) by smtp.natisbad.org (Postfix) with ESMTP id 852182C05C9; Sat, 9 Nov 2013 22:07:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1384031264; bh=1dVd0QFvOXTqn3VDr5HiCJWCFuKYNNopv53WytsYazk=; h=From:To:Cc:Subject:Date; b=gtV3KFOCEf2eHxuyyTSaVHRYRpJXBNMBM+92BZHedVeprAYkmYv12vcqUwnNlI/13 mKahVOFFDlcvP8HIBIoH9hCHjm1//F0jaf//MaALUR8alwo6ylT4VqUhB89kmKCqH4 GHz7LEfgo1VUUif+E+PEhBF6hDW8iE1T2CTdMl20= X-Hashcash: 1:20:131109:jason@lakedaemon.net::ROFrxu6aLwdHiRtg:000000000000000000000000000000000000000004ba0 X-Hashcash: 1:20:131109:andrew@lunn.ch::ETSyKUou9Gm4WA9P:000357n X-Hashcash: 1:20:131109:gregory.clement@free-electrons.com::gBltcYgJkRkqWBXW:0000000000000000000000000001kSY X-Hashcash: 1:20:131109:sebastian.hesselbarth@gmail.com::PzRkFEZFFX9RuZE7:0000000000000000000000000000004WJ/ X-Hashcash: 1:20:131109:linux@arm.linux.org.uk::PeTeGIX7HeIJ3D6l:0000000000000000000000000000000000000001ZgE X-Hashcash: 1:20:131109:linux-arm-kernel@lists.infradead.org::RqgWWraqqtYDDrxQ:000000000000000000000000055/l X-Hashcash: 1:20:131109:rob.herring@calxeda.com::MDu8ENsBkk58Mvjc:0000000000000000000000000000000000000013ez X-Hashcash: 1:20:131109:pawel.moll@arm.com::vtWaaAhZdl+mSfkS:0000000000000000000000000000000000000000000B/yF X-Hashcash: 1:20:131109:mark.rutland@arm.com::fmwchZ6mbzY/uOkx:000000000000000000000000000000000000000000aw5 X-Hashcash: 1:20:131109:swarren@wwwdotorg.org::g6eqk+v7v2QHKPZt:000000000000000000000000000000000000000009GH X-Hashcash: 1:20:131109:ijc+devicetree@hellion.org.uk::0LqmficXX2x3SPTw:00000000000000000000000000000000C4ri X-Hashcash: 1:20:131109:devicetree@vger.kernel.org::TjFIZaoWyPQTkMVU:00000000000000000000000000000000000Dpl5 From: arno@natisbad.org (Arnaud Ebalard) To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH] ARM: mvebu: Add RN104 SATA LEDs driven via NXP PCA9554 I2C to GPIO muxer X-PGP-Key-URL: http://natisbad.org/arno@natisbad.org.asc X-Fingerprint: D3A5 B68A 839B 38A5 815A 781B B77C 0748 A7AE 341B Date: Sat, 09 Nov 2013 22:07:43 +0100 Message-ID: <877gchmggw.fsf@natisbad.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131109_160825_636425_DC87D711 X-CRM114-Status: GOOD ( 12.15 ) X-Spam-Score: -0.0 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Stephen Warren , Ian Campbell , Rob Herring , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP NETGEAR ReadyNAS 104 has a NXP PCA9554 I2C to GPIO chip. Among the 8 GPIO lines the chip makes available, four are used on the device to control the SATA LEDs (the four remaining ones are used for SATA disk presence). This patch adds DT entries for NXP PCA9554 and the four SATA GPIO LEDs. Signed-off-by: Arnaud Ebalard --- Hi Jason, This one depends on the patch (ARM: mvebu: Add Netgear ReadyNAS 104 board) which you pushed to Olof for inclusion in v3.13. If you wonder why NETGEAR was short on GPIO lines from the Armada 370 SoC and had to add this, the answer is: the front Winstar WH1602 LCD consumes 7 lines. Cheers, a+ arch/arm/boot/dts/armada-370-netgear-rn104.dts | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts index b0b32f5..1efc871 100644 --- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts +++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts @@ -123,6 +123,13 @@ fan_startv = <1>; pwm_polarity = <0>; }; + + pca9554: pca9554@23 { + compatible = "nxp,pca9554"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x23>; + }; }; }; }; @@ -154,6 +161,30 @@ gpios = <&gpio2 0 1>; /* GPIO 64 Active Low */ linux,default-trigger = "keep"; }; + + sata1_led { + label = "rn104:blue:sata1"; + gpios = <&pca9554 0 1>; /* Active Low */ + default-state = "off"; + }; + + sata2_led { + label = "rn104:blue:sata2"; + gpios = <&pca9554 1 1>; /* Active Low */ + default-state = "off"; + }; + + sata3_led { + label = "rn104:blue:sata3"; + gpios = <&pca9554 2 1>; /* Active Low */ + default-state = "off"; + }; + + sata4_led { + label = "rn104:blue:sata4"; + gpios = <&pca9554 3 1>; /* Active Low */ + default-state = "off"; + }; }; gpio_keys {