From patchwork Mon Jul 1 20:23:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 2809931 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 B11C4BF4A1 for ; Mon, 1 Jul 2013 20:23:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF0A02021B for ; Mon, 1 Jul 2013 20:23:15 +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 906B720214 for ; Mon, 1 Jul 2013 20:23:14 +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 1Utkcq-0004LK-ML; Mon, 01 Jul 2013 20:23:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Utkcn-0007FF-OY; Mon, 01 Jul 2013 20:23:01 +0000 Received: from [2a01:e35:139b:9f90:221:70ff:fe55:8f78] (helo=smtp.natisbad.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Utkcj-0007DD-LC for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2013 20:22:58 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 0012F2C0556; Mon, 1 Jul 2013 22:22:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1372710155; bh=N7K6NgI5rtwLEn3EkRPSSpIByLfmEBUNl2xvtodw52I=; h=From:To:Cc:Subject:Date; b=k5y8mcq5ODWUnK3LTTNNJhVkVhXmcGhjciNGUG+BiKr2lxlTzeiPFe3pjM6L6jFPB Zb4qtPjE1QjUeL44O89n5Ry11p1xKD2f6PerRfn+u+TmkbtLb1UPnWa9jw9Apb++Em 5EHLvauDz3Z6nO5NLeaw6z6CUNbPH7pVDzwN9R08= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 618FB2C0244; Mon, 1 Jul 2013 22:22:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1372710146; bh=N7K6NgI5rtwLEn3EkRPSSpIByLfmEBUNl2xvtodw52I=; h=From:To:Cc:Subject:Date; b=ItOD4x5qXm9UlsrsytHGPNFqRgeIHWqlQV/TtXiK2Ls06AOva72V38uqF9oLGyfY9 y34bBi/tfkDoY7CxRoAnlfIilyoXXhcYFsowtexHCdzqkGCICLybbg3Xidx+nbY8D3 9cyCFizu/aIBKm6DChIfh1opEBHFt1SnXmED8yRQ= X-Hashcash: 1:20:130701:jason@lakedaemon.net::Qubg35SrKjpr85OR:00000000000000000000000000000000000000000BqhM X-Hashcash: 1:20:130701:andrew@lunn.ch::fNU+mZgdjPel5i1P:0005p9v X-Hashcash: 1:20:130701:linux@arm.linux.org.uk::xPnUPLOZD9ZmM2Ws:000000000000000000000000000000000000000JlXz X-Hashcash: 1:20:130701:thomas.petazzoni@free-electrons.com::cSgsohWoV3m7EygE:000000000000000000000000006uvF X-Hashcash: 1:20:130701:linux-arm-kernel@lists.infradead.org::rYVdXwoJDZSzEMe4:00000000000000000000000000BnH From: arno@natisbad.org (Arnaud Ebalard) To: Jason Cooper , Andrew Lunn Subject: [PATCH] arm: kirkwood: readynas duo v2: Add GMT G762 Fan Controller DT bindings X-PGP-Key-URL: http://natisbad.org/arno@natisbad.org.asc X-Fingerprint: D3A5 B68A 839B 38A5 815A 781B B77C 0748 A7AE 341B Date: Mon, 01 Jul 2013 22:23:14 +0200 Message-ID: <87sizyuj0t.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-20130701_162258_387236_E0F1CFBE X-CRM114-Status: GOOD ( 12.24 ) X-Spam-Score: -1.2 (-) Cc: Thomas Petazzoni , Russell King , 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 Now that GMT G762 PWM Fan Controller is available upstream, let's add missing bindings in Netgear ReadyNAS Duo v2 .dts file. Let's also take the opportunity to fix space issues at the end of the file. Signed-off-by: Arnaud Ebalard --- Hi Jason and Andrew, This one applies and has been tested against Stephen Rothwell tree. Can you make it flow to Linus tree during the merge window? Thanks in advance. Cheers, a+ .../boot/dts/kirkwood-netgear_readynas_duo_v2.dts | 54 +++++++++++++++------- 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts index ad6ade7..796a307 100644 --- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts @@ -52,6 +52,17 @@ }; }; + clocks { + #address-cells = <1>; + #size-cells = <0>; + + g762_clk: fixedclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <8192>; + }; + }; + i2c@11000 { status = "okay"; @@ -59,6 +70,15 @@ compatible = "ricoh,rs5c372a"; reg = <0x32>; }; + + g762: g762@3e { + compatible = "gmt,g762"; + reg = <0x3e>; + clocks = <&g762_clk>; /* input clock */ + fan_gear_mode = <0>; + fan_startv = <1>; + pwm_polarity = <0>; + }; }; serial@12000 { @@ -166,21 +186,21 @@ }; }; - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - usb_power: regulator@1 { - compatible = "regulator-fixed"; - reg = <1>; - regulator-name = "USB 3.0 Power"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - enable-active-high; - regulator-always-on; - regulator-boot-on; - gpio = <&gpio1 14 0>; - }; - }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + usb_power: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "USB 3.0 Power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + regulator-always-on; + regulator-boot-on; + gpio = <&gpio1 14 0>; + }; + }; };