All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support to LPS33HW and LPS35HW pressure sensors
@ 2017-09-02 17:39 ` Lorenzo Bianconi
  0 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Bianconi @ 2017-09-02 17:39 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, lorenzo.bianconi-qxv4g6HH51o,
	devicetree-u79uwXL29TY76Z2rM5mHXA

Lorenzo Bianconi (2):
  iio: pressure: add support to LPS33HW and LPS35HW
  dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings

 Documentation/devicetree/bindings/iio/st-sensors.txt |  2 ++
 drivers/iio/pressure/st_pressure.h                   |  4 ++++
 drivers/iio/pressure/st_pressure_core.c              |  2 ++
 drivers/iio/pressure/st_pressure_i2c.c               | 10 ++++++++++
 drivers/iio/pressure/st_pressure_spi.c               | 10 ++++++++++
 5 files changed, 28 insertions(+)

-- 
2.14.1

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

* [PATCH 0/2] Add support to LPS33HW and LPS35HW pressure sensors
@ 2017-09-02 17:39 ` Lorenzo Bianconi
  0 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Bianconi @ 2017-09-02 17:39 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, lorenzo.bianconi, devicetree

Lorenzo Bianconi (2):
  iio: pressure: add support to LPS33HW and LPS35HW
  dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings

 Documentation/devicetree/bindings/iio/st-sensors.txt |  2 ++
 drivers/iio/pressure/st_pressure.h                   |  4 ++++
 drivers/iio/pressure/st_pressure_core.c              |  2 ++
 drivers/iio/pressure/st_pressure_i2c.c               | 10 ++++++++++
 drivers/iio/pressure/st_pressure_spi.c               | 10 ++++++++++
 5 files changed, 28 insertions(+)

-- 
2.14.1


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

