Commit 2eb5513f authored by Javad Rahimipetroudi's avatar Javad Rahimipetroudi Committed by Alberto Escolar
Browse files

board: arm: stm32wb5mm_dk: add ism330dhcx sensor



This patch add device tree node for ism330dhcx
3D accelerometer and 3D gyroscope sensor.

Signed-off-by: default avatarJavad Rahimipetroudi <javad.rahimipetroudi@mind.be>
parent 57509b8e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
#include <st/wb/stm32wb55vgyx-pinctrl.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/led/led.h>
#include <zephyr/dt-bindings/sensor/ism330dhcx.h>

/ {
	model = "STMicroelectronics STM32WB5MM Discovery Development Kit";
@@ -56,6 +57,7 @@
		led-strip = &rgb_led_strip;
		sw0 = &button0;
		sw1 = &button1;
		accel0 = &ism330dhcx;
	};
};

@@ -185,6 +187,14 @@ zephyr_udc0: &usb {
		reg = <0x29>;
		xshut-gpios = <&gpioc 6 GPIO_ACTIVE_LOW>;
	};

	ism330dhcx: ism330dhcx@6b {
		compatible = "st,ism330dhcx";
		reg = <0x6b>;
		drdy-gpios = <&gpiod 2 GPIO_ACTIVE_HIGH>;
		accel-odr= <ISM330DHCX_DT_ODR_52Hz>;
		gyro-odr= <ISM330DHCX_DT_ODR_26H>;
	};
};

&vref {