[PATCH v2 0/2] Hwmon driver for MAX31827 temperature switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux