Skip to content

overlays: Add ISM330DHCX support to i2c-sensor - #7808

Open
mohammedryn wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
mohammedryn:ism330dhcx-i2c-overlay
Open

mohammedryn wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
mohammedryn:ism330dhcx-i2c-overlay

Conversation

@mohammedryn

Copy link
Copy Markdown

Add an ism330dhcx parameter to the i2c-sensor overlay so boards using the STMicroelectronics ISM330DHCX accelerometer and gyroscope can use the existing st_lsm6dsx I2C driver.

Default to I2C address 0x6b and support the alternative address 0x6a through the existing addr parameter.

Testing

  • Boot-tested on a Raspberry Pi 5 with a SmartElex ISM330DHCX
    breakout, Ubuntu 24.04, and kernel 6.8.0-1056-raspi. The overlay
    loaded at boot, the driver bound automatically at 0x6b, and the
    accelerometer and gyroscope both returned X, Y, and Z readings.
  • Verified addr=0x6a in the merged Device Tree. The existing
    BME280 address override produced identical output before and
    after the change.

Add an ism330dhcx parameter to the i2c-sensor overlay so boards
using the STMicroelectronics ISM330DHCX accelerometer and gyroscope
can use the existing st_lsm6dsx I2C driver.

Default to I2C address 0x6b and support the alternative address
0x6a through the existing addr parameter.

Signed-off-by: Mohammed Rayan <mohammedrah1289@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 29, 2026 19:00

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants