1/* 2 * Copyright (c) 2020 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <st/l5/stm32l552Xe.dtsi> 8#include <st/l5/stm32l552z(c-e)txq-pinctrl.dtsi> 9#include "arduino_r3_connector.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 leds: leds { 14 compatible = "gpio-leds"; 15 16 green_led_1: led_1 { 17 gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>; 18 label = "User LD1"; 19 }; 20 21 blue_led_1: led_2 { 22 gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>; 23 label = "User LD2"; 24 }; 25 26 red_led_1: led_3 { 27 gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>; 28 label = "User LD3"; 29 }; 30 }; 31 32 gpio_keys { 33 compatible = "gpio-keys"; 34 35 user_button: button { 36 label = "User"; 37 gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; 38 zephyr,code = <INPUT_KEY_0>; 39 }; 40 }; 41 42 aliases { 43 die-temp0 = &die_temp; 44 volt-sensor0 = &vref; 45 volt-sensor1 = &vbat; 46 }; 47}; 48 49&clk_hsi48 { 50 status = "okay"; 51}; 52 53&clk_msi { 54 status = "okay"; 55 msi-range = <6>; 56}; 57 58&pll { 59 div-m = <1>; 60 mul-n = <55>; 61 div-p = <7>; 62 div-q = <2>; 63 div-r = <2>; 64 clocks = <&clk_msi>; 65 status = "okay"; 66}; 67 68&rcc { 69 clocks = <&pll>; 70 clock-frequency = <DT_FREQ_M(110)>; 71 ahb-prescaler = <1>; 72 apb1-prescaler = <1>; 73 apb2-prescaler = <1>; 74}; 75 76&rng { 77 status = "okay"; 78}; 79 80&dac1 { 81 status = "okay"; 82 pinctrl-0 = <&dac1_out1_pa4>; 83 pinctrl-names = "default"; 84}; 85 86&adc1 { 87 pinctrl-0 = <&adc1_in1_pc0>; 88 pinctrl-names = "default"; 89 st,adc-clock-source = "SYNC"; 90 st,adc-prescaler = <4>; 91 status = "okay"; 92}; 93 94&die_temp { 95 status = "okay"; 96}; 97 98&lpuart1 { 99 pinctrl-0 = <&lpuart1_tx_pg7 &lpuart1_rx_pg8>; 100 pinctrl-names = "default"; 101 current-speed = <115200>; 102 status = "okay"; 103}; 104 105&usart3 { 106 pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>; 107 pinctrl-names = "default"; 108 current-speed = <115200>; 109 status = "okay"; 110}; 111 112&spi1 { 113 pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5 114 &spi1_miso_pa6 &spi1_mosi_pa7>; 115 pinctrl-names = "default"; 116 status = "okay"; 117}; 118 119&vref { 120 status = "okay"; 121}; 122 123&vbat { 124 status = "okay"; 125}; 126 127zephyr_udc0: &usb { 128 pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>; 129 pinctrl-names = "default"; 130 status = "okay"; 131}; 132