Skip to contentSkip to conversation

iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry

PATCH In review Jonathan Cameron 2 participants 2 messages Jan 21, 2024 IIO

lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry

From: Jonathan Cameron <[email protected]>

Something when wrong when applying the original patch and only the c file made it in. Here the rest of the changes are applied.

Fixes c9180b8e39be ("iio: humidity: Add driver for ti HDC302x humidity sensors")
Cc Javier Carrasco <[email protected]>
Cc Li peiyu <[email protected]>
---
 MAINTAINERS                   |  8 ++++++++
 drivers/iio/humidity/Kconfig  | 12 ++++++++++++
 drivers/iio/humidity/Makefile |  1 +
 3 files changed, 21 insertions(+)
MAINTAINERS +8 -0
index 8d1052fa6a69..1b590e6f6bdd 100644
@@ -22005,6 +22005,14 @@ F:	Documentation/devicetree/bindings/media/i2c/ti,ds90*
 F:	drivers/media/i2c/ds90*
 F:	include/media/i2c/ds90*
 
+TI HDC302X HUMIDITY DRIVER
+M:	Javier Carrasco <[email protected]>
+M:	Li peiyu <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.yaml
+F:	drivers/iio/humidity/hdc3020.c
+
 TI ICSSG ETHERNET DRIVER (ICSSG)
 R:	MD Danish Anwar <[email protected]>
 R:	Roger Quadros <[email protected]>
drivers/iio/humidity/Kconfig +12 -0
index 2de5494e7c22..b15b7a3b66d5 100644
@@ -48,6 +48,18 @@ config HDC2010
 	  To compile this driver as a module, choose M here: the module
 	  will be called hdc2010.
 
+config HDC3020
+	tristate "TI HDC3020 relative humidity and temperature sensor"
+	depends on I2C
+	select CRC8
+	help
+	  Say yes here to build support for the Texas Instruments
+	  HDC3020, HDC3021 and HDC3022 relative humidity and temperature
+	  sensors.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called hdc3020.
+
 config HID_SENSOR_HUMIDITY
 	tristate "HID Environmental humidity sensor"
 	depends on HID_SENSOR_HUB
drivers/iio/humidity/Makefile +1 -0
index f19ff3de97c5..5fbeef299f61 100644
@@ -7,6 +7,7 @@ obj-$(CONFIG_AM2315) += am2315.o
 obj-$(CONFIG_DHT11) += dht11.o
 obj-$(CONFIG_HDC100X) += hdc100x.o
 obj-$(CONFIG_HDC2010) += hdc2010.o
+obj-$(CONFIG_HDC3020) += hdc3020.o
 obj-$(CONFIG_HID_SENSOR_HUMIDITY) += hid-sensor-humidity.o
 
 hts221-y := hts221_core.o \
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

Something when wrong when applying the original patch and only the c file made it in. Here the rest of the changes are applied.

Fixes c9180b8e39be ("iio: humidity: Add driver for ti HDC302x humidity sensors")
Cc Javier Carrasco <[email protected]>
Cc Li peiyu <[email protected]>

Looks good, thanks Jonathan.

Quoted 60 lines
---
  MAINTAINERS                   |  8 ++++++++
  drivers/iio/humidity/Kconfig  | 12 ++++++++++++
  drivers/iio/humidity/Makefile |  1 +
  3 files changed, 21 insertions(+)
MAINTAINERS +8 -0
index 8d1052fa6a69..1b590e6f6bdd 100644
@@ -22005,6 +22005,14 @@ F:	Documentation/devicetree/bindings/media/i2c/ti,ds90*
  F:	drivers/media/i2c/ds90*
  F:	include/media/i2c/ds90*
 
+TI HDC302X HUMIDITY DRIVER
+M:	Javier Carrasco <[email protected]>
+M:	Li peiyu <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.yaml
+F:	drivers/iio/humidity/hdc3020.c
+
  TI ICSSG ETHERNET DRIVER (ICSSG)
  R:	MD Danish Anwar <[email protected]>
  R:	Roger Quadros <[email protected]>
drivers/iio/humidity/Kconfig +12 -0
index 2de5494e7c22..b15b7a3b66d5 100644
@@ -48,6 +48,18 @@ config HDC2010
  	  To compile this driver as a module, choose M here: the module
  	  will be called hdc2010.
 
+config HDC3020
+	tristate "TI HDC3020 relative humidity and temperature sensor"
+	depends on I2C
+	select CRC8
+	help
+	  Say yes here to build support for the Texas Instruments
+	  HDC3020, HDC3021 and HDC3022 relative humidity and temperature
+	  sensors.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called hdc3020.
+
  config HID_SENSOR_HUMIDITY
  	tristate "HID Environmental humidity sensor"
  	depends on HID_SENSOR_HUB
drivers/iio/humidity/Makefile +1 -0
index f19ff3de97c5..5fbeef299f61 100644
@@ -7,6 +7,7 @@ obj-$(CONFIG_AM2315) += am2315.o
  obj-$(CONFIG_DHT11) += dht11.o
  obj-$(CONFIG_HDC100X) += hdc100x.o
  obj-$(CONFIG_HDC2010) += hdc2010.o
+obj-$(CONFIG_HDC3020) += hdc3020.o
  obj-$(CONFIG_HID_SENSOR_HUMIDITY) += hid-sensor-humidity.o
 
  hts221-y := hts221_core.o \