* [PATCH 0/3] add SPI-3wire support to ST gyro/magn/pressure framework
@ 2017-09-17 15:20 Lorenzo Bianconi
2017-09-17 15:20 ` [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Lorenzo Bianconi
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Lorenzo Bianconi @ 2017-09-17 15:20 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, lorenzo.bianconi
This patchset depends on 'iio: st_sensors: add register mask for status
register' patch of 'Add support to LIS2DW12 accel sensor' patchset not yet
applied on testing branch
Lorenzo Bianconi (3):
iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework
iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL
iio: pressure: st_pressure: add SPI-3wire support to st_pressure
framework
drivers/iio/gyro/st_gyro_core.c | 12 ++++++++++++
drivers/iio/magnetometer/st_magn_core.c | 4 ++++
drivers/iio/pressure/st_pressure_core.c | 16 ++++++++++++++++
3 files changed, 32 insertions(+)
--
2.14.1
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework 2017-09-17 15:20 [PATCH 0/3] add SPI-3wire support to ST gyro/magn/pressure framework Lorenzo Bianconi @ 2017-09-17 15:20 ` Lorenzo Bianconi 2017-10-10 19:34 ` Jonathan Cameron 2017-09-17 15:20 ` [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Lorenzo Bianconi 2017-09-17 15:20 ` [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework Lorenzo Bianconi 2 siblings, 1 reply; 7+ messages in thread From: Lorenzo Bianconi @ 2017-09-17 15:20 UTC (permalink / raw) To: jic23; +Cc: linux-iio, lorenzo.bianconi Add SPI Serial Interface Mode (SIM) register information to STM gyroscope framework Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> --- drivers/iio/gyro/st_gyro_core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c index 46991f7131d1..b31064ba37b9 100644 --- a/drivers/iio/gyro/st_gyro_core.c +++ b/drivers/iio/gyro/st_gyro_core.c @@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, -- 2.14.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework 2017-09-17 15:20 ` [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Lorenzo Bianconi @ 2017-10-10 19:34 ` Jonathan Cameron 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Cameron @ 2017-10-10 19:34 UTC (permalink / raw) To: Lorenzo Bianconi; +Cc: linux-iio, lorenzo.bianconi On Sun, 17 Sep 2017 17:20:45 +0200 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote: > Add SPI Serial Interface Mode (SIM) register information > to STM gyroscope framework > > 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/gyro/st_gyro_core.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c > index 46991f7131d1..b31064ba37b9 100644 > --- a/drivers/iio/gyro/st_gyro_core.c > +++ b/drivers/iio/gyro/st_gyro_core.c > @@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x23, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x23, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x23, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL 2017-09-17 15:20 [PATCH 0/3] add SPI-3wire support to ST gyro/magn/pressure framework Lorenzo Bianconi 2017-09-17 15:20 ` [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Lorenzo Bianconi @ 2017-09-17 15:20 ` Lorenzo Bianconi 2017-10-10 19:43 ` Jonathan Cameron 2017-09-17 15:20 ` [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework Lorenzo Bianconi 2 siblings, 1 reply; 7+ messages in thread From: Lorenzo Bianconi @ 2017-09-17 15:20 UTC (permalink / raw) To: jic23; +Cc: linux-iio, lorenzo.bianconi Add SPI Serial Interface Mode (SIM) register information to LIS3MDL magn sensor Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> --- drivers/iio/magnetometer/st_magn_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 8745686f233c..72f6d1335a04 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x22, + .value = BIT(2), + }, .multi_read_bit = true, .bootime = 2, }, -- 2.14.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL 2017-09-17 15:20 ` [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Lorenzo Bianconi @ 2017-10-10 19:43 ` Jonathan Cameron 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Cameron @ 2017-10-10 19:43 UTC (permalink / raw) To: Lorenzo Bianconi; +Cc: linux-iio, lorenzo.bianconi On Sun, 17 Sep 2017 17:20:46 +0200 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote: > Add SPI Serial Interface Mode (SIM) register information to > LIS3MDL magn sensor > > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Applied. > --- > drivers/iio/magnetometer/st_magn_core.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c > index 8745686f233c..72f6d1335a04 100644 > --- a/drivers/iio/magnetometer/st_magn_core.c > +++ b/drivers/iio/magnetometer/st_magn_core.c > @@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { > .mask = 0x07, > }, > }, > + .sim = { > + .addr = 0x22, > + .value = BIT(2), > + }, > .multi_read_bit = true, > .bootime = 2, > }, ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework 2017-09-17 15:20 [PATCH 0/3] add SPI-3wire support to ST gyro/magn/pressure framework Lorenzo Bianconi 2017-09-17 15:20 ` [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Lorenzo Bianconi 2017-09-17 15:20 ` [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Lorenzo Bianconi @ 2017-09-17 15:20 ` Lorenzo Bianconi 2017-10-10 19:38 ` Jonathan Cameron 2 siblings, 1 reply; 7+ messages in thread From: Lorenzo Bianconi @ 2017-09-17 15:20 UTC (permalink / raw) To: jic23; +Cc: linux-iio, lorenzo.bianconi Add SPI Serial Interface Mode (SIM) register information to STM pressure framework Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> --- drivers/iio/pressure/st_pressure_core.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c index b8890e37a2d2..15ad6054d9f6 100644 --- a/drivers/iio/pressure/st_pressure_core.c +++ b/drivers/iio/pressure/st_pressure_core.c @@ -297,6 +297,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .mask = 0x03, }, }, + .sim = { + .addr = 0x20, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -343,6 +347,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .addr = 0x20, .mask = 0x04, }, + .sim = { + .addr = 0x20, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -406,6 +414,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .mask = 0x03, }, }, + .sim = { + .addr = 0x20, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -471,6 +483,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .mask = 0x03, }, }, + .sim = { + .addr = 0x10, + .value = BIT(0), + }, .multi_read_bit = false, .bootime = 2, }, -- 2.14.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework 2017-09-17 15:20 ` [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework Lorenzo Bianconi @ 2017-10-10 19:38 ` Jonathan Cameron 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Cameron @ 2017-10-10 19:38 UTC (permalink / raw) To: Lorenzo Bianconi; +Cc: linux-iio, lorenzo.bianconi On Sun, 17 Sep 2017 17:20:47 +0200 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote: > Add SPI Serial Interface Mode (SIM) register information > to STM pressure framework > > 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_core.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c > index b8890e37a2d2..15ad6054d9f6 100644 > --- a/drivers/iio/pressure/st_pressure_core.c > +++ b/drivers/iio/pressure/st_pressure_core.c > @@ -297,6 +297,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { > .mask = 0x03, > }, > }, > + .sim = { > + .addr = 0x20, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -343,6 +347,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { > .addr = 0x20, > .mask = 0x04, > }, > + .sim = { > + .addr = 0x20, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -406,6 +414,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { > .mask = 0x03, > }, > }, > + .sim = { > + .addr = 0x20, > + .value = BIT(0), > + }, > .multi_read_bit = true, > .bootime = 2, > }, > @@ -471,6 +483,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { > .mask = 0x03, > }, > }, > + .sim = { > + .addr = 0x10, > + .value = BIT(0), > + }, > .multi_read_bit = false, > .bootime = 2, > }, ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-10 19:43 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-09-17 15:20 [PATCH 0/3] add SPI-3wire support to ST gyro/magn/pressure framework Lorenzo Bianconi 2017-09-17 15:20 ` [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Lorenzo Bianconi 2017-10-10 19:34 ` Jonathan Cameron 2017-09-17 15:20 ` [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Lorenzo Bianconi 2017-10-10 19:43 ` Jonathan Cameron 2017-09-17 15:20 ` [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework Lorenzo Bianconi 2017-10-10 19:38 ` Jonathan Cameron
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).