1/* 2 * Copyright (c) 2020 Steven Daglish <s.c.daglish@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/l0/stm32l031X6.dtsi> 9#include <st/l0/stm32l031k(4-6)tx-pinctrl.dtsi> 10#include "arduino_nano_r3_connector.dtsi" 11 12/ { 13 model = "STMicroelectronics STM32L031K6-NUCLEO board"; 14 compatible = "st,stm32l031k6-nucleo"; 15 16 chosen { 17 zephyr,console = &usart2; 18 zephyr,shell-uart = &usart2; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 }; 22 23 leds: leds { 24 compatible = "gpio-leds"; 25 green_led_2: led_2 { 26 gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>; 27 label = "User LD2"; 28 }; 29 }; 30 31 aliases { 32 led0 = &green_led_2; 33 eeprom-0 = &eeprom; 34 }; 35}; 36 37&clk_hsi { 38 status = "okay"; 39}; 40 41&pll { 42 div = <2>; 43 mul = <4>; 44 clocks = <&clk_hsi>; 45 status = "okay"; 46}; 47 48&rcc { 49 clocks = <&pll>; 50 clock-frequency = <DT_FREQ_M(32)>; 51 ahb-prescaler = <1>; 52 apb1-prescaler = <1>; 53 apb2-prescaler = <1>; 54}; 55 56&usart2 { 57 pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa15>; 58 pinctrl-names = "default"; 59 current-speed = <115200>; 60 status = "okay"; 61}; 62 63&i2c1 { 64 pinctrl-0 = <&i2c1_scl_pa9 &i2c1_sda_pa10>; 65 pinctrl-names = "default"; 66 status = "okay"; 67 clock-frequency = <I2C_BITRATE_FAST>; 68}; 69 70&spi1 { 71 pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>; 72 pinctrl-names = "default"; 73 status = "okay"; 74}; 75 76&eeprom { 77 status = "okay"; 78}; 79