Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | /* * Copyright (c) 2017 Piotr Mienkowski * Copyright (c) 2017 Justin Watson * Copyright (c) 2019-2020 Gerson Fernando Budke <nandojve@gmail.com> * Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io> * * SPDX-License-Identifier: Apache-2.0 */ / { aliases { i2c-0 = &twihs0; i2c-1 = &twihs1; i2c-2 = &twihs2; led0 = &yellow_led0; led1 = &yellow_led1; sw0 = &sw0_user_button; sw1 = &sw1_user_button; }; chosen { zephyr,console = &usart1; zephyr,shell-uart = &usart1; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; leds { compatible = "gpio-leds"; yellow_led0: led_0 { gpios = <&pioa 23 GPIO_ACTIVE_LOW>; label = "User LED 0"; }; yellow_led1: led_1 { gpios = <&pioc 9 GPIO_ACTIVE_LOW>; label = "User LED 1"; }; }; gpio_keys { compatible = "gpio-keys"; /* The switch is labeled SW300/301 in the schematic, and * labeled SW0 on the board, and labeld ERASE User Button * on docs */ sw0_user_button: button_1 { label = "User Button 0"; gpios = <&pioa 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; }; sw1_user_button: button_2 { label = "User Button 1"; gpios = <&piob 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; }; }; ext1_header: xplained-pro-connector1 { compatible = "atmel-xplained-pro-header"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; /* Shared */ gpio-map = <0 0 &pioc 31 0>, /* AFE1 AD6 */ <1 0 &pioa 19 0>, /* AFE0 AD8 */ <2 0 &piob 3 0>, /* RTS0 */ <3 0 &piob 2 0>, /* CTS0 */ <4 0 &pioa 0 0>, /* PWMC0_H0 */ <5 0 &pioc 30 0>, /* TIOB5 */ <6 0 &piod 28 0>, /* WKUP5 */ <7 0 &pioa 5 0>, /* GPIO */ <8 0 &pioa 3 0>, /* TWD0 EXT2 */ <9 0 &pioa 4 0>, /* TWCK0 EXT2 */ <10 0 &piob 0 0>, /* RXD0 */ <11 0 &piob 1 0>, /* TXD0 */ <12 0 &piod 25 0>, /* SPI0(NPCS1) */ <13 0 &piod 21 0>, /* SPI0(MOSI) EXT2 */ <14 0 &piod 20 0>, /* SPI0(MISO) EXT2 */ <15 0 &piod 22 0>; /* SPI0(SCK) EXT2 */ /* GND */ /* +3.3V */ }; ext2_header: xplained-pro-connector2 { compatible = "atmel-xplained-pro-header"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; /* Shared */ gpio-map = <0 0 &piod 30 0>, /* AFE0 AD0 */ <1 0 &pioc 13 0>, /* AFE1 AD1 */ <2 0 &pioa 6 0>, /* GPIO */ <3 0 &piod 11 0>, /* GPIO */ <4 0 &pioc 19 0>, /* PWMC0_H2 */ <5 0 &piod 26 0>, /* PWMC0_L2 */ <6 0 &pioa 2 0>, /* WKUP2 */ <7 0 &pioa 24 0>, /* GPIO */ <8 0 &pioa 3 0>, /* TWD0 EXT1 */ <9 0 &pioa 4 0>, /* TWCK0 EXT1 */ <10 0 &pioa 21 0>, /* RXD1 */ <11 0 &piob 4 0>, /* TXD1 */ <12 0 &piod 27 0>, /* SPI0(NPCS3) */ <13 0 &piod 21 0>, /* SPI0(MOSI) EXT1 */ <14 0 &piod 20 0>, /* SPI0(MISO) EXT1 */ <15 0 &piod 22 0>; /* SPI0(SCK) EXT1 */ /* GND */ /* +3.3V */ }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; /* Shared */ gpio-map = <0 0 &piod 26 0>, /* A0-TD */ <1 0 &pioc 31 0>, /* A1-AFE1 AD6 y */ <2 0 &pioa 19 0>, /* A2-AFE0 AD8 y */ <3 0 &piod 30 0>, /* A3-AFE0 AD0 y */ <4 0 &pioc 13 0>, /* A4-AFE1 AD1 y */ <5 0 &pioe 0 0>, /* A5-AFE1 AD11 */ <6 0 &piod 28 0>, /* D0-URXD3 */ <7 0 &piod 30 0>, /* D1-UTXD3 */ <8 0 &pioa 0 0>, /* D2-PWMC0_H0 */ <9 0 &pioa 6 0>, /* D3-GPIO */ <10 0 &piod 27 0>, /* D4-SPI0_NPCS3 y */ <11 0 &piod 11 0>, /* D5-PWMC0_H0 */ <12 0 &pioc 19 0>, /* D6-PWMC0_H2 */ <13 0 &pioa 2 0>, /* D7-PWMC0_H1 */ <14 0 &pioa 5 0>, /* D8-PWMC1_PWML3 */ <15 0 &pioc 9 0>, /* D9-TIOB7 */ <16 0 &piod 25 0>, /* D10-SPI0_NPCS1 y */ <17 0 &piod 21 0>, /* D11-SPI0_MOSI y */ <18 0 &piod 20 0>, /* D12-SPI0_MISO y */ <19 0 &piod 22 0>, /* D13-SPI0_SPCK y */ <20 0 &pioa 3 0>, /* D14-TWD0 y */ <21 0 &pioa 4 0>; /* D15-TWCK0 y */ }; }; &cpu0 { clock-frequency = <300000000>; }; &afec0 { status = "okay"; }; &afec1 { status = "okay"; }; &twihs0 { status = "okay"; }; &twihs2 { status = "okay"; }; &spi0 { status = "okay"; pinctrl-0 = <&pd20b_spi0_miso &pd21b_spi0_mosi &pd22b_spi0_spck &pd25b_spi0_npcs1 &pd27b_spi0_npcs3>; cs-gpios = <&piod 25 GPIO_ACTIVE_LOW>, <&piod 27 GPIO_ACTIVE_LOW>; }; &usart1 { current-speed = <115200>; status = "okay"; }; &uart3 { status = "okay"; pinctrl-0 = <&pd28a_uart3_urxd3 &pd30a_uart3_utxd3>; current-speed = <115200>; }; &wdt { status = "okay"; }; &usbhs { status = "okay"; }; &gmac { status = "okay"; }; &pwm0 { status = "okay"; }; &pioa { status = "okay"; }; &piob { status = "okay"; }; &pioc { status = "okay"; }; &piod { status = "okay"; }; &pioe { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* * The first half of sector 0 (64 kbytes) * is reserved for the bootloader */ boot_partition: partition@0 { label = "mcuboot"; reg = <0x0 0x00010000>; read-only; }; /* From sector 1 to sector 7 (included): slot0 (896 kbytes) */ slot0_partition: partition@20000 { label = "image-0"; reg = <0x0020000 0x000e0000>; }; /* From sector 8 to sector 14 (included): slot1 (896 kbytes) */ slot1_partition: partition@100000 { label = "image-1"; reg = <0x00100000 0x000e0000>; }; /* Sector 15: scratch (128 kbytes) */ scratch_partition: partition@1e0000 { label = "image-scratch"; reg = <0x001e0000 0x00020000>; }; }; }; &ssc { status = "okay"; label = "I2S_0"; dma-names = "rx", "tx"; dmas = <&xdmac 22 DMA_PERID_SSC_RX>, <&xdmac 23 DMA_PERID_SSC_TX>; pinctrl-0 = <&pd24b_ssc_rf &pa22a_ssc_rk &pa10c_ssc_rd &pb0d_ssc_tf &pb1d_ssc_tk &pb5d_ssc_td>; }; ext1_spi: &spi0 { }; ext1_i2c: &twihs0 { }; ext1_serial: &usart0 { }; ext2_spi: &spi0 { }; ext2_i2c: &twihs0 { }; ext2_serial: &usart1 { }; arduino_spi: &spi0 { }; arduino_i2c: &twihs0 { }; arduino_serial: &uart3 { }; |