1/* 2 * Copyright (c) 2017 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/f3/stm32f373Xc.dtsi> 9#include <st/f3/stm32f373v(8-b-c)tx-pinctrl.dtsi> 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "STMicroelectronics STM32373C-EVAL board"; 14 compatible = "st,stm32373c-eval"; 15 16 chosen { 17 zephyr,console = &usart2; 18 zephyr,shell-uart = &usart2; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 }; 22 23 leds { 24 compatible = "gpio-leds"; 25 green_led_2: led_2 { 26 gpios = <&gpioc 1 GPIO_ACTIVE_HIGH>; 27 label = "User LD2"; 28 }; 29 }; 30 31 gpio_keys { 32 compatible = "gpio-keys"; 33 user_button: button { 34 label = "Key"; 35 gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; 36 zephyr,code = <INPUT_KEY_0>; 37 }; 38 }; 39 40 aliases { 41 led0 = &green_led_2; 42 sw0 = &user_button; 43 watchdog0 = &iwdg; 44 }; 45}; 46 47&clk_lsi { 48 status = "okay"; 49}; 50 51&clk_hse { 52 clock-frequency = <DT_FREQ_M(8)>; 53 status = "okay"; 54}; 55 56&pll { 57 prediv = <1>; 58 mul = <9>; 59 clocks = <&clk_hse>; 60 status = "okay"; 61}; 62 63&rcc { 64 clocks = <&pll>; 65 clock-frequency = <DT_FREQ_M(72)>; 66 ahb-prescaler = <1>; 67 apb1-prescaler = <2>; 68 apb2-prescaler = <2>; 69}; 70 71&usart2 { 72 pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>; 73 pinctrl-names = "default"; 74 current-speed = <115200>; 75 status = "okay"; 76}; 77 78&rtc { 79 clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, 80 <&rcc STM32_SRC_LSI RTC_SEL(2)>; 81 status = "okay"; 82}; 83 84&iwdg { 85 status = "okay"; 86}; 87