Message ID | 20231020-topic-chipcap2-v1-0-087e21d4b1ed@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp877346vqo; Wed, 8 Nov 2023 04:31:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEx66Ern20kgg52l7EfJ2sapJhGfPlmKOXvgZYvrRKDEtjbJckQUISV1XPunVWQa2e6gp1E X-Received: by 2002:a05:6358:d094:b0:16b:8ee7:b4ef with SMTP id jc20-20020a056358d09400b0016b8ee7b4efmr908212rwb.2.1699446673149; Wed, 08 Nov 2023 04:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699446673; cv=none; d=google.com; s=arc-20160816; b=UxBlhZyCMwF1Y3C6MCNb7aCaG3/QeyPmPVUiAZ4TA19CtpC8oBrKqEaBE7U4Cslm4W zRsBHpBb8qL059pbX5FiE9bauo8yFhRT+oF6seFxZy0qPOQlZPQF+uX4l8iJiDLuWICz euniqPKGIOi3+OtYcAswb5fFpCFkPGgQ0DKliv0hvzXJ4ACjaL8OfYHBie2AlReAJoBD 6faJ0FKheYR0QwjP8FxKBnnB7FuQ7sXMVy64kd6srlfFBdFdrnQ3cDeRMb0MZG10q4LP E2/V8iki3A+vyWt9d/YI4y1IsR+08P951CLGN3lWafSzmLrR6heqwOlpuJk6Cos/xvEG 6MUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=cS/lc/ddj7Q4XbTV3i1orn67XEDRQtw3MjTVMcObW7s=; fh=BhgptoEUHHIBEHgXVGG0kPFbmqQnYZSFfCxI4r2nG+I=; b=URQDYetjdbH6uME7bJ6ixJREP2osXeJLtZY6hVHROhzZKntInubGdxBXQLhPpAGg62 2F3AiDYPmL8BRE8DSYH+VusHsBqhrIDw5rqXDrf3dGmxHLc8q4szCi+dMyR8IfIYfhgL erYHhYxk0eeD/nVqaFrg1dZlrcq4Sd2KahkH3Yb8BXqrCVqvS1N8V6OO2E78lE1YejaZ Qw56cSkbkxNC4jq8+8qXVaRvhgecdrb4ZFtgh2gfsALu698A5ZsOqNwGIZGAEx+2MzuV 0vErWys7illormyRPMFukFV398Qb8IPGzMcVCUN8QTvnD/eQt12sw+/JycM1N+VZI/1U nLOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Yi5/c6yU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j184-20020a638bc1000000b005b95fbb1750si3885156pge.113.2023.11.08.04.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 04:31:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Yi5/c6yU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5CC48806D466; Wed, 8 Nov 2023 04:30:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344586AbjKHMaD (ORCPT <rfc822;jaysivo@gmail.com> + 32 others); Wed, 8 Nov 2023 07:30:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344583AbjKHMaC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Nov 2023 07:30:02 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF74019B3; Wed, 8 Nov 2023 04:29:59 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-53e08b60febso11608006a12.1; Wed, 08 Nov 2023 04:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699446598; x=1700051398; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=cS/lc/ddj7Q4XbTV3i1orn67XEDRQtw3MjTVMcObW7s=; b=Yi5/c6yUob5LZfKaqW/JvoYUSpbRDGKY0CZ5MgbOqT3tEvKWtfcGHwhuAjplyNnt2D AGI3+LiQ2zReC9gZw+G9gqG65fW4daiolnf7uMTPhoWlRcTxaNEwAX0j9YV02wmRhVpl VXaVn/wbbvaTluypmZ8SOXfIbL3BvZlFbRyyV9rjtqv+laSuOXDkWL4FZOIWQmCRwNMY 4IHjkHGCYjtyOTPiE5jB/pOv9T/7lG2KP8nZQNWIV78KHu36MHywB+8vVLHBYm5GNBoQ IZq7Xwni53ukBZ/fo5hBg4XHfL+7pxGOh1awwd9p8BPsdK3IK8VXErPFw0FbpVJKpPSO 25lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699446598; x=1700051398; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cS/lc/ddj7Q4XbTV3i1orn67XEDRQtw3MjTVMcObW7s=; b=L89HVam5tvEdbxlHJ9A7rilkBduent4pEWptTWUpS8VwiFKVAbxsEkppJhiu87rvGf pKsfbPcOuWdA04NAfqqbr2m7pRUe4Mb3HYsQZuEyQZKx3y+KqatcsXzq4cxneuKuBWMu /d+MxpHseqZuaPmSpRpX01b54IDY0oRGovdPWR8vxvwR7G0/HksRRsPGkIjgQNkePxS/ bs+NAFGxMppR2upAb9DQIGMi4GquOuri5fDDFDSi9odAykB6Oyr6CF6aNa/2Ps1DbTQF 2z6BHRRH9+Av2JH2lCQCyHdXIIliY0rxOqhYCAZ6QA27ZxctlMZAFhMSY+KbcQHll2l8 L90w== X-Gm-Message-State: AOJu0YwfkD/ZMKcYNU0bq/36d3S5CQI4lzY4wytGyhp3dtiXtZpH+uXn 6z9U+eJLtDutnEgbxbDTPDM= X-Received: by 2002:a17:907:2cc5:b0:9df:eebe:dd90 with SMTP id hg5-20020a1709072cc500b009dfeebedd90mr1525312ejc.75.1699446598201; Wed, 08 Nov 2023 04:29:58 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-8f74-d45a-3701-05b6.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:8f74:d45a:3701:5b6]) by smtp.gmail.com with ESMTPSA id n22-20020a170906841600b009b27d4153c0sm971065ejx.178.2023.11.08.04.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 04:29:57 -0800 (PST) From: Javier Carrasco <javier.carrasco.cruz@gmail.com> Subject: [PATCH 0/4] hwmon: Add support for Amphenol ChipCap 2 Date: Wed, 08 Nov 2023 13:29:55 +0100 Message-Id: <20231020-topic-chipcap2-v1-0-087e21d4b1ed@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEN/S2UC/x2NQQrCQAwAv1JyNrBNFapfEQ9pGt0c3C5JEaH07 249DsMwG4S6acCt28D1Y2FLadCfOpDM5aVoc2OgREOfKOG6VBOUbFW4EirN43W8nIckBC2aOBQ n5yL5yN4cq/ohquvTvv/T/bHvP9kkVTJ5AAAA To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Jonathan Corbet <corbet@lwn.net>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org> Cc: Rob Herring <robh@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Javier Carrasco <javier.carrasco.cruz@gmail.com> X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1699446596; l=2421; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=bHcWIgWizl8kFkDnXWBOVoctfrSa53gV1a1Z4H6xOvo=; b=iH6VtKJQyUQVrrCSWbgB0oFgpcdde942GAKHzklQ2ykwi8L0GLslbQDuIBmYhj5/3MEp3TXYr 11PLPYX3N1DA9OEgfLcasTy5FluEi7/wYRLIXUA8ToqWURysBUg1JlG X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 08 Nov 2023 04:30:39 -0800 (PST) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781998994592116142 X-GMAIL-MSGID: 1781998994592116142 |
Series |
hwmon: Add support for Amphenol ChipCap 2
|
|
Message
Javier Carrasco
Nov. 8, 2023, 12:29 p.m. UTC
This series adds support and documentation for the Amphenol ChipCap 2
humidity and temperature sensor in its digital version.
This I2C device provides 14-bit humidity and temperature measurements as
well as low (minimum) and high (maximum) humidity alarms. A ready signal
is also available to reduce delays while fetching data.
The proposed driver implements the logic to perform measurements with
and without the ready signal, EEPROM configuration and alarm signaling.
The features this driver does not support (I2C address and command
window length modification) have been documented in the "Known Issues"
section.
The complete supported functionality has been tested with a CC2D33S
sensor (a 'sleep' device) connected to a Raspberry Pi Zero 2 w.
Different device tree node definitions (with and without regulator,
ready and/or alarm signals) have been positively tested.
The non-sleep measurement mechanism has been inferred from the first
measurement, which is carried out automatically and it is common for all
part numbers. Any testing or improvements with a non-sleep device is
more than welcome.
The tests have also covered the properties added to the hwmon core to
account for minimum and maximum humidity alarms.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (4):
dt-bindings: vendor-prefixes: add Amphenol
hwmon: (core) Add support for humidity min/max alarm
hwmon: Add support for Amphenol ChipCap 2
dt-bindings: hwmon: Add Amphenol ChipCap 2
.../bindings/hwmon/amphenol,chipcap2.yaml | 72 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
Documentation/hwmon/chipcap2.rst | 73 ++
Documentation/hwmon/index.rst | 1 +
MAINTAINERS | 8 +
drivers/hwmon/Kconfig | 10 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/chipcap2.c | 1009 ++++++++++++++++++++
drivers/hwmon/hwmon.c | 2 +
include/linux/hwmon.h | 4 +
10 files changed, 1182 insertions(+)
---
base-commit: ffc253263a1375a65fa6c9f62a893e9767fbebfa
change-id: 20231020-topic-chipcap2-e2d8985430c2
Best regards,