Skip to main content
Visitor II
October 1, 2021
Solved

DTS configuration for LIS2DW12

  • October 1, 2021
  • 1 reply
  • 1006 views

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>;

       };

    This topic has been closed for replies.
    Best answer by BCour.1

    i have figured this out and no help needed.

    0x19 or 0x18 depending on SA0 pin.

    1 reply

    BCour.1AuthorAnswer
    Visitor II
    October 1, 2021

    i have figured this out and no help needed.

    0x19 or 0x18 depending on SA0 pin.

    ST Employee
    October 4, 2021

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

    That's a good practice.

    -Eleon