Re: [PATCH] dt-bindings: iio: imu: mpu6050: Improve i2c-gate disallow list

2024-04-08 Thread Jean-Baptiste Maneyrol
Hello Luca, good catch, thanks for the patch! Acked-by: Jean-Baptiste Maneyrol From: Luca Weiss Sent: Monday, April 8, 2024 18:34 To: ~postmarketos/upstream...@lists.sr.ht <~postmarketos/upstream...@lists.sr.ht>; phone-de...@vger.kernel.org ; Jonathan Cameron ; Lars-Peter Clausen

Re: [PATCH V4] iio:imu:mpu6050: Modify matricies to matrices

2021-03-25 Thread Jean-Baptiste Maneyrol
Hello, thanks for the patch, JB Acked-by: Jean-Baptiste Maneyrol From: Guoqing chi Sent: Monday, March 22, 2021 02:30 To: ji...@kernel.org Cc: linux-kernel@vger.kernel.org ; chiguoq...@yulong.com ; rdun...@infradead.org ; linux-...@vger.kernel.org ; chi96246...@163.com Subject: [PATCH

Re: [PATCH v4 08/13] Documentation: ABI: add specific icm42600 documentation

2020-11-16 Thread Jean-Baptiste Maneyrol
Hello Jonathan, no problem for me, you can move it wherever you see fit. Thank you. JB From: Jonathan Cameron Sent: Saturday, November 14, 2020 16:23 To: Jean-Baptiste Maneyrol Cc: robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org ; da...@davemloft.net ; gre

Re: [PATCH v2 13/18] iio: imu: inv_mpu6050: Simplify with dev_err_probe()

2020-08-28 Thread Jean-Baptiste Maneyrol
Hello, thanks for the patch. Best regards, JB Reviewed-by: Jean-Baptiste Maneyrol From: linux-iio-ow...@vger.kernel.org on behalf of Krzysztof Kozlowski Sent: Thursday, August 27, 2020 21:26 To: Jonathan Cameron; Hartmut Knaack; Lars-Peter Clausen

Re: [PATCH] iio: imu: inv_mpu6050: check for temp_fifo_enable

2020-08-13 Thread Jean-Baptiste Maneyrol
; Jean-Baptiste Maneyrol ; Michał Mirosław ; Lee Jones ; linux-iio ; Linux Kernel Mailing List Subject: Re: [PATCH] iio: imu: inv_mpu6050: check for temp_fifo_enable    CAUTION: This email originated from outside of the organization. Please make sure the sender is who they say they are and do

[PATCH v4 09/13] iio: imu: inv_icm42600: add device interrupt

2020-06-22 Thread Jean-Baptiste Maneyrol
Add INT1 interrupt support. Support interrupt edge and level, active high or low. Push-pull or open-drain configurations. Interrupt will be used to read data from the FIFO. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 2 +- .../iio/imu

[PATCH v4 04/13] iio: imu: inv_icm42600: add gyroscope IIO device

2020-06-22 Thread Jean-Baptiste Maneyrol
Add IIO device for gyroscope sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Gyroscope in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 6 + .../iio/imu/inv_icm42600/inv_icm42600_core.c

[PATCH v4 05/13] iio: imu: inv_icm42600: add accelerometer IIO device

2020-06-22 Thread Jean-Baptiste Maneyrol
Add IIO device for accelerometer sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Accelerometer in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 + .../iio/imu/inv_icm42600

[PATCH v4 13/13] MAINTAINERS: add entry for inv_icm42600 6-axis imu sensor

2020-06-22 Thread Jean-Baptiste Maneyrol
Add MAINTAINERS entry for InvenSense ICM-426xx IMU device. Signed-off-by: Jean-Baptiste Maneyrol --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 510fa7f7c756..a65771cfc506 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8979,6 +8979,14

[PATCH v4 08/13] Documentation: ABI: add specific icm42600 documentation

2020-06-22 Thread Jean-Baptiste Maneyrol
Hardware offset available as calibscale sysfs attributes are real physical values exprimed in SI units. calibscale_available sysfs attributes represents the range of acceptable values. Signed-off-by: Jean-Baptiste Maneyrol --- .../ABI/testing/sysfs-bus-iio-icm42600| 20

[PATCH v4 06/13] iio: imu: inv_icm42600: add temperature sensor support

2020-06-22 Thread Jean-Baptiste Maneyrol
Add temperature channel in gyroscope and accelerometer devices. Temperature is available in full 16 bits resolution when reading register and in low 8 bits resolution in the FIFO. Return full precision raw temperature with corresponding scale and offset. Signed-off-by: Jean-Baptiste Maneyrol

[PATCH v4 11/13] iio: imu: inv_icm42600: add accurate timestamping

2020-06-22 Thread Jean-Baptiste Maneyrol
IIO device specific timestamp structures in device private allocation. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Makefile | 1 + drivers/iio/imu/inv_icm42600/inv_icm42600.h | 5 + .../iio/imu/inv_icm42600/inv_icm42600_accel.c | 40 +++- .../imu

[PATCH v4 10/13] iio: imu: inv_icm42600: add buffer support in iio devices

2020-06-22 Thread Jean-Baptiste Maneyrol
Add all FIFO parsing and reading functions. Add accel and gyro kfifo buffer and FIFO data parsing. Use device interrupt for reading data FIFO and launching accel and gyro parsing. Support hwfifo watermark by multiplexing gyro and accel settings. Support hwfifo flush. Signed-off-by: Jean-Baptiste

[PATCH v4 01/13] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-06-22 Thread Jean-Baptiste Maneyrol
/I3C/SPI, and provides intelligent motion features like pedometer, tilt detection, and tap detection. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 372 ++ .../iio/imu/inv_icm42600/inv_icm42600_core.c | 634 ++ 2 files changed

[PATCH v4 12/13] dt-bindings: iio: imu: Add inv_icm42600 documentation

2020-06-22 Thread Jean-Baptiste Maneyrol
Document the ICM-426xxx devices devicetree bindings. Signed-off-by: Jean-Baptiste Maneyrol --- .../bindings/iio/imu/invensense,icm42600.yaml | 90 +++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml diff

[PATCH v4 07/13] iio: imu: add Kconfig and Makefile for inv_icm42600 driver

2020-06-22 Thread Jean-Baptiste Maneyrol
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/Kconfig | 1 + drivers/iio/imu/Makefile | 1 + drivers/iio/imu/inv_icm42600/Kconfig | 28 +++ drivers/iio/imu

[PATCH v4 03/13] iio: imu: inv_icm42600: add SPI driver for inv_icm42600 driver

2020-06-22 Thread Jean-Baptiste Maneyrol
Add SPI driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_spi.c | 99 +++ 1 file changed, 99 insertions(+) create mode 100644 drivers/iio

[PATCH v4 02/13] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-06-22 Thread Jean-Baptiste Maneyrol
Add I2C driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 100 ++ 1 file changed, 100 insertions(+) create mode 100644 drivers/iio

[PATCH v4 00/13] iio: imu: new inv_icm42600 driver

2020-06-22 Thread Jean-Baptiste Maneyrol
and launch parsing of accelerometer and gyroscope data. A complex timestamping mechanism is added to handle correctly FIFO watermark and dynamic changes of settings. Jean-Baptiste Maneyrol (13): iio: imu: inv_icm42600: add core of new inv_icm42600 driver iio: imu: inv_icm42600: add I2C driver

Re: [PATCH v3 06/13] iio: imu: inv_icm42600: add temperature sensor support

2020-06-22 Thread Jean-Baptiste Maneyrol
Hi Jonathan, no problem, I can rework temperature to have the same raw output for both cases (with just decreased resolution for the FIFO case). v4 series is coming soon with the fix. Thanks, JB From: Jonathan Cameron Sent: Saturday, June 20, 2020 17:57 To: Jean-Baptiste Maneyrol Cc: Lars

Re: [PATCH v3 06/13] iio: imu: inv_icm42600: add temperature sensor support

2020-06-14 Thread Jean-Baptiste Maneyrol
for the review, JB From: Lars-Peter Clausen Sent: Sunday, June 14, 2020 17:10 To: Jean-Baptiste Maneyrol ; ji...@kernel.org ; robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org ; da...@davemloft.net ; gre...@linuxfoundation.org Cc: linux-...@vger.kernel.org ; devicet

[PATCH v3 10/13] iio: imu: inv_icm42600: add buffer support in iio devices

2020-06-08 Thread Jean-Baptiste Maneyrol
Add all FIFO parsing and reading functions. Add accel and gyro kfifo buffer and FIFO data parsing. Use device interrupt for reading data FIFO and launching accel and gyro parsing. Support hwfifo watermark by multiplexing gyro and accel settings. Support hwfifo flush. Signed-off-by: Jean-Baptiste

[PATCH v3 02/13] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
Add I2C driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 100 ++ 1 file changed, 100 insertions(+) create mode 100644 drivers/iio

[PATCH v3 12/13] dt-bindings: iio: imu: Add inv_icm42600 documentation

2020-06-08 Thread Jean-Baptiste Maneyrol
Document the ICM-426xxx devices devicetree bindings. Signed-off-by: Jean-Baptiste Maneyrol --- .../bindings/iio/imu/invensense,icm42600.yaml | 90 +++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml diff

[PATCH v3 04/13] iio: imu: inv_icm42600: add gyroscope IIO device

2020-06-08 Thread Jean-Baptiste Maneyrol
Add IIO device for gyroscope sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Gyroscope in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 6 + .../iio/imu/inv_icm42600/inv_icm42600_core.c

[PATCH v3 03/13] iio: imu: inv_icm42600: add SPI driver for inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
Add SPI driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_spi.c | 99 +++ 1 file changed, 99 insertions(+) create mode 100644 drivers/iio

[PATCH v3 00/13] iio: imu: new inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
. A complex timestamping mechanism is added to handle correctly FIFO watermark and dynamic changes of settings. Jean-Baptiste Maneyrol (13): iio: imu: inv_icm42600: add core of new inv_icm42600 driver iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver iio: imu: inv_icm42600: add SPI

[PATCH v3 09/13] iio: imu: inv_icm42600: add device interrupt

2020-06-08 Thread Jean-Baptiste Maneyrol
Add INT1 interrupt support. Support interrupt edge and level, active high or low. Push-pull or open-drain configurations. Interrupt will be used to read data from the FIFO. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 2 +- .../iio/imu

[PATCH v3 08/13] Documentation: ABI: add specific icm42600 documentation

2020-06-08 Thread Jean-Baptiste Maneyrol
Hardware offset available as calibscale sysfs attributes are real physical values exprimed in SI units. calibscale_available sysfs attributes represents the range of acceptable values. Signed-off-by: Jean-Baptiste Maneyrol --- .../ABI/testing/sysfs-bus-iio-icm42600| 20

[PATCH v3 05/13] iio: imu: inv_icm42600: add accelerometer IIO device

2020-06-08 Thread Jean-Baptiste Maneyrol
Add IIO device for accelerometer sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Accelerometer in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 + .../iio/imu/inv_icm42600

[PATCH v3 06/13] iio: imu: inv_icm42600: add temperature sensor support

2020-06-08 Thread Jean-Baptiste Maneyrol
Add temperature channel in gyroscope and accelerometer devices. Temperature is available in full 16 bits resolution as a processed channel. Scale and offset attributes are also provided for the low 8 bits resolution raw temperature found in the FIFO. Signed-off-by: Jean-Baptiste Maneyrol

[PATCH v3 13/13] MAINTAINERS: add entry for inv_icm42600 6-axis imu sensor

2020-06-08 Thread Jean-Baptiste Maneyrol
Add MAINTAINERS entry for InvenSense ICM-426xx IMU device. Signed-off-by: Jean-Baptiste Maneyrol --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 60ed2963efaa..cd8b5fece94d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8861,6 +8861,14

[PATCH v3 07/13] iio: imu: add Kconfig and Makefile for inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/Kconfig | 1 + drivers/iio/imu/Makefile | 1 + drivers/iio/imu/inv_icm42600/Kconfig | 28 +++ drivers/iio/imu

[PATCH v3 11/13] iio: imu: inv_icm42600: add accurate timestamping

2020-06-08 Thread Jean-Baptiste Maneyrol
IIO device specific timestamp structures in device private allocation. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Makefile | 1 + drivers/iio/imu/inv_icm42600/inv_icm42600.h | 5 + .../iio/imu/inv_icm42600/inv_icm42600_accel.c | 40 +++- .../imu

[PATCH v3 01/13] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
/I3C/SPI, and provides intelligent motion features like pedometer, tilt detection, and tap detection. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 372 ++ .../iio/imu/inv_icm42600/inv_icm42600_core.c | 634 ++ 2 files changed

Re: --[[SPOOF or PHISHING]]--Re: [PATCH v2 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-06-03 Thread Jean-Baptiste Maneyrol
data in other modules, but __packed attribute should not change anything here. Thanks, JB From: linux-iio-ow...@vger.kernel.org on behalf of Jean-Baptiste Maneyrol Sent: Tuesday, June 2, 2020 14:57 To: Jonathan Cameron Cc: robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org

Re: [PATCH v2 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-06-02 Thread Jean-Baptiste Maneyrol
we are always loosing events by turning sensor off when we want to change the value. Is there any limitation to work this way, or should it be possible to implement this feature in the future ? Thanks, JB From: Jonathan Cameron Sent: Sunday, May 31, 2020 14:56 To: Jean-Baptiste Maneyrol Cc:

Re: [PATCH v2 04/12] iio: imu: inv_icm42600: add gyroscope IIO device

2020-06-02 Thread Jean-Baptiste Maneyrol
be to adapt the value depending on the scale setting. So that it will correspond to raw data. But this also invovles complex computation. Tell me what you prefer. Thanks, JB From: Jonathan Cameron Sent: Sunday, May 31, 2020 13:54 To: Jean-Baptiste Maneyrol Cc: robh...@kernel.org ; r...@kernel.org

Re: [PATCH v2 01/12] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-06-02 Thread Jean-Baptiste Maneyrol
() that would just do regulator_disable, or copy/paste the sleeping value in all resume handlers. Tell me what you prefer. Thanks, JB From: linux-iio-ow...@vger.kernel.org on behalf of Jonathan Cameron Sent: Sunday, May 31, 2020 13:34 To: Jean-Baptiste Maneyrol Cc: robh...@kernel.org ; r

[PATCH v2 11/12] dt-bindings: iio: imu: Add inv_icm42600 documentation

2020-05-27 Thread Jean-Baptiste Maneyrol
Document the ICM-426xxx devices devicetree bindings. Signed-off-by: Jean-Baptiste Maneyrol --- .../bindings/iio/imu/invensense,icm42600.yaml | 86 +++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml diff

[PATCH v2 12/12] MAINTAINERS: add entry for inv_icm42600 6-axis imu sensor

2020-05-27 Thread Jean-Baptiste Maneyrol
Add MAINTAINERS entry for InvenSense ICM-426xx IMU device. Signed-off-by: Jean-Baptiste Maneyrol --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 60ed2963efaa..cd8b5fece94d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8861,6 +8861,14

[PATCH v2 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-05-27 Thread Jean-Baptiste Maneyrol
Add all FIFO parsing and reading functions. Add accel and gyro kfifo buffer and FIFO data parsing. Use device interrupt for reading data FIFO and launching accel and gyro parsing. Support hwfifo watermark by multiplexing gyro and accel settings. Support hwfifo flush. Signed-off-by: Jean-Baptiste

[PATCH v2 03/12] iio: imu: inv_icm42600: add SPI driver for inv_icm42600 driver

2020-05-27 Thread Jean-Baptiste Maneyrol
Add SPI driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_spi.c | 99 +++ 1 file changed, 99 insertions(+) create mode 100644 drivers/iio

[PATCH v2 01/12] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-05-27 Thread Jean-Baptiste Maneyrol
/I3C/SPI, and provides intelligent motion features like pedometer, tilt detection, and tap detection. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 372 ++ .../iio/imu/inv_icm42600/inv_icm42600_core.c | 635 ++ 2 files changed

[PATCH v2 08/12] iio: imu: inv_icm42600: add device interrupt

2020-05-27 Thread Jean-Baptiste Maneyrol
Add INT1 interrupt support. Support interrupt edge and level, active high or low. Push-pull or open-drain configurations. Interrupt will be used to read data from the FIFO. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 2 +- .../iio/imu/inv_icm42600

[PATCH v2 07/12] iio: imu: add Kconfig and Makefile for inv_icm42600 driver

2020-05-27 Thread Jean-Baptiste Maneyrol
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/Kconfig | 1 + drivers/iio/imu/Makefile | 1 + drivers/iio/imu/inv_icm42600/Kconfig | 28 +++ drivers/iio/imu

[PATCH v2 04/12] iio: imu: inv_icm42600: add gyroscope IIO device

2020-05-27 Thread Jean-Baptiste Maneyrol
Add IIO device for gyroscope sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Gyroscope in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 6 + .../iio/imu/inv_icm42600/inv_icm42600_core.c

[PATCH v2 00/12] iio: imu: new inv_icm42600 driver

2020-05-27 Thread Jean-Baptiste Maneyrol
turn each sensor on/off without impacting the other. The device interrupt is used to read the FIFO and launch parsing of accelerometer and gyroscope data. A complex timestamping mechanism is added to handle correctly FIFO watermark and dynamic changes of settings. Jean-Baptiste Maneyrol (12): iio

[PATCH v2 10/12] iio: imu: inv_icm42600: add accurate timestamping

2020-05-27 Thread Jean-Baptiste Maneyrol
IIO device specific timestamp structures in device private allocation. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Makefile | 1 + drivers/iio/imu/inv_icm42600/inv_icm42600.h | 5 + .../iio/imu/inv_icm42600/inv_icm42600_accel.c | 40 +++- .../imu

[PATCH v2 02/12] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-05-27 Thread Jean-Baptiste Maneyrol
Add I2C driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 100 ++ 1 file changed, 100 insertions(+) create mode 100644 drivers/iio

[PATCH v2 05/12] iio: imu: inv_icm42600: add accelerometer IIO device

2020-05-27 Thread Jean-Baptiste Maneyrol
Add IIO device for accelerometer sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Accelerometer in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 + .../iio/imu/inv_icm42600

[PATCH v2 06/12] iio: imu: inv_icm42600: add temperature sensor support

2020-05-27 Thread Jean-Baptiste Maneyrol
Add temperature channel in gyroscope and accelerometer devices. Temperature is available in full 16 bits resolution as a processed channel. Scale and offset attributes are also provided for the low 8 bits resolution raw temperature found in the FIFO. Signed-off-by: Jean-Baptiste Maneyrol

Re: [PATCH 10/12] iio: imu: inv_icm42600: add accurate timestamping

2020-05-18 Thread Jean-Baptiste Maneyrol
formatting. Thanks, JB From: Jonathan Cameron Sent: Friday, May 8, 2020 16:42 To: Jean-Baptiste Maneyrol Cc: ji...@kernel.org ; robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org ; da...@davemloft.net ; gre...@linuxfoundation.org ; linux-...@vger.kernel.org ; devicet

Re: [PATCH 08/12] iio: imu: inv_icm42600: add device interrupt trigger

2020-05-18 Thread Jean-Baptiste Maneyrol
Hi Jonathan, you're right, making a trigger is not very useful. I will move this code to the buffer file or rename the file, and replace the triggered buffer setup in iio devices. Thanks, JB From: Jonathan Cameron Sent: Friday, May 8, 2020 16:22 To: Jean-Baptiste Maneyrol Cc: ji

Re: [PATCH 04/12] iio: imu: inv_icm42600: add gyroscope IIO device

2020-05-18 Thread Jean-Baptiste Maneyrol
aligned. And we definitely can read calibration offset registers while running, the lock is indeed not needed. Thanks, JB From: Jonathan Cameron Sent: Friday, May 8, 2020 16:01 To: Jean-Baptiste Maneyrol Cc: ji...@kernel.org ; robh...@kernel.org ; r...@kernel.org ; mchehab+hua

Re: [PATCH 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-05-18 Thread Jean-Baptiste Maneyrol
nd. So is it OK to keep it as is? Thanks, JB From: Jonathan Cameron Sent: Friday, May 8, 2020 16:19 To: Jean-Baptiste Maneyrol Cc: ji...@kernel.org ; robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org ; da...@davemloft.net ; gre...@linuxfoundation.org ; linux-...@vg

Re: [PATCH 02/12] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-05-18 Thread Jean-Baptiste Maneyrol
indeed, good idea. Thanks, JB From: Jonathan Cameron Sent: Friday, May 8, 2020 15:44 To: Jean-Baptiste Maneyrol Cc: ji...@kernel.org ; robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org ; da...@davemloft.net ; gre...@linuxfoundation.org ; linux-...@vger.kernel.org ; devicet

Re: [PATCH 01/12] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-05-18 Thread Jean-Baptiste Maneyrol
functionnality, as much as gyro/accel turn on/off. Thanks. JB From: linux-iio-ow...@vger.kernel.org on behalf of Jonathan Cameron Sent: Friday, May 8, 2020 15:28 To: Jean-Baptiste Maneyrol Cc: ji...@kernel.org ; robh...@kernel.org ; r...@kernel.org ; mchehab+hua...@kernel.org ; da

[PATCH 03/12] iio: imu: inv_icm42600: add SPI driver for inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Add SPI driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_spi.c | 117 ++ 1 file changed, 117 insertions(+) create mode 100644 drivers/iio

[PATCH 05/12] iio: imu: inv_icm42600: add accelerometer IIO device

2020-05-07 Thread Jean-Baptiste Maneyrol
Add IIO device for accelerometer sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Accelerometer in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 + .../iio/imu/inv_icm42600

[PATCH 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-05-07 Thread Jean-Baptiste Maneyrol
Use triggered buffer by parsing FIFO data read in device trigger. Support hwfifo watermark by multiplexing gyro and accel settings. Support hwfifo flush. Simply use interrupt timestamp first. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Kconfig | 3

[PATCH 08/12] iio: imu: inv_icm42600: add device interrupt trigger

2020-05-07 Thread Jean-Baptiste Maneyrol
Add INT1 interrupt support and use it as an iio trigger. Support interrupt edge and level, active high or low. Push-pull configuration only. Trigger enables FIFO and will be useful with buffer support. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Kconfig

[PATCH 02/12] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Add I2C driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 117 ++ 1 file changed, 117 insertions(+) create mode 100644 drivers/iio

[PATCH 00/12] iio: imu: new inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
the other. The IIO devices are using triggered buffer as sub-interrupts of the device iio trigger using the interrupt pin. A complex timestamping mechanism is added to handle correctly FIFO watermark and dynamic changes. Jean-Baptiste Maneyrol (12): iio: imu: inv_icm42600: add core of new

[PATCH 06/12] iio: imu: inv_icm42600: add temperature sensor support

2020-05-07 Thread Jean-Baptiste Maneyrol
Add temperature channel in gyroscope and accelerometer devices. Temperature is available in full 16 bits resolution as a processed channel. Scale and offset attributes are also provided for the low 8 bits resolution raw temperature found in the FIFO. Signed-off-by: Jean-Baptiste Maneyrol

[PATCH 11/12] dt-bindings: iio: imu: Add inv_icm42600 documentation

2020-05-07 Thread Jean-Baptiste Maneyrol
Document the ICM-426xxx devices devicetree bindings. Signed-off-by: Jean-Baptiste Maneyrol --- .../bindings/iio/imu/invensense,icm42600.yaml | 90 +++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml diff

[PATCH 10/12] iio: imu: inv_icm42600: add accurate timestamping

2020-05-07 Thread Jean-Baptiste Maneyrol
and corresponding device elapsed time computed by parsing FIFO data. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Makefile | 1 + drivers/iio/imu/inv_icm42600/inv_icm42600.h | 10 +- .../iio/imu/inv_icm42600/inv_icm42600_accel.c | 32 ++- .../imu/inv_icm42600

[PATCH 01/12] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
/I3C/SPI, and provides intelligent motion features like pedometer, tilt detection, and tap detection. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 372 +++ .../iio/imu/inv_icm42600/inv_icm42600_core.c | 618 ++ 2 files changed

[PATCH 12/12] MAINTAINERS: add entry for inv_icm42600 6-axis imu sensor

2020-05-07 Thread Jean-Baptiste Maneyrol
Add MAINTAINERS entry for InvenSense ICM-426xx IMU device. Signed-off-by: Jean-Baptiste Maneyrol --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10eb348c801c..1714390e2721 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8864,6 +8864,14

[PATCH 07/12] iio: imu: add Kconfig and Makefile for inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/Kconfig | 1 + drivers/iio/imu/Makefile | 1 + drivers/iio/imu/inv_icm42600/Kconfig | 28 +++ drivers/iio/imu

[PATCH 04/12] iio: imu: inv_icm42600: add gyroscope IIO device

2020-05-07 Thread Jean-Baptiste Maneyrol
Add IIO device for gyroscope sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Gyroscope in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 + .../iio/imu/inv_icm42600/inv_icm42600_core.c

Re: ICM20602 buffer issues with the inv_mpu6050 driver

2019-05-23 Thread Jean-Baptiste Maneyrol
data when it is disabled. But I don't like this kind of workaround because that goes against iio buffer design principle. Hope this help you. Best regards, Jean-Baptiste Maneyrol From: Andreea Lutac Sent: Thursday, May 23, 2019 11:44 To: Jean-Baptiste Maneyrol Cc: stev...@skydio.com; ji

Re: ICM20602 buffer issues with the inv_mpu6050 driver

2019-05-22 Thread Jean-Baptiste Maneyrol
be helpful. Every data is 2 bytes long and in the following order: accel_x, accel_y, accel_z, temp, gyro_x, gyro_y, gyro_z Best regards, JB Maneyrol From: Andreea Lutac Sent: Tuesday, May 21, 2019 12:40 Cc: Jean-Baptiste Maneyrol; stev...@skydio.com; ji...@kernel.org; knaac...@gmx.de; l...@metafoo.de

Re: [PATCH v2] iio: imu: mpu6050: Fix FIFO layout for ICM20602

2019-04-08 Thread Jean-Baptiste Maneyrol
Maneyrol From: Jonathan Cameron Sent: Sunday, April 7, 2019 13:45 To: stev...@skydio.com Cc: Jean-Baptiste Maneyrol; Hartmut Knaack; Lars-Peter Clausen; Peter Meerwald-Stadler; Martin Kelly; Jonathan Marek; Brian Masney; Randolph Maaßen; Douglas Fischer; linux-...@vger.kernel.org; linux-kernel

Re: [PATCH] iio: imu: mpu6050: Fix FIFO layout for ICM20602

2019-04-01 Thread Jean-Baptiste Maneyrol
accelerometer is enabled (should be 8 instead of 6). If this is confirmed, you need to modify your code to handle this case correctly. Best regards, Jean-Baptiste Maneyrol From: Jonathan Cameron Sent: Saturday, March 30, 2019 19:29 To: stev...@skydio.com Cc: gai...@gaireg.de; Hartmut Knaack

Re: [PATCH 2/3] iio: imu: mpu6050: add support for regulator framework

2018-07-11 Thread Jean-Baptiste Maneyrol
@vger.kernel.org; linux-arm-...@vger.kernel.org; linux-...@vger.kernel.org Cc: jonat...@marek.ca; Jean-Baptiste Maneyrol; knaac...@gmx.de; l...@metafoo.de; pme...@pmeerw.net; mke...@xevo.com; fischerdougl...@gmail.com; bs...@kde.org; ctatlo...@gmail.com; masn...@onstation.org Subject: [PATCH 2/3] iio

Re: [PATCH 2/3] iio: imu: mpu6050: add support for regulator framework

2018-07-11 Thread Jean-Baptiste Maneyrol
@vger.kernel.org; linux-arm-...@vger.kernel.org; linux-...@vger.kernel.org Cc: jonat...@marek.ca; Jean-Baptiste Maneyrol; knaac...@gmx.de; l...@metafoo.de; pme...@pmeerw.net; mke...@xevo.com; fischerdougl...@gmail.com; bs...@kde.org; ctatlo...@gmail.com; masn...@onstation.org Subject: [PATCH 2/3] iio