From patchwork Thu Mar 30 23:00:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 9655277 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C6016034C for ; Thu, 30 Mar 2017 23:01:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DF89285EA for ; Thu, 30 Mar 2017 23:01:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12E332863F; Thu, 30 Mar 2017 23:01:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC108285EA for ; Thu, 30 Mar 2017 23:01:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934391AbdC3XBo (ORCPT ); Thu, 30 Mar 2017 19:01:44 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:60570 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933198AbdC3XBn (ORCPT ); Thu, 30 Mar 2017 19:01:43 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 714AB886D7; Fri, 31 Mar 2017 12:01:40 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1490914900; bh=kF0CSsEJ5ZIjVAJogf40SvDkOSt7QgBvKSc8MOptoLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=X1Kj9E3tvnS60w2Crbj+11T2G/lcbaJjqLgxp+/mJEH4nK6n9oL8rh/vJgBm8Bam0 xzEZheV8P0Q/oftg95r3GPswz2XlYKMrbzokTpysuSt6kOfxr7PosKdh0PxjpjK9aU xPE8xtV1h3ezNsX7sytuA929d4qyYazf540txMi8= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 7, 9061) id ; Fri, 31 Mar 2017 12:01:38 +1300 Received: from chrisp-dl.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id D68D813F0AA; Fri, 31 Mar 2017 12:01:39 +1300 (NZDT) Received: by chrisp-dl.atlnz.lc (Postfix, from userid 1030) id D5CE71E1D76; Fri, 31 Mar 2017 12:01:39 +1300 (NZDT) From: Chris Packham To: linux-hwmon@vger.kernel.org, linux@roeck-us.net Cc: Mahoda Ratnayaka , Chris Packham , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] Documentation: dtb: lm87: Add hwmon binding documentation Date: Fri, 31 Mar 2017 12:00:59 +1300 Message-Id: <20170330230100.989-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.11.0.24.ge6920cf In-Reply-To: <20170330230100.989-1-chris.packham@alliedtelesis.co.nz> References: <20170330230100.989-1-chris.packham@alliedtelesis.co.nz> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mahoda Ratnayaka This patch adds lm87 hwmon device tree node documentation. Signed-off-by: Mahoda Ratnayaka Signed-off-by: Chris Packham Acked-by: Rob Herring --- - Changes since v1: As suggested include all the changes are moved in to the same patch and the all the optional properties are now defined instead of using a single variable to indicate those properties. - Changes since v2: Changed has-vcc-5v to use regulator binding and fixed a minor copy paste mistake. - Changes since v3: Update the vcc-supply description. - Changes since v4: Collect Ack from Rob Herring Documentation/devicetree/bindings/hwmon/lm87.txt | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lm87.txt diff --git a/Documentation/devicetree/bindings/hwmon/lm87.txt b/Documentation/devicetree/bindings/hwmon/lm87.txt new file mode 100644 index 000000000000..e1b79903f204 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/lm87.txt @@ -0,0 +1,30 @@ +*LM87 hwmon sensor. + +Required properties: +- compatible: Should be + "ti,lm87" + +- reg: I2C address + +optional properties: +- has-temp3: This configures pins 18 and 19 to be used as a second + remote temperature sensing channel. By default the pins + are configured as voltage input pins in0 and in5. + +- has-in6: When set, pin 5 is configured to be used as voltage input + in6. Otherwise the pin is set as FAN1 input. + +- has-in7: When set, pin 6 is configured to be used as voltage input + in7. Otherwise the pin is set as FAN2 input. + +- vcc-supply: a Phandle for the regulator supplying power, can be + cofigured to measure 5.0V power supply. Default is 3.3V. + +Example: + +lm87@2e { + compatible = "ti,lm87"; + reg = <0x2e>; + has-temp3; + vcc-supply = <®_5v0>; +};