linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] iio: humidity: hdc3020: add power and reset management
@ 2024-02-26 21:25 Javier Carrasco
  2024-02-26 21:25 ` [PATCH v2 1/3] iio: humidity: hdc3020: add power management Javier Carrasco
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Javier Carrasco @ 2024-02-26 21:25 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Li peiyu, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Jonathan Cameron, linux-kernel, linux-iio, devicetree, Javier Carrasco

This series adds power management for the hdc3020 humidity and
temperature sensor as well as control over the reset signal the device
provides.

The hdc3020 carries out measurements automatically, which is not
necessary in low-power modes. Furthermore, if the low-power
configuration turns off the device, proper initialization is required to
account for the setup times and initial status register value.

This device provides an active low reset signal that must be handled if
connected. This signal can be used by the driver to keep the device
under minimal power consumption during low-power modes if the power
supply stays active.

This series uses char-misc-next as basis to include the last additions
to the driver to handle events [1] as well as the fix to include the
entries in the Makefile and Kconfig files [2].

[1] https://lore.kernel.org/linux-iio/20240214085350.19382-1-dima.fedrau@gmail.com/
[2] https://lore.kernel.org/linux-iio/20240121135123.71506-1-jic23@kernel.org/

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Changes in v2:
- Trigger power off sequence if the power on sequence fails.
- Check return value of hdc3020_power_on() in the probe.
- Remove type casting for void pointer.
- Link to v1: https://lore.kernel.org/r/20240220-hdc3020-pm-v1-0-d8e60dbe79e9@gmail.com

---
Javier Carrasco (3):
      iio: humidity: hdc3020: add power management
      dt-bindings: iio: humidity: hdc3020: add reset-gpios
      iio: humidity: hdc3020: add reset management

 .../bindings/iio/humidity/ti,hdc3020.yaml          |   5 +
 drivers/iio/humidity/hdc3020.c                     | 105 +++++++++++++++++----
 2 files changed, 94 insertions(+), 16 deletions(-)
---
base-commit: d4551c189d6e6a3fcf7f625bd4b273e770fad35a
change-id: 20240217-hdc3020-pm-177983de3cab

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>


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

end of thread, other threads:[~2024-03-03 20:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 21:25 [PATCH v2 0/3] iio: humidity: hdc3020: add power and reset management Javier Carrasco
2024-02-26 21:25 ` [PATCH v2 1/3] iio: humidity: hdc3020: add power management Javier Carrasco
2024-03-03 16:31   ` Jonathan Cameron
2024-03-03 20:05     ` Javier Carrasco
2024-02-26 21:25 ` [PATCH v2 2/3] dt-bindings: iio: humidity: hdc3020: add reset-gpios Javier Carrasco
2024-02-27  7:50   ` Krzysztof Kozlowski
2024-02-26 21:25 ` [PATCH v2 3/3] iio: humidity: hdc3020: add reset management Javier Carrasco

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).