cancel
Showing results for 
Search instead for 
Did you mean: 

DTS configuration for LIS2DW12

BCour.1
Associate

Hi,

I am trying to figure out how to determine the reg=<0x??> value for the LIS2DW12. From the example page they have 0x6b but for a different device. I cannot figure out what this value needs to be.

Thanks

&i2c2 {

       status = "ok";

       #address-cells = <0x1>;

       #size-cells = <0x0>;

       lis2dw@6b {

               compatible = "st,lis2dw12";

               reg = <0x6b>;

               interrupt-parent = <&gpio4>;

               interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;

       };

1 ACCEPTED SOLUTION

Accepted Solutions
BCour.1
Associate

i have figured this out and no help needed.

0x19 or 0x18 depending on SA0 pin.

View solution in original post

2 REPLIES 2
BCour.1
Associate

i have figured this out and no help needed.

0x19 or 0x18 depending on SA0 pin.

Thank you @BCour.1​ for coming back and sharing the solution!

That's a good practice.

-Eleon