1/* 2 * Copyright (c) 2020 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <st/f4/stm32f427vi.dtsi> 10#include <st/f4/stm32f427v(g-i)tx-pinctrl.dtsi> 11 12/ { 13 model = "96Boards Gumstix AeroCore 2"; 14 compatible = "gumstix,aerocore2"; 15 16 chosen { 17 zephyr,console = &uart7; 18 zephyr,shell-uart = &uart7; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 zephyr,ccm = &ccm0; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 yellow_led_1: led_1 { 27 gpios = <&gpioe 10 GPIO_ACTIVE_HIGH>; 28 label = "USR1 LED"; 29 }; 30 blue_led_2: led_2 { 31 gpios = <&gpioe 9 GPIO_ACTIVE_HIGH>; 32 label = "USR2 LED"; 33 }; 34 }; 35 36 aliases { 37 led0 = &yellow_led_1; 38 led1 = &blue_led_2; 39 volt-sensor0 = &vref; 40 volt-sensor1 = &vbat; 41 }; 42 43}; 44 45&clk_hse { 46 clock-frequency = <DT_FREQ_M(24)>; 47 status = "okay"; 48}; 49 50&pll { 51 div-m = <24>; 52 mul-n = <336>; 53 div-p = <2>; 54 div-q = <7>; 55 clocks = <&clk_hse>; 56 status = "okay"; 57}; 58 59&rcc { 60 clocks = <&pll>; 61 clock-frequency = <DT_FREQ_M(168)>; 62 ahb-prescaler = <1>; 63 apb1-prescaler = <4>; 64 apb2-prescaler = <2>; 65}; 66 67&usart1 { 68 pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>; 69 pinctrl-names = "default"; 70 current-speed = <115200>; 71 status = "okay"; 72}; 73 74&usart2 { 75 pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>; 76 pinctrl-names = "default"; 77 current-speed = <115200>; 78 status = "okay"; 79}; 80 81&usart3 { 82 pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>; 83 pinctrl-names = "default"; 84 current-speed = <115200>; 85 status = "okay"; 86}; 87 88&uart7 { 89 pinctrl-0 = <&uart7_tx_pe8 &uart7_rx_pe7>; 90 pinctrl-names = "default"; 91 current-speed = <115200>; 92 status = "okay"; 93}; 94 95&uart8 { 96 pinctrl-0 = <&uart8_tx_pe1 &uart8_rx_pe0>; 97 pinctrl-names = "default"; 98 current-speed = <115200>; 99 status = "okay"; 100}; 101 102&spi1_nss_pa4 { slew-rate = "very-high-speed"; }; 103 104&spi1 { 105 pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5 106 &spi1_miso_pa6 &spi1_mosi_pa7>; 107 pinctrl-names = "default"; 108 status = "okay"; 109}; 110 111&spi2_nss_pb12 { slew-rate = "very-high-speed"; }; 112 113&spi2 { 114 pinctrl-0 = <&spi2_nss_pb12 &spi2_sck_pb13 115 &spi2_miso_pb14 &spi2_mosi_pb15>; 116 pinctrl-names = "default"; 117 status = "okay"; 118}; 119 120&spi3 { 121 pinctrl-0 = <&spi3_sck_pc10 &spi3_miso_pc11 &spi3_mosi_pc12>; 122 pinctrl-names = "default"; 123 status = "okay"; 124}; 125 126&spi4_nss_pe11 { slew-rate = "very-high-speed"; }; 127 128&spi4 { 129 pinctrl-0 = <&spi4_nss_pe11 &spi4_sck_pe12 130 &spi4_miso_pe13 &spi4_mosi_pe14>; 131 pinctrl-names = "default"; 132 status = "okay"; 133}; 134 135&i2c2 { 136 pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>; 137 pinctrl-names = "default"; 138 status = "okay"; 139 clock-frequency = <I2C_BITRATE_FAST>; 140}; 141 142zephyr_udc0: &usbotg_fs { 143 pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>; 144 pinctrl-names = "default"; 145 status = "okay"; 146}; 147 148&timers4 { 149 status = "okay"; 150 151 pwm4: pwm { 152 status = "okay"; 153 pinctrl-0 = <&tim4_ch1_pd12 154 &tim4_ch2_pd13 155 &tim4_ch3_pd14 156 &tim4_ch4_pd15>; 157 pinctrl-names = "default"; 158 }; 159}; 160 161&timers5 { 162 status = "okay"; 163 164 pwm5: pwm { 165 status = "okay"; 166 pinctrl-0 = <&tim5_ch1_pa0 167 &tim5_ch2_pa1 168 &tim5_ch3_pa2 169 &tim5_ch4_pa3>; 170 pinctrl-names = "default"; 171 }; 172}; 173 174&adc1 { 175 pinctrl-0 = <&adc1_in10_pc0 &adc1_in11_pc1 176 &adc1_in12_pc2 &adc1_in13_pc3>; 177 pinctrl-names = "default"; 178 st,adc-clock-source = <SYNC>; 179 st,adc-prescaler = <2>; 180 status = "okay"; 181}; 182 183&rng { 184 status = "okay"; 185}; 186 187&vref { 188 status = "okay"; 189}; 190 191&vbat { 192 status = "okay"; 193}; 194