1/* 2 * Copyright (c) 2017 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/f1/stm32f107Xc.dtsi> 9#include <st/f1/stm32f107v(b-c)tx-pinctrl.dtsi> 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "STMicroelectronics STM3210C-EVAL board"; 14 compatible = "st,stm3210c-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 26 green_led_2: led_2 { 27 gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; 28 label = "User LD2"; 29 }; 30 }; 31 32 gpio_keys { 33 compatible = "gpio-keys"; 34 35 user_button: button { 36 label = "User"; 37 gpios = <&gpiob 9 GPIO_ACTIVE_LOW>; 38 zephyr,code = <INPUT_KEY_0>; 39 }; 40 }; 41 42 aliases { 43 led0 = &green_led_2; 44 sw0 = &user_button; 45 watchdog0 = &iwdg; 46 }; 47}; 48 49&clk_hse { 50 hse-bypass; 51 clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */ 52 status = "okay"; 53}; 54 55&pll { 56 mul = <9>; 57 prediv = <1>; 58 clocks = <&clk_hse>; 59 status = "okay"; 60}; 61 62&rcc { 63 clocks = <&pll>; 64 clock-frequency = <DT_FREQ_M(72)>; 65 ahb-prescaler = <1>; 66 apb1-prescaler = <2>; 67 apb2-prescaler = <1>; 68}; 69 70&usart2 { 71 pinctrl-0 = <&usart2_tx_remap1_pd5 &usart2_rx_remap1_pd6>; 72 pinctrl-names = "default"; 73 current-speed = <115200>; 74 status = "okay"; 75}; 76 77&iwdg { 78 status = "okay"; 79}; 80