Skip to content

Commit 1f74c01

Browse files
gmarullnashif
authored andcommitted
dts: arm: gigadevice: gd32f403: add afio and pinctrl
Add afio, pinctrl and gpioa...g entries for the GD32F403 series. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent f8017dc commit 1f74c01

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

dts/arm/gigadevice/gd32f403/gd32f403.dtsi

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,79 @@
4646
};
4747
};
4848

49+
afio: afio@40010000 {
50+
compatible = "gd,gd32-afio";
51+
reg = <0x40010000 0x400>;
52+
rcu-periph-clock = <0x600>;
53+
status = "okay";
54+
label = "AFIO";
55+
};
56+
57+
pinctrl: pin-controller@40010800 {
58+
compatible = "gd,gd32-pinctrl-afio";
59+
reg = <0x40010800 0x1c00>;
60+
#address-cells = <1>;
61+
#size-cells = <1>;
62+
status = "okay";
63+
label = "PINCTRL";
64+
65+
gpioa: gpio@40010800 {
66+
compatible = "gd,gd32-gpio";
67+
reg = <0x40010800 0x400>;
68+
rcu-periph-clock = <0x602>;
69+
status = "disabled";
70+
label = "GPIOA";
71+
};
72+
73+
gpiob: gpio@40010c00 {
74+
compatible = "gd,gd32-gpio";
75+
reg = <0x40010c00 0x400>;
76+
rcu-periph-clock = <0x603>;
77+
status = "disabled";
78+
label = "GPIOB";
79+
};
80+
81+
gpioc: gpio@40011000 {
82+
compatible = "gd,gd32-gpio";
83+
reg = <0x40011000 0x400>;
84+
rcu-periph-clock = <0x604>;
85+
status = "disabled";
86+
label = "GPIOC";
87+
};
88+
89+
gpiod: gpio@40011400 {
90+
compatible = "gd,gd32-gpio";
91+
reg = <0x40011400 0x400>;
92+
rcu-periph-clock = <0x605>;
93+
status = "disabled";
94+
label = "GPIOD";
95+
};
96+
97+
gpioe: gpio@40011800 {
98+
compatible = "gd,gd32-gpio";
99+
reg = <0x40011800 0x400>;
100+
rcu-periph-clock = <0x606>;
101+
status = "disabled";
102+
label = "GPIOE";
103+
};
104+
105+
gpiof: gpio@40011c00 {
106+
compatible = "gd,gd32-gpio";
107+
reg = <0x40011c00 0x400>;
108+
rcu-periph-clock = <0x607>;
109+
status = "disabled";
110+
label = "GPIOF";
111+
};
112+
113+
gpiog: gpio@40012000 {
114+
compatible = "gd,gd32-gpio";
115+
reg = <0x40012000 0x400>;
116+
rcu-periph-clock = <0x608>;
117+
status = "disabled";
118+
label = "GPIOG";
119+
};
120+
};
121+
49122
usart0: usart@40013800 {
50123
compatible = "gd,gd32-usart";
51124
reg = <0x40013800 0x400>;

0 commit comments

Comments
 (0)