1/* 2 * Copyright (c) 2017 Piotr Mienkowski 3 * Copyright (c) 2017 Justin Watson 4 * Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io> 5 * Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com> 6 * 7 * SPDX-License-Identifier: Apache-2.0 8 */ 9 10/ { 11 aliases { 12 i2c-0 = &twihs0; 13 i2c-1 = &twihs1; 14 i2c-2 = &twihs2; 15 led0 = &green_led; 16 sw0 = &sw0_user_button; 17 }; 18 19 chosen { 20 zephyr,console = &usart1; 21 zephyr,shell-uart = &usart1; 22 zephyr,sram = &sram0; 23 zephyr,flash = &flash0; 24 zephyr,code-partition = &slot0_partition; 25 }; 26 27 leds { 28 compatible = "gpio-leds"; 29 green_led: led_0 { 30 gpios = <&pioc 8 GPIO_ACTIVE_LOW>; 31 label = "User LED"; 32 }; 33 }; 34 35 gpio_keys { 36 compatible = "gpio-keys"; 37 38 /* The switch is labeled SW300 in the schematic, and labeled 39 * SW0 on the board, and labeld SW1 User Button on docs 40 */ 41 sw0_user_button: button_1 { 42 label = "User Button"; 43 gpios = <&pioa 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 44 }; 45 }; 46}; 47 48&cpu0 { 49 clock-frequency = <300000000>; 50}; 51 52&afec0 { 53 status = "okay"; 54}; 55 56&afec1 { 57 status = "okay"; 58}; 59 60&dacc { 61 status = "okay"; 62}; 63 64&twihs0 { 65 status = "okay"; 66}; 67 68&twihs2 { 69 status = "okay"; 70}; 71 72&spi0 { 73 status = "okay"; 74 pinctrl-0 = <&pc26c_spi1_miso &pc27c_spi1_mosi &pc24c_spi1_spck &pd27b_spi0_npcs3>; 75}; 76 77&usart1 { 78 current-speed = <115200>; 79 status = "okay"; 80}; 81 82&wdt { 83 status = "okay"; 84}; 85 86zephyr_udc0: &usbhs { 87 status = "okay"; 88}; 89 90&gmac { 91 status = "okay"; 92 93 phy: phy { 94 compatible = "ethernet-phy"; 95 status = "okay"; 96 address = <0>; 97 mdio = <&mdio>; 98 }; 99}; 100 101&mdio { 102 status = "okay"; 103}; 104 105&pwm0 { 106 status = "okay"; 107}; 108 109&flash0 { 110 partitions { 111 compatible = "fixed-partitions"; 112 #address-cells = <1>; 113 #size-cells = <1>; 114 115 /* 116 * The first half of sector 0 (64 kbytes) 117 * is reserved for the bootloader 118 */ 119 boot_partition: partition@0 { 120 label = "mcuboot"; 121 reg = <0x0 0x00010000>; 122 read-only; 123 }; 124 125 /* From sector 1 to sector 7 (included): slot0 (896 kbytes) */ 126 slot0_partition: partition@20000 { 127 label = "image-0"; 128 reg = <0x0020000 0x000e0000>; 129 }; 130 131 /* From sector 8 to sector 14 (included): slot1 (896 kbytes) */ 132 slot1_partition: partition@100000 { 133 label = "image-1"; 134 reg = <0x00100000 0x000e0000>; 135 }; 136 137 /* Sector 15: scratch (128 kbytes) */ 138 scratch_partition: partition@1e0000 { 139 label = "image-scratch"; 140 reg = <0x001e0000 0x00020000>; 141 }; 142 }; 143}; 144 145&ssc { 146 status = "okay"; 147 label = "I2S_0"; 148 dma-names = "rx", "tx"; 149 dmas = <&xdmac 22 DMA_PERID_SSC_RX>, <&xdmac 23 DMA_PERID_SSC_TX>; 150 pinctrl-0 = <&pd24b_ssc_rf &pa22a_ssc_rk &pa10c_ssc_rd 151 &pb0d_ssc_tf &pb1d_ssc_tk &pb5d_ssc_td>; 152}; 153