driver: flash: add flash driver for rts5912
add flash driver for rts5912. Signed-off-by: Jhan BoChao <jhan_bo_chao@realtek.com>
This commit is contained in:
parent
393446108e
commit
7450a5249d
9 changed files with 1017 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <zephyr/dt-bindings/clock/rts5912_clock.h>
|
||||
#include <zephyr/dt-bindings/gpio/realtek-gpio.h>
|
||||
#include <zephyr/dt-bindings/pwm/pwm.h>
|
||||
#include <mem.h>
|
||||
|
||||
/ {
|
||||
cpus {
|
||||
|
@ -429,6 +430,20 @@
|
|||
status = "disabled";
|
||||
#pwm-cells = <3>;
|
||||
};
|
||||
|
||||
flash_controller: flash-controller@40010200 {
|
||||
compatible = "realtek,rts5912-flash-controller";
|
||||
reg = <0x40010200 0x200>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
eflash: eflash@60000000 {
|
||||
compatible = "soc-nv-flash";
|
||||
reg = <0x60000000 DT_SIZE_K(1024)>;
|
||||
erase-block-size = <DT_SIZE_K(4)>;
|
||||
write-block-size = <4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
swj_port: swj-port {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue