From patchwork Thu Oct 27 22:33:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clemens Gruber X-Patchwork-Id: 9400635 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 2AF1160588 for ; Thu, 27 Oct 2016 22:47:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 116E82A3A8 for ; Thu, 27 Oct 2016 22:47:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 055CB2A3D0; Thu, 27 Oct 2016 22:47:16 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A894E2A3A8 for ; Thu, 27 Oct 2016 22:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942963AbcJ0Wq4 (ORCPT ); Thu, 27 Oct 2016 18:46:56 -0400 Received: from mail.pqgruber.com ([178.189.19.235]:16806 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942888AbcJ0Wqz (ORCPT ); Thu, 27 Oct 2016 18:46:55 -0400 Received: from localhost.localdomain (213-47-168-109.cable.dynamic.surfer.at [213.47.168.109]) by mail.pqgruber.com (Postfix) with ESMTPSA id 004C78A827; Fri, 28 Oct 2016 00:36:46 +0200 (CEST) From: Clemens Gruber To: linux-hwmon@vger.kernel.org Cc: Guenter Roeck , Rob Herring , Jean Delvare , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Clemens Gruber Subject: [PATCH v2 2/3] hwmon: (mcp3021) add devicetree bindings documentation Date: Fri, 28 Oct 2016 00:33:44 +0200 Message-Id: <20161027223345.16733-2-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161027223345.16733-1-clemens.gruber@pqgruber.com> References: <20161027223345.16733-1-clemens.gruber@pqgruber.com> 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 Document the devicetree bindings for the Microchip MCP3021/3221. Signed-off-by: Clemens Gruber Acked-by: Rob Herring --- Documentation/devicetree/bindings/hwmon/mcp3021.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/mcp3021.txt diff --git a/Documentation/devicetree/bindings/hwmon/mcp3021.txt b/Documentation/devicetree/bindings/hwmon/mcp3021.txt new file mode 100644 index 0000000..294318b --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/mcp3021.txt @@ -0,0 +1,21 @@ +mcp3021 properties + +Required properties: +- compatible: Must be one of the following: + - "microchip,mcp3021" for mcp3021 + - "microchip,mcp3221" for mcp3221 +- reg: I2C address + +Optional properties: + +- reference-voltage-microvolt + Reference voltage in microvolt (uV) + +Example: + +mcp3021@4d { + compatible = "microchip,mcp3021"; + reg = <0x4d>; + + reference-voltage-microvolt = <4500000>; /* 4.5 V */ +};