- enable dac in nucleo_u385rg_q - add dac as new supported interface in docs - update yaml files Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
101 lines
1.7 KiB
Text
101 lines
1.7 KiB
Text
/*
|
|
* Copyright (c) 2025 STMicroelectronics
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <st/u3/stm32u385Xg.dtsi>
|
|
#include <st/u3/stm32u385rgtxq-pinctrl.dtsi>
|
|
#include "arduino_r3_connector.dtsi"
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32U385RG-NUCLEO-Q board";
|
|
compatible = "st,stm32u385rg-nucleo-q";
|
|
|
|
chosen {
|
|
zephyr,console = &usart1;
|
|
zephyr,shell-uart = &usart1;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
|
|
leds: leds {
|
|
compatible = "gpio-leds";
|
|
|
|
green_led_2: led_2 {
|
|
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
|
label = "User LD4";
|
|
};
|
|
};
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
|
|
user_button: button {
|
|
label = "User";
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
|
zephyr,code = <INPUT_KEY_0>;
|
|
};
|
|
};
|
|
|
|
aliases {
|
|
led0 = &green_led_2;
|
|
sw0 = &user_button;
|
|
};
|
|
};
|
|
|
|
&usart1 {
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
|
pinctrl-names = "default";
|
|
current-speed = <115200>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usart3 {
|
|
pinctrl-0 = <&usart3_tx_pc10 &usart3_rx_pc11>;
|
|
pinctrl-names = "default";
|
|
current-speed = <115200>;
|
|
status = "okay";
|
|
};
|
|
|
|
&lpuart1 {
|
|
pinctrl-0 = <&lpuart1_tx_pa2 &lpuart1_rx_pa3>;
|
|
pinctrl-names = "default";
|
|
current-speed = <115200>;
|
|
status = "okay";
|
|
};
|
|
|
|
&clk_hsi {
|
|
status = "okay";
|
|
};
|
|
|
|
&clk_lse {
|
|
status = "okay";
|
|
};
|
|
|
|
&clk_msis {
|
|
status = "okay";
|
|
msi-pll-mode;
|
|
msi-range = <0>; /* 96MHz (reset value) */
|
|
};
|
|
|
|
&rcc {
|
|
clocks = <&clk_msis>;
|
|
clock-frequency = <DT_FREQ_M(96)>;
|
|
ahb-prescaler = <1>;
|
|
apb1-prescaler = <1>;
|
|
apb2-prescaler = <1>;
|
|
apb3-prescaler = <1>;
|
|
};
|
|
|
|
&clk_lsi {
|
|
status = "okay";
|
|
};
|
|
|
|
&dac1 {
|
|
status = "okay";
|
|
pinctrl-0 = <&dac1_out1_pa4>;
|
|
pinctrl-names = "default";
|
|
};
|