-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: st: adds support for stm32u545xx
This adds support for the stm32u545xx SoC, which extends the stm32u5 family already present in Zephyr. Signed-off-by: Dan Collins <dan@collinsnz.com>
- Loading branch information
1 parent
94386e1
commit 0e43dd2
Showing
6 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (c) 2024 Opito | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <st/u5/stm32u5.dtsi> | ||
|
||
|
||
/ { | ||
soc { | ||
/* USB-C PD is not available on this part. */ | ||
/delete-node/ ucpd@4000dc00; | ||
|
||
compatible = "st,stm32u545", "st,stm32u5", "simple-bus"; | ||
|
||
usb: usb@40006000 { | ||
compatible = "st,stm32-usb"; | ||
reg = <0x40006000 0x400>; | ||
interrupts = <73 0>; | ||
interrupt-names = "usb"; | ||
num-bidir-endpoints = <8>; | ||
ram-size = <1024>; | ||
status = "disabled"; | ||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x01000000>, | ||
<&rcc STM32_SRC_HSI48 ICKLK_SEL(0)>; | ||
phys = <&usb_fs_phy>; | ||
}; | ||
}; | ||
|
||
usb_fs_phy: usb_fs_phy { | ||
compatible = "usb-nop-xceiv"; | ||
#phy-cells = <0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 2024 Opito | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#include <mem.h> | ||
#include <st/u5/stm32u545.dtsi> | ||
|
||
/ { | ||
sram0: memory@20000000 { | ||
/* SRAM1 + SRAM2 */ | ||
reg = <0x20000000 DT_SIZE_K(256)>; | ||
}; | ||
|
||
sram1: memory@28000000 { | ||
/* SRAM4, low-power background autonomous mode */ | ||
reg = <0x28000000 DT_SIZE_K(16)>; | ||
}; | ||
|
||
soc { | ||
flash-controller@40022000 { | ||
flash0: flash@8000000 { | ||
reg = <0x08000000 DT_SIZE_K(512)>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ST Microelectronics STM32U545XX MCU | ||
|
||
# Copyright (c) 2024 Opito | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if SOC_STM32U545XX | ||
|
||
config NUM_IRQS | ||
default 126 | ||
|
||
endif # SOC_STM32U545XX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters