-
Notifications
You must be signed in to change notification settings - Fork 8.4k
soc: st: add stm32u535 support #89696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hello @harristomy, and thank you very much for your first pull request to the Zephyr project! |
a742232 to
efd3da1
Compare
|
Sorry, not sure why the line endings for that one file was changed to CRLF, force pushed again just now, hopefully this should be the last push 😓 @erwango |
645054c to
90ab5d2
Compare
dts/arm/st/u5/stm32u535.dtsi
Outdated
| / { | ||
| soc { | ||
| /* USB-C PD is not available on this part. */ | ||
| /delete-node/ ucpd@4000dc00; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done (I hope)
dts/arm/st/u5/stm32u535.dtsi
Outdated
| num-bidir-endpoints = <8>; | ||
| ram-size = <2048>; | ||
| maximum-speed = "full-speed"; | ||
| clocks = <&rcc STM32_CLOCK_BUS_APB2 0x01000000>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer STM32_CLOCK(APB2, 24)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
dts/arm/st/u5/stm32u535Xi.dtsi
Outdated
| / { | ||
| sram0: memory@20000000 { | ||
| /* SRAM1 + SRAM2 */ | ||
| reg = <0x20000000 DT_SIZE_K(256)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indenation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
harristomy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞🏽
dts/arm/st/u5/stm32u535.dtsi
Outdated
| / { | ||
| soc { | ||
| /* USB-C PD is not available on this part. */ | ||
| /delete-node/ ucpd@4000dc00; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done (I hope)
dts/arm/st/u5/stm32u535.dtsi
Outdated
| num-bidir-endpoints = <8>; | ||
| ram-size = <2048>; | ||
| maximum-speed = "full-speed"; | ||
| clocks = <&rcc STM32_CLOCK_BUS_APB2 0x01000000>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
dts/arm/st/u5/stm32u535Xi.dtsi
Outdated
| / { | ||
| sram0: memory@20000000 { | ||
| /* SRAM1 + SRAM2 */ | ||
| reg = <0x20000000 DT_SIZE_K(256)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
dts/arm/st/u5/stm32u535.dtsi
Outdated
| num-bidir-endpoints = <8>; | ||
| ram-size = <2048>; | ||
| maximum-speed = "full-speed"; | ||
| clocks = <&rcc STM32_CLOCK(APB2, 24) 0x01000000>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the 3rd value: macro already STM32_CLOCK() expands to 2 values: bus ID + clock enable bit mask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
dts/arm/st/u5/stm32u535.dtsi
Outdated
| ram-size = <2048>; | ||
| maximum-speed = "full-speed"; | ||
| clocks = <&rcc STM32_CLOCK(APB2, 24) 0x01000000>, | ||
| <&rcc STM32_SRC_HSI48 ICKLK_SEL(0)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you indent this line by 1 extra tab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Adds the u535 soc, similar to the u545 except without the AES HW accelerator signed-off-by: Harris Tomy <harristomy@gmail.com>
|
|
Hi @harristomy! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |



We are using a custom board that uses the STM32U535 SoC, similar to #78910.
This PR adds the necessary modifications to the soc files and addition of the dts files required.
The only difference between this SoC and the 545 is the lack of the HW Encryption module, hence the deletion of the peripheral in the devicetree file.