zephyr/dts/arm/st/f0/stm32f091.dtsi
Hubert Guan 57723cf405 dts: arm: st: Refactor DTSI files to use macro
Replaces raw hex codes by using STM32_CLOCK macro

Signed-off-by: Hubert Guan <hguan@ucsb.edu>
2024-10-24 17:51:42 +02:00

72 lines
1.8 KiB
Text

/*
* Copyright (c) Bobby Noelte
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/f0/stm32f071.dtsi>
/ {
soc {
compatible = "st,stm32f091", "st,stm32f0", "simple-bus";
/*
* USARTs 3-8 share the same IRQ on stm32f091xx devices. This
* configuration is not currently supported, so at most one of
* these may be enabled at a time. Enabling more than one will
* result in a build failure.
*/
usart5: serial@40005000 {
compatible = "st,stm32-usart", "st,stm32-uart";
reg = <0x40005000 0x400>;
clocks = <&rcc STM32_CLOCK(APB1, 20U)>;
resets = <&rctl STM32_RESET(APB1, 20U)>;
interrupts = <29 0>;
status = "disabled";
};
usart6: serial@40011400 {
compatible = "st,stm32-usart", "st,stm32-uart";
reg = <0x40011400 0x400>;
clocks = <&rcc STM32_CLOCK(APB2, 5U)>;
resets = <&rctl STM32_RESET(APB2, 5U)>;
interrupts = <29 0>;
status = "disabled";
};
usart7: serial@40011800 {
compatible = "st,stm32-usart", "st,stm32-uart";
reg = <0x40011800 0x400>;
clocks = <&rcc STM32_CLOCK(APB2, 6U)>;
resets = <&rctl STM32_RESET(APB2, 6U)>;
interrupts = <29 0>;
status = "disabled";
};
usart8: serial@40011c00 {
compatible = "st,stm32-usart", "st,stm32-uart";
reg = <0x40011c00 0x400>;
clocks = <&rcc STM32_CLOCK(APB2, 7U)>;
resets = <&rctl STM32_RESET(APB2, 7U)>;
interrupts = <29 0>;
status = "disabled";
};
can1: can@40006400 {
compatible = "st,stm32-bxcan";
reg = <0x40006400 0x400>;
interrupts = <30 0>;
clocks = <&rcc STM32_CLOCK(APB1, 25U)>;
status = "disabled";
};
dma2: dma@40020400 {
compatible = "st,stm32-dma-v2bis";
#dma-cells = <2>;
reg = <0x40020400 0x400>;
interrupts = <10 0 10 0 11 0 11 0 11 0>;
clocks = <&rcc STM32_CLOCK(AHB1, 1U)>;
status = "disabled";
};
};
};