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	msm261d3526hicpm-c-en {
17		compatible = "regulator-fixed";
18		enable-gpios = <&gpio1 10 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
19		regulator-name = "MSM261D3526HICPM-C-EN";
20	};
21
22	lsm6ds3tr-c-en {
23		compatible = "regulator-fixed-sync", "regulator-fixed";
24		enable-gpios = <&gpio1 8 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
25		regulator-name = "LSM6DS3TR_C_EN";
26		regulator-boot-on;
27		startup-delay-us = <3000>;
28	};
29};
30
31&i2c0 {
32	compatible = "nordic,nrf-twim";
33	/* Cannot be used together with spi0. */
34	status = "okay";
35	pinctrl-0 = <&i2c0_default>;
36	pinctrl-1 = <&i2c0_sleep>;
37	pinctrl-names = "default", "sleep";
38	clock-frequency = <I2C_BITRATE_FAST>;
39
40	lsm6ds3tr_c: lsm6ds3tr-c@6a {
41		compatible = "st,lsm6dsl";
42		reg = <0x6a>;
43		irq-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
44		status = "okay";
45	};
46};
47
48&pdm0 {
49	pinctrl-0 = <&pdm0_default>;
50	pinctrl-1 = <&pdm0_sleep>;
51	pinctrl-names = "default", "sleep";
52	clock-source = "PCLK32M";
53};
54