/* * Copyright (c) 2024, TDK Invensense * * SPDX-License-Identifier: Apache-2.0 */ /* * Get a node identifier for 6-axis IMU sensor. */ / { aliases { 6dof-motion-drdy0 = &icm42670p; }; }; /* * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus. * * Device address 0x68 is assumed. Your device may have a different * address; check your device documentation if unsure. * * Configure 100Hz IMU data reporting */ &arduino_i2c { status = "okay"; icm42670p: icm42670p@68 { compatible = "invensense,icm42670p"; reg = <0x68>; int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */ accel-hz = <100>; gyro-hz = <100>; accel-fs = <16>; gyro-fs = <2000>; }; }; /* * Increase native UART speed to report all IMU data at 100Hz. */ &uart0 { compatible = "nordic,nrf-uarte"; current-speed = <1000000>; };