Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp638035pxb; Thu, 19 Nov 2020 09:57:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJygz9AZW3g9Pl2MdKxCPnl4eenud1Ya6K05QPL2gNN4GnfOqwi5FyMKPUT1xx+Ipjz+d4oA X-Received: by 2002:a17:906:4116:: with SMTP id j22mr28974016ejk.373.1605808657075; Thu, 19 Nov 2020 09:57:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605808657; cv=none; d=google.com; s=arc-20160816; b=V75EjKIkJI9t2jGb/MiYufGrETrBdXnycpwvtFrUywbadd8i5LdlvbBQl+j6h1awMN Vg6Aq9jvJQ4HXMSL8nnm5P8a51QpQ0dtV76BrQCDt4hYJarPQBo4T4mc9biioxyzdYDu q9Cd4okGfzaDQoykQL5/sAbJNmKjtTBRC1igo2uh2WbBdqQwrTWZPC0UvSzqK7mp5YOy AoPQjekgT2TPKmfFjg7EiVfy45KCrYB71lazPeSmG+sHqwmbuRCeuQUK+a7GDR79iIn/ sUar+TZJ5gXD3bUC1TeXNkmhu6uYSSehd3KtZRtmFxj3qFE0EoXL0pESeADQGswwDjac yHYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=ohg0oJ87lTSLWpA2Zkajq7Ec19JHlvcX3mrDjoh7A+4=; b=m44yYMCw2pSsnMKSvSzRG16VJSyP0CehzKYpN1JWFTrxsUCnIaZG2J2ituHBSxz2FH 1uuheyVGT5lHjVVUPOQGxoDqfsW205Z0td9YFLRFscnvW1HlxHERymh77B78Y968RI6F SQkgo3f+VREsE5Yu4FyCzmhCRdg/NYnSRmlqsoaUQA47hnGKL50ycoogvFoc0N277nHE w4skgTyZBk6BrKQykjwf3WwuEQ1bAHpcHyaItYURswMCkhMe1/KbRw+GruE3d1TlphVl qfBiZhYKVKlVTh8cuKfEE3ho/9eZ0j+kzR5Ivvz2I9d54oTw1XGCH2yltweIsHvLnP/c nDnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SPWvYU2D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga12si299125ejc.14.2020.11.19.09.57.14; Thu, 19 Nov 2020 09:57:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SPWvYU2D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729351AbgKSRxi (ORCPT + 99 others); Thu, 19 Nov 2020 12:53:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727535AbgKSRxh (ORCPT ); Thu, 19 Nov 2020 12:53:37 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 293A9C0613CF; Thu, 19 Nov 2020 09:53:37 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id w6so5223914pfu.1; Thu, 19 Nov 2020 09:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ohg0oJ87lTSLWpA2Zkajq7Ec19JHlvcX3mrDjoh7A+4=; b=SPWvYU2D1eVcQ+2w65iVGl6q6+jVTpgUw6pDny2n4jrNj7rmt3cUTzZiIQ99HHK91C q+2dl9IfxOD/LVL6WfRkI2e7KZ8wFVljPXrACM2voGt0m4glw3em/VZu66t+BIdIUbfW aZmUNft6r0lH7XxXvNy3S4L7eqYhsdMoORwW8SsYoleoy/7q/gvqK//hBvZJ1PVE3gFy maAy+n2BY4tu+F7gDVvi9VKKpybuRpmL3J0qI1IG+gDe/mgneH+BgmwBijiidvvDxX8X ooJYQ9RB8YXOsl+KMtDuqaca3OMQq86YVCuVafECchW+A+E4Q9pkqM3q6LFXiTk8LFRM bVGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ohg0oJ87lTSLWpA2Zkajq7Ec19JHlvcX3mrDjoh7A+4=; b=RK/HCpaDx4wuLiHNiVfXlxC4FuuIiY62KfjEeEHQetFZFf+sktIACCuVslK3QSWwCW IH52t2cqjJGpqWjPJRFW3qQ73R7srFfjkAftAjUCLs4rNDqY7u5ugyxJUMnlf7Xx3BvP FSRusxK/wtwa7AF5edMuw022QF2YdAnoQDKBRLrAh8Y/tBXf3qRYL2cgqXleDlM+xLSj hA5cfePvLoezTiF45tfeWMRD+/eE3jihfSOx9l/j2e3BL+vJ96pRFLpGKNvq+k53P0W3 LHA+br9DuDr48uRmB1TBeUdJ3NDxzc+UGB364D6sJ/YupvKeNaUCqTOjd91PYizDBcT9 QR+Q== X-Gm-Message-State: AOAM533gExDgZU46Q96UrXaTUxAMAS7uPHx5rRCPF1eyXCkodNUaFNOO 26OHVz+JFrGxzgipx60AIvrdPmhDzSz+sTWt X-Received: by 2002:a17:90a:940f:: with SMTP id r15mr5639577pjo.219.1605808416714; Thu, 19 Nov 2020 09:53:36 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id 144sm482858pfb.71.2020.11.19.09.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 09:53:36 -0800 (PST) From: rentao.bupt@gmail.com To: Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com, mikechoi@fb.com Cc: Tao Ren Subject: [PATCH v3 2/2] docs: hwmon: Document max127 driver Date: Thu, 19 Nov 2020 09:53:24 -0800 Message-Id: <20201119175324.22472-3-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201119175324.22472-1-rentao.bupt@gmail.com> References: <20201119175324.22472-1-rentao.bupt@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren Add documentation for the max127 hardware monitoring driver. Signed-off-by: Tao Ren --- Changes in v3: - no code change. xdp maintainers were removed from to/cc list. Changes in v2: - add more description for min/max sysfs nodes. - convert values from volt to millivolt in the document. Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max127.rst | 45 ++++++++++++++++++++++++++++++++++ 2 files changed, 46 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..dc192dd9c37c --- /dev/null +++ b/Documentation/hwmon/max127.rst @@ -0,0 +1,45 @@ +.. 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 input voltage (in mV) of the corresponding channel. + RO + + in[0-7]_min The lower input limit (in mV) for the corresponding channel. + ADC range and LSB will be updated when the limit is changed. + For the MAX127, it will be adjusted to -10000, -5000, or 0. + RW + + in[0-7]_max The higher input limit (in mV) for the corresponding channel. + ADC range and LSB will be updated when the limit is changed. + For the MAX127, it will be adjusted to 0, 5000, or 10000. + RW + ============== ============================================================== -- 2.17.1