linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: devicetree support for hih6130
@ 2018-12-27 15:13 Andreas Kemnade
  2018-12-27 15:13 ` [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables Andreas Kemnade
  2018-12-27 15:13 ` [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130 Andreas Kemnade
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Kemnade @ 2018-12-27 15:13 UTC (permalink / raw)
  To: jdelvare, linux, robh+dt, mark.rutland, linux-hwmon, devicetree,
	linux-kernel
  Cc: Andreas Kemnade

This patch set adds devicetree support for hih6130, so it can
be properly auto-probed using devicetree files

Andreas Kemnade (2):
  hwmon: (hih6130) add dtb compatibility tables
  devicetree: hwmon: Add bindings documentation for HIH6130

 Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 ++++++++++++
 drivers/hwmon/hih6130.c                             | 11 ++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt

-- 
2.11.0

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

* [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables
  2018-12-27 15:13 [PATCH 0/2] hwmon: devicetree support for hih6130 Andreas Kemnade
@ 2018-12-27 15:13 ` Andreas Kemnade
  2019-01-04  4:25   ` Guenter Roeck
  2018-12-27 15:13 ` [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130 Andreas Kemnade
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Kemnade @ 2018-12-27 15:13 UTC (permalink / raw)
  To: jdelvare, linux, robh+dt, mark.rutland, linux-hwmon, devicetree,
	linux-kernel
  Cc: Andreas Kemnade

This allows the hih6130 to be used in devicetree files and auto-probed
that way.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 drivers/hwmon/hih6130.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c
index 0ae1ee1dbf76..de1b50ddc740 100644
--- a/drivers/hwmon/hih6130.c
+++ b/drivers/hwmon/hih6130.c
@@ -254,8 +254,17 @@ static const struct i2c_device_id hih6130_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, hih6130_id);
 
+static const struct of_device_id hih6130_of_match[] = {
+	{ .compatible = "honeywell,hih6130", },
+	{ }
+};
+MODULE_DEVICE_TABLE(of, hih6130_of_match);
+
 static struct i2c_driver hih6130_driver = {
-	.driver.name = "hih6130",
+	.driver = {
+		.name = "hih6130",
+		.of_match_table = of_match_ptr(hih6130_of_match),
+	},
 	.probe       = hih6130_probe,
 	.id_table    = hih6130_id,
 };
-- 
2.11.0

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

* [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130
  2018-12-27 15:13 [PATCH 0/2] hwmon: devicetree support for hih6130 Andreas Kemnade
  2018-12-27 15:13 ` [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables Andreas Kemnade
@ 2018-12-27 15:13 ` Andreas Kemnade
  2019-01-03 22:58   ` Rob Herring
  2019-01-04  4:26   ` Guenter Roeck
  1 sibling, 2 replies; 6+ messages in thread
From: Andreas Kemnade @ 2018-12-27 15:13 UTC (permalink / raw)
  To: jdelvare, linux, robh+dt, mark.rutland, linux-hwmon, devicetree,
	linux-kernel
  Cc: Andreas Kemnade

Add bindings documentation for HIH6130 driver.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt

diff --git a/Documentation/devicetree/bindings/hwmon/hih6130.txt b/Documentation/devicetree/bindings/hwmon/hih6130.txt
new file mode 100644
index 000000000000..2c43837af4c2
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/hih6130.txt
@@ -0,0 +1,12 @@
+Honeywell Humidicon HIH-6130 humidity/temperature sensor
+--------------------------------------------------------
+
+Requires node properties:
+- compatible : "honeywell,hi6130"
+- reg : the I2C address of the device. This is 0x27.
+
+Example:
+	hih6130@27 {
+		compatible = "honeywell,hih6130";
+		reg = <0x27>;
+	};
-- 
2.11.0

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

* Re: [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130
  2018-12-27 15:13 ` [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130 Andreas Kemnade
@ 2019-01-03 22:58   ` Rob Herring
  2019-01-04  4:26   ` Guenter Roeck
  1 sibling, 0 replies; 6+ messages in thread
From: Rob Herring @ 2019-01-03 22:58 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: jdelvare, linux, robh+dt, mark.rutland, linux-hwmon, devicetree,
	linux-kernel, Andreas Kemnade

On Thu, 27 Dec 2018 16:13:49 +0100, Andreas Kemnade wrote:
> Add bindings documentation for HIH6130 driver.
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> ---
>  Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables
  2018-12-27 15:13 ` [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables Andreas Kemnade
@ 2019-01-04  4:25   ` Guenter Roeck
  0 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2019-01-04  4:25 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: jdelvare, robh+dt, mark.rutland, linux-hwmon, devicetree, linux-kernel

On Thu, Dec 27, 2018 at 04:13:48PM +0100, Andreas Kemnade wrote:
> This allows the hih6130 to be used in devicetree files and auto-probed
> that way.
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>

Applie to hwmon-next.

Thanks,
Guenter

> ---
>  drivers/hwmon/hih6130.c | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c
> index 0ae1ee1dbf76..de1b50ddc740 100644
> --- a/drivers/hwmon/hih6130.c
> +++ b/drivers/hwmon/hih6130.c
> @@ -254,8 +254,17 @@ static const struct i2c_device_id hih6130_id[] = {
>  };
>  MODULE_DEVICE_TABLE(i2c, hih6130_id);
>  
> +static const struct of_device_id hih6130_of_match[] = {
> +	{ .compatible = "honeywell,hih6130", },
> +	{ }
> +};
> +MODULE_DEVICE_TABLE(of, hih6130_of_match);
> +
>  static struct i2c_driver hih6130_driver = {
> -	.driver.name = "hih6130",
> +	.driver = {
> +		.name = "hih6130",
> +		.of_match_table = of_match_ptr(hih6130_of_match),
> +	},
>  	.probe       = hih6130_probe,
>  	.id_table    = hih6130_id,
>  };

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

* Re: [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130
  2018-12-27 15:13 ` [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130 Andreas Kemnade
  2019-01-03 22:58   ` Rob Herring
@ 2019-01-04  4:26   ` Guenter Roeck
  1 sibling, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2019-01-04  4:26 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: jdelvare, robh+dt, mark.rutland, linux-hwmon, devicetree, linux-kernel

On Thu, Dec 27, 2018 at 04:13:49PM +0100, Andreas Kemnade wrote:
> Add bindings documentation for HIH6130 driver.
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> Reviewed-by: Rob Herring <robh@kernel.org>

Applied to hwmon-next.

Thanks,
Guenter

> ---
>  Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/hih6130.txt b/Documentation/devicetree/bindings/hwmon/hih6130.txt
> new file mode 100644
> index 000000000000..2c43837af4c2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/hih6130.txt
> @@ -0,0 +1,12 @@
> +Honeywell Humidicon HIH-6130 humidity/temperature sensor
> +--------------------------------------------------------
> +
> +Requires node properties:
> +- compatible : "honeywell,hi6130"
> +- reg : the I2C address of the device. This is 0x27.
> +
> +Example:
> +	hih6130@27 {
> +		compatible = "honeywell,hih6130";
> +		reg = <0x27>;
> +	};

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

end of thread, other threads:[~2019-01-04  4:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27 15:13 [PATCH 0/2] hwmon: devicetree support for hih6130 Andreas Kemnade
2018-12-27 15:13 ` [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables Andreas Kemnade
2019-01-04  4:25   ` Guenter Roeck
2018-12-27 15:13 ` [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130 Andreas Kemnade
2019-01-03 22:58   ` Rob Herring
2019-01-04  4:26   ` Guenter Roeck

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