AnsweredAssumed Answered

LSM6DS3 : Who-Am-I value not valid

Question asked by surya pradhan on Jun 23, 2017
Latest reply on Jun 24, 2017 by David Koudela

Hello,

 

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.

 

        lsm6ds3@0{
                compatible = "st,lsm6ds3";
                reg = <0>;
                spi-cpha;
                spi-cpol;
                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.

 

Any suggestion

 

Thanks & regards

Surya

Outcomes