From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3673EC2D0E4 for ; Tue, 17 Nov 2020 05:36:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D675824198 for ; Tue, 17 Nov 2020 05:36:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=roeck-us.net header.i=@roeck-us.net header.b="EDQ0fqvi" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726795AbgKQFgD (ORCPT ); Tue, 17 Nov 2020 00:36:03 -0500 Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:39188 "EHLO gproxy10-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbgKQFgD (ORCPT ); Tue, 17 Nov 2020 00:36:03 -0500 Received: from cmgw14.unifiedlayer.com (unknown [10.9.0.14]) by gproxy10.mail.unifiedlayer.com (Postfix) with ESMTP id 56F9C14055F for ; Mon, 16 Nov 2020 22:15:58 -0700 (MST) Received: from bh-25.webhostbox.net ([208.91.199.152]) by cmsmtp with ESMTP id etLRkqFu3wNNletLSk4RAa; Mon, 16 Nov 2020 22:15:58 -0700 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.3 cv=ftvymmwf c=1 sm=1 tr=0 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=kj9zAlcOel0A:10:nop_charset_1 a=nNwsprhYR40A:10:nop_rcvd_month_year a=evQFzbml-YQA:10:endurance_base64_authed_username_1 a=pGLkceISAAAA:8 a=jtbBNqsHAAAA:8 a=-ewzHdp9FFKJ1sXwa_MA:9 a=CjuIK1q_8ugA:10:nop_charset_2 a=RWaeYqt-Cn-VcsFsiLGo:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UQyFykvQVTwc24qYJBcae8eSoAzAlxI0Tnd7zOVCoKU=; b=EDQ0fqviE9CQsRJDq23M3o2wgl xXbuXMOOg4Cx7I3kr0N4RlZyI2ybQ+8sam9EGoGNzDL+czNM7sBpfHkqh/jdCa9KipiWHC/h3K2WQ YdSdkItu1dkVDdT8fz2Vt4EZwEuUPxNVxYj9VPMlueEhqsKD4Rg3Tf5JFLCJUwrKfAHNvPw2XutBL gmS947YYdDsbqnqDBFhm55s6Ff+mx+fDQRjJ0ojuiul7LG+QIW+MK6A1ZLtnM6E1vdIu06IcOxwx+ x9aYZmDM9O8vOHOgF2KnSFoZXui1XeIzl8yUyNU82fSTOTeBTQzO6Nby9Wrx1NenrzWAaCjozKOhZ TDYb9f3g==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:47310 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.93) (envelope-from ) id 1ketLQ-003qy2-D7; Tue, 17 Nov 2020 05:15:56 +0000 Date: Mon, 16 Nov 2020 21:15:55 -0800 From: Guenter Roeck To: rentao.bupt@gmail.com Cc: Jean Delvare , Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com, mikechoi@fb.com Subject: Re: [PATCH 2/2] docs: hwmon: Document max127 driver Message-ID: <20201117051555.GB208504@roeck-us.net> References: <20201117010944.28457-1-rentao.bupt@gmail.com> <20201117010944.28457-3-rentao.bupt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117010944.28457-3-rentao.bupt@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1ketLQ-003qy2-D7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (localhost) [108.223.40.66]:47310 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 23 X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 05:09:44PM -0800, rentao.bupt@gmail.com wrote: > From: Tao Ren > > Add documentation for max127 hardware monitoring driver. > > Signed-off-by: Tao Ren > --- > Documentation/hwmon/index.rst | 1 + > Documentation/hwmon/max127.rst | 43 ++++++++++++++++++++++++++++++++++ > 2 files changed, 44 insertions(+) > create mode 100644 Documentation/hwmon/max127.rst > > diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst > index 408760d13813..0a07b6000c20 100644 > --- a/Documentation/hwmon/index.rst > +++ b/Documentation/hwmon/index.rst > @@ -111,6 +111,7 @@ Hardware Monitoring Kernel Drivers > ltc4245 > ltc4260 > ltc4261 > + max127 > max16064 > max16065 > max1619 > diff --git a/Documentation/hwmon/max127.rst b/Documentation/hwmon/max127.rst > new file mode 100644 > index 000000000000..e50225a61c1a > --- /dev/null > +++ b/Documentation/hwmon/max127.rst > @@ -0,0 +1,43 @@ > +.. SPDX-License-Identifier: GPL-2.0-or-later > + > +Kernel driver max127 > +==================== > + > +Author: > + > + * Tao Ren > + > +Supported chips: > + > + * Maxim MAX127 > + > + Prefix: 'max127' > + > + Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX127-MAX128.pdf > + > +Description > +----------- > + > +The MAX127 is a multirange, 12-bit data acquisition system (DAS) providing > +8 analog input channels that are independently software programmable for > +a variety of ranges. The available ranges are {0,5V}, {0,10V}, {-5,5V} > +and {-10,10V}. > + > +The MAX127 features a 2-wire, I2C-compatible serial interface that allows > +communication among multiple devices using SDA and SCL lines. > + > +Sysfs interface > +--------------- > + > + ============== ============================================================== > + in[0-7]_input The conversion value for the corresponding channel. > + RO > + > + in[0-7]_min The lower limit (in Volt) for the corresponding channel. > + For the MAX127, it will be adjusted to -10, -5, or 0. > + RW > + > + in[0-7]_max The higher limit (in Volt) for the corresponding channel. > + For the MAX127, it will be adjusted to 0, 5, or 10. > + RW This should explain that the limits set the ADC range. > + ============== ============================================================== > -- > 2.17.1 >