From 7bfd88d2729b6013099d06de33065024c80c0a6a Mon Sep 17 00:00:00 2001 From: Matthew MacGregor Date: Thu, 6 Apr 2023 17:11:02 -0400 Subject: [PATCH] boards: arm: Fix XIAO BLE Sense regulator enable gpio pin to use high drive The XIAO BLE Sense uses a voltage regulator to enable the LSM6DS3TR-C IMU on it's internal I2C bus. There is an issue where all I2C messages on this internal bus drop when the `enable-gpio` pin of the voltage regulator (which powers the IMU) is set to standard drive. Adding the Nordic flag to set it to use "high drive" for the gpio fixes this. Signed-off-by: Matthew MacGregor --- boards/arm/xiao_ble/xiao_ble_sense.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/arm/xiao_ble/xiao_ble_sense.dts b/boards/arm/xiao_ble/xiao_ble_sense.dts index 4c5533d46ab..5b9a8260159 100644 --- a/boards/arm/xiao_ble/xiao_ble_sense.dts +++ b/boards/arm/xiao_ble/xiao_ble_sense.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "xiao_ble_common.dtsi" #include +#include / { model = "Seeed XIAO BLE Sense"; @@ -14,7 +15,7 @@ lsm6ds3tr-c-en { compatible = "regulator-fixed-sync", "regulator-fixed"; - enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; + enable-gpios = <&gpio1 8 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>; regulator-name = "LSM6DS3TR_C_EN"; regulator-boot-on; startup-delay-us = <900>;