cancel
Showing results for 
Search instead for 
Did you mean: 

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

microcoder
Associate II

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

 

0 REPLIES 0