1/* 2 * Copyright (c) 2024, TDK Invensense 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Get a node identifier for 6-axis IMU sensor. 9 */ 10/ { 11 aliases { 12 6dof-motion-drdy0 = &icm42670p; 13 }; 14}; 15 16/* Example configuration of a ICM42670-P device on spi2 compatible with an Arduino SPI bus. 17 * 18 * Configure 100Hz IMU data reporting 19 */ 20&arduino_spi { 21 status = "okay"; 22 cs-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */ 23 icm42670p: icm42670p@0 { 24 compatible = "invensense,icm42670p"; 25 reg = <0>; 26 spi-max-frequency = <1000000>; /* conservatively set to 1MHz */ 27 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */ 28 accel-hz = <100>; 29 gyro-hz = <100>; 30 accel-fs = <16>; 31 gyro-fs = <2000>; 32 }; 33}; 34 35/* 36 * Increase native UART speed to report all IMU data at 100Hz. 37 */ 38&uart0 { 39 compatible = "nordic,nrf-uarte"; 40 current-speed = <1000000>; 41}; 42