hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature sensor
Subsystems (2)
PATCH v3 1/1 hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature sensor
This is a new driver for the Honeywell Humidicon HIH-6130/HIH-6131 humidity sensor.
The driver is based on the existing Sensiron sht21 driver with the necessary changes to the probe, update_measurements and conversion functions necessary to use the Honeywell sensors.
There's no difference between the 6130 & 6131 other than the 6131 having an external condensation filter attached.
Signature · 20 lines
Changed for v3: fixed remaining alignment issues fixed typos and trivial bits added pointer to i2c/instantiating-devices to doc expanded comment with reasoning behind only reading once per second Changed for v2: renamed driver to hih6130 added Documentation/hwmon/hih6130 calcuations now use DIV_ROUND_CLOSEST and shouldn't cause 32bit int overflow addressed other minor review comments --- Documentation/hwmon/hih6130 | 37 ++++++ drivers/hwmon/Kconfig | 10 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/hih6130.c | 293 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 341 insertions(+), 0 deletions(-) create mode 100644 Documentation/hwmon/hih6130 create mode 100644 drivers/hwmon/hih6130.c
Documentation/hwmon/hih6130 new file +36 -0
@@ -0,0 +1,37 @@ +Kernel driver hih6130 +==========+ +Supported chips: + * Honeywell HIH-6130 / HIH-6131 + Prefix: 'hih6130' + Addresses scanned: none + Datasheet: Publicly available at the Honeywell website + http://sensing.honeywell.com/index.php?ci_id106&la_id=1&defIdD872 + +Author: + Iain Paton <[email protected]> + +Description +----------- + +The HIH-6130 & HIH-6131 are humidity and temperature sensors in a SO8 package. +The difference between the two devices is that the HIH-6131 has a condensation +filter. + +The devices communicate with the I2C protocol. All sensors are set to the same +I2C address 0x27 by default, so an entry with I2C_BOARD_INFO("hih6130", 0x27) +can be used in the board setup code. + +Please see Documentation/i2c/instantiating-devices for details on how to +instantiate I2C devices. + +sysfs-Interface +--------------- + +temp1_input - temperature input +humidity1_input - humidity input + +Notes +----- + +Command mode and alarms are not currently supported.
drivers/hwmon/Kconfig +10 -0
@@ -433,6 +433,16 @@ config SENSORS_GPIO_FAN This driver can also be built as a module. If so, the module will be called gpio-fan. +config SENSORS_HIH6130 + tristate "Honeywell Humidicon HIH-6130 humidity/temperature sensor" + depends on I2C && EXPERIMENTAL + help + If you say yes here you get support for Honeywell Humidicon + HIH-6130 and HIH-6131 Humidicon humidity sensors. + + This driver can also be built as a module. If so, the module + will be called hih6130. + config SENSORS_CORETEMP tristate "Intel Core/Core2/Atom temperature sensor" depends on X86 && PCI && EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
@@ -58,6 +58,7 @@ obj-$(CONFIG_SENSORS_G760A) += g760a.o obj-$(CONFIG_SENSORS_GL518SM) += gl518sm.o obj-$(CONFIG_SENSORS_GL520SM) += gl520sm.o obj-$(CONFIG_SENSORS_GPIO_FAN) += gpio-fan.o +obj-$(CONFIG_SENSORS_HIH6130) += hih6130.o obj-$(CONFIG_SENSORS_ULTRA45) += ultra45_env.o obj-$(CONFIG_SENSORS_I5K_AMB) += i5k_amb.o obj-$(CONFIG_SENSORS_IBMAEM) += ibmaem.o
drivers/hwmon/hih6130.c new file +293 -0
293 lines not on this page · raw message
Signature · 7 lines
1.7.5.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
maintainerRe: [lm-sensors] [PATCH v3] hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature se
Quoted 10 lines · Iain Paton
This is a new driver for the Honeywell Humidicon HIH-6130/HIH-6131 humidity sensor.
The driver is based on the existing Sensiron sht21 driver with the necessary changes to the probe,
update_measurementsand conversion functions necessary to use the Honeywell sensors.There's no difference between the 6130 & 6131 other than the 6131 having an external condensation filter attached.
Signed-off-by Iain Paton <[email protected]>
Good job. Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] [PATCH v3] hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature se
In reply to Iain PatonQuoted 1 line · Guenter Roeck
Good job. Applied to -next.
Thanks Guenter, both for taking the time to review and for guiding me. Much appreciated.
Iain
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors