Skip to content

Commit

Permalink
boards: arm: sensortile_box_pro: extend with lis2du12
Browse files Browse the repository at this point in the history
Extend sensortile_box_pro with lis2du12 accelerometer.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
  • Loading branch information
avisconti committed Dec 13, 2023
1 parent ed87542 commit a22568a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions boards/arm/sensortile_box_pro/sensortile_box_pro.dts
Expand Up @@ -169,17 +169,27 @@
pinctrl-names = "default";
status = "okay";

cs-gpios = <&gpioi 5 GPIO_ACTIVE_LOW>;
cs-gpios = <&gpioi 5 GPIO_ACTIVE_LOW>, <&gpioi 7 GPIO_ACTIVE_LOW>;

lsm6dsv16x: lsm6dsv16x@0 {
compatible = "st,lsm6dsv16x";
spi-max-frequency = <DT_FREQ_M(10)>; /* 10 MHz */
spi-max-frequency = <DT_FREQ_M(10)>;
reg = <0>;
int1-gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>;
int2-gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;

drdy-pin = <2>;
};

lis2du12: lis2du12@1 {
compatible = "st,lis2du12";
spi-max-frequency = <DT_FREQ_M(10)>;
reg = <1>;
int1-gpios = <&gpiof 2 GPIO_ACTIVE_HIGH>;
int2-gpios = <&gpiof 15 GPIO_ACTIVE_HIGH>;

drdy-pin = <2>;
};
};

&timers4 {
Expand Down

0 comments on commit a22568a

Please sign in to comment.