* [PATCH 0/2] add support for LSM6DSV16X
@ 2022-11-06 14:36 Lorenzo Bianconi
2022-11-06 14:36 ` [PATCH 1/2] iio: imu: st_lsm6dsx: add support to LSM6DSV16X Lorenzo Bianconi
2022-11-06 14:36 ` [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings Lorenzo Bianconi
0 siblings, 2 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2022-11-06 14:36 UTC (permalink / raw)
To: jic23
Cc: linux-iio, devicetree, lorenzo.bianconi, robh+dt, krzysztof.kozlowski+dt
Add support for LSM6DSV16X IMU mems sensor
https://www.st.com/resource/en/datasheet/lsm6dsv16x.pdf
Lorenzo Bianconi (2):
iio: imu: st_lsm6dsx: add support to LSM6DSV16X
dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings
Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 3 +++
drivers/iio/imu/st_lsm6dsx/Kconfig | 3 ++-
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 2 ++
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 6 +++++-
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 5 +++++
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c | 5 +++++
6 files changed, 22 insertions(+), 2 deletions(-)
--
2.38.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] iio: imu: st_lsm6dsx: add support to LSM6DSV16X
2022-11-06 14:36 [PATCH 0/2] add support for LSM6DSV16X Lorenzo Bianconi
@ 2022-11-06 14:36 ` Lorenzo Bianconi
2022-11-06 14:36 ` [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings Lorenzo Bianconi
1 sibling, 0 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2022-11-06 14:36 UTC (permalink / raw)
To: jic23
Cc: linux-iio, devicetree, lorenzo.bianconi, robh+dt, krzysztof.kozlowski+dt
Add support to STM LSM6DSV16X (accelerometer and gyroscope) Mems sensor.
The LSM6DSV16X sensor can use LSM6DSV as fallback device since it
implements all the LSM6DSV16X features currently implemented in
st_lsm6dsx.
Datasheet: https://www.st.com/resource/en/datasheet/lsm6dsv16x.pdf
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
drivers/iio/imu/st_lsm6dsx/Kconfig | 3 ++-
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 2 ++
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 6 +++++-
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 5 +++++
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c | 5 +++++
5 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/imu/st_lsm6dsx/Kconfig b/drivers/iio/imu/st_lsm6dsx/Kconfig
index 1c68bac94bce..37d02e0fc227 100644
--- a/drivers/iio/imu/st_lsm6dsx/Kconfig
+++ b/drivers/iio/imu/st_lsm6dsx/Kconfig
@@ -13,7 +13,8 @@ config IIO_ST_LSM6DSX
sensor. Supported devices: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm,
ism330dlc, lsm6dso, lsm6dsox, asm330lhh, asm330lhhx, lsm6dsr,
lsm6ds3tr-c, ism330dhcx, lsm6dsrx, lsm6ds0, lsm6dsop, lsm6dstx,
- lsm6dsv, the accelerometer/gyroscope of lsm9ds1 and lsm6dst.
+ lsm6dsv, lsm6dsv16x, the accelerometer/gyroscope of lsm9ds1
+ and lsm6dst.
To compile this driver as a module, choose M here: the module
will be called st_lsm6dsx.
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
index ab61895cf072..683cfadcf62e 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
@@ -34,6 +34,7 @@
#define ST_ASM330LHHX_DEV_NAME "asm330lhhx"
#define ST_LSM6DSTX_DEV_NAME "lsm6dstx"
#define ST_LSM6DSV_DEV_NAME "lsm6dsv"
+#define ST_LSM6DSV16X_DEV_NAME "lsm6dsv16x"
enum st_lsm6dsx_hw_id {
ST_LSM6DS3_ID,
@@ -55,6 +56,7 @@ enum st_lsm6dsx_hw_id {
ST_ASM330LHHX_ID,
ST_LSM6DSTX_ID,
ST_LSM6DSV_ID,
+ ST_LSM6DSV16X_ID,
ST_LSM6DSX_MAX_ID,
};
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
index 5e716a5071fd..acb6101aec5d 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
@@ -27,7 +27,7 @@
* - FIFO size: 4KB
*
* - LSM6DSO/LSM6DSOX/ASM330LHH/ASM330LHHX/LSM6DSR/ISM330DHCX/LSM6DST/LSM6DSOP/
- * LSM6DSTX:
+ * LSM6DSTX/LSM6DSV/LSM6DSV16X:
* - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416,
* 833
* - Accelerometer supported full-scale [g]: +-2/+-4/+-8/+-16
@@ -1180,6 +1180,10 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
.hw_id = ST_LSM6DSV_ID,
.name = ST_LSM6DSV_DEV_NAME,
.wai = 0x70,
+ }, {
+ .hw_id = ST_LSM6DSV16X_ID,
+ .name = ST_LSM6DSV16X_DEV_NAME,
+ .wai = 0x70,
},
},
.channels = {
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
index 239c8920a31f..0faf1b4c11af 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
@@ -113,6 +113,10 @@ static const struct of_device_id st_lsm6dsx_i2c_of_match[] = {
.compatible = "st,lsm6dsv",
.data = (void *)ST_LSM6DSV_ID,
},
+ {
+ .compatible = "st,lsm6dsv16x",
+ .data = (void *)ST_LSM6DSV16X_ID,
+ },
{},
};
MODULE_DEVICE_TABLE(of, st_lsm6dsx_i2c_of_match);
@@ -137,6 +141,7 @@ static const struct i2c_device_id st_lsm6dsx_i2c_id_table[] = {
{ ST_ASM330LHHX_DEV_NAME, ST_ASM330LHHX_ID },
{ ST_LSM6DSTX_DEV_NAME, ST_LSM6DSTX_ID },
{ ST_LSM6DSV_DEV_NAME, ST_LSM6DSV_ID },
+ { ST_LSM6DSV16X_DEV_NAME, ST_LSM6DSV16X_ID },
{},
};
MODULE_DEVICE_TABLE(i2c, st_lsm6dsx_i2c_id_table);
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c
index 66705ef16ed0..57597aaa2a92 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c
@@ -113,6 +113,10 @@ static const struct of_device_id st_lsm6dsx_spi_of_match[] = {
.compatible = "st,lsm6dsv",
.data = (void *)ST_LSM6DSV_ID,
},
+ {
+ .compatible = "st,lsm6dsv16x",
+ .data = (void *)ST_LSM6DSV16X_ID,
+ },
{},
};
MODULE_DEVICE_TABLE(of, st_lsm6dsx_spi_of_match);
@@ -137,6 +141,7 @@ static const struct spi_device_id st_lsm6dsx_spi_id_table[] = {
{ ST_ASM330LHHX_DEV_NAME, ST_ASM330LHHX_ID },
{ ST_LSM6DSTX_DEV_NAME, ST_LSM6DSTX_ID },
{ ST_LSM6DSV_DEV_NAME, ST_LSM6DSV_ID },
+ { ST_LSM6DSV16X_DEV_NAME, ST_LSM6DSV16X_ID },
{},
};
MODULE_DEVICE_TABLE(spi, st_lsm6dsx_spi_id_table);
--
2.38.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings
2022-11-06 14:36 [PATCH 0/2] add support for LSM6DSV16X Lorenzo Bianconi
2022-11-06 14:36 ` [PATCH 1/2] iio: imu: st_lsm6dsx: add support to LSM6DSV16X Lorenzo Bianconi
@ 2022-11-06 14:36 ` Lorenzo Bianconi
2022-11-07 8:31 ` Krzysztof Kozlowski
1 sibling, 1 reply; 6+ messages in thread
From: Lorenzo Bianconi @ 2022-11-06 14:36 UTC (permalink / raw)
To: jic23
Cc: linux-iio, devicetree, lorenzo.bianconi, robh+dt, krzysztof.kozlowski+dt
Add device bindings for lsm6dsv16x IMU sensor.
Use lsm6dsv as fallback device for lsm6dsv16x since it implements all the
features currently supported by lsm6dsv16x.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
index e7349a3275dd..5933270799f5 100644
--- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
+++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
@@ -39,6 +39,9 @@ properties:
- items:
- const: st,lsm6dstx
- const: st,lsm6dst
+ - items:
+ - const: st,lsm6dsv16x
+ - const: st,lsm6dsv
reg:
maxItems: 1
--
2.38.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings
2022-11-06 14:36 ` [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings Lorenzo Bianconi
@ 2022-11-07 8:31 ` Krzysztof Kozlowski
2022-11-08 14:25 ` Lorenzo Bianconi
0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-07 8:31 UTC (permalink / raw)
To: Lorenzo Bianconi, jic23
Cc: linux-iio, devicetree, lorenzo.bianconi, robh+dt, krzysztof.kozlowski+dt
On 06/11/2022 15:36, Lorenzo Bianconi wrote:
> Add device bindings for lsm6dsv16x IMU sensor.
Drop redundant, second "device bindings" in subject. So the subject
should be (also with different prefix):
dt-bindings: iio: imu:: st,lsm6dsx.yaml: add lsm6dsv16x
With subject fixes:
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings
2022-11-07 8:31 ` Krzysztof Kozlowski
@ 2022-11-08 14:25 ` Lorenzo Bianconi
2022-11-12 15:53 ` Jonathan Cameron
0 siblings, 1 reply; 6+ messages in thread
From: Lorenzo Bianconi @ 2022-11-08 14:25 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: jic23, linux-iio, devicetree, lorenzo.bianconi, robh+dt,
krzysztof.kozlowski+dt
[-- Attachment #1: Type: text/plain, Size: 521 bytes --]
> On 06/11/2022 15:36, Lorenzo Bianconi wrote:
> > Add device bindings for lsm6dsv16x IMU sensor.
>
> Drop redundant, second "device bindings" in subject. So the subject
> should be (also with different prefix):
ack
>
> dt-bindings: iio: imu:: st,lsm6dsx.yaml: add lsm6dsv16x
>
> With subject fixes:
>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> Best regards,
> Krzysztof
>
@Jonathan: do you want me send v2 or are you going to take care of it?
Regards,
Lorenzo
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings
2022-11-08 14:25 ` Lorenzo Bianconi
@ 2022-11-12 15:53 ` Jonathan Cameron
0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Cameron @ 2022-11-12 15:53 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: Krzysztof Kozlowski, linux-iio, devicetree, lorenzo.bianconi,
robh+dt, krzysztof.kozlowski+dt
On Tue, 8 Nov 2022 15:25:40 +0100
Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> > On 06/11/2022 15:36, Lorenzo Bianconi wrote:
> > > Add device bindings for lsm6dsv16x IMU sensor.
> >
> > Drop redundant, second "device bindings" in subject. So the subject
> > should be (also with different prefix):
>
> ack
>
> >
> > dt-bindings: iio: imu:: st,lsm6dsx.yaml: add lsm6dsv16x
> >
> > With subject fixes:
> >
> > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >
> > Best regards,
> > Krzysztof
> >
>
> @Jonathan: do you want me send v2 or are you going to take care of it?
>
> Regards,
> Lorenzo
I tidied the patch title up whilst applying. Applied to the togreg
branch of iio.git and pushed out as testing for all the normal reasons.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-11-12 15:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-06 14:36 [PATCH 0/2] add support for LSM6DSV16X Lorenzo Bianconi
2022-11-06 14:36 ` [PATCH 1/2] iio: imu: st_lsm6dsx: add support to LSM6DSV16X Lorenzo Bianconi
2022-11-06 14:36 ` [PATCH 2/2] dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x device bindings Lorenzo Bianconi
2022-11-07 8:31 ` Krzysztof Kozlowski
2022-11-08 14:25 ` Lorenzo Bianconi
2022-11-12 15:53 ` Jonathan Cameron
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.