Skip to content

Commit 543c773

Browse files
committed
board: gd32e103_eval fix device tree errors
1 parent 2d1e678 commit 543c773

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

boards/arm/gd32e103v_eval/gd32e103v_eval.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
#size-cells = <1>;
7474

7575
/* Set 2Kb of storage at the end of the 128Kb of flash */
76-
storage_partition: partition@1f800 {
76+
storage_partition: partition@801f800 {
7777
label = "storage";
78-
reg = <0x0001f800 0x00000800>;
78+
reg = <0x0801f800 0x00000800>;
7979
};
8080
};
8181
};

dts/arm/gigadevice/e1/gd32e1.dtsi

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#size-cells = <0>;
2424

2525
cpu@0 {
26-
device_type = "cpu";
26+
// device_type = "cpu";
2727
compatible = "arm,cortex-m4f";
2828
reg = <0>;
2929
};
@@ -127,7 +127,7 @@
127127
write-block-size = <8>;
128128
erase-block-size = <2048>;
129129
/* maximum erase time(ms) for a 2K sector */
130-
max-erase-time = <25>;
130+
// max-erase-time = <25>;
131131
};
132132
};
133133

@@ -139,8 +139,8 @@
139139

140140
exti: interrupt-controller@40010400 {
141141
compatible = "st,stm32-exti";
142-
interrupt-controller;
143-
#interrupt-cells = <1>;
142+
// interrupt-controller;
143+
// #interrupt-cells = <1>;
144144
reg = <0x40010400 0x400>;
145145
};
146146

@@ -363,9 +363,9 @@
363363
#address-cells = <1>;
364364
#size-cells = <0>;
365365
reg = <0x40006400 0x400>, <0x4000A400 0x350>;
366-
reg-names = "m_can", "message_ram";
367-
interrupts = <21 0>, <22 0>;
368-
interrupt-names = "LINE_0", "LINE_1";
366+
// reg-names = "m_can", "message_ram";
367+
// interrupts = <21 0>, <22 0>;
368+
// interrupt-names = "LINE_0", "LINE_1";
369369
status = "disabled";
370370
label = "CAN_1";
371371
};
@@ -585,7 +585,8 @@
585585

586586
dma1: dma@40020000 {
587587
compatible = "st,stm32-dma-v2";
588-
#dma-cells = <4>;
588+
#dma-cells = <3>;
589+
interrupts = <20 0>, <19 0>;
589590
reg = <0x40020000 0x400>;
590591
clocks = <&rcc GD32_CLOCK_BUS_AHB1 0x1>;
591592
dma-offset = <0>;
@@ -595,16 +596,17 @@
595596

596597
dma2: dma@40020400 {
597598
compatible = "st,stm32-dma-v2";
598-
#dma-cells = <4>;
599+
#dma-cells = <3>;
599600
reg = <0x40020400 0x400>;
601+
interrupts = <20 0>, <19 0>;
600602
clocks = <&rcc GD32_CLOCK_BUS_AHB1 0x2>;
601603
status = "disabled";
602604
label = "DMA_2";
603605
};
604606

605607
dmamux1: dmamux@40020800 {
606608
compatible = "st,stm32-dmamux";
607-
#dma-cells = <4>;
609+
#dma-cells = <3>;
608610
reg = <0x40020800 0x400>;
609611
interrupts = <94 0>;
610612
clocks = <&rcc GD32_CLOCK_BUS_AHB1 0x4>;

0 commit comments

Comments
 (0)