File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
dts/arm/gigadevice/gd32f4xx Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 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+ };
You can’t perform that action at this time.
0 commit comments