Skip to content

Commit

Permalink
boards: arm: add adc clock properties for all stm32 boards
Browse files Browse the repository at this point in the history
Add ADC clock source and prescaler properties to all STM32 boards.

(cherry picked from commit eaabe20)

Original-Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
GitOrigin-RevId: eaabe20
Change-Id: Icaa42960ce0e7c4678e4ef9f7235c85ab6c14792
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4822197
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Yuval Peress <peress@google.com>
Commit-Queue: Yuval Peress <peress@google.com>
Tested-by: Yuval Peress <peress@google.com>
  • Loading branch information
gautierg-st authored and Chromeos LUCI committed Aug 29, 2023
1 parent e8ce9e3 commit 0cd40c8
Show file tree
Hide file tree
Showing 48 changed files with 100 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/arm/96b_aerocore2/96b_aerocore2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ zephyr_udc0: &usbotg_fs {
pinctrl-0 = <&adc1_in10_pc0 &adc1_in11_pc1
&adc1_in12_pc2 &adc1_in13_pc3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@
&adc2 {
pinctrl-0 = <&adc2_in8_pc2>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";

#address-cells = <1>;
Expand Down
4 changes: 4 additions & 0 deletions boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,16 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in15_pb0>;
pinctrl-names = "default";
st,adc-clock-source = <ASYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

&adc4 {
pinctrl-0 = <&adc4_in19_pb1>;
pinctrl-names = "default";
st,adc-clock-source = <ASYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/blackpill_f401cc/blackpill_f401cc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/blackpill_f401ce/blackpill_f401ce.dts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/blackpill_f411ce/blackpill_f411ce.dts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/disco_l475_iot1/disco_l475_iot1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ zephyr_udc0: &usbotg_fs {
&adc1_in4_pc3 &adc1_in13_pc4
&adc1_in14_pc5>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/google_twinkie_v2/google_twinkie_v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
&adc1_in18_pc5 /* CSA_CC2 */
>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";

channel@1 {
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@
&adc1 {
pinctrl-0 = <&adc_in2_pb3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ zephyr_udc0: &usbotg_fs {
status ="okay";
pinctrl-0 = <&adc1_in2_pa2 &adc1_in3_pa3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
};

&vref {
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_c031c6/nucleo_c031c6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
&adc1 {
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1 &adc1_in4_pa4>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f030r8/nucleo_f030r8.dts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f031k6/nucleo_f031k6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f042k6/nucleo_f042k6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f070rb/nucleo_f070rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f091rc/nucleo_f091rc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f207zg/nucleo_f207zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f302r8/nucleo_f302r8.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
&adc1 {
pinctrl-0 = <&adc1_in1_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f303k8/nucleo_f303k8.dts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
&adc1 {
pinctrl-0 = <&adc1_in1_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f401re/nucleo_f401re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f429zi/nucleo_f429zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f446ze/nucleo_f446ze.dts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f746zg/nucleo_f746zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f767zi/nucleo_f767zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_g070rb/nucleo_g070rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
&adc1 {
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
vref-mv = <3300>;
};
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_g071rb/nucleo_g071rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
&adc1 {
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
vref-mv = <3300>;
};
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ zephyr_udc0: &usb {
&adc1 {
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_g474re/nucleo_g474re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@
&adc1 {
pinctrl-0 = <&adc1_in1_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
4 changes: 4 additions & 0 deletions boards/arm/nucleo_h743zi/nucleo_h743zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_inp15_pa3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand All @@ -150,6 +152,8 @@ zephyr_udc0: &usbotg_fs {
&adc3 {
pinctrl-0 = <&adc3_inp5_pf3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_h753zi/nucleo_h753zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_inp15_pa3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
&adc1 {
pinctrl-0 = <&adc1_inp15_pa3>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_l073rz/nucleo_l073rz.dts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_l152re/nucleo_l152re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <ASYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
&adc1 {
pinctrl-0 = <&adc1_in5_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_l476rg/nucleo_l476rg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@
&adc1 {
pinctrl-0 = <&adc1_in1_pc0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in1_pc0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
&adc1 {
pinctrl-0 = <&adc1_in3_pc2>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
&adc4 {
pinctrl-0 = <&adc4_in8_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <ASYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
&adc1 {
pinctrl-0 = <&adc_in5_pb1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/ronoth_lodev/ronoth_lodev.dts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@
&adc1 {
pinctrl-0 = <&adc_in0_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/stm32f3_disco/stm32f3_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ zephyr_udc0: &usb {
&adc1 {
pinctrl-0 = <&adc1_in1_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
2 changes: 2 additions & 0 deletions boards/arm/stm32f401_mini/stm32f401_mini.dts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ zephyr_udc0: &usbotg_fs {
&adc1 {
pinctrl-0 = <&adc1_in1_pa1>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <2>;
status = "okay";
};

Expand Down
Loading

0 comments on commit 0cd40c8

Please sign in to comment.