From patchwork Fri Dec 23 22:12:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Koch X-Patchwork-Id: 9487699 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 BE11D601C0 for ; Fri, 23 Dec 2016 22:13:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B08E02621D for ; Fri, 23 Dec 2016 22:13:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A541725D99; Fri, 23 Dec 2016 22:13:05 +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.0 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, 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 4CAC92621D for ; Fri, 23 Dec 2016 22:13:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758771AbcLWWNE (ORCPT ); Fri, 23 Dec 2016 17:13:04 -0500 Received: from argos.tuxed.org ([176.9.87.227]:51055 "EHLO argos.tuxed.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbcLWWNB (ORCPT ); Fri, 23 Dec 2016 17:13:01 -0500 Received: from thor.home.lan (unknown [IPv6:2a02:8071:3183:6700:8080:df34:b3ba:2cd1]) by argos.tuxed.org (Postfix) with ESMTPSA id D9B5A6E37A; Fri, 23 Dec 2016 23:12:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alexanderkoch.net; s=default; t=1482531155; bh=a+okOqOZAhH00rzgR+21bf+vKvK+2bYjFhMmzLrEJCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q/nEBxwmkCgn4id9MhF53iy8KBg2CFy9cQNc3+LslZ2O18Ky+9kuHFCkArgMKob/G 0VsA5zaEP8jEeGNQBCmNiSlw8pV5lscDylaLCzlb0ySA+1Xv3X/qiuzv5vbZL24lVj z4bseITzEcPSOr+qTn7BsSDHUhQvxojkLa+MnG/8= From: Alexander Koch To: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Mark Rutland , Jean Delvare , Guenter Roeck , Jiri Kosina , Alexander Koch Subject: [RFC PATCH v2 1/4] devicetree: hwmon: Add bindings for ADC128D818 Date: Fri, 23 Dec 2016 23:12:02 +0100 Message-Id: <20161223221205.8825-2-mail@alexanderkoch.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161223221205.8825-1-mail@alexanderkoch.net> References: <20161223221205.8825-1-mail@alexanderkoch.net> X-Virus-Scanned: clamav-milter 0.99.2 at argos X-Virus-Status: Clean 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 Add bindings documentation for the ADC128D818 driver, featuring default I2C properties along with the optional 'mode' property for chip operation mode selection (see datasheet, sec. 8.4.1). Signed-off-by: Alexander Koch --- .../devicetree/bindings/hwmon/adc128d818.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adc128d818.txt diff --git a/Documentation/devicetree/bindings/hwmon/adc128d818.txt b/Documentation/devicetree/bindings/hwmon/adc128d818.txt new file mode 100644 index 000000000000..5e14aa36a696 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adc128d818.txt @@ -0,0 +1,39 @@ +TI ADC128D818 ADC System Monitor With Temperature Sensor +-------------------------------------------------------- + +Operation modes: + + - Mode 0: 7 single-ended voltage readings (IN0-IN6), + 1 temperature reading (internal) + - Mode 1: 8 single-ended voltage readings (IN0-IN7), + no temperature + - Mode 2: 4 pseudo-differential voltage readings + (IN0-IN1, IN3-IN2, IN4-IN5, IN7-IN6), + 1 temperature reading (internal) + - Mode 3: 4 single-ended voltage readings (IN0-IN3), + 2 pseudo-differential voltage readings + (IN4-IN5, IN7-IN6), + 1 temperature reading (internal) + +If no operation mode is configured via device tree, the driver defaults +to Mode 0. + + +Required node properties: + + - compatible: must be set to "ti,adc128d818" + - reg: I2C address of the device + +Optional node properties: + + - mode: Operation mode (see above). + + +Example (operation mode 2): + + adc128d818@1d { + compatible = "ti,adc128d818"; + reg = <0x1d>; + mode = /bits/ 8 <2>; + }; +