1/* 2 * Copyright (c) 2020 TDK Invensense 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&pinctrl { 8 spi0_default_alt: spi0_default_alt { 9 group1 { 10 psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, 11 <NRF_PSEL(SPIM_MOSI, 0, 26)>, 12 <NRF_PSEL(SPIM_MISO, 0, 23)>; 13 }; 14 }; 15 16 spi0_sleep_alt: spi0_sleep_alt { 17 group1 { 18 psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, 19 <NRF_PSEL(SPIM_MOSI, 0, 26)>, 20 <NRF_PSEL(SPIM_MISO, 0, 23)>; 21 low-power-enable; 22 }; 23 }; 24}; 25 26&spi0 { 27 compatible = "nordic,nrf-spi"; 28 status = "okay"; 29 pinctrl-0 = <&spi0_default_alt>; 30 pinctrl-1 = <&spi0_sleep_alt>; 31 pinctrl-names = "default", "sleep"; 32 cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; 33 icm42605@0 { 34 compatible = "invensense,icm42605"; 35 spi-max-frequency = <24000000>; 36 reg = <0>; 37 int-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 38 }; 39}; 40