Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions boards/arduino/nano_33_ble/arduino_nano_33_ble-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
blue-pwm-led = &blue_pwm_led;
spi = &spi2;
watchdog0 = &wdt0;
accel0 = &lsm9ds1;
};
};

Expand Down Expand Up @@ -166,6 +167,12 @@ arduino_i2c: &i2c0 {
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";

lsm9ds1: lsm9ds1@6b {
compatible = "st,lsm9ds1";
reg = <0x6b>;
};

};

/* SPI2 is used because SPI1/0 shares conflicts with I2C1/0 */
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/st/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ add_subdirectory_ifdef(CONFIG_LSM6DSO16IS lsm6dso16is)
add_subdirectory_ifdef(CONFIG_LSM6DSV16X lsm6dsv16x)
add_subdirectory_ifdef(CONFIG_LSM9DS0_GYRO lsm9ds0_gyro)
add_subdirectory_ifdef(CONFIG_LSM9DS0_MFD lsm9ds0_mfd)
add_subdirectory_ifdef(CONFIG_LSM9DS1 lsm9ds1)
add_subdirectory_ifdef(CONFIG_QDEC_STM32 qdec_stm32)
add_subdirectory_ifdef(CONFIG_STM32_DIGI_TEMP stm32_digi_temp)
add_subdirectory_ifdef(CONFIG_STM32_TEMP stm32_temp)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/st/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ source "drivers/sensor/st/lsm6dso16is/Kconfig"
source "drivers/sensor/st/lsm6dsv16x/Kconfig"
source "drivers/sensor/st/lsm9ds0_gyro/Kconfig"
source "drivers/sensor/st/lsm9ds0_mfd/Kconfig"
source "drivers/sensor/st/lsm9ds1/Kconfig"
source "drivers/sensor/st/qdec_stm32/Kconfig"
source "drivers/sensor/st/stm32_digi_temp/Kconfig"
source "drivers/sensor/st/stm32_temp/Kconfig"
Expand Down
7 changes: 7 additions & 0 deletions drivers/sensor/st/lsm9ds1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(lsm9ds1.c)

zephyr_library_include_directories(../stmemsc)
19 changes: 19 additions & 0 deletions drivers/sensor/st/lsm9ds1/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2024 Bootlin
# SPDX-License-Identifier: Apache-2.0

menuconfig LSM9DS1
bool "LSM9DS1 I2C accelerometer and gyroscope chip"
default y
depends on DT_HAS_ST_LSM9DS1_ENABLED
select I2C
select HAS_STMEMSC
select USE_STDC_LSM9DS1

if LSM9DS1

config LSM9DS1_ENABLE_TEMP
bool "LSM9DS1 Temperature sensor"
help
Enable/disable temperature

endif #LSM9DS1
Loading