1/*
2 * Copyright (c) 2022-2023 Marcin Niestroj
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include "xiao_ble_common.dtsi"
9#include <zephyr/dt-bindings/i2c/i2c.h>
10#include <zephyr/dt-bindings/gpio/nordic-nrf-gpio.h>
11
12/ {
13	model = "Seeed XIAO BLE Sense";
14	compatible = "seeed,xiao-ble", "seeed,xiao-ble-sense";
15
16	lsm6ds3tr-c-en {
17		compatible = "regulator-fixed-sync", "regulator-fixed";
18		enable-gpios = <&gpio1 8 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
19		regulator-name = "LSM6DS3TR_C_EN";
20		regulator-boot-on;
21		startup-delay-us = <3000>;
22	};
23};
24
25&i2c0 {
26	compatible = "nordic,nrf-twim";
27	/* Cannot be used together with spi0. */
28	status = "okay";
29	pinctrl-0 = <&i2c0_default>;
30	pinctrl-1 = <&i2c0_sleep>;
31	pinctrl-names = "default", "sleep";
32	clock-frequency = <I2C_BITRATE_FAST>;
33
34	lsm6ds3tr_c: lsm6ds3tr-c@6a {
35		compatible = "st,lsm6dsl";
36		reg = <0x6a>;
37		irq-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
38		status = "okay";
39	};
40};
41