linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Hwmon driver for MAX31827 temperature switch
@ 2023-04-12 15:33 Daniel Matyas
  2023-04-12 15:33 ` [PATCH v2 1/2] [PATCH v1 1/2] dt-bindings: hwmon: add MAX31827 Daniel Matyas
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Matyas @ 2023-04-12 15:33 UTC (permalink / raw)
  Cc: Daniel Matyas, Jean Delvare, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Jonathan Corbet, linux-hwmon, devicetree,
	linux-kernel, linux-doc

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-13 12:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12 15:33 [PATCH v2 0/2] Hwmon driver for MAX31827 temperature switch Daniel Matyas
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).