Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions dts/arm/st/u3/stm32u3c5.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2026 Filip Stojanovic <filipembedded@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <st/u3/stm32u3.dtsi>

/ {
soc {
compatible = "st,stm32u3c5", "st,stm32u3", "simple-bus";

pinctrl: pin-controller@42020000 {
gpiof: gpio@42021400 {
compatible = "st,stm32-gpio";
gpio-controller;
#gpio-cells = <2>;
reg = <0x42021400 0x400>;
clocks = <&rcc STM32_CLOCK(AHB2, 5)>;
};
};
};
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do it as follows (ie move under soc node).

	soc {
		compatible = "st,stm32h5ef", "st,stm32h5", "simple-bus";

		pinctrl: pin-controller@xxxxxxxxxx {
			gpioh: gpio@42021c00 {
				compatible = "st,stm32-gpio";
				gpio-controller;
				#gpio-cells = <2>;
				reg = <0x42021c00 0x400>;
				clocks = <&rcc STM32_CLOCK(AHB2, 7)>;
			};

			gpioj: gpio@42022400 {
				compatible = "st,stm32-gpio";
				gpio-controller;
				#gpio-cells = <2>;
				reg = <0x42022400 0x400>;
				clocks = <&rcc STM32_CLOCK(AHB2, 9)>;
			};

			gpiok: gpio@42022800 {
				compatible = "st,stm32-gpio";
				gpio-controller;
				#gpio-cells = <2>;
				reg = <0x42022800 0x400>;
				clocks = <&rcc STM32_CLOCK(AHB2, 26)>;
			};
		};

This is the same in the end, but preferred for consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. Done

26 changes: 26 additions & 0 deletions dts/arm/st/u3/stm32u3c5Xi.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2026 Filip Stojanovic <filipembedded@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <st/u3/stm32u3c5.dtsi>

/ {
sram0: memory@20000000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x20000000 DT_SIZE_K(640)>;
zephyr,memory-region = "SRAM0";
};

soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(2048)>;
ranges = <0x0 0x08000000 DT_SIZE_K(2048)>;
#address-cells = <1>;
#size-cells = <1>;
};
};
};
};
1 change: 1 addition & 0 deletions soc/st/stm32/soc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ family:
socs:
- name: stm32u375xx
- name: stm32u385xx
- name: stm32u3c5xx
- name: stm32u5x
socs:
- name: stm32u5a5xx
Expand Down
5 changes: 5 additions & 0 deletions soc/st/stm32/stm32u3x/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ config SOC_STM32U385XX
bool
select SOC_SERIES_STM32U3X

config SOC_STM32U3C5XX
bool
select SOC_SERIES_STM32U3X

config SOC
default "stm32u375xx" if SOC_STM32U375XX
default "stm32u385xx" if SOC_STM32U385XX
default "stm32u3c5xx" if SOC_STM32U3C5XX
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ manifest:
groups:
- hal
- name: hal_stm32
revision: 46e113ade52b2ae8b17b5054e715ec80cec37d9a
revision: pull/350/head
path: modules/hal/stm32
groups:
- hal
Expand Down
Loading