From patchwork Tue Jun 4 07:15:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 2657591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 19F38DF2A1 for ; Tue, 4 Jun 2013 07:19:43 +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 1UjlV1-0005XH-Sm; Tue, 04 Jun 2013 07:17:45 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UjlUa-0004CZ-Ti; Tue, 04 Jun 2013 07:17:16 +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 1UjlUX-0004Ae-Sa for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2013 07:17:14 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id A94A82C07C3; Tue, 4 Jun 2013 09:16:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1370330212; bh=CbZy6AfTmbRDPqE1HR0ElTy/iY7gxDa71M37PoY84UU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=2oiPBu6ennlTWDBYuqK4Bh34eM7DAJ41M/G5dGzsbpRRlfFtkLtBJMvbTx7Ng/3AK uOir+vaU1tmV26Ubm9XU4bTs3ENYMMJojpm5amBxltz8N8nbF6oDUNoqqjcMP1I3QE oiKTcOapVa6eIV8xmp3TDl8Z7bGbpO1IqopCv5xM= 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 EF2DE2C0308; Tue, 4 Jun 2013 09:13:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1370330021; bh=CbZy6AfTmbRDPqE1HR0ElTy/iY7gxDa71M37PoY84UU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=E1hb2CQpNmL4irf1HD72NNHTUyWJRuUX+4FU+2tNQQy7YjhM5IMtup7i63nKGilxb NHqMAZEpUWPmAk/42FQvxa0laxesvYeR4++9aBqt9wh/pCsFA1oztBIoc7Moo57cyH pXaYWWtnguztRjmX8wz/lvD8izWVGyP5eI7gv1Ok= X-Hashcash: 1:20:130604:linux@roeck-us.net::0Goqa7SLVuuZ9kWS:00000000000000000000000000000000000000000001mOj X-Hashcash: 1:20:130604:khali@linux-fr.org::vsVcOGzpmeQEYHnh:00000000000000000000000000000000000000000006RxQ X-Hashcash: 1:20:130604:grant.likely@secretlab.ca::ZkkUN60MqitUdzmx:0000000000000000000000000000000000001kb5 X-Hashcash: 1:20:130604:rob.herring@calxeda.com::dqq15g8ApVqgUAzY:000000000000000000000000000000000000007Q1V X-Hashcash: 1:20:130604:lm-sensors@lm-sensors.org::uza2gYoLjtWKjXBE:000000000000000000000000000000000000078/ X-Hashcash: 1:20:130604:devicetree-discuss@lists.ozlabs.org::yT56e/9/tY/JhzcJ:000000000000000000000000007rBC X-Hashcash: 1:20:130604:rob@landley.net::rh0hi1nq0Vg4hA8i:006NTb X-Hashcash: 1:20:130604:linux-doc@vger.kernel.org::BLDm2MBrLcHd5uf2:0000000000000000000000000000000000000yfK X-Hashcash: 1:20:130604:linux-arm-kernel@lists.infradead.org::4q9chj8VcZh2mKtV:000000000000000000000000002ex X-Hashcash: 1:20:130604:linux@arm.linux.org.uk::JL8YEC8uCGds6GGm:0000000000000000000000000000000000000000zif X-Hashcash: 1:20:130604:andrew@lunn.ch::sX2zcwf0NdzulUp3:0000Rso X-Hashcash: 1:20:130604:jason@lakedaemon.net::AJ4LhmMzWfH+UrJE:000000000000000000000000000000000000000003B0v X-Hashcash: 1:20:130604:simon.guinot@sequanux.org::G/0ww6c4BzxK/ZdL:000000000000000000000000000000000000AkRC X-Hashcash: 1:20:130604:olivier.mouchet@gmail.com::oaE0sma6DT3PXXKJ:0000000000000000000000000000000000001M+s From: Arnaud Ebalard To: Guenter Roeck Subject: [PATCHv4 3/3] Add DT bindings documentation for g762 driver In-Reply-To: References: Message-Id: <0162ace15ab54e9b585af0f91588552fbd39ad39.1370327864.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: Tue, 04 Jun 2013 09:15:07 +0200 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-20130604_031714_228418_69A85711 X-CRM114-Status: GOOD ( 12.56 ) X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.0 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 1.0 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS Cc: Andrew Lunn , Russell King - ARM Linux , Jason Cooper , linux-doc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Olivier Mouchet , Rob Herring , lm-sensors@lm-sensors.org, Grant Likely , Rob Landley , Jean Delvare , 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 | 41 ++++++++++++++++++++++ 1 file changed, 41 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..574524d --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/g762.txt @@ -0,0 +1,41 @@ +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_freq": reference clock frequency for PWM mode in Hz. If not set, + default value is 32768. + + - "fan_pulses": number of pulses per fan revolution. Supported values + are 2 and 4. + + - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3. + The higher the more. + + - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty) + and 1 (negative duty). + + - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2. + +If an optional property is not set in .dts file, then current value is kept +unmodified (e.g. u-boot installed value). + +Additional information on operational parameters for the device is available +in Documentation/hwmon/g762. A detailed datasheet for the device is available +at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf. + +Example g762 node: + + g762: g762@3e { + compatible = "gmt,g762"; + reg = <0x3e>; + pwm_freq = <8192>; /* PWM reference clock freq */ + fan_pulses = <2>; /* 2 pulses per rev */ + fan_gear_mode = <0>; /* chip default */ + fan_startv = <1>; /* chip default */ + pwm_polarity = <0>; /* chip default */ + };