From patchwork Fri Jan 6 10:38:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Koch X-Patchwork-Id: 9500545 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 A3992606B4 for ; Fri, 6 Jan 2017 10:47:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A30EB28473 for ; Fri, 6 Jan 2017 10:47:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 978152847C; Fri, 6 Jan 2017 10:47:22 +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 480E128473 for ; Fri, 6 Jan 2017 10:47:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162850AbdAFKqQ (ORCPT ); Fri, 6 Jan 2017 05:46:16 -0500 Received: from argos.tuxed.org ([176.9.87.227]:33480 "EHLO argos.tuxed.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161380AbdAFKpo (ORCPT ); Fri, 6 Jan 2017 05:45:44 -0500 Received: from thor.home.lan (unknown [IPv6:2a02:8071:3183:6700:3106:d333:69e5:69a4]) by argos.tuxed.org (Postfix) with ESMTPSA id DA56B7079A; Fri, 6 Jan 2017 11:38:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alexanderkoch.net; s=default; t=1483699135; bh=cfb5MXSRudDJbKErnzszOwTM6wiJWVhjATeTY6S9CWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G0kkS9yxFaePof6qS9uEAzPPOFKBaa2Q7KhRCqFq9DajYesvKzKa7YaANGwd00fFx lGkn7/FggCJHYBZCa8lowfqdA5qb459SVQnFUdRnZojruI/3mpDvpBzb+mzpC6MKv9 TtTRdctQiwkKpitXlrDGWjAnlNb2EBslwficm024= From: Alexander Koch To: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Cc: Rob Herring , Mark Rutland , Jean Delvare , Guenter Roeck , Michael Hornung , devicetree@vger.kernel.org, Alexander Koch Subject: [PATCH v3 1/4] devicetree: hwmon: Add bindings for ADC128D818 Date: Fri, 6 Jan 2017 11:38:14 +0100 Message-Id: <20170106103817.11588-2-mail@alexanderkoch.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170106103817.11588-1-mail@alexanderkoch.net> References: <20170106103817.11588-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 Acked-by: Michael Hornung Acked-by: Rob Herring --- .../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..db213dcc1391 --- /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 keeps the +currently active chip operation mode (default is mode 0). + + +Required node properties: + + - compatible: must be set to "ti,adc128d818" + - reg: I2C address of the device + +Optional node properties: + + - ti,mode: Operation mode (see above). + + +Example (operation mode 2): + + adc128d818@1d { + compatible = "ti,adc128d818"; + reg = <0x1d>; + ti,mode = <2>; + }; +