From patchwork Tue Jun 4 06:55:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 2657441 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 A9CD440077 for ; Tue, 4 Jun 2013 07:00:00 +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 1UjlCW-0008Ex-W4; Tue, 04 Jun 2013 06:58:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UjlBd-0003Qq-3Y; Tue, 04 Jun 2013 06:57:41 +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 1UjlBQ-0003Or-DP for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2013 06:57:29 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 088B82C08C5; Tue, 4 Jun 2013 08:57:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1370329027; bh=CbZy6AfTmbRDPqE1HR0ElTy/iY7gxDa71M37PoY84UU=; h=From:From:To:Cc:Subject:In-Reply-To:References:Date; b=2lhnLmI49OpmWTmPk6oH3GKGUHUTf8dyFqciwbosa9cgrY1STrboz+boxdjRNoHk7 fAtIbMedkO+FaKInRqHH512qX/WIGCHiYCcn7d8TdAEa/U618WR8TE/+By7tOQZKT0 QwTywvuArRykKBdW5eRIc3Sl28k2r8fU5HAYoF4s= 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 4BA372C081B; Tue, 4 Jun 2013 08:54:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1370328851; bh=CbZy6AfTmbRDPqE1HR0ElTy/iY7gxDa71M37PoY84UU=; h=From:From:To:Cc:Subject:In-Reply-To:References:Date; b=W5i9erLScYLy4tqAAL+LTLW6Im+VX/5/Kp1IeWauHIztWzybJYh/HfJ3bMNYKFckp CG/ZuwkcJQVpa51ZPL4G7kyXAD4B7WDo6KW8GJEbZ5VkEuSeSemt9rd2NddqcodXES VXKJ27YgkE/xaT7cSFNdEvQr2dRcIRuS/ZY/tmmc= X-Hashcash: 1:20:130604:linux@roeck-us.net::z0F0zfojNUA+aP3/:00000000000000000000000000000000000000000003Zqb X-Hashcash: 1:20:130604:khali@linux-fr.org::JikTvwbn+/XwOjeI:00000000000000000000000000000000000000000004eOF X-Hashcash: 1:20:130604:grant.likely@secretlab.ca::Dm3oYuYCvk34ALnv:00000000000000000000000000000000000058ol X-Hashcash: 1:20:130604:rob.herring@calxeda.com::z1mbrru5nA/VgQVx:000000000000000000000000000000000000002c8B X-Hashcash: 1:20:130604:lm-sensors@lm-sensors.org::gkVMrjMHjoI3blXo:00000000000000000000000000000000000024tP X-Hashcash: 1:20:130604:devicetree-discuss@lists.ozlabs.org::bwZk6KA5fI3lNjY/:000000000000000000000000007X3H X-Hashcash: 1:20:130604:rob@landley.net::lOtFfxJxk0hK2+2A:0030gJ X-Hashcash: 1:20:130604:linux-doc@vger.kernel.org::ID/95dq+aB+ZfGlX:0000000000000000000000000000000000000dW2 X-Hashcash: 1:20:130604:linux-arm-kernel@lists.infradead.org::hy5b7wYUu2EqR26S:00000000000000000000000001Qz3 X-Hashcash: 1:20:130604:linux@arm.linux.org.uk::+Sic+edD0CBWQ3st:00000000000000000000000000000000000000028Og X-Hashcash: 1:20:130604:andrew@lunn.ch::5tqia+7BIuxn1oU1:0006/xp X-Hashcash: 1:20:130604:jason@lakedaemon.net::6MOA5FoTu+ndwYcF:000000000000000000000000000000000000000000uHJ X-Hashcash: 1:20:130604:simon.guinot@sequanux.org::fRtKENRIU6VRfNfN:000000000000000000000000000000000000BR0K X-Hashcash: 1:20:130604:olivier.mouchet@gmail.com::ByKYhuZ/5w43ym8U:0000000000000000000000000000000000008Djp From: Arnaud Ebalard From: arno@natisbad.org (Arnaud Ebalard) To: Guenter Roeck Subject: [PATCHv4 3/3] Add DT bindings documentation for g762 driver In-Reply-To: References: Message-Id: <01628ce15ab54e9b585af0f91588552fbd39ad39.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 08:55:36 +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_025728_775423_3ED5DCD8 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 */ + };