-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Add realtek rts5912 soc #75267
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
Add realtek rts5912 soc #75267
Conversation
|
Hello @JasonLin-RealTek, and thank you very much for your first pull request to the Zephyr project! |
gmarull
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.
please, organize commit content properly, it seems that first commit contains e.g. pinctrl stuff which should not be there.
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.
| config BOARD | |
| default "rts5912_evb" |
this is hwmv1
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.
Fixed
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.
| bool "Realtek RTS5912 Evaluation Board" |
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.
Fixed
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.
convert to webp, then put it through https://tinypng.com/
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
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.
non-blocking comment: should there be flash partitions here?
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.
unaddressed
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.
power states must not be at board level
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.
We have put those power state to rts5912.dtsi.
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.
| # CONSOLE | |
| # Console |
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.
Fixed
soc/realtek/ec/Kconfig.defconfig
Outdated
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.
| if SOC_FAMILY_REALTEK_EC | |
| rsource "*/Kconfig.defconfig.series" | |
| endif # SOC_FAMILY_REALTEK_EC | |
| if SOC_FAMILY_REALTEK_EC | |
| rsource "*/Kconfig.defconfig.series" | |
| endif # SOC_FAMILY_REALTEK_EC |
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.
fixed
soc/realtek/ec/Kconfig.soc
Outdated
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.
add newline
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
soc/realtek/ec/rts5912/Kconfig
Outdated
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.
| select SOC_FAMILY_REALTEK_EC |
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
soc/realtek/ec/rts5912/Kconfig.soc
Outdated
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.
non-blocking comment: do you really need a soc series when the soc and soc series name as the same? Is this really a series?
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.
There may be series and plenty of SoCs with different names in the future.
In order to maintain the consistency of the folder structure, we will use the same name for the series and SoCs for now.
e16ff4a to
7a10790
Compare
We followed the suggestions to fix the code and passed the twister testing. |
gmarull
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.
I can't see any changes regarding my previous request
7a10790 to
7b8a3da
Compare
We misunderstood the request and moved the [pinctrl+register] files to their own commit. |
soc/realtek/ec/Kconfig
Outdated
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.
| bool "The output binary with RTS5912 image header" | |
| bool "Add RTS5912 image header to output binary" |
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.
Fixed
soc/realtek/ec/Kconfig
Outdated
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.
*The
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.
Fixed
soc/realtek/ec/Kconfig
Outdated
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.
But they should come from dts, not Kconfig
soc/realtek/ec/Kconfig
Outdated
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.
| #source "soc/realtek/*/Kconfig.soc" |
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.
Fixed
7b8a3da to
2a3274a
Compare
rettichschnidi
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.
Very superficial review, but all my nits got fixed -> approved
|
@gmarull could you take a look? |
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.
this should be captured in DT, see other examples by inspecting clocks {} node.
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.
We added the clocks {} node and captured these in DT, thanks.
soc/realtek/ec/rts5912/soc.c
Outdated
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.
LOG_ERR
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.
We fixed it, thanks.
soc/realtek/ec/rts5912/soc.c
Outdated
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.
local header, so #include "debug_swj.h"?
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.
We fixed it, thanks.
soc/realtek/ec/rts5912/soc.c
Outdated
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.
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
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.
We replaced LOG_MODULE_REGISTER(soc); with LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);, thanks.
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.
1P8 -> 1V8 ?
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.
We modified these relevant macros, thanks.
Add support for Realtek RTS5912 embedded controller (EC). Signed-off-by: Lin Yu-Cheng <[email protected]>
Add Realtek RTS5912 chip and driver device tree files. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add clock controller driver for Realtek RTS5912. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add pinctrl driver for Realtek RTS5912. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add swj driver for Realtek RTS5912. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add timer driver for Realtek RTS5912. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add gpio driver for Realtek RTS5912. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add UART driver for Realtek RTS5912. Signed-off-by: Lin Yu-Cheng <[email protected]>
Add support for Realtek rts5912_evb board Signed-off-by: Lin Yu-Cheng <[email protected]>
This commit adds api and driver of Realtek EC to maintainers.yml Signed-off-by: Lin Yu-Cheng <[email protected]>
135439e
3c411e6 to
135439e
Compare
|
Hi @JasonLin-RealTek! 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! 🪁 |
This PR adds support for the RTS5912 EC Chip from Realtek.
The initial support for the board includes TIMER, GPIO, CLOCK_CONTROL, PINCTRL.
please help us review the pull request.
Thanks!