Commit 43fbe66d authored by Andre Werner's avatar Andre Werner Committed by Guenter Roeck
Browse files

hwmon: Add driver for Renesas HS3001



Add base support for Renesas HS3001 temperature
and humidity sensors and its compatibles HS3002,
HS3003 and HS3004.

The sensor has a fix I2C address 0x44. The resolution
is fixed to 14bit (ref. Missing feature).

Missing feature:
- Accessing non-volatile memory: Custom board has no
  possibility to control voltage supply of sensor. Thus,
  we cannot send the necessary control commands within
  the first 10ms after power-on.

Signed-off-by: default avatarAndre Werner <andre.werner@systec-electronic.com>
Link: https://lore.kernel.org/r/20230725042207.22310-2-andre.werner@systec-electronic.com


[groeck: Cosmetic documentation fixup; added documentation to index;
 replaced probe_new with probe dropped unused variable]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 6ae8867a
Loading
Loading
Loading
Loading
+37 −0
Original line number Original line Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0-or-later

Kernel driver HS3001
====================

Supported chips:

  * Renesas HS3001, HS3002, HS3003, HS3004

    Prefix: 'hs3001'

    Addresses scanned: -

    Datasheet: https://www.renesas.com/us/en/document/dst/hs300x-datasheet?r=417401

Author:

  - Andre Werner <andre.werner@systec-electronic.com>

Description
-----------

This driver implements support for the Renesas HS3001 chips, a humidity
and temperature family. Temperature is measured in degrees celsius, relative
humidity is expressed as a percentage. In the sysfs interface, all values are
scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.

The device communicates with the I2C protocol. Sensors have the I2C
address 0x44 by default.

sysfs-Interface
---------------

=================== =================
temp1_input:        temperature input
humidity1_input:    humidity input
=================== =================
+1 −0
Original line number Original line Diff line number Diff line
@@ -78,6 +78,7 @@ Hardware Monitoring Kernel Drivers
   gxp-fan-ctrl
   gxp-fan-ctrl
   hih6130
   hih6130
   hp-wmi-sensors
   hp-wmi-sensors
   hs3001
   ibmaem
   ibmaem
   ibm-cffps
   ibm-cffps
   ibmpowernv
   ibmpowernv
+6 −0
Original line number Original line Diff line number Diff line
@@ -9497,6 +9497,12 @@ S: Maintained
W:	http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi
W:	http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi
F:	fs/hpfs/
F:	fs/hpfs/
HS3001 Hardware Temperature and Humidity Sensor
M:	Andre Werner <andre.werner@systec-electronic.com>
L:	linux-hwmon@vger.kernel.org
S:	Maintained
F:	drivers/hwmon/hs3001.c
HSI SUBSYSTEM
HSI SUBSYSTEM
M:	Sebastian Reichel <sre@kernel.org>
M:	Sebastian Reichel <sre@kernel.org>
S:	Maintained
S:	Maintained
+10 −0
Original line number Original line Diff line number Diff line
@@ -734,6 +734,16 @@ config SENSORS_HIH6130
	  This driver can also be built as a module. If so, the module
	  This driver can also be built as a module. If so, the module
	  will be called hih6130.
	  will be called hih6130.


config SENSORS_HS3001
	tristate "Renesas HS3001 humidity and temperature sensors"
	depends on I2C
	help
	  If you say yes here you get support for the Renesas HS3001,
	  to HS3004 humidity and temperature sensors.

	  This driver can also be built as a module. If so, the module
	  will be called hs3001.

config SENSORS_IBMAEM
config SENSORS_IBMAEM
	tristate "IBM Active Energy Manager temperature/power sensors and control"
	tristate "IBM Active Energy Manager temperature/power sensors and control"
	select IPMI_SI
	select IPMI_SI
+1 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,7 @@ obj-$(CONFIG_SENSORS_GSC) += gsc-hwmon.o
obj-$(CONFIG_SENSORS_GPIO_FAN)	+= gpio-fan.o
obj-$(CONFIG_SENSORS_GPIO_FAN)	+= gpio-fan.o
obj-$(CONFIG_SENSORS_GXP_FAN_CTRL) += gxp-fan-ctrl.o
obj-$(CONFIG_SENSORS_GXP_FAN_CTRL) += gxp-fan-ctrl.o
obj-$(CONFIG_SENSORS_HIH6130)	+= hih6130.o
obj-$(CONFIG_SENSORS_HIH6130)	+= hih6130.o
obj-$(CONFIG_SENSORS_HS3001)	+= hs3001.o
obj-$(CONFIG_SENSORS_ULTRA45)	+= ultra45_env.o
obj-$(CONFIG_SENSORS_ULTRA45)	+= ultra45_env.o
obj-$(CONFIG_SENSORS_I5500)	+= i5500_temp.o
obj-$(CONFIG_SENSORS_I5500)	+= i5500_temp.o
obj-$(CONFIG_SENSORS_I5K_AMB)	+= i5k_amb.o
obj-$(CONFIG_SENSORS_I5K_AMB)	+= i5k_amb.o
Loading