Commit 0e43dd23 authored by Dan Collins's avatar Dan Collins Committed by Fabio Baltieri
Browse files

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: default avatarDan Collins <dan@collinsnz.com>
parent 94386e10
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
/*
 * 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>;
	};
};
+27 −0
Original line number Diff line number Diff line
/*
 * 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)>;
			};
		};
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ family:
    socs:
    - name: stm32u5a5xx
    - name: stm32u5a9xx
    - name: stm32u545xx
    - name: stm32u575xx
    - name: stm32u585xx
    - name: stm32u595xx
+11 −0
Original line number Diff line number Diff line
# 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
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@ config SOC_SERIES_STM32U5X
config SOC_SERIES
	default "stm32u5x" if SOC_SERIES_STM32U5X

config SOC_STM32U545XX
	bool
	select SOC_SERIES_STM32U5X

config SOC_STM32U575XX
	bool
	select SOC_SERIES_STM32U5X
@@ -39,6 +43,7 @@ config SOC_STM32U5A9XX
config SOC
	default "stm32u5a5xx" if SOC_STM32U5A5XX
	default "stm32u5a9xx" if SOC_STM32U5A9XX
	default "stm32u545xx" if SOC_STM32U545XX
	default "stm32u575xx" if SOC_STM32U575XX
	default "stm32u585xx" if SOC_STM32U585XX
	default "stm32u595xx" if SOC_STM32U595XX
Loading