Skip to content

Commit 0979117

Browse files
committed
dts: arm: gigadevice: add initial support for gd32f4xx
Add initial support for GD32F4XX (405, 407 and 450). Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 5496c16 commit 0979117

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* Copyright (c) 2021, Teslabs Engineering S.L.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <arm/armv7-m.dtsi>
8+
9+
/ {
10+
cpus {
11+
#address-cells = <1>;
12+
#size-cells = <0>;
13+
14+
cpu0: cpu@0 {
15+
device_type = "cpu";
16+
compatible = "arm,cortex-m4f";
17+
reg = <0>;
18+
#address-cells = <1>;
19+
#size-cells = <1>;
20+
21+
mpu: mpu@e000ed90 {
22+
compatible = "arm,armv7m-mpu";
23+
reg = <0xe000ed90 0x40>;
24+
arm,num-mpu-regions = <8>;
25+
};
26+
};
27+
};
28+
29+
soc {
30+
sram0: memory@20000000 {
31+
compatible = "mmio-sram";
32+
reg = <0x20000000 DT_SIZE_K(112)>;
33+
};
34+
35+
fmc: flash-controller@40023c00 {
36+
compatible = "gd,gd32-flash-controller";
37+
label = "FMC";
38+
reg = <0x40023c00 0x400>;
39+
40+
#address-cells = <1>;
41+
#size-cells = <1>;
42+
43+
flash0: flash@8000000 {
44+
compatible = "soc-nv-flash";
45+
label = "FLASH0";
46+
};
47+
};
48+
49+
usart0: usart@40011000 {
50+
compatible = "gd,gd32-usart";
51+
reg = <0x40011000 0x400>;
52+
rcu-periph-clock = <0x1104>;
53+
status = "disabled";
54+
label = "USART0";
55+
};
56+
};
57+
};
58+
59+
&nvic {
60+
arm,num-irq-priority-bits = <4>;
61+
};

0 commit comments

Comments
 (0)