Skip to content

Commit 3b9c34d

Browse files
joerchancarlescufi
authored andcommitted
dts: st: Add MCO node to STM32 boards
Add MCO device nodes to the STM32 boards. The set of supported boards are chosen to replace what is currently supported in Kconfig. Signed-off-by: Joakim Andersson <[email protected]>
1 parent 929c450 commit 3b9c34d

File tree

8 files changed

+81
-0
lines changed

8 files changed

+81
-0
lines changed

dts/arm/st/f1/stm32f1.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@
7272
};
7373
};
7474

75+
mcos {
76+
mco1: mco1 {
77+
compatible = "st,stm32f1-clock-mco";
78+
status = "disabled";
79+
};
80+
};
81+
7582
soc {
7683

7784
flash: flash-controller@40022000 {

dts/arm/st/f4/stm32f4.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@
9292
};
9393
};
9494

95+
mcos {
96+
mco1: mco1 {
97+
compatible = "st,stm32-clock-mco";
98+
status = "disabled";
99+
};
100+
101+
mco2: mco2 {
102+
compatible = "st,stm32-clock-mco";
103+
status = "disabled";
104+
};
105+
};
106+
95107
soc {
96108
flash: flash-controller@40023c00 {
97109
compatible = "st,stm32-flash-controller", "st,stm32f4-flash-controller";

dts/arm/st/f7/stm32f7.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@
8888
};
8989
};
9090

91+
mcos {
92+
mco1: mco1 {
93+
compatible = "st,stm32-clock-mco";
94+
status = "disabled";
95+
};
96+
97+
mco2: mco2 {
98+
compatible = "st,stm32-clock-mco";
99+
status = "disabled";
100+
};
101+
};
102+
91103
soc {
92104
fmc: memory-controller@a0000000 {
93105
compatible = "st,stm32-fmc";

dts/arm/st/h5/stm32h5.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@
9898
};
9999
};
100100

101+
mcos {
102+
mco1: mco1 {
103+
compatible = "st,stm32-clock-mco";
104+
status = "disabled";
105+
};
106+
107+
mco2: mco2 {
108+
compatible = "st,stm32-clock-mco";
109+
status = "disabled";
110+
};
111+
};
112+
101113
soc {
102114
flash: flash-controller@40022000 {
103115
compatible = "st,stm32-flash-controller", "st,stm32l5-flash-controller";

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@
127127
};
128128
};
129129

130+
mcos {
131+
mco1: mco1 {
132+
compatible = "st,stm32-clock-mco";
133+
status = "disabled";
134+
};
135+
136+
mco2: mco2 {
137+
compatible = "st,stm32-clock-mco";
138+
status = "disabled";
139+
};
140+
};
141+
130142
soc {
131143
flash: flash-controller@52002000 {
132144
compatible = "st,stm32-flash-controller", "st,stm32h7-flash-controller";

dts/arm/st/h7rs/stm32h7rs.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@
158158
};
159159
};
160160

161+
mcos {
162+
mco1: mco1 {
163+
compatible = "st,stm32-clock-mco";
164+
status = "disabled";
165+
};
166+
167+
mco2: mco2 {
168+
compatible = "st,stm32-clock-mco";
169+
status = "disabled";
170+
};
171+
};
172+
161173
soc {
162174
flash: flash-controller@52002000 {
163175
compatible = "st,stm32-flash-controller", "st,stm32h7-flash-controller";

dts/arm/st/l4/stm32l4.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@
106106
};
107107
};
108108

109+
mcos {
110+
mco1: mco1 {
111+
compatible = "st,stm32-clock-mco";
112+
status = "disabled";
113+
};
114+
};
115+
109116
soc {
110117
flash: flash-controller@40022000 {
111118
compatible = "st,stm32-flash-controller", "st,stm32l4-flash-controller";

dts/arm/st/u5/stm32u5.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@
148148
};
149149
};
150150

151+
mcos {
152+
mco1: mco1 {
153+
compatible = "st,stm32-clock-mco";
154+
status = "disabled";
155+
};
156+
};
157+
151158
soc {
152159
flash: flash-controller@40022000 {
153160
compatible = "st,stm32-flash-controller", "st,stm32l5-flash-controller";

0 commit comments

Comments
 (0)