From patchwork Thu Apr 18 22:28:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 2462821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id DD3BC3FD8C for ; Thu, 18 Apr 2013 22:31:16 +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 1USxMJ-0004wv-Ko; Thu, 18 Apr 2013 22:31:15 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1USxMH-00014g-BI; Thu, 18 Apr 2013 22:31:13 +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 1USxME-00014M-4J for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2013 22:31:10 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 498442C073C; Fri, 19 Apr 2013 00:31:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1366324268; bh=Z99wYRMQKGYbehH7J9mKQcE09H+ZSmfkWzWyVCzPFJc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=rGFA0wfkljCPwryeNLZAPv1nHiCl7w1P6O355ZX9M6aEST3pGi96/Wj13nJx0eq89 JY98+rWuepnXuoxXkYKA9RIPjQgYph04hGJkJBLRRDHT31X5X9dZrynLe5qT9xTHKl WeazuD1Ctfd41YvF+ZIgnF3BdVpLB0tOB729q8Lw= X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on petit X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from small (localhost [127.0.0.1]) by smtp.natisbad.org (Postfix) with ESMTP id 254B32C0705; Fri, 19 Apr 2013 00:28:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1366324120; bh=Z99wYRMQKGYbehH7J9mKQcE09H+ZSmfkWzWyVCzPFJc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=llRRQE5GpGgCIaTZFlUsxNQ5bskWK6xhb6xNrBtj7E0aP/xCpKG7oXPRwJKi7vBPT pq1k8SJ1eYXvFUiolPT5831JK4q2USpqdaD2W/Ll7Ow8vLJToWLpGOf70oG4miESRO /EM50WuesemZLpbNxdRITuau7BOv795CrKWcyfaA= X-Hashcash: 1:20:130418:khali@linux-fr.org::c/ItwMmWxaqtBXhz:000000000000000000000000000000000000000000007mA X-Hashcash: 1:20:130418:linux@roeck-us.net::CJ1X+X9vD9S8I9vp:00000000000000000000000000000000000000000005fiw X-Hashcash: 1:20:130418:grant.likely@secretlab.ca::2rEsEJ3QoISnvHrV:00000000000000000000000000000000000031ii X-Hashcash: 1:20:130418:rob.herring@calxeda.com::cjJpfjbPAp89OpIY:000000000000000000000000000000000000005L+r X-Hashcash: 1:20:130418:lm-sensors@lm-sensors.org::3ubJ/E2lUxu6cfSJ:0000000000000000000000000000000000004S7O X-Hashcash: 1:20:130418:devicetree-discuss@lists.ozlabs.org::AKMBLNtmwk1K4Ilu:000000000000000000000000002Yhd X-Hashcash: 1:20:130418:rob@landley.net::Ia66MRSI4FdOeNQg:001RrQ X-Hashcash: 1:20:130418:linux-doc@vger.kernel.org::3gdQONxXh9/cYkGi:000000000000000000000000000000000000B2Di X-Hashcash: 1:20:130418:linux-arm-kernel@lists.infradead.org::gORoKq7OUplXvOV3:00000000000000000000000002yXR X-Hashcash: 1:20:130418:linux@arm.linux.org.uk::rZR+0Qw7M05x6vF/:0000000000000000000000000000000000000006ALw X-Hashcash: 1:20:130418:andrew@lunn.ch::VwQBJnQH1TEDn1sW:0001jEX X-Hashcash: 1:20:130418:jason@lakedaemon.net::2gX7cpwlSohv7N2M:00000000000000000000000000000000000000000Hw/U X-Hashcash: 1:20:130418:simon.guinot@sequanux.org::OdGpT2aQ5SH7FuYa:0000000000000000000000000000000000000ATn X-Hashcash: 1:20:130418:olivier.mouchet@gmail.com::2M5mZiCys3r8faam:0000000000000000000000000000000000003vlG From: arno@natisbad.org (Arnaud Ebalard) To: Jean Delvare , Guenter Roeck , Grant Likely , Rob Herring , lm-sensors@lm-sensors.org, devicetree-discuss@lists.ozlabs.org, Rob Landley , linux-doc@vger.kernel.org Subject: [RFC,PATCHv0 2/3] Add DT documentation for G762 PWM fan controller In-Reply-To: References: Message-Id: <3a1f8fa72e97a3dc8102bc3ba416c83160205355.1366322287.git.arno@natisbad.org> X-PGP-Key-URL: http://natisbad.org/arno@natisbad.org.asc X-Fingerprint: D3A5 B68A 839B 38A5 815A 781B B77C 0748 A7AE 341B Date: Fri, 19 Apr 2013 00:28:39 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130418_183110_531634_2B039631 X-CRM114-Status: GOOD ( 12.79 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -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 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS Cc: Andrew Lunn , Russell King - ARM Linux , Jason Cooper , Olivier Mouchet , Linux ARM Kernel Mailing List , Simon Guinot 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 Signed-off-by: Arnaud Ebalard --- Documentation/devicetree/bindings/hwmon/g762.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/g762.txt diff --git a/Documentation/devicetree/bindings/hwmon/g762.txt b/Documentation/devicetree/bindings/hwmon/g762.txt new file mode 100644 index 0000000..9eee838 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/g762.txt @@ -0,0 +1,37 @@ +GMT G762/G763 PWM Fan controller + +Required node properties: + + - "compatible": must be either "gmt,g762" or "gmt,g763" + - "reg": I2C bus address of the device + +Optional properties: + + - "pwm_mode": fan driving mode. 1 for PWM mode, 0 for linear. Default + value is 0, i.e. linear. + - "pwm_enable": fan speed control. 1 for open-loop, 2 for closed-loop. + Default value is 2, i.e. closed-loop. + - "pwm_freq": reference clock frequency for PWM mode in Hz. Default is + 32768. + - "fan_pulses": number of pulses per fan revolution. Supported values + are 2 and 4. Default is 2. + - "fan_div": fan clock frequency divisor value. Supported values are + 1, 2, 4 and 8. Default is 1. + - "fan_target": initial target fan speed in RPM. By default, current + value is not modified. + +Previous optional properties provides devicetree access to the entries +described in Documentation/hwmon/g762 + +Example g762 node: + + g762: g762@3e { + compatible = "gmt,g762"; + reg = <0x3e>; + pwm_mode = <1>; /* closed-loop control */ + pwm_enable = <2>; /* PWM mode */ + pwm_freq = <8192>; /* PWM reference clock freq */ + fan_pulses = <2>; /* 2 pulses per rev */ + fan_div = <2>; /* fan clock divisor */ + fan_target = <2000>; /* target fan speed at 2000 RPM */ + };