Skip to main content
Explorer
November 7, 2025
Solved

Linux device tree and IIO drivers for LIS2DW12 and IIS2DLPC, software compatiblity?

  • November 7, 2025
  • 1 reply
  • 111 views

Greetings,

I am bring up a new HW design with the IIS2DLPC accelerometer integrated into the design.

I am trying to bring up a Linux IIO device driver for this device, and the kernel does not currently have 

direct support for the IIS2DLPC, however it does support the LIS2DW12, which from looking at the

datasheet for both, they appear to be SW compatible.

Can I just code the device tree node to specify the LIS2DW12?

accelerometer@18 {

compatible = "st,lis2dw12";
reg = <0x18>;
status = "okay";
st,drdy-int-pin = <1>;
interrupt-parent = <&sysfpga>;
interrupts = <SYSFPGA_INT_ACCELEROMETER>;
interrupt-names = "ACCELEROMETER-INT1";
};

Thanks,

Ken

 

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @microcoder ,

    Yes, IIS2DLPC and LIS2DW12 are similar.

    You can start with the LIS2DW12 driver as a base but should thoroughly test and be ready to adapt the driver. For full support, developing a dedicated IIS2DLPC driver is recommended.

    1 reply

    Technical Moderator
    December 24, 2025

    Hi @microcoder ,

    Yes, IIS2DLPC and LIS2DW12 are similar.

    You can start with the LIS2DW12 driver as a base but should thoroughly test and be ready to adapt the driver. For full support, developing a dedicated IIS2DLPC driver is recommended.

    Explorer
    December 24, 2025

    Thank you!