I am interfacing SPI based LSM6DS3 accelerometer to imx7 based board. I got LSM6DS3 driver from "GitHub - STMicroelectronics/STMems_Linux_Input_drivers ". Added device tree for this (kernel-4.1.15) as below.
compatible = "st,lsm6ds3";
reg = <0>;
spi-max-frequency = <50000>;
interrupt-parent = <&gpio2>;
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
status = "okay";
But still my device is not detected. i am getting error as "LSM6DS3 : Who-Am-I value not valid".
Next when i printed the valued of "wai" , i got 0x0 , which should be 0x69.
Thanks & regards