Skip to content

Commit 1e00361

Browse files
committed
dts: arm: introduce amebad SOC Devicetree
add initial version of devicetree for amebad SOC. amebad devicetree file is main platform dtsi file, which should be included from board dts (e.g rtl872xd_evb.dts) Signed-off-by: zjian zhang <zjian_zhang@realsil.com.cn>
1 parent b7e5887 commit 1e00361

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

dts/arm/realtek/amebad/amebad.dtsi

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Copyright (c) 2024 Realtek Semiconductor Corp.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <freq.h>
9+
#include <arm/armv8-m.dtsi>
10+
11+
/ {
12+
cpus {
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
16+
cpu0: cpu@0 {
17+
device_type = "cpu";
18+
compatible = "arm,cortex-m33";
19+
reg = <0>;
20+
d-cache-line-size = <32>;
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
};
24+
};
25+
26+
clocks {
27+
clk_sys: clk_sys {
28+
#clock-cells = <0>;
29+
compatible = "fixed-clock";
30+
clock-frequency = <DT_FREQ_M(260)>;
31+
};
32+
};
33+
34+
soc {
35+
sram0: memory@10003020 {
36+
compatible = "mmio-sram";
37+
reg = <0x10003020 0x00074000>;
38+
};
39+
40+
ram_image2_entry: memory@10003000 {
41+
compatible = "zephyr,memory-region";
42+
reg = <0x10003000 0x20>;
43+
zephyr,memory-region = "KM4_IMG2_ENTRY";
44+
};
45+
46+
pinctrl: pinctrl@48000400 {
47+
compatible = "realtek,ameba-pinctrl";
48+
reg = <0x48000400 0x200>;
49+
};
50+
51+
loguart: serial@48012000 {
52+
compatible = "realtek,ameba-loguart";
53+
reg = <0x48012000 0x100>;
54+
interrupts = <3 0>;
55+
current-speed = <1500000>;
56+
status = "disabled";
57+
};
58+
59+
spic: flash-controller@48080000 {
60+
compatible = "realtek,ameba-flash-controller";
61+
reg = <0x48080000 0x200>;
62+
63+
#address-cells = <1>;
64+
#size-cells = <1>;
65+
status = "disabled";
66+
67+
flash0: flash@E000020 {
68+
compatible = "soc-nv-flash";
69+
erase-block-size = <DT_SIZE_K(4)>;
70+
write-block-size = <4>;
71+
};
72+
};
73+
74+
gpioa: gpio@48014000 {
75+
compatible = "realtek,ameba-gpio";
76+
reg = <0x48014000 0x400>;
77+
gpio-controller;
78+
#gpio-cells = <2>;
79+
interrupts = <4 0>;
80+
status = "disabled";
81+
};
82+
83+
gpiob: gpio@48014400 {
84+
compatible = "realtek,ameba-gpio";
85+
reg = <0x48014400 0x400>;
86+
gpio-controller;
87+
#gpio-cells = <2>;
88+
interrupts = <8 0>;
89+
status = "disabled";
90+
};
91+
};
92+
};
93+
94+
&nvic {
95+
arm,num-irq-priority-bits = <3>;
96+
};

0 commit comments

Comments
 (0)