Skip to content

Commit 63321e7

Browse files
gmarullnashif
authored andcommitted
dts: arm: gd32f4xx: add pinctrl and gpio nodes
Add definitions for the pinctrl and gpio nodes. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 543a384 commit 63321e7

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

dts/arm/gigadevice/gd32f4xx/gd32f4xx.dtsi

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,87 @@
5353
status = "disabled";
5454
label = "USART0";
5555
};
56+
57+
pinctrl: pin-controller@40020000 {
58+
compatible = "gd,gd32-pinctrl-af";
59+
reg = <0x40020000 0x2400>;
60+
#address-cells = <1>;
61+
#size-cells = <1>;
62+
status = "okay";
63+
label = "PINCTRL";
64+
65+
gpioa: gpio@40020000 {
66+
compatible = "gd,gd32-gpio";
67+
reg = <0x40020000 0x400>;
68+
rcu-periph-clock = <0xc00>;
69+
status = "disabled";
70+
label = "GPIOA";
71+
};
72+
73+
gpiob: gpio@40020400 {
74+
compatible = "gd,gd32-gpio";
75+
reg = <0x40020400 0x400>;
76+
rcu-periph-clock = <0xc01>;
77+
status = "disabled";
78+
label = "GPIOB";
79+
};
80+
81+
gpioc: gpio@40020800 {
82+
compatible = "gd,gd32-gpio";
83+
reg = <0x40020800 0x400>;
84+
rcu-periph-clock = <0xc02>;
85+
status = "disabled";
86+
label = "GPIOC";
87+
};
88+
89+
gpiod: gpio@40020c00 {
90+
compatible = "gd,gd32-gpio";
91+
reg = <0x40020c00 0x400>;
92+
rcu-periph-clock = <0xc03>;
93+
status = "disabled";
94+
label = "GPIOD";
95+
};
96+
97+
gpioe: gpio@40021000 {
98+
compatible = "gd,gd32-gpio";
99+
reg = <0x40021000 0x400>;
100+
rcu-periph-clock = <0xc04>;
101+
status = "disabled";
102+
label = "GPIOE";
103+
};
104+
105+
gpiof: gpio@40021400 {
106+
compatible = "gd,gd32-gpio";
107+
reg = <0x40021400 0x400>;
108+
rcu-periph-clock = <0xc05>;
109+
status = "disabled";
110+
label = "GPIOF";
111+
};
112+
113+
gpiog: gpio@40021800 {
114+
compatible = "gd,gd32-gpio";
115+
reg = <0x40021800 0x400>;
116+
rcu-periph-clock = <0xc06>;
117+
status = "disabled";
118+
label = "GPIOG";
119+
};
120+
121+
gpioh: gpio@40021c00 {
122+
compatible = "gd,gd32-gpio";
123+
reg = <0x40021c00 0x400>;
124+
rcu-periph-clock = <0xc07>;
125+
status = "disabled";
126+
label = "GPIOH";
127+
};
128+
129+
gpioi: gpio@40022000 {
130+
compatible = "gd,gd32-gpio";
131+
reg = <0x40022000 0x400>;
132+
rcu-periph-clock = <0xc08>;
133+
status = "disabled";
134+
label = "GPIOI";
135+
};
136+
};
56137
};
57138
};
58139

0 commit comments

Comments
 (0)