From: Jonathan Cameron <jic23@kernel.org>
To: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@st.com,
devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW
Date: Sun, 3 Sep 2017 17:55:13 +0100 [thread overview]
Message-ID: <20170903175513.7f177d2b@archlinux> (raw)
In-Reply-To: <20170902173915.17341-2-lorenzo.bianconi@st.com>
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);
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Lorenzo Bianconi
<lorenzo.bianconi83-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
lorenzo.bianconi-qxv4g6HH51o@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW
Date: Sun, 3 Sep 2017 17:55:13 +0100 [thread overview]
Message-ID: <20170903175513.7f177d2b@archlinux> (raw)
In-Reply-To: <20170902173915.17341-2-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
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);
next prev parent reply other threads:[~2017-09-03 16:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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
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
2017-09-03 16:55 ` Jonathan Cameron [this message]
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
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170903175513.7f177d2b@archlinux \
--to=jic23@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=lorenzo.bianconi@st.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.