From patchwork Tue Oct 4 00:51:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mahoda Ratnayaka X-Patchwork-Id: 9361035 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 AEE63607D6 for ; Tue, 4 Oct 2016 00:51:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9010228A81 for ; Tue, 4 Oct 2016 00:51:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D5DE28AE1; Tue, 4 Oct 2016 00:51:35 +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 3DC5228A81 for ; Tue, 4 Oct 2016 00:51:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752046AbcJDAvd (ORCPT ); Mon, 3 Oct 2016 20:51:33 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:41272 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbcJDAvd (ORCPT ); Mon, 3 Oct 2016 20:51:33 -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 A28D4806AC; Tue, 4 Oct 2016 13:51:29 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1475542289; bh=lKnAc92YyelXfYMLjLPgTKpQF9MsuWhM8JW5mK2eJVs=; h=From:To:Cc:Subject:Date; b=TOoTqUUx9SKEH0z9EFAWK4YumBM4/KDSGQlZuVJLi8n0++LNC/s5Pv+qn/aYnLmUM QmTrQcb0b/Su71uMhI2X7VuDob/ddCgOCsfc3c6wGNd6WClSv7v8ohXsupRCZWyxUX sJ2O4tdKZWnQUg4E6nKs7oW0/0lQDNfRDg2F4w38= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 6, 8438) id ; Tue, 04 Oct 2016 13:51:30 +1300 Received: from mahodar-dl.ws.atlnz.lc (mahodar-dl.ws.atlnz.lc [10.33.22.17]) by smtp (Postfix) with ESMTP id DDA4113EF11; Tue, 4 Oct 2016 13:51:26 +1300 (NZDT) Received: by mahodar-dl.ws.atlnz.lc (Postfix, from userid 1609) id 1F89FE0B81; Tue, 4 Oct 2016 13:51:27 +1300 (NZDT) From: Mahoda Ratnayaka To: devicetree@vger.kernel.org, Rob Herring , Mark Rutland , linux-hwmon@vger.kernel.org Cc: Mahoda Ratnayaka , Chris Packham Subject: [PATCH v2] Documentation: dtb: lm87: Add hwmon binding documentation. Date: Tue, 4 Oct 2016 13:51:23 +1300 Message-Id: <20161004005123.2004-1-mahoda.ratnayaka@alliedtelesis.co.nz> X-Mailer: git-send-email 2.10.0 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 This patch adds lm87 hwmon device tree node documentation. Signed-off-by: Mahoda Ratnayaka --- Notes: 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. Documentation/devicetree/bindings/hwmon/lm87.txt | 29 ++++++++++++++++++++++++ 1 file changed, 29 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 0000000..ac578fff --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/lm87.txt @@ -0,0 +1,29 @@ +*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 + in6. Otherwise the pin is set as FAN2 input. + +- has-vcc-5v: sets the nominal voltage for internal VCC measurement to 5V. + Default is 3.3V. + +Example: + +lm87@2e { + compatible = "ti,lm87"; + reg = <0x2e>; + has-temp3; +};