* [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW
  2017-09-02 17:39 ` Lorenzo Bianconi
@ 2017-09-02 17:39     ` Lorenzo Bianconi
  -1 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Bianconi @ 2017-09-02 17:39 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, lorenzo.bianconi-qxv4g6HH51o,
	devicetree-u79uwXL29TY76Z2rM5mHXA

add support to STMicroelectronics LPS33HW and LPS35HW pressure sensors
to st_pressure framework

http://www.st.com/resource/en/datasheet/lps33hw.pdf
http://www.st.com/resource/en/datasheet/lps35hw.pdf
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
---
 drivers/iio/pressure/st_pressure.h      |  4 ++++
 drivers/iio/pressure/st_pressure_core.c |  2 ++
 drivers/iio/pressure/st_pressure_i2c.c  | 10 ++++++++++
 drivers/iio/pressure/st_pressure_spi.c  | 10 ++++++++++
 4 files changed, 26 insertions(+)

diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h
index 7d995937adba..e67eb0d971bf 100644
--- a/drivers/iio/pressure/st_pressure.h
+++ b/drivers/iio/pressure/st_pressure.h
@@ -19,6 +19,8 @@ enum st_press_type {
 	LPS25H,
 	LPS331AP,
 	LPS22HB,
+	LPS33HW,
+	LPS35HW,
 	ST_PRESS_MAX,
 };
 
@@ -26,6 +28,8 @@ enum st_press_type {
 #define LPS25H_PRESS_DEV_NAME		"lps25h"
 #define LPS331AP_PRESS_DEV_NAME		"lps331ap"
 #define LPS22HB_PRESS_DEV_NAME		"lps22hb"
+#define LPS33HW_PRESS_DEV_NAME		"lps33hw"
+#define LPS35HW_PRESS_DEV_NAME		"lps35hw"
 
 /**
  * struct st_sensors_platform_data - default press platform data
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index 0c1c092cc157..b8890e37a2d2 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -419,6 +419,8 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
 		.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
 		.sensors_supported = {
 			[0] = LPS22HB_PRESS_DEV_NAME,
+			[1] = LPS33HW_PRESS_DEV_NAME,
+			[2] = LPS35HW_PRESS_DEV_NAME,
 		},
 		.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
 		.num_ch = ARRAY_SIZE(st_press_lps22hb_channels),
diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c
index 7f15e927fa2b..fbb59059e942 100644
--- a/drivers/iio/pressure/st_pressure_i2c.c
+++ b/drivers/iio/pressure/st_pressure_i2c.c
@@ -37,6 +37,14 @@ static const struct of_device_id st_press_of_match[] = {
 		.compatible = "st,lps22hb-press",
 		.data = LPS22HB_PRESS_DEV_NAME,
 	},
+	{
+		.compatible = "st,lps33hw",
+		.data = LPS33HW_PRESS_DEV_NAME,
+	},
+	{
+		.compatible = "st,lps35hw",
+		.data = LPS35HW_PRESS_DEV_NAME,
+	},
 	{},
 };
 MODULE_DEVICE_TABLE(of, st_press_of_match);
@@ -59,6 +67,8 @@ static const struct i2c_device_id st_press_id_table[] = {
 	{ LPS25H_PRESS_DEV_NAME,  LPS25H },
 	{ LPS331AP_PRESS_DEV_NAME, LPS331AP },
 	{ LPS22HB_PRESS_DEV_NAME, LPS22HB },
+	{ LPS33HW_PRESS_DEV_NAME, LPS33HW },
+	{ LPS35HW_PRESS_DEV_NAME, LPS35HW },
 	{},
 };
 MODULE_DEVICE_TABLE(i2c, st_press_id_table);
diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
index f5ebd36bb4bf..9a3441b128e7 100644
--- a/drivers/iio/pressure/st_pressure_spi.c
+++ b/drivers/iio/pressure/st_pressure_spi.c
@@ -41,6 +41,14 @@ static const struct of_device_id st_press_of_match[] = {
 		.compatible = "st,lps22hb-press",
 		.data = LPS22HB_PRESS_DEV_NAME,
 	},
+	{
+		.compatible = "st,lps33hw",
+		.data = LPS33HW_PRESS_DEV_NAME,
+	},
+	{
+		.compatible = "st,lps35hw",
+		.data = LPS35HW_PRESS_DEV_NAME,
+	},
 	{},
 };
 MODULE_DEVICE_TABLE(of, st_press_of_match);
@@ -83,6 +91,8 @@ static const struct spi_device_id st_press_id_table[] = {
 	{ LPS25H_PRESS_DEV_NAME },
 	{ LPS331AP_PRESS_DEV_NAME },
 	{ LPS22HB_PRESS_DEV_NAME },
+	{ LPS33HW_PRESS_DEV_NAME },
+	{ LPS35HW_PRESS_DEV_NAME },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, st_press_id_table);
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW
@ 2017-09-02 17:39     ` Lorenzo Bianconi
  0 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Bianconi @ 2017-09-02 17:39 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, lorenzo.bianconi, devicetree

add support to STMicroelectronics LPS33HW and LPS35HW pressure sensors
to st_pressure framework

http://www.st.com/resource/en/datasheet/lps33hw.pdf
http://www.st.com/resource/en/datasheet/lps35hw.pdf
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
---
 drivers/iio/pressure/st_pressure.h      |  4 ++++
 drivers/iio/pressure/st_pressure_core.c |  2 ++
 drivers/iio/pressure/st_pressure_i2c.c  | 10 ++++++++++
 drivers/iio/pressure/st_pressure_spi.c  | 10 ++++++++++
 4 files changed, 26 insertions(+)

diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h
index 7d995937adba..e67eb0d971bf 100644
--- a/drivers/iio/pressure/st_pressure.h
+++ b/drivers/iio/pressure/st_pressure.h
@@ -19,6 +19,8 @@ enum st_press_type {
 	LPS25H,
 	LPS331AP,
 	LPS22HB,
+	LPS33HW,
+	LPS35HW,
 	ST_PRESS_MAX,
 };
 
@@ -26,6 +28,8 @@ enum st_press_type {
 #define LPS25H_PRESS_DEV_NAME		"lps25h"
 #define LPS331AP_PRESS_DEV_NAME		"lps331ap"
 #define LPS22HB_PRESS_DEV_NAME		"lps22hb"
+#define LPS33HW_PRESS_DEV_NAME		"lps33hw"
+#define LPS35HW_PRESS_DEV_NAME		"lps35hw"
 
 /**
  * struct st_sensors_platform_data - default press platform data
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index 0c1c092cc157..b8890e37a2d2 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -419,6 +419,8 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
 		.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
 		.sensors_supported = {
 			[0] = LPS22HB_PRESS_DEV_NAME,
+			[1] = LPS33HW_PRESS_DEV_NAME,
+			[2] = LPS35HW_PRESS_DEV_NAME,
 		},
 		.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
 		.num_ch = ARRAY_SIZE(st_press_lps22hb_channels),
diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c
index 7f15e927fa2b..fbb59059e942 100644
--- a/drivers/iio/pressure/st_pressure_i2c.c
+++ b/drivers/iio/pressure/st_pressure_i2c.c
@@ -37,6 +37,14 @@ static const struct of_device_id st_press_of_match[] = {
 		.compatible = "st,lps22hb-press",
 		.data = LPS22HB_PRESS_DEV_NAME,
 	},
+	{
+		.compatible = "st,lps33hw",
+		.data = LPS33HW_PRESS_DEV_NAME,
+	},
+	{
+		.compatible = "st,lps35hw",
+		.data = LPS35HW_PRESS_DEV_NAME,
+	},
 	{},
 };
 MODULE_DEVICE_TABLE(of, st_press_of_match);
@@ -59,6 +67,8 @@ static const struct i2c_device_id st_press_id_table[] = {
 	{ LPS25H_PRESS_DEV_NAME,  LPS25H },
 	{ LPS331AP_PRESS_DEV_NAME, LPS331AP },
 	{ LPS22HB_PRESS_DEV_NAME, LPS22HB },
+	{ LPS33HW_PRESS_DEV_NAME, LPS33HW },
+	{ LPS35HW_PRESS_DEV_NAME, LPS35HW },
 	{},
 };
 MODULE_DEVICE_TABLE(i2c, st_press_id_table);
diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
index f5ebd36bb4bf..9a3441b128e7 100644
--- a/drivers/iio/pressure/st_pressure_spi.c
+++ b/drivers/iio/pressure/st_pressure_spi.c
@@ -41,6 +41,14 @@ static const struct of_device_id st_press_of_match[] = {
 		.compatible = "st,lps22hb-press",
 		.data = LPS22HB_PRESS_DEV_NAME,
 	},
+	{
+		.compatible = "st,lps33hw",
+		.data = LPS33HW_PRESS_DEV_NAME,
+	},
+	{
+		.compatible = "st,lps35hw",
+		.data = LPS35HW_PRESS_DEV_NAME,
+	},
 	{},
 };
 MODULE_DEVICE_TABLE(of, st_press_of_match);
@@ -83,6 +91,8 @@ static const struct spi_device_id st_press_id_table[] = {
 	{ LPS25H_PRESS_DEV_NAME },
 	{ LPS331AP_PRESS_DEV_NAME },
 	{ LPS22HB_PRESS_DEV_NAME },
+	{ LPS33HW_PRESS_DEV_NAME },
+	{ LPS35HW_PRESS_DEV_NAME },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, st_press_id_table);
-- 
2.14.1

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

* [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings
  2017-09-02 17:39 ` Lorenzo Bianconi
@ 2017-09-02 17:39     ` Lorenzo Bianconi
  -1 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Bianconi @ 2017-09-02 17:39 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, lorenzo.bianconi-qxv4g6HH51o,
	devicetree-u79uwXL29TY76Z2rM5mHXA

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
---
 Documentation/devicetree/bindings/iio/st-sensors.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
index be64357808d0..9cfc82d21792 100644
--- a/Documentation/devicetree/bindings/iio/st-sensors.txt
+++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
@@ -72,3 +72,5 @@ Pressure sensors:
 - st,lps25h-press
 - st,lps331ap-press
 - st,lps22hb-press
+- st,lps33hw
+- st,lps35hw
-- 
2.14.1

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

* [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings
@ 2017-09-02 17:39     ` Lorenzo Bianconi
  0 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Bianconi @ 2017-09-02 17:39 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, lorenzo.bianconi, devicetree

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
---
 Documentation/devicetree/bindings/iio/st-sensors.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
index be64357808d0..9cfc82d21792 100644
--- a/Documentation/devicetree/bindings/iio/st-sensors.txt
+++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
@@ -72,3 +72,5 @@ Pressure sensors:
 - st,lps25h-press
 - st,lps331ap-press
 - st,lps22hb-press
+- st,lps33hw
+- st,lps35hw
-- 
2.14.1

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

* Re: [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW
  2017-09-02 17:39     ` Lorenzo Bianconi
@ 2017-09-03 16:55         ` Jonathan Cameron
  -1 siblings, 0 replies; 12+ messages in thread
From: Jonathan Cameron @ 2017-09-03 16:55 UTC (permalink / raw)
  To: Lorenzo Bianconi
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, lorenzo.bianconi-qxv4g6HH51o,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Sat,  2 Sep 2017 19:39:14 +0200
Lorenzo Bianconi <lorenzo.bianconi83-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> add support to STMicroelectronics LPS33HW and LPS35HW pressure sensors
> to st_pressure framework
> 
> http://www.st.com/resource/en/datasheet/lps33hw.pdf
> http://www.st.com/resource/en/datasheet/lps35hw.pdf
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/iio/pressure/st_pressure.h      |  4 ++++
>  drivers/iio/pressure/st_pressure_core.c |  2 ++
>  drivers/iio/pressure/st_pressure_i2c.c  | 10 ++++++++++
>  drivers/iio/pressure/st_pressure_spi.c  | 10 ++++++++++
>  4 files changed, 26 insertions(+)
> 
> diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h
> index 7d995937adba..e67eb0d971bf 100644
> --- a/drivers/iio/pressure/st_pressure.h
> +++ b/drivers/iio/pressure/st_pressure.h
> @@ -19,6 +19,8 @@ enum st_press_type {
>  	LPS25H,
>  	LPS331AP,
>  	LPS22HB,
> +	LPS33HW,
> +	LPS35HW,
>  	ST_PRESS_MAX,
>  };
>  
> @@ -26,6 +28,8 @@ enum st_press_type {
>  #define LPS25H_PRESS_DEV_NAME		"lps25h"
>  #define LPS331AP_PRESS_DEV_NAME		"lps331ap"
>  #define LPS22HB_PRESS_DEV_NAME		"lps22hb"
> +#define LPS33HW_PRESS_DEV_NAME		"lps33hw"
> +#define LPS35HW_PRESS_DEV_NAME		"lps35hw"
>  
>  /**
>   * struct st_sensors_platform_data - default press platform data
> diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
> index 0c1c092cc157..b8890e37a2d2 100644
> --- a/drivers/iio/pressure/st_pressure_core.c
> +++ b/drivers/iio/pressure/st_pressure_core.c
> @@ -419,6 +419,8 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
>  		.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
>  		.sensors_supported = {
>  			[0] = LPS22HB_PRESS_DEV_NAME,
> +			[1] = LPS33HW_PRESS_DEV_NAME,
> +			[2] = LPS35HW_PRESS_DEV_NAME,
>  		},
>  		.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
>  		.num_ch = ARRAY_SIZE(st_press_lps22hb_channels),
> diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c
> index 7f15e927fa2b..fbb59059e942 100644
> --- a/drivers/iio/pressure/st_pressure_i2c.c
> +++ b/drivers/iio/pressure/st_pressure_i2c.c
> @@ -37,6 +37,14 @@ static const struct of_device_id st_press_of_match[] = {
>  		.compatible = "st,lps22hb-press",
>  		.data = LPS22HB_PRESS_DEV_NAME,
>  	},
> +	{
> +		.compatible = "st,lps33hw",
> +		.data = LPS33HW_PRESS_DEV_NAME,
> +	},
> +	{
> +		.compatible = "st,lps35hw",
> +		.data = LPS35HW_PRESS_DEV_NAME,
> +	},
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, st_press_of_match);
> @@ -59,6 +67,8 @@ static const struct i2c_device_id st_press_id_table[] = {
>  	{ LPS25H_PRESS_DEV_NAME,  LPS25H },
>  	{ LPS331AP_PRESS_DEV_NAME, LPS331AP },
>  	{ LPS22HB_PRESS_DEV_NAME, LPS22HB },
> +	{ LPS33HW_PRESS_DEV_NAME, LPS33HW },
> +	{ LPS35HW_PRESS_DEV_NAME, LPS35HW },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(i2c, st_press_id_table);
> diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
> index f5ebd36bb4bf..9a3441b128e7 100644
> --- a/drivers/iio/pressure/st_pressure_spi.c
> +++ b/drivers/iio/pressure/st_pressure_spi.c
> @@ -41,6 +41,14 @@ static const struct of_device_id st_press_of_match[] = {
>  		.compatible = "st,lps22hb-press",
>  		.data = LPS22HB_PRESS_DEV_NAME,
>  	},
> +	{
> +		.compatible = "st,lps33hw",
> +		.data = LPS33HW_PRESS_DEV_NAME,
> +	},
> +	{
> +		.compatible = "st,lps35hw",
> +		.data = LPS35HW_PRESS_DEV_NAME,
> +	},
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, st_press_of_match);
> @@ -83,6 +91,8 @@ static const struct spi_device_id st_press_id_table[] = {
>  	{ LPS25H_PRESS_DEV_NAME },
>  	{ LPS331AP_PRESS_DEV_NAME },
>  	{ LPS22HB_PRESS_DEV_NAME },
> +	{ LPS33HW_PRESS_DEV_NAME },
> +	{ LPS35HW_PRESS_DEV_NAME },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(spi, st_press_id_table);

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

* Re: [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW
@ 2017-09-03 16:55         ` Jonathan Cameron
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Cameron @ 2017-09-03 16:55 UTC (permalink / raw)
  To: Lorenzo Bianconi; +Cc: linux-iio, lorenzo.bianconi, devicetree

On Sat,  2 Sep 2017 19:39:14 +0200
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote:

> add support to STMicroelectronics LPS33HW and LPS35HW pressure sensors
> to st_pressure framework
> 
> http://www.st.com/resource/en/datasheet/lps33hw.pdf
> http://www.st.com/resource/en/datasheet/lps35hw.pdf
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/iio/pressure/st_pressure.h      |  4 ++++
>  drivers/iio/pressure/st_pressure_core.c |  2 ++
>  drivers/iio/pressure/st_pressure_i2c.c  | 10 ++++++++++
>  drivers/iio/pressure/st_pressure_spi.c  | 10 ++++++++++
>  4 files changed, 26 insertions(+)
> 
> diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h
> index 7d995937adba..e67eb0d971bf 100644
> --- a/drivers/iio/pressure/st_pressure.h
> +++ b/drivers/iio/pressure/st_pressure.h
> @@ -19,6 +19,8 @@ enum st_press_type {
>  	LPS25H,
>  	LPS331AP,
>  	LPS22HB,
> +	LPS33HW,
> +	LPS35HW,
>  	ST_PRESS_MAX,
>  };
>  
> @@ -26,6 +28,8 @@ enum st_press_type {
>  #define LPS25H_PRESS_DEV_NAME		"lps25h"
>  #define LPS331AP_PRESS_DEV_NAME		"lps331ap"
>  #define LPS22HB_PRESS_DEV_NAME		"lps22hb"
> +#define LPS33HW_PRESS_DEV_NAME		"lps33hw"
> +#define LPS35HW_PRESS_DEV_NAME		"lps35hw"
>  
>  /**
>   * struct st_sensors_platform_data - default press platform data
> diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
> index 0c1c092cc157..b8890e37a2d2 100644
> --- a/drivers/iio/pressure/st_pressure_core.c
> +++ b/drivers/iio/pressure/st_pressure_core.c
> @@ -419,6 +419,8 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
>  		.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
>  		.sensors_supported = {
>  			[0] = LPS22HB_PRESS_DEV_NAME,
> +			[1] = LPS33HW_PRESS_DEV_NAME,
> +			[2] = LPS35HW_PRESS_DEV_NAME,
>  		},
>  		.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
>  		.num_ch = ARRAY_SIZE(st_press_lps22hb_channels),
> diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c
> index 7f15e927fa2b..fbb59059e942 100644
> --- a/drivers/iio/pressure/st_pressure_i2c.c
> +++ b/drivers/iio/pressure/st_pressure_i2c.c
> @@ -37,6 +37,14 @@ static const struct of_device_id st_press_of_match[] = {
>  		.compatible = "st,lps22hb-press",
>  		.data = LPS22HB_PRESS_DEV_NAME,
>  	},
> +	{
> +		.compatible = "st,lps33hw",
> +		.data = LPS33HW_PRESS_DEV_NAME,
> +	},
> +	{
> +		.compatible = "st,lps35hw",
> +		.data = LPS35HW_PRESS_DEV_NAME,
> +	},
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, st_press_of_match);
> @@ -59,6 +67,8 @@ static const struct i2c_device_id st_press_id_table[] = {
>  	{ LPS25H_PRESS_DEV_NAME,  LPS25H },
>  	{ LPS331AP_PRESS_DEV_NAME, LPS331AP },
>  	{ LPS22HB_PRESS_DEV_NAME, LPS22HB },
> +	{ LPS33HW_PRESS_DEV_NAME, LPS33HW },
> +	{ LPS35HW_PRESS_DEV_NAME, LPS35HW },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(i2c, st_press_id_table);
> diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
> index f5ebd36bb4bf..9a3441b128e7 100644
> --- a/drivers/iio/pressure/st_pressure_spi.c
> +++ b/drivers/iio/pressure/st_pressure_spi.c
> @@ -41,6 +41,14 @@ static const struct of_device_id st_press_of_match[] = {
>  		.compatible = "st,lps22hb-press",
>  		.data = LPS22HB_PRESS_DEV_NAME,
>  	},
> +	{
> +		.compatible = "st,lps33hw",
> +		.data = LPS33HW_PRESS_DEV_NAME,
> +	},
> +	{
> +		.compatible = "st,lps35hw",
> +		.data = LPS35HW_PRESS_DEV_NAME,
> +	},
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, st_press_of_match);
> @@ -83,6 +91,8 @@ static const struct spi_device_id st_press_id_table[] = {
>  	{ LPS25H_PRESS_DEV_NAME },
>  	{ LPS331AP_PRESS_DEV_NAME },
>  	{ LPS22HB_PRESS_DEV_NAME },
> +	{ LPS33HW_PRESS_DEV_NAME },
> +	{ LPS35HW_PRESS_DEV_NAME },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(spi, st_press_id_table);


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

* Re: [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings
  2017-09-02 17:39     ` Lorenzo Bianconi
@ 2017-09-03 16:56         ` Jonathan Cameron
  -1 siblings, 0 replies; 12+ messages in thread
From: Jonathan Cameron @ 2017-09-03 16:56 UTC (permalink / raw)
  To: Lorenzo Bianconi
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, lorenzo.bianconi-qxv4g6HH51o,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Sat,  2 Sep 2017 19:39:15 +0200
Lorenzo Bianconi <lorenzo.bianconi83-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>

Obviously an Ack from devicetree side fo things is welcome, but
given how trivial this is probably unnecessary!

Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  Documentation/devicetree/bindings/iio/st-sensors.txt | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
> index be64357808d0..9cfc82d21792 100644
> --- a/Documentation/devicetree/bindings/iio/st-sensors.txt
> +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
> @@ -72,3 +72,5 @@ Pressure sensors:
>  - st,lps25h-press
>  - st,lps331ap-press
>  - st,lps22hb-press
> +- st,lps33hw
> +- st,lps35hw

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings
@ 2017-09-03 16:56         ` Jonathan Cameron
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Cameron @ 2017-09-03 16:56 UTC (permalink / raw)
  To: Lorenzo Bianconi; +Cc: linux-iio, lorenzo.bianconi, devicetree

On Sat,  2 Sep 2017 19:39:15 +0200
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote:

> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>

Obviously an Ack from devicetree side fo things is welcome, but
given how trivial this is probably unnecessary!

Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  Documentation/devicetree/bindings/iio/st-sensors.txt | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
> index be64357808d0..9cfc82d21792 100644
> --- a/Documentation/devicetree/bindings/iio/st-sensors.txt
> +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
> @@ -72,3 +72,5 @@ Pressure sensors:
>  - st,lps25h-press
>  - st,lps331ap-press
>  - st,lps22hb-press
> +- st,lps33hw
> +- st,lps35hw


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

* Re: [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings
  2017-09-02 17:39     ` Lorenzo Bianconi
@ 2017-09-12 16:49         ` Rob Herring
  -1 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2017-09-12 16:49 UTC (permalink / raw)
  To: Lorenzo Bianconi
  Cc: jic23-DgEjT+Ai2ygdnm+yROfE0A, linux-iio-u79uwXL29TY76Z2rM5mHXA,
	lorenzo.bianconi-qxv4g6HH51o, devicetree-u79uwXL29TY76Z2rM5mHXA

On Sat, Sep 02, 2017 at 07:39:15PM +0200, Lorenzo Bianconi wrote:
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
> ---
>  Documentation/devicetree/bindings/iio/st-sensors.txt | 2 ++
>  1 file changed, 2 insertions(+)

Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

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

* Re: [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings
@ 2017-09-12 16:49         ` Rob Herring
  0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2017-09-12 16:49 UTC (permalink / raw)
  To: Lorenzo Bianconi; +Cc: jic23, linux-iio, lorenzo.bianconi, devicetree

On Sat, Sep 02, 2017 at 07:39:15PM +0200, Lorenzo Bianconi wrote:
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
> ---
>  Documentation/devicetree/bindings/iio/st-sensors.txt | 2 ++
>  1 file changed, 2 insertions(+)

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

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

end of thread, other threads:[~2017-09-12 16:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-02 17:39 [PATCH 0/2] Add support to LPS33HW and LPS35HW pressure sensors Lorenzo Bianconi
2017-09-02 17:39 ` Lorenzo Bianconi
     [not found] ` <20170902173915.17341-1-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
2017-09-02 17:39   ` [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW Lorenzo Bianconi
2017-09-02 17:39     ` Lorenzo Bianconi
     [not found]     ` <20170902173915.17341-2-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
2017-09-03 16:55       ` Jonathan Cameron
2017-09-03 16:55         ` Jonathan Cameron
2017-09-02 17:39   ` [PATCH 2/2] dt-bindings: iio: pressure: add LPS33HW and LPS35HW device bindings Lorenzo Bianconi
2017-09-02 17:39     ` Lorenzo Bianconi
     [not found]     ` <20170902173915.17341-3-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
2017-09-03 16:56       ` Jonathan Cameron
2017-09-03 16:56         ` Jonathan Cameron
2017-09-12 16:49       ` Rob Herring
2017-09-12 16:49         ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.