Skip to content

Commit 111b2bb

Browse files
gautierg-stcarlescufi
authored andcommitted
boards: st: add adc clock source if asynchronous clock is used
For all STM32 boards that define an asynchronous clock for ADC, specify which clock is to be used in the clock node. Signed-off-by: Guillaume Gautier <[email protected]>
1 parent 1d639aa commit 111b2bb

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

boards/st/nucleo_g071rb/nucleo_g071rb.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@
143143
};
144144

145145
&adc1 {
146+
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00100000>,
147+
<&rcc STM32_SRC_SYSCLK ADC_SEL(0)>;
146148
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>;
147149
pinctrl-names = "default";
148150
st,adc-clock-source = <ASYNC>;

boards/st/nucleo_h533re/nucleo_h533re.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@
121121
};
122122

123123
&adc1 {
124+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000400>,
125+
<&rcc STM32_SRC_HCLK ADCDAC_SEL(0)>;
124126
pinctrl-0 = <&adc1_inp0_pa0>; /* Arduino A0 */
125127
pinctrl-names = "default";
126128
st,adc-clock-source = <ASYNC>;

boards/st/nucleo_h563zi/nucleo_h563zi-common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@
145145
};
146146

147147
&adc1 {
148+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000400>,
149+
<&rcc STM32_SRC_HCLK ADCDAC_SEL(0)>;
148150
pinctrl-0 = <&adc1_inp3_pa6 &adc1_inp15_pa3>; /* Zio A0, Zio D35 */
149151
pinctrl-names = "default";
150152
st,adc-clock-source = <ASYNC>;

boards/st/stm32h573i_dk/stm32h573i_dk.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@
237237
};
238238

239239
&adc1 {
240+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000400>,
241+
<&rcc STM32_SRC_HCLK ADCDAC_SEL(0)>;
240242
pinctrl-0 = <&adc1_inp6_pf12>; /* Arduino A5 */
241243
pinctrl-names = "default";
242244
st,adc-clock-source = <ASYNC>;

0 commit comments

Comments
 (0)