From: Daniel Matyas <daniel.matyas@analog.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Daniel Matyas <daniel.matyas@analog.com>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Jonathan Corbet <corbet@lwn.net>, <linux-hwmon@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-doc@vger.kernel.org>
Subject: [PATCH v2 0/2] Hwmon driver for MAX31827 temperature switch
Date: Wed, 12 Apr 2023 18:33:30 +0300 [thread overview]
Message-ID: <20230412153334.181852-1-daniel.matyas@analog.com> (raw)
There are new functionalities: max_alarm, min_alarm and update_interval.
Modified enable attribute: it switches between 1Hz periodic conversions
and shutdown mode.
When requesting a temperature read in shutdown mode 1shot is triggered,
the driver waits until the conversion is completed and then displays the
read value.
Added new write_alarm_val function which puts the device in shutdown
mode, modifies the value of an alarm attribute and the reenables the
device with the previous configurations. I used more bitwise operations
in this functions instead of regmap_update_bits, because this way only 2
write and 2 read operations are performed. With regmap_update_bits 3
write operations and 2 read operations would be performed.
Added support for the other 2 chips from the datasheet: max31828,
max31829.
Added documentation for the driver.
Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max31827-max31829.pdf
*** BLURB HERE ***
Daniel Matyas (2):
dt-bindings: hwmon: add MAX31827
hwmon: max31827: add MAX31827 driver
.../bindings/hwmon/adi,max31827.yaml | 51 +++
Documentation/hwmon/max31827.rst | 88 +++++
MAINTAINERS | 9 +
drivers/hwmon/Kconfig | 11 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/max31827.c | 324 ++++++++++++++++++
6 files changed, 484 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
create mode 100644 Documentation/hwmon/max31827.rst
create mode 100644 drivers/hwmon/max31827.c
--
2.34.1
next reply other threads:[~2023-04-12 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 15:33 Daniel Matyas [this message]
2023-04-12 15:33 ` [PATCH v2 1/2] [PATCH v1 1/2] dt-bindings: hwmon: add MAX31827 Daniel Matyas
2023-04-12 15:33 ` [PATCH v2 2/2] [PATCH v1 2/2] hwmon: max31827: add MAX31827 driver Daniel Matyas
2023-04-13 7:49 ` [PATCH v2 1/2] [PATCH v1 1/2] dt-bindings: hwmon: add MAX31827 Krzysztof Kozlowski
2023-04-13 12:30 ` Unclear what to do with compatibility Daniel Matyas
2023-04-13 12:51 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230412153334.181852-1-daniel.matyas@analog.com \
--to=daniel.matyas@analog.com \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®