* [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC
@ 2021-03-17 6:39 LI Qingwu
2021-03-17 6:39 ` [PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC LI Qingwu
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: LI Qingwu @ 2021-03-17 6:39 UTC (permalink / raw)
To: jic23, lars, pmeerw, robh+dt, andriy.shevchenko, denis.ciocca,
linux-iio, devicetree, linux-kernel
Cc: grygorii.tertychnyi, andrey.zhizhikin, LI Qingwu
Changes in V3:
Reword the commit message, add "Acked-by: Rob Herring"
LI Qingwu (2):
dt-bindings: iio: st,st-sensors add IIS2MDC.
iio:magnetometer: Add Support for ST IIS2MDC
Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 +
drivers/iio/magnetometer/st_magn.h | 1 +
drivers/iio/magnetometer/st_magn_core.c | 1 +
drivers/iio/magnetometer/st_magn_i2c.c | 5 +++++
drivers/iio/magnetometer/st_magn_spi.c | 5 +++++
5 files changed, 13 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC.
2021-03-17 6:39 [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC LI Qingwu
@ 2021-03-17 6:39 ` LI Qingwu
2021-03-17 6:39 ` [PATCH V3 2/2] iio:magnetometer: Add Support for ST IIS2MDC LI Qingwu
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: LI Qingwu @ 2021-03-17 6:39 UTC (permalink / raw)
To: jic23, lars, pmeerw, robh+dt, andriy.shevchenko, denis.ciocca,
linux-iio, devicetree, linux-kernel
Cc: grygorii.tertychnyi, andrey.zhizhikin, LI Qingwu
Add support for ST magnetometer IIS2MDC,
an I2C/SPI interface 3-axis magnetometer sensor.
The patch was tested on the instrument with IIS2MDC via I2C interface.
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
---
Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
index db291a9390b7..7e98f47987dc 100644
--- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
+++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
@@ -66,6 +66,7 @@ properties:
- st,lis3mdl-magn
- st,lis2mdl
- st,lsm9ds1-magn
+ - st,iis2mdc
# Pressure sensors
- st,lps001wp-press
- st,lps25h-press
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH V3 2/2] iio:magnetometer: Add Support for ST IIS2MDC
2021-03-17 6:39 [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC LI Qingwu
2021-03-17 6:39 ` [PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC LI Qingwu
@ 2021-03-17 6:39 ` LI Qingwu
2021-03-20 14:46 ` [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC Jonathan Cameron
2021-03-29 15:14 ` Andy Shevchenko
3 siblings, 0 replies; 6+ messages in thread
From: LI Qingwu @ 2021-03-17 6:39 UTC (permalink / raw)
To: jic23, lars, pmeerw, robh+dt, andriy.shevchenko, denis.ciocca,
linux-iio, devicetree, linux-kernel
Cc: grygorii.tertychnyi, andrey.zhizhikin, LI Qingwu
Add support for ST magnetometer IIS2MDC,
an I2C/SPI interface 3-axis magnetometer.
The patch was tested on the instrument with IIS2MDC via I2C interface.
Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
---
drivers/iio/magnetometer/st_magn.h | 1 +
drivers/iio/magnetometer/st_magn_core.c | 1 +
drivers/iio/magnetometer/st_magn_i2c.c | 5 +++++
drivers/iio/magnetometer/st_magn_spi.c | 5 +++++
4 files changed, 12 insertions(+)
diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h
index 204b285725c8..7ba6a6ba5c58 100644
--- a/drivers/iio/magnetometer/st_magn.h
+++ b/drivers/iio/magnetometer/st_magn.h
@@ -21,6 +21,7 @@
#define LSM303AGR_MAGN_DEV_NAME "lsm303agr_magn"
#define LIS2MDL_MAGN_DEV_NAME "lis2mdl"
#define LSM9DS1_MAGN_DEV_NAME "lsm9ds1_magn"
+#define IIS2MDC_MAGN_DEV_NAME "iis2mdc"
const struct st_sensor_settings *st_magn_get_settings(const char *name);
int st_magn_common_probe(struct iio_dev *indio_dev);
diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c
index 79de721e6015..71faebd07feb 100644
--- a/drivers/iio/magnetometer/st_magn_core.c
+++ b/drivers/iio/magnetometer/st_magn_core.c
@@ -337,6 +337,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
.sensors_supported = {
[0] = LSM303AGR_MAGN_DEV_NAME,
[1] = LIS2MDL_MAGN_DEV_NAME,
+ [2] = IIS2MDC_MAGN_DEV_NAME,
},
.ch = (struct iio_chan_spec *)st_magn_3_16bit_channels,
.odr = {
diff --git a/drivers/iio/magnetometer/st_magn_i2c.c b/drivers/iio/magnetometer/st_magn_i2c.c
index c6bb4ce77594..36f4e7b53b24 100644
--- a/drivers/iio/magnetometer/st_magn_i2c.c
+++ b/drivers/iio/magnetometer/st_magn_i2c.c
@@ -46,6 +46,10 @@ static const struct of_device_id st_magn_of_match[] = {
.compatible = "st,lsm9ds1-magn",
.data = LSM9DS1_MAGN_DEV_NAME,
},
+ {
+ .compatible = "st,iis2mdc",
+ .data = IIS2MDC_MAGN_DEV_NAME,
+ },
{},
};
MODULE_DEVICE_TABLE(of, st_magn_of_match);
@@ -101,6 +105,7 @@ static const struct i2c_device_id st_magn_id_table[] = {
{ LSM303AGR_MAGN_DEV_NAME },
{ LIS2MDL_MAGN_DEV_NAME },
{ LSM9DS1_MAGN_DEV_NAME },
+ { IIS2MDC_MAGN_DEV_NAME },
{},
};
MODULE_DEVICE_TABLE(i2c, st_magn_id_table);
diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c
index 3d08d74c367d..0e2323dfc687 100644
--- a/drivers/iio/magnetometer/st_magn_spi.c
+++ b/drivers/iio/magnetometer/st_magn_spi.c
@@ -41,6 +41,10 @@ static const struct of_device_id st_magn_of_match[] = {
.compatible = "st,lsm9ds1-magn",
.data = LSM9DS1_MAGN_DEV_NAME,
},
+ {
+ .compatible = "st,iis2mdc",
+ .data = IIS2MDC_MAGN_DEV_NAME,
+ },
{}
};
MODULE_DEVICE_TABLE(of, st_magn_of_match);
@@ -92,6 +96,7 @@ static const struct spi_device_id st_magn_id_table[] = {
{ LSM303AGR_MAGN_DEV_NAME },
{ LIS2MDL_MAGN_DEV_NAME },
{ LSM9DS1_MAGN_DEV_NAME },
+ { IIS2MDC_MAGN_DEV_NAME },
{},
};
MODULE_DEVICE_TABLE(spi, st_magn_id_table);
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC
2021-03-17 6:39 [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC LI Qingwu
2021-03-17 6:39 ` [PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC LI Qingwu
2021-03-17 6:39 ` [PATCH V3 2/2] iio:magnetometer: Add Support for ST IIS2MDC LI Qingwu
@ 2021-03-20 14:46 ` Jonathan Cameron
2021-03-29 15:14 ` Andy Shevchenko
3 siblings, 0 replies; 6+ messages in thread
From: Jonathan Cameron @ 2021-03-20 14:46 UTC (permalink / raw)
To: LI Qingwu
Cc: lars, pmeerw, robh+dt, andriy.shevchenko, denis.ciocca,
linux-iio, devicetree, linux-kernel, grygorii.tertychnyi,
andrey.zhizhikin
On Wed, 17 Mar 2021 06:39:00 +0000
LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> wrote:
> Changes in V3:
>
> Reword the commit message, add "Acked-by: Rob Herring"
Applied to the togreg branch of iio.git and initially pushed out as testing
to let autobuilders see if they can find anything we missed.
Thanks,
Jonathan
>
> LI Qingwu (2):
> dt-bindings: iio: st,st-sensors add IIS2MDC.
> iio:magnetometer: Add Support for ST IIS2MDC
>
> Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 +
> drivers/iio/magnetometer/st_magn.h | 1 +
> drivers/iio/magnetometer/st_magn_core.c | 1 +
> drivers/iio/magnetometer/st_magn_i2c.c | 5 +++++
> drivers/iio/magnetometer/st_magn_spi.c | 5 +++++
> 5 files changed, 13 insertions(+)
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC
2021-03-17 6:39 [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC LI Qingwu
` (2 preceding siblings ...)
2021-03-20 14:46 ` [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC Jonathan Cameron
@ 2021-03-29 15:14 ` Andy Shevchenko
2021-03-29 15:17 ` Andy Shevchenko
3 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2021-03-29 15:14 UTC (permalink / raw)
To: LI Qingwu
Cc: jic23, lars, pmeerw, robh+dt, denis.ciocca, linux-iio,
devicetree, linux-kernel, grygorii.tertychnyi, andrey.zhizhikin
On Wed, Mar 17, 2021 at 06:39:00AM +0000, LI Qingwu wrote:
> Changes in V3:
Jonathan, is this applied? I missed it...
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC
2021-03-29 15:14 ` Andy Shevchenko
@ 2021-03-29 15:17 ` Andy Shevchenko
0 siblings, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2021-03-29 15:17 UTC (permalink / raw)
To: Andy Shevchenko
Cc: LI Qingwu, Jonathan Cameron, Lars-Peter Clausen, Peter Meerwald,
Rob Herring, Denis Ciocca, linux-iio, devicetree,
Linux Kernel Mailing List, grygorii.tertychnyi, Andrey Zhizhikin
On Mon, Mar 29, 2021 at 6:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> On Wed, Mar 17, 2021 at 06:39:00AM +0000, LI Qingwu wrote:
> > Changes in V3:
>
> Jonathan, is this applied? I missed it...
I found the reply, sorry for a noise.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-29 15:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 6:39 [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC LI Qingwu
2021-03-17 6:39 ` [PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC LI Qingwu
2021-03-17 6:39 ` [PATCH V3 2/2] iio:magnetometer: Add Support for ST IIS2MDC LI Qingwu
2021-03-20 14:46 ` [PATCH V3 0/2] Add support for ST magnetometer IIS2MDC Jonathan Cameron
2021-03-29 15:14 ` Andy Shevchenko
2021-03-29 15:17 ` Andy Shevchenko
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).