You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
177 lines
3.2 KiB
177 lines
3.2 KiB
/* |
|
* Copyright (c) 2024 STMicroelectronics |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
/dts-v1/; |
|
#include <st/u0/stm32u083Xc.dtsi> |
|
#include <st/u0/stm32u083mctx-pinctrl.dtsi> |
|
#include "arduino_r3_connector.dtsi" |
|
#include <zephyr/dt-bindings/input/input-event-codes.h> |
|
#include <zephyr/dt-bindings/input/stm32-tsc-defines.h> |
|
|
|
/ { |
|
model = "STMicroelectronics STM32U83C-DK board"; |
|
compatible = "st,stm32u083c-dk"; |
|
|
|
#address-cells = <1>; |
|
#size-cells = <1>; |
|
|
|
chosen { |
|
zephyr,console = &usart2; |
|
zephyr,shell-uart = &usart2; |
|
zephyr,sram = &sram0; |
|
zephyr,flash = &flash0; |
|
}; |
|
|
|
leds: leds { |
|
compatible = "gpio-leds"; |
|
|
|
green_led_1: led_3 { |
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; |
|
label = "User LD3"; |
|
}; |
|
}; |
|
|
|
aliases { |
|
led0 = &green_led_1; |
|
}; |
|
}; |
|
|
|
&usart2 { |
|
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>; |
|
pinctrl-names = "default"; |
|
current-speed = <115200>; |
|
status = "okay"; |
|
}; |
|
|
|
&usart3 { |
|
pinctrl-0 = <&usart3_tx_pc4 &usart3_rx_pc5>; |
|
pinctrl-names = "default"; |
|
current-speed = <115200>; |
|
status = "okay"; |
|
}; |
|
|
|
&clk_hsi { |
|
status = "okay"; |
|
}; |
|
|
|
&pll { |
|
div-m = <1>; |
|
mul-n = <6>; |
|
div-p = <2>; |
|
div-q = <2>; |
|
div-r = <2>; |
|
clocks = <&clk_hsi>; |
|
status = "okay"; |
|
}; |
|
|
|
&rcc { |
|
clocks = <&pll>; |
|
clock-frequency = <DT_FREQ_M(48)>; |
|
ahb-prescaler = <1>; |
|
apb1-prescaler = <1>; |
|
}; |
|
|
|
&adc1 { |
|
pinctrl-0 = <&adc1_in0_pc0 &adc1_in1_pc1>; |
|
pinctrl-names = "default"; |
|
st,adc-clock-source = "ASYNC"; |
|
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00100000>, |
|
<&rcc STM32_SRC_HSI ADC_SEL(2)>; |
|
st,adc-prescaler = <4>; |
|
status = "okay"; |
|
vref-mv = <3300>; |
|
}; |
|
|
|
&dac1 { |
|
status = "okay"; |
|
pinctrl-0 = <&dac1_out1_pa4>; |
|
pinctrl-names = "default"; |
|
}; |
|
|
|
&i2c1 { |
|
pinctrl-0 = <&i2c1_scl_pa9 &i2c1_sda_pa10>; |
|
pinctrl-names = "default"; |
|
status = "okay"; |
|
clock-frequency = <I2C_BITRATE_FAST>; |
|
}; |
|
|
|
&i2c2 { |
|
pinctrl-0 = <&i2c2_scl_pa7 &i2c2_sda_pa6>; |
|
pinctrl-names = "default"; |
|
status = "okay"; |
|
clock-frequency = <I2C_BITRATE_FAST>; |
|
}; |
|
|
|
&spi3 { |
|
pinctrl-0 = <&spi3_nss_pa15 &spi3_sck_pc10 |
|
&spi3_miso_pc11 &spi3_mosi_pc12>; |
|
pinctrl-names = "default"; |
|
status = "okay"; |
|
}; |
|
|
|
&timers1 { |
|
st,prescaler = <10000>; |
|
status = "okay"; |
|
|
|
pwm1: pwm { |
|
status = "okay"; |
|
pinctrl-0 = <&tim1_ch1_pa8>; |
|
pinctrl-names = "default"; |
|
}; |
|
}; |
|
|
|
&timers2 { |
|
st,prescaler = <10000>; |
|
status = "okay"; |
|
|
|
pwm2: pwm { |
|
pinctrl-0 = <&tim2_ch1_pa5>; |
|
pinctrl-names = "default"; |
|
status = "okay"; |
|
}; |
|
}; |
|
|
|
stm32_lp_tick_source: &lptim2 { |
|
clocks = <&rcc STM32_CLOCK(APB1, 30)>, |
|
<&rcc STM32_SRC_LSI LPTIM2_SEL(1)>; |
|
status = "okay"; |
|
}; |
|
|
|
&tsc { |
|
status = "okay"; |
|
pinctrl-0 = <&tsc_g1_io1_pb12 &tsc_g1_io2_pb13 &tsc_g6_io1_pd10 &tsc_g6_io2_pd11>; |
|
pinctrl-names = "default"; |
|
|
|
st,pulse-generator-prescaler = <2>; |
|
st,charge-transfer-pulse-high = <2>; |
|
st,charge-transfer-pulse-low = <2>; |
|
st,spread-spectrum; |
|
st,spread-spectrum-prescaler = <2>; |
|
st,spread-spectrum-deviation = <100>; |
|
st,max-count-value = <8191>; |
|
|
|
tsc_group1: g1 { |
|
group = <1>; |
|
st,use-as-shield; |
|
channel-ios = <TSC_IO2>; |
|
sampling-io = <TSC_IO1>; |
|
}; |
|
|
|
tsc_group6: g6 { |
|
group = <6>; |
|
channel-ios = <TSC_IO2>; |
|
sampling-io = <TSC_IO1>; |
|
|
|
ts1 { |
|
compatible = "tsc-keys"; |
|
sampling-interval-ms = <10>; |
|
oversampling = <10>; |
|
noise-threshold = <50>; |
|
sticky-key-timeout-ms = <10000>; |
|
zephyr,code = <INPUT_KEY_0>; |
|
}; |
|
}; |
|
};
|
|
|