1/* 2 * Copyright (c) 2017 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/l4/stm32l432Xc.dtsi> 9#include <st/l4/stm32l432k(b-c)ux-pinctrl.dtsi> 10 11/ { 12 model = "STMicroelectronics STM32L432KC-NUCLEO board"; 13 compatible = "st,stm32l432kc-nucleo"; 14 15 chosen { 16 zephyr,console = &usart2; 17 zephyr,shell-uart = &usart2; 18 zephyr,sram = &sram0; 19 zephyr,flash = &flash0; 20 zephyr,canbus = &can1; 21 }; 22 23 leds: leds { 24 compatible = "gpio-leds"; 25 green_led: led_0 { 26 gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>; 27 label = "User LD3"; 28 }; 29 }; 30 31 aliases { 32 led0 = &green_led; 33 }; 34}; 35 36&clk_lsi { 37 status = "okay"; 38}; 39 40&clk_hsi { 41 status = "okay"; 42}; 43 44&pll { 45 div-m = <1>; 46 mul-n = <20>; 47 div-p = <7>; 48 div-q = <2>; 49 div-r = <4>; 50 clocks = <&clk_hsi>; 51 status = "okay"; 52}; 53 54&rcc { 55 clocks = <&pll>; 56 clock-frequency = <DT_FREQ_M(80)>; 57 ahb-prescaler = <1>; 58 apb1-prescaler = <1>; 59 apb2-prescaler = <1>; 60}; 61 62&usart1 { 63 pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; 64 pinctrl-names = "default"; 65 current-speed = <115200>; 66}; 67 68&usart2 { 69 pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa15>; 70 pinctrl-names = "default"; 71 current-speed = <115200>; 72 status = "okay"; 73}; 74 75&spi1 { 76 pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5 77 &spi1_miso_pa6 &spi1_mosi_pa7>; 78 pinctrl-names = "default"; 79 status = "okay"; 80}; 81 82&i2c1 { 83 pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>; 84 pinctrl-names = "default"; 85 clock-frequency = <I2C_BITRATE_FAST>; 86 status = "okay"; 87}; 88 89&timers2 { 90 status = "okay"; 91 92 pwm2: pwm { 93 status = "okay"; 94 pinctrl-0 = <&tim2_ch1_pa0>; 95 pinctrl-names = "default"; 96 }; 97}; 98 99&can1 { 100 pinctrl-0 = <&can1_rx_pa11 &can1_tx_pa12>; 101 pinctrl-names = "default"; 102 status = "okay"; 103}; 104 105&rtc { 106 clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, 107 <&rcc STM32_SRC_LSI RTC_SEL(2)>; 108 status = "okay"; 109}; 110 111&flash0 { 112 partitions { 113 compatible = "fixed-partitions"; 114 #address-cells = <1>; 115 #size-cells = <1>; 116 117 /* 118 * Reserve the final 16 KiB for file system partition 119 */ 120 storage_partition: partition@3c000 { 121 label = "storage"; 122 reg = <0x0003c000 DT_SIZE_K(16)>; 123 }; 124 }; 125}; 126