mbox series

[v3,0/3] ARM: omap: omap4-embt2ws: Add IMU on control unit

Message ID 20230927173245.2151083-1-andreas@kemnade.info
Headers show
Series ARM: omap: omap4-embt2ws: Add IMU on control unit | expand

Message

Andreas Kemnade Sept. 27, 2023, 5:32 p.m. UTC
Contrary to the IMU at the head, a bit needs to be set to
make probe of the magnetometer successful.

Changes in V3:
- correct another - vs _ issue in device tree
- more standard kernel version description

Changes in V2:
- add types in binding doc
- more description / comments in binding doc
- limit register change to imu9150
- correct node name in device tree (- vs _)

Andreas Kemnade (3):
  dt-bindings: iio: imu: mpu6050: Add level shifter
  iio: imu: mpu6050: add level shifter flag
  ARM: dts: omap: omap4-embt2ws: Add IMU at control unit

 .../bindings/iio/imu/invensense,mpu6050.yaml    |  5 +++++
 .../boot/dts/ti/omap/omap4-epson-embt2ws.dts    | 17 ++++++++++++++++-
 drivers/iio/imu/inv_mpu6050/inv_mpu_aux.c       | 13 +++++++++++++
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c      |  3 +++
 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h       |  1 +
 5 files changed, 38 insertions(+), 1 deletion(-)

Comments

Rob Herring Sept. 28, 2023, 6:34 p.m. UTC | #1
On Wed, 27 Sep 2023 19:32:43 +0200, Andreas Kemnade wrote:
> Add a level shifter flag as found in ancient platform data struct:
> level_shifter: 0: VLogic, 1: VDD
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> ---
>  .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml      | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
Tony Lindgren Oct. 7, 2023, 6:57 a.m. UTC | #2
* Andreas Kemnade <andreas@kemnade.info> [230927 17:32]:
> Add also the level-shifter flag to avoid probe failure in magnetometer
> probe.

Applying this patch into omap-for-v6.7/dt thanks.

Regards,

Tony