cancel
Showing results for 
Search instead for 
Did you mean: 

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

microcoder
Associate III

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Federica Bossi
ST Employee

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.

View solution in original post

2 REPLIES 2
Federica Bossi
ST Employee

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.

Thank you!