1/* 2 * Copyright (c) 2022 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include "tdk_robokit1-pinctrl.dtsi" 8 9/ { 10 aliases { 11 led0 = &led_0; 12 magn0 = &akm09918c; 13 accel0 = &icm42688; 14 die-temp0 = &icm42688; 15 ambient-temp0 = &temp_sensor; 16 }; 17 18 chosen { 19 zephyr,console = &uart2; 20 zephyr,shell-uart = &uart2; 21 zephyr,sram = &sram0; 22 zephyr,flash = &flash0; 23 zephyr,code-partition = &slot0_partition; 24 }; 25 26 leds { 27 compatible = "gpio-leds"; 28 led_0: led_0 { 29 gpios = <&pioa 11 GPIO_ACTIVE_HIGH>; 30 label = "User LED"; 31 }; 32 led_1: led_1 { 33 gpios = <&pioa 12 GPIO_ACTIVE_HIGH>; 34 label = "User LED"; 35 }; 36 led_2: led_2 { 37 gpios = <&pioa 13 GPIO_ACTIVE_HIGH>; 38 label = "User LED"; 39 }; 40 led_3: led_3 { 41 gpios = <&pioa 14 GPIO_ACTIVE_HIGH>; 42 label = "User LED"; 43 }; 44 }; 45 46 temp_sensor: ambient_temp_sensor { 47 compatible = "epcos,b57861s0103a039"; 48 io-channels = <&spi_adc 0>; 49 pullup-uv = <3300000>; 50 pullup-ohm = <0>; 51 pulldown-ohm = <10000>; 52 connected-positive; 53 }; 54}; 55 56&cpu0 { 57 clock-frequency = <300000000>; 58}; 59 60&afec0 { 61 pinctrl-0 = <&afec0_default>; 62 pinctrl-names = "default"; 63 status = "okay"; 64}; 65 66&dacc { 67 status = "okay"; 68}; 69 70&twihs0 { 71 pinctrl-0 = <&twihs0_default>; 72 pinctrl-names = "default"; 73 status = "okay"; 74}; 75 76&twihs1 { 77 pinctrl-0 = <&twihs1_default>; 78 pinctrl-names = "default"; 79 status = "okay"; 80}; 81 82&twihs2 { 83 pinctrl-0 = <&twihs2_default>; 84 pinctrl-names = "default"; 85 status = "okay"; 86 akm09918c: akm09918c@c { 87 compatible = "asahi-kasei,akm09918c"; 88 reg = <0xc>; 89 }; 90}; 91 92&spi0 { 93 pinctrl-0 = <&spi0_default>; 94 pinctrl-names = "default"; 95 dmas = <&xdmac 0 DMA_PERID_SPI0_TX>, <&xdmac 1 DMA_PERID_SPI0_RX>; 96 dma-names = "tx", "rx"; 97 cs-gpios =<&pioa 31 GPIO_ACTIVE_LOW>, 98 <&pioc 31 GPIO_ACTIVE_LOW>; 99 status = "okay"; 100 101 icm42688: icm42688p@0 { 102 compatible = "invensense,icm42688"; 103 reg = <0>; 104 int-gpios = <&pioc 5 GPIO_ACTIVE_HIGH>; 105 spi-max-frequency = <24000000>; 106 accel-hz = <32000>; 107 accel-fs = <16>; 108 gyro-hz = <32000>; 109 gyro-fs = <2000>; 110 }; 111 spi_adc: adc@1 { 112 compatible = "ti,ads7052"; 113 reg = <1>; 114 #io-channel-cells = <1>; 115 #address-cells = <1>; 116 #size-cells = <0>; 117 spi-max-frequency = <24000000>; 118 channel@0 { 119 reg = <0>; 120 zephyr,gain = "ADC_GAIN_1"; 121 zephyr,reference = "ADC_REF_VDD_1"; 122 zephyr,vref-mv = <3300>; 123 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 124 zephyr,resolution = <14>; 125 }; 126 }; 127}; 128 129&spi1 { 130 pinctrl-0 = <&spi1_default>; 131 pinctrl-names = "default"; 132 cs-gpios = <&pioc 25 GPIO_ACTIVE_LOW>; 133 status = "okay"; 134}; 135 136&uart0 { 137 current-speed = <115200>; 138 pinctrl-0 = <&uart0_default>; 139 pinctrl-names = "default"; 140 status = "okay"; 141}; 142 143&uart1 { 144 current-speed = <115200>; 145 pinctrl-0 = <&uart1_default>; 146 pinctrl-names = "default"; 147 status = "okay"; 148}; 149 150&uart2 { 151 current-speed = <115200>; 152 pinctrl-0 = <&uart2_default>; 153 pinctrl-names = "default"; 154 status = "okay"; 155}; 156 157&usart2 { 158 current-speed = <115200>; 159 pinctrl-0 = <&usart2_default>; 160 pinctrl-names = "default"; 161 status = "okay"; 162}; 163 164&wdt { 165 status = "okay"; 166}; 167 168zephyr_udc0: &usbhs { 169 status = "okay"; 170}; 171 172&mdio { 173 pinctrl-0 = <&mdio_default>; 174 pinctrl-names = "default"; 175 status = "okay"; 176}; 177 178&pwm0 { 179 pinctrl-0 = <&pwm_default>; 180 pinctrl-names = "default"; 181 status = "okay"; 182}; 183 184 185&xdmac { 186 status = "okay"; 187}; 188 189&flash0 { 190 partitions { 191 compatible = "fixed-partitions"; 192 #address-cells = <1>; 193 #size-cells = <1>; 194 195 /* 196 * The first half of sector 0 (64 kbytes) 197 * is reserved for the bootloader 198 */ 199 boot_partition: partition@0 { 200 label = "mcuboot"; 201 reg = <0x0 0x00010000>; 202 read-only; 203 }; 204 205 /* From sector 1 to sector 7 (included): slot0 (896 kbytes) */ 206 slot0_partition: partition@20000 { 207 label = "image-0"; 208 reg = <0x00020000 0x000e0000>; 209 }; 210 211 /* From sector 8 to sector 14 (included): slot1 (896 kbytes) */ 212 slot1_partition: partition@100000 { 213 label = "image-1"; 214 reg = <0x00100000 0x000e0000>; 215 }; 216 217 /* Sector 15: scratch (128 kbytes) */ 218 scratch_partition: partition@1e0000 { 219 label = "image-scratch"; 220 reg = <0x001e0000 0x00020000>; 221 }; 222 }; 223}; 224