1/*
2 * Copyright (c) 2024, TDK Invensense
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/*
8 * Get a node identifier for TDK IMU sensor supporting APEX feature.
9 */
10/ {
11	aliases {
12		tdk-apex-sensor0 = &icm42670p;
13	};
14};
15
16/*
17 * Example configuration of a ICM42670-P device on spi2 compatible with an Arduino SPI bus.
18 */
19&arduino_spi {
20	status = "okay";
21	cs-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
22	icm42670p: icm42670p@0 {
23		compatible = "invensense,icm42670p";
24		reg = <0>;
25		spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
26		int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
27		accel-hz = <50>;
28		gyro-hz = <50>;
29		accel-fs = <16>;
30		gyro-fs = <2000>;
31		apex = "pedometer";
32	};
33};
34