2025-11-07 7:54 AM
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
Solved! Go to Solution.
2025-12-24 1:43 AM
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.
2025-12-24 1:43 AM
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.
2025-12-24 7:51 AM
Thank you!