Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp653352pxu; Sun, 22 Nov 2020 23:49:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaheb+VFw3nre8tUuWGUOAYYRVC63PSbX+fchlYir6TeFSZM8KSSXhIEX2ydopnUfDO+0u X-Received: by 2002:a17:906:1408:: with SMTP id p8mr42144775ejc.548.1606117768413; Sun, 22 Nov 2020 23:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606117768; cv=none; d=google.com; s=arc-20160816; b=JxZ11vnhGQr9wa0XahpsXB1opOdWMWfyqMcnC6kwswMeXliZGYEg9PRxfBMi7RiApr INSSZLVHdJOBhT4dxnYcZ8wTRpOANQDdsHYne2DaWaWwLsyBvTi37P6/uubLaR0Us7Dt tdGXnOP/kVUOpuzDOPRaGBezmgyQNlwWBnea2NrKSPN1UqaBUGsFdJUI4dm1nFsfwqI2 +Q6X8utNsG4YKcJ1aSTehQzhJ3z2/+dvmyeO+0BVsWL2mxM+udmGc825VxYNisrPgMkG VAw1Z0zCEXczz4xrI8/tY87wFojOqX0o/kLSN/Er3Z6eUgUuYPRXPkQRhRCovrfaHJGL jGRg== 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=1KXTAJmKVykTQ4vYpPkazbnjLZRCjxHoq4CJnnjX6E4=; b=VoIoUd5ubxjjXUNkD141iO5NwhuhiL3ZUF/F6E1DaIqQwkimfBxP61nh/6c/ye/gxX 3FUYvwksOdnNt4tFSRe7UxCrVKGe82pwfsTVlFzhGEYU4qa8ucDvwJJZMd4e31K55SRs lXBE850unt36WHhORRi9mL61NTi5vg7yHbYmiJf1LeEk+woLzc+dwVRMCVUq0yNDxxcX /dGzbfxPyP7zpSY93aeVLscLMT20JqyNOXM3HnVpWOZ3e+AedWbgIWQaidtZLEYIuuAw fTim/6ZAOtcK99bfsV72ewI2trvqiLUbspM+oRYzhZ7YNkWuBhLzfg2F8w0AvWC8ZS/Y EJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kr0nPw4b; 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 o8si6529186edh.608.2020.11.22.23.49.04; Sun, 22 Nov 2020 23:49:28 -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=Kr0nPw4b; 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 S1728109AbgKWHpp (ORCPT + 99 others); Mon, 23 Nov 2020 02:45:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728042AbgKWHpo (ORCPT ); Mon, 23 Nov 2020 02:45:44 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8AA6C0613CF; Sun, 22 Nov 2020 23:45:44 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id l17so3025529pgk.1; Sun, 22 Nov 2020 23:45:44 -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=1KXTAJmKVykTQ4vYpPkazbnjLZRCjxHoq4CJnnjX6E4=; b=Kr0nPw4bcK0rd9U95IKCxSAHwSTFxryQ17Qd8RzxkKVuTtVmrbxISShI6R3WLTTCGI 81pmJJMhdaCW7d2FawOiOASvre/xC7joEEMuJ1ZNaN1UaljUFt56+HmcrFBYX6DRNMtW NKT3LrTOWFt6o33rIR1s1J24zZpHNQOD4U2U1RBJ6EDX/kK8CMSg4AmH2U/ZFnrMxgpT pMjO9C+k3il0mnI1Xb+HaTxUCxf6WiCgylAyDxxTuvqxc03AHNVztJzGQ9O6EibMCbME Eclb6jLtqYOruygfcrVAAXk2uWV1+DzDr9W9mOQXl6rdafyiNm1HqYWgMLD0dDO+WL8s 1RuA== 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=1KXTAJmKVykTQ4vYpPkazbnjLZRCjxHoq4CJnnjX6E4=; b=X4SMAEkiTjZ85wi8asLkr8ykRmkN4lu1NJW/lQvb+4XtcjAI12HPB52jwRdfKE47ZH Aoz6WoAIeflvdyblIr7ToGGW6Fc8v3kHWeA2yu0Q3GHM6GQb6DfJ78bwdnR4qQOaiM/C b2WUxBM6nbRYYqlwojGB9IQAMvy9vCiqcXfaTkaaGYbyzO7QlWbcD64MHn/O9X15e3QH cclCatwJyaulahfRE14c9RB/8FV486X5JL95sACVhMLjVUXZigVQUFCv1ENU5PwRtLWW +miZ2ZclZH3lMeYD9GmkSwGjshrcBzMtuk/xpH9vegfKPHvzkn+XwFiIpFf75CgtyEmM ltWg== X-Gm-Message-State: AOAM530Ogu5jDXoyesjWQsgbNQuLzRg0LFKvPqkG+OkV4zldW4RR0nAD 2Ammyhef7EBL880+k2Uh8IWCKeuLSa5o1F7b X-Received: by 2002:a17:90a:5418:: with SMTP id z24mr9780577pjh.139.1606117544387; Sun, 22 Nov 2020 23:45:44 -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 12sm13176340pjn.19.2020.11.22.23.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 23:45:43 -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 v4 2/2] docs: hwmon: Document max127 driver Date: Sun, 22 Nov 2020 23:45:32 -0800 Message-Id: <20201123074532.3730-3-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201123074532.3730-1-rentao.bupt@gmail.com> References: <20201123074532.3730-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 Reviewed-by: Guenter Roeck --- Changes in v4: - None. 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