-
Notifications
You must be signed in to change notification settings - Fork 7.4k
soc: dts: drivers: add SoCs for amebadplus series #78036
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
base: main
Are you sure you want to change the base?
Conversation
Hello @zjian-zhang, and thank you very much for your first pull request to the Zephyr project! |
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 added project Note: This message is automatically posted and updated by the Manifest GitHub Action. |
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 read and follow the contribution guidelines https://docs.zephyrproject.org/latest/contribute/guidelines.html#contribute-guidelines we do not shove everything into a single commit for multiple areas, they must be distinct
Please help to check again if there are any problems. thanks. |
PR reduced to MVP as requested.
reg = <0x4100f000 0x100>; | ||
interrupts = <27 0>; | ||
current-speed = <1500000>; | ||
status = "okay"; |
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.
disabled
compatible = "soc-nv-flash"; | ||
erase-block-size = <DT_SIZE_K(4)>; | ||
write-block-size = <4>; | ||
/* Flash size is specified in board dts */ |
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.
how can a board set the size of flash on a 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.
in 'boards/realtek/rtl872xda_evb/rtl872xda_evb.dts' we use
/* 4MB flash */
&flash0 {
reg = <0x0e000020 DT_SIZE_M(4)>;
};
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 how? The flash is part of the SoC itself, how can it be defined at a 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.
The flash is part of the board, not the SoC.
soc/realtek/ameba/amebadplus/soc.c
Outdated
return 0; | ||
} | ||
|
||
SYS_INIT(amebadplus_init, PRE_KERNEL_1, 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.
use soc hooks
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
|
||
zephyr_include_directories(include) | ||
|
||
# add_subdirectory(source) |
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.
can go?
* @brief Allocate memory from the heap. For FreeRTOS, map to pvPortMalloc | ||
* The buffer value is random |
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.
why are there comments about freertos?
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.
already removed
* handle. | ||
* @retval | ||
*/ | ||
int rtos_mutex_create(rtos_mutex_t *pp_handle); |
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.
@gmarull can you make heads or tails of this?
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.
Our driver requires semaphore services provided by the OS. By using this interface, our driver can support different operating systems.
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.
Why are the drivers not in zephyr in the drivers
folder like every other vendor?
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.
Apologies for the misunderstanding. The code in the HAL repositories requires these APIs, and the review comment in the HAL module request stating ‘Zephyr glue code is NOT allowed in HAL repositories’ necessitates moving these APIs to the Zephyr repository.
Supported Features | ||
================== | ||
|
||
Current Zephyr's board target ``rtl872xda_evb`` supports the following features: |
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.
Current Zephyr's board target ``rtl872xda_evb`` supports the following features: | |
Currently Zephyr's ``rtl872xda_evb`` board supports the following features: |
|
||
See the ApplicationNote chapter Image Tool from documentation links for more details. | ||
|
||
#. Environment Requirements: EX. WinXP, Win 7 or later, Microsoft .NET Framework 4.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.
so this device is completely unusable on linux or mac? west flash
also cannot work?
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 currently do not support the ‘west flash’ command. In the future, we will provide a Python script to enable downloading across all platforms by loguart.
@@ -212,6 +214,12 @@ manifest: | |||
path: modules/hal/quicklogic | |||
groups: | |||
- hal | |||
- name: hal_realtek |
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.
module commit needs to be before everything else, can't add code that uses a module before the module is present
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 submitted a HAL module request for hal_realtek, but it was not approved yet.
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.
it still needs to be the first commit here, you can amend the commit later when the HAL is approved and merged
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.
Thank you, I have adjusted the submission order, but the HAL has not been approved by the TSC yet. Could you help prioritize the review with the TSC?
3dffaab
to
8a6eadc
Compare
spic: flash-controller@40128000 { | ||
compatible = "realtek,ameba-flash-controller"; | ||
reg = <0x40128000 0x200>; | ||
/* interrupts = <51 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.
line to go?
@@ -212,6 +214,12 @@ manifest: | |||
path: modules/hal/quicklogic | |||
groups: | |||
- hal | |||
- name: hal_realtek |
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.
it still needs to be the first commit here, you can amend the commit later when the HAL is approved and merged
26bcfe3
to
9a62417
Compare
Please help to check the issue. thanks a lot. |
Realtek HAL (Hardware Abstraction Layer) provides a low level peripheral configuration function. Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
add initial version of devicetree for amebadplus SOC. amebadplus devicetree file is main platform dtsi file, which should be included from board dts (e.g rtl872xda_evb.dts) Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
Add initial version of Amebadplus Soc integration Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
add amebadplus pin controller driver Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
loguart driver for amebadplus Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
GPIO driver for amebadplus Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
add initial version of rtl872xda_evb board Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
This commit adds maintainers for hal_realtek repository Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
|
The amebadplus microcontroller (MCU) is an advanced system-on-chip (SoC) featuring an Arm® Cortex®-M55 and Cortex®-M23, large Flash and SRAM memories, and supports dual-band Wi-Fi 4(2.4GHz + 5GHz) and BLE5.0 specifications.
The initial support for the board includes GPIO, PINCTRL and Loguart(serial).