iio: humidity: Add driver for TI HDC302x humidity sensors
v2 cover iio: humidity: Add driver for TI HDC302x humidity sensors
Updated version of my modifications. From my side the series is ready for a new version to send upstream.
Feel free to add any improvements or discuss any of my modifications.
---
Changes in v2:
- Drop IIO_CHAN_INFO_PEAK_SCALE. It was discussed with Jonathan Cameron and this modifier will only be required if its value overrides the _SCALE value.
- Document the new _TROUGH modifier.
- Fix heater configuration order: config value and then enable.
---
Javier Carrasco (2):
iio: core: introduce trough modifier for minimum values
iio: ABI: document temperature and humidity peak/trough raw attributes
Li peiyu (2):
dt-bindings: iio: humidity: Add TI HDC302x support
iio: humidity: Add driver for TI HDC302x humidity sensors
Documentation/ABI/testing/sysfs-bus-iio | 13 +- .../bindings/iio/humidity/ti,hdc3020.yaml | 55 +++ MAINTAINERS | 8 + drivers/iio/humidity/Kconfig | 12 + drivers/iio/humidity/Makefile | 1 + drivers/iio/humidity/hdc3020.c | 468 +++++++++++++++++++++ drivers/iio/industrialio-core.c | 1 + include/linux/iio/types.h | 1 + 8 files changed, 558 insertions(+), 1 deletion(-)
---
base-commit: 33cc938e65a98f1d29d0a18403dbbee050dcad9a
change-id: 20231130-hdc302x-59b8a9c312b0
Best regards,
Signature · 1 line
Javier Carrasco <[email protected]>
PATCH v2 2/4 iio: ABI: document temperature and humidity peak/trough raw attributes
The in_temp_peak_raw attribute is already in use, but its documentation is still missing. The in_humidityrelative_raw must be documented for a new iio user that supports this attribute. Add temp and humidityrelative use cases.
When at it, remove an extra blank space in the description.
For users that support minimum values, a new in_<type>_trough_raw attribute is required. Add this attribute and document the first uses of it for temp and humidityrelative types.
--- Documentation/ABI/testing/sysfs-bus-iio | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-bus-iio +12 -1
@@ -362,10 +362,21 @@ Description: What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_peak_raw What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_peak_raw What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_peak_raw +What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_peak_raw +What: /sys/bus/iio/devices/iio:deviceX/in_temp_peak_raw KernelVersion: 2.6.36 Contact: [email protected] Description: - Highest value since some reset condition. These + Highest value since some reset condition. These + attributes allow access to this and are otherwise + the direct equivalent of the <type>Y[_name]_raw attributes. + +What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_trough_raw +What: /sys/bus/iio/devices/iio:deviceX/in_temp_trough_raw +KernelVersion: 6.7 +Contact: [email protected] +Description: + Lowest value since some reset condition. These attributes allow access to this and are otherwise the direct equivalent of the <type>Y[_name]_raw attributes.
Signature · 1 line
2.39.2
Sorry, this was not meant to be sent to the mailing list yet, please ignore.
Quoted 37 lines · Javier Carrasco
Updated version of my modifications. From my side the series is ready for a new version to send upstream.
Feel free to add any improvements or discuss any of my modifications.
Signed-off-by Javier Carrasco <[email protected]>---
Changes in v2:
- DropIIO_CHAN_INFO_PEAK_SCALE. It was discussed with Jonathan Cameron and this modifier will only be required if its value overrides the_SCALEvalue.
- Document the new_TROUGHmodifier.
- Fix heater configuration order: config value and then enable.---
Javier Carrasco (2):
iio: core: introduce trough modifier for minimum values
iio: ABI: document temperature and humidity peak/trough raw attributesLi peiyu (2):
dt-bindings: iio: humidity: Add TI HDC302x support
iio: humidity: Add driver for TI HDC302x humidity sensorsDocumentation/ABI/testing/sysfs-bus-iio | 13 +- .../bindings/iio/humidity/ti,hdc3020.yaml | 55 +++ MAINTAINERS | 8 + drivers/iio/humidity/Kconfig | 12 + drivers/iio/humidity/Makefile | 1 + drivers/iio/humidity/hdc3020.c | 468 +++++++++++++++++++++ drivers/iio/industrialio-core.c | 1 + include/linux/iio/types.h | 1 + 8 files changed, 558 insertions(+), 1 deletion(-)---
base-commit:33cc938e65a98f1d29d0a18403dbbee050dcad9a
change-id: 20231130-hdc302x-59b8a9c312b0Best regards,