Skip to main content
Associate II
November 7, 2025
Solved

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

  • November 7, 2025
  • 1 reply
  • 114 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

 

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

Federica Bossi
Federica BossiBest answer
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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Associate II
December 24, 2025

Thank you!