-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add realtek rts5817 soc #91486
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
Open
RtkFP
wants to merge
11
commits into
zephyrproject-rtos:main
Choose a base branch
from
RtkFP:add_rts5817_soc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,884
−0
Open
Add realtek rts5817 soc #91486
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
41c6483
soc: add realtek RTS5817
RtkFP 6fc2eab
include: dt-bindings: add headers for RTS5817
RtkFP 7716ff0
dts: arm: add dtsi for RTS5817
RtkFP be0faaf
soc: realtek: Add image generate tool for RTS5817
RtkFP 5a613ec
script: Add flash runner for rts5817
RtkFP f456c15
drivers: clock_control: add clock control for RTS5817
RtkFP cd52378
drivers: reset: add reset driver for RTS5817
RtkFP 7c9c007
drivers: pinctrl: add pinctrl driver for RTS5817
RtkFP b8270de
drivers: watchdog: add watchdog driver for RTS5817
RtkFP ffe4567
boards: realtek: add rts5817_maa_evb board
RtkFP 867caa7
MAINTAINERS: add maintainer for Realtek fingerprint SoC
RtkFP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_RTS5817_MAA_EVB | ||
select SOC_RTS5817 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
set_property(TARGET runners_yaml_props_target PROPERTY bin_file zephyr.rts5817.bin) | ||
|
||
board_set_flasher_ifnset(rtsflash) | ||
board_runner_args(rtsflash "--pid=0bda:5817" "--alt=0") | ||
board_finalize_runner_args(rtsflash) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
board: | ||
name: rts5817_maa_evb | ||
vendor: realtek | ||
socs: | ||
- name: rts5817 |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.. zephyr:board:: rts5817_maa_evb | ||
|
||
Overview | ||
******** | ||
|
||
rts5817 is a high-performance MCU based on Realtek Real-M300 ARMv8-M architecture with Cortex-M33 instruction set compatible. | ||
|
||
.. figure:: img/rts5817_maa_evb.webp | ||
:width: 400px | ||
:align: center | ||
:alt: rts5817_maa_evb | ||
|
||
Hardware | ||
******** | ||
|
||
- 240MHz single-core 32-bit CPU with I-cache 32KB, D-cache 16KB | ||
- 48KB boot ROM | ||
- 256KB on-chip SRAM | ||
- 1KB PUFrt OTP | ||
- 2MB Flash | ||
- USB2.0 full speed/high speed device | ||
- Up to 11 GPIO | ||
- 2 x UART | ||
- 2 x Timer | ||
- 2 x SPI, one can support slave mode | ||
- Watchdog | ||
- DMA | ||
- Temperature sensor | ||
- Cryptographic hardware acceleration (RNG, SHA, AES) | ||
- Fingerprint mataching hardware acceleration (MAC, popcount, convolution, etc.) | ||
- SWD for debug | ||
|
||
Supported Features | ||
================== | ||
|
||
.. zephyr:board-supported-hw:: | ||
|
||
Programming and Debugging | ||
************************* | ||
|
||
Building | ||
======== | ||
|
||
#. Build :zephyr:code-sample:`hello_world` application as you would normally do. | ||
|
||
#. The file ``zephyr.rts5817.bin`` will be created if the build system can build successfully. | ||
This binary image can be found under file "build/zephyr/". | ||
|
||
Flashing | ||
======== | ||
|
||
#. Short the two pins of ``J6`` to enter force rom mode (see `RTS5817MAA_EVB_User_Guide`_). | ||
#. Connect the board to your host computer using USB. | ||
#. Use ``west flash`` command to flash the image. | ||
#. Disconnect the two pins of ``J6`` and reboot, The :zephyr:code-sample:`hello_world` application is running. | ||
|
||
References | ||
********** | ||
|
||
.. target-notes:: | ||
|
||
.. _RTS5817MAA_EVB_User_Guide: | ||
https://github.com/RtkFP/Doc/blob/main/RTS5817MAA_EVB%20User%20Guide_V1.0.pdf |
37 changes: 37 additions & 0 deletions
37
boards/realtek/rts5817_maa_evb/rts5817_maa_evb-pinctrl.dtsi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/pinctrl/rts5817_pinctrl.h> | ||
|
||
&pinctrl { | ||
uart0_default: uart0_default { | ||
group0 { | ||
pinmux = <P_SCL0_F_UART0_RX>, <P_SDA0_F_UART0_TX>; | ||
}; | ||
}; | ||
|
||
/omit-if-no-ref/ sensor_spi_default: sensor_spi_default { | ||
group0 { | ||
pinmux = <P_SNR_MISO_F_SNR_MISO>, <P_SNR_MOSI_F_SNR_MOSI>, | ||
<P_SNR_CLK_F_SNR_CLK>; | ||
power-source = <IO_POWER_1V8>; | ||
bias-pull-down; | ||
}; | ||
|
||
group1 { | ||
pinmux = <P_SNR_CS_F_SNR_CS>, <P_SNR_RST_F_SNR_RST>; | ||
power-source = <IO_POWER_1V8>; | ||
bias-pull-up; | ||
}; | ||
}; | ||
|
||
/omit-if-no-ref/ ssi_master_default: ssi_master_default { | ||
group0 { | ||
pinmux = <P_SSI_M_MISO_F_SSI_M_MISO>, <P_SSI_M_MOSI_F_SSI_M_MOSI>, | ||
<P_SSI_M_CS_F_SSI_M_CS>, <P_SSI_M_SCK_F_SSI_M_CLK>; | ||
bias-pull-down; | ||
}; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include <realtek/fingerprint/rts5817/rts5817.dtsi> | ||
#include "rts5817_maa_evb-pinctrl.dtsi" | ||
|
||
/ { | ||
model = "Realtek rts5817_maa_evb"; | ||
compatible = "realtek,rts5817_maa_evb"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
chosen { | ||
zephyr,console = &uart0; | ||
zephyr,shell-uart = &uart0; | ||
}; | ||
}; | ||
|
||
&clks { | ||
status = "okay"; | ||
}; | ||
|
||
&reset { | ||
status = "okay"; | ||
}; | ||
|
||
&watchdog { | ||
status = "okay"; | ||
}; | ||
|
||
&uart0 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart0_default>; | ||
current-speed = <57600>; | ||
status = "okay"; | ||
}; | ||
|
||
&uart1 { | ||
status = "disabled"; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: rts5817_maa_evb | ||
name: RTS5817 Platform for fingerprint | ||
type: mcu | ||
arch: arm | ||
ram: 256 | ||
flash: 2048 | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
testing: | ||
default: true | ||
vendor: realtek |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Enable clocks | ||
CONFIG_CLOCK_CONTROL=y | ||
|
||
# Enable reset | ||
CONFIG_RESET=y | ||
|
||
# Enable serial console | ||
CONFIG_SERIAL=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
# Enable watchdog | ||
CONFIG_WATCHDOG=y | ||
CONFIG_WDT_DISABLE_AT_BOOT=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024 Realtek Semiconductor, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config CLOCK_CONTROL_RTS5817 | ||
bool "RTS5817 clock control" | ||
depends on DT_HAS_REALTEK_RTS5817_CLOCK_ENABLED | ||
default y | ||
help | ||
Enable driver for RTS5817 Clock Control. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.