Skip to main content
Visitor II
May 17, 2021
Question

Is it possible to extend a linux driver to support software triggers over their existing hardware interrupt ?

  • May 17, 2021
  • 1 reply
  • 966 views

Hi all,

I am currently attempting to extended support to the lsm6ds linux driver(https://github.com/raspberrypi/linux/tree/rpi-5.10.y/drivers/iio/imu/st_lsm6dsx) which supports the ISM330DHCX. It currently supports interrupt based buffering. I'd like to use a software driven trigger to control buffering of this device? Is this possible?

The source seems fairly generic in terms of buffer setup, however when viewing /sys/bus/iio/device/iio\:device1 the trigger folder is not found, but scan_elements and buffer are. If someone could educate me briefly on what I have missed Id be greatly appreciative.

Kind regards.

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 20, 2021

    Hi @TCull.1​ ,

    I suggest you to post this question (and, in general, the ones related to Linux drivers) on the Github page of the Issues (at this link:( this will help ST experts to receive a notification of the requests and to track them.

    Let me please know if you receive any feedback from there.

    -Eleon