From 0cd40c8d0e393cd9f21b405ec41210070f0d8e17 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Mon, 28 Aug 2023 10:54:10 +0200 Subject: [PATCH] boards: arm: add adc clock properties for all stm32 boards Add ADC clock source and prescaler properties to all STM32 boards. (cherry picked from commit eaabe204d7323028212f6abb168d3ce87b1758d8) Original-Signed-off-by: Guillaume Gautier GitOrigin-RevId: eaabe204d7323028212f6abb168d3ce87b1758d8 Change-Id: Icaa42960ce0e7c4678e4ef9f7235c85ab6c14792 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4822197 Tested-by: ChromeOS Prod (Robot) Reviewed-by: Yuval Peress Commit-Queue: Yuval Peress Tested-by: Yuval Peress --- boards/arm/96b_aerocore2/96b_aerocore2.dts | 2 ++ boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts | 2 ++ boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi | 4 ++++ boards/arm/blackpill_f401cc/blackpill_f401cc.dts | 2 ++ boards/arm/blackpill_f401ce/blackpill_f401ce.dts | 2 ++ boards/arm/blackpill_f411ce/blackpill_f411ce.dts | 2 ++ boards/arm/disco_l475_iot1/disco_l475_iot1.dts | 2 ++ boards/arm/google_twinkie_v2/google_twinkie_v2.dts | 2 ++ boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts | 2 ++ boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts | 2 ++ boards/arm/nucleo_c031c6/nucleo_c031c6.dts | 2 ++ boards/arm/nucleo_f030r8/nucleo_f030r8.dts | 2 ++ boards/arm/nucleo_f031k6/nucleo_f031k6.dts | 2 ++ boards/arm/nucleo_f042k6/nucleo_f042k6.dts | 2 ++ boards/arm/nucleo_f070rb/nucleo_f070rb.dts | 2 ++ boards/arm/nucleo_f091rc/nucleo_f091rc.dts | 2 ++ boards/arm/nucleo_f207zg/nucleo_f207zg.dts | 2 ++ boards/arm/nucleo_f302r8/nucleo_f302r8.dts | 2 ++ boards/arm/nucleo_f303k8/nucleo_f303k8.dts | 2 ++ boards/arm/nucleo_f401re/nucleo_f401re.dts | 2 ++ boards/arm/nucleo_f429zi/nucleo_f429zi.dts | 2 ++ boards/arm/nucleo_f446ze/nucleo_f446ze.dts | 2 ++ boards/arm/nucleo_f746zg/nucleo_f746zg.dts | 2 ++ boards/arm/nucleo_f767zi/nucleo_f767zi.dts | 2 ++ boards/arm/nucleo_g070rb/nucleo_g070rb.dts | 2 ++ boards/arm/nucleo_g071rb/nucleo_g071rb.dts | 2 ++ boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts | 2 ++ boards/arm/nucleo_g474re/nucleo_g474re.dts | 2 ++ boards/arm/nucleo_h743zi/nucleo_h743zi.dts | 4 ++++ boards/arm/nucleo_h753zi/nucleo_h753zi.dts | 2 ++ boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts | 2 ++ boards/arm/nucleo_l073rz/nucleo_l073rz.dts | 2 ++ boards/arm/nucleo_l152re/nucleo_l152re.dts | 2 ++ boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts | 2 ++ boards/arm/nucleo_l476rg/nucleo_l476rg.dts | 2 ++ boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts | 2 ++ boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts | 2 ++ boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts | 2 ++ boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts | 2 ++ boards/arm/ronoth_lodev/ronoth_lodev.dts | 2 ++ boards/arm/stm32f3_disco/stm32f3_disco.dts | 2 ++ boards/arm/stm32f401_mini/stm32f401_mini.dts | 2 ++ boards/arm/stm32g081b_eval/stm32g081b_eval.dts | 2 ++ boards/arm/stm32h573i_dk/stm32h573i_dk.dts | 2 ++ boards/arm/stm32h735g_disco/stm32h735g_disco.dts | 2 ++ boards/arm/stm32l496g_disco/stm32l496g_disco.dts | 2 ++ boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi | 2 ++ boards/arm/swan_r5/swan_r5.dts | 2 ++ 48 files changed, 100 insertions(+) diff --git a/boards/arm/96b_aerocore2/96b_aerocore2.dts b/boards/arm/96b_aerocore2/96b_aerocore2.dts index 0b9c269906c..4a4e8672f7f 100644 --- a/boards/arm/96b_aerocore2/96b_aerocore2.dts +++ b/boards/arm/96b_aerocore2/96b_aerocore2.dts @@ -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 = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts b/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts index 8d16c99edd9..d5dc048b48a 100644 --- a/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts +++ b/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts @@ -134,6 +134,8 @@ &adc2 { pinctrl-0 = <&adc2_in8_pc2>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; #address-cells = <1>; diff --git a/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi b/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi index a38b391ba9b..b9b07348f3c 100644 --- a/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi +++ b/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi @@ -189,12 +189,16 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in15_pb0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; &adc4 { pinctrl-0 = <&adc4_in19_pb1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/blackpill_f401cc/blackpill_f401cc.dts b/boards/arm/blackpill_f401cc/blackpill_f401cc.dts index 6b8db4dda52..1fdecac9704 100644 --- a/boards/arm/blackpill_f401cc/blackpill_f401cc.dts +++ b/boards/arm/blackpill_f401cc/blackpill_f401cc.dts @@ -125,6 +125,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/blackpill_f401ce/blackpill_f401ce.dts b/boards/arm/blackpill_f401ce/blackpill_f401ce.dts index 12682be3ec4..d670a327019 100644 --- a/boards/arm/blackpill_f401ce/blackpill_f401ce.dts +++ b/boards/arm/blackpill_f401ce/blackpill_f401ce.dts @@ -125,6 +125,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/blackpill_f411ce/blackpill_f411ce.dts b/boards/arm/blackpill_f411ce/blackpill_f411ce.dts index c2a1e8337af..d53bfa5f021 100644 --- a/boards/arm/blackpill_f411ce/blackpill_f411ce.dts +++ b/boards/arm/blackpill_f411ce/blackpill_f411ce.dts @@ -126,6 +126,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/disco_l475_iot1/disco_l475_iot1.dts b/boards/arm/disco_l475_iot1/disco_l475_iot1.dts index ca3e9520ca9..fb6b138b931 100644 --- a/boards/arm/disco_l475_iot1/disco_l475_iot1.dts +++ b/boards/arm/disco_l475_iot1/disco_l475_iot1.dts @@ -292,6 +292,8 @@ zephyr_udc0: &usbotg_fs { &adc1_in4_pc3 &adc1_in13_pc4 &adc1_in14_pc5>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/google_twinkie_v2/google_twinkie_v2.dts b/boards/arm/google_twinkie_v2/google_twinkie_v2.dts index e8f359e0fd0..1f918f848ed 100644 --- a/boards/arm/google_twinkie_v2/google_twinkie_v2.dts +++ b/boards/arm/google_twinkie_v2/google_twinkie_v2.dts @@ -101,6 +101,8 @@ &adc1_in18_pc5 /* CSA_CC2 */ >; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; channel@1 { diff --git a/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts b/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts index 35f8f8e6174..268573de547 100644 --- a/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts +++ b/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts @@ -157,6 +157,8 @@ &adc1 { pinctrl-0 = <&adc_in2_pb3>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts b/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts index 7409f08ff97..74ec6b395bb 100644 --- a/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts +++ b/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts @@ -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 = ; + st,adc-prescaler = <2>; }; &vref { diff --git a/boards/arm/nucleo_c031c6/nucleo_c031c6.dts b/boards/arm/nucleo_c031c6/nucleo_c031c6.dts index 575caf20cf6..404c1cb2962 100644 --- a/boards/arm/nucleo_c031c6/nucleo_c031c6.dts +++ b/boards/arm/nucleo_c031c6/nucleo_c031c6.dts @@ -117,6 +117,8 @@ &adc1 { pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1 &adc1_in4_pa4>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_f030r8/nucleo_f030r8.dts b/boards/arm/nucleo_f030r8/nucleo_f030r8.dts index c7329b85d68..3e346fc20c7 100644 --- a/boards/arm/nucleo_f030r8/nucleo_f030r8.dts +++ b/boards/arm/nucleo_f030r8/nucleo_f030r8.dts @@ -118,6 +118,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_f031k6/nucleo_f031k6.dts b/boards/arm/nucleo_f031k6/nucleo_f031k6.dts index 6756f3d9954..0b5f9a04161 100644 --- a/boards/arm/nucleo_f031k6/nucleo_f031k6.dts +++ b/boards/arm/nucleo_f031k6/nucleo_f031k6.dts @@ -103,6 +103,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_f042k6/nucleo_f042k6.dts b/boards/arm/nucleo_f042k6/nucleo_f042k6.dts index 5573827acc3..d3afe9e59e3 100644 --- a/boards/arm/nucleo_f042k6/nucleo_f042k6.dts +++ b/boards/arm/nucleo_f042k6/nucleo_f042k6.dts @@ -98,6 +98,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_f070rb/nucleo_f070rb.dts b/boards/arm/nucleo_f070rb/nucleo_f070rb.dts index 462aa89b3d0..7cd2e3bd7b6 100644 --- a/boards/arm/nucleo_f070rb/nucleo_f070rb.dts +++ b/boards/arm/nucleo_f070rb/nucleo_f070rb.dts @@ -116,6 +116,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_f091rc/nucleo_f091rc.dts b/boards/arm/nucleo_f091rc/nucleo_f091rc.dts index d8516f65a95..b496e041c9a 100644 --- a/boards/arm/nucleo_f091rc/nucleo_f091rc.dts +++ b/boards/arm/nucleo_f091rc/nucleo_f091rc.dts @@ -151,6 +151,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_f207zg/nucleo_f207zg.dts b/boards/arm/nucleo_f207zg/nucleo_f207zg.dts index 74e31668b3c..0c8d36af39b 100644 --- a/boards/arm/nucleo_f207zg/nucleo_f207zg.dts +++ b/boards/arm/nucleo_f207zg/nucleo_f207zg.dts @@ -164,6 +164,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f302r8/nucleo_f302r8.dts b/boards/arm/nucleo_f302r8/nucleo_f302r8.dts index 6ecc75822b9..cb46e89563a 100644 --- a/boards/arm/nucleo_f302r8/nucleo_f302r8.dts +++ b/boards/arm/nucleo_f302r8/nucleo_f302r8.dts @@ -124,6 +124,8 @@ &adc1 { pinctrl-0 = <&adc1_in1_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f303k8/nucleo_f303k8.dts b/boards/arm/nucleo_f303k8/nucleo_f303k8.dts index bf3252279c7..1090ae23ab2 100644 --- a/boards/arm/nucleo_f303k8/nucleo_f303k8.dts +++ b/boards/arm/nucleo_f303k8/nucleo_f303k8.dts @@ -99,6 +99,8 @@ &adc1 { pinctrl-0 = <&adc1_in1_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f401re/nucleo_f401re.dts b/boards/arm/nucleo_f401re/nucleo_f401re.dts index 0371d00d72f..c45c1cffb64 100644 --- a/boards/arm/nucleo_f401re/nucleo_f401re.dts +++ b/boards/arm/nucleo_f401re/nucleo_f401re.dts @@ -173,6 +173,8 @@ &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f429zi/nucleo_f429zi.dts b/boards/arm/nucleo_f429zi/nucleo_f429zi.dts index 496369f79d7..2e37e448655 100644 --- a/boards/arm/nucleo_f429zi/nucleo_f429zi.dts +++ b/boards/arm/nucleo_f429zi/nucleo_f429zi.dts @@ -90,6 +90,8 @@ &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f446ze/nucleo_f446ze.dts b/boards/arm/nucleo_f446ze/nucleo_f446ze.dts index a7d4a8d3edb..d6c7dd4be45 100644 --- a/boards/arm/nucleo_f446ze/nucleo_f446ze.dts +++ b/boards/arm/nucleo_f446ze/nucleo_f446ze.dts @@ -87,6 +87,8 @@ &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f746zg/nucleo_f746zg.dts b/boards/arm/nucleo_f746zg/nucleo_f746zg.dts index 5c70528ece9..db57eb734dc 100644 --- a/boards/arm/nucleo_f746zg/nucleo_f746zg.dts +++ b/boards/arm/nucleo_f746zg/nucleo_f746zg.dts @@ -177,6 +177,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_f767zi/nucleo_f767zi.dts b/boards/arm/nucleo_f767zi/nucleo_f767zi.dts index f2c11ea052d..8ae863248f2 100644 --- a/boards/arm/nucleo_f767zi/nucleo_f767zi.dts +++ b/boards/arm/nucleo_f767zi/nucleo_f767zi.dts @@ -172,6 +172,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/nucleo_g070rb/nucleo_g070rb.dts b/boards/arm/nucleo_g070rb/nucleo_g070rb.dts index fbe997a6d1b..57e1d3ebd01 100644 --- a/boards/arm/nucleo_g070rb/nucleo_g070rb.dts +++ b/boards/arm/nucleo_g070rb/nucleo_g070rb.dts @@ -138,6 +138,8 @@ &adc1 { pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; vref-mv = <3300>; }; diff --git a/boards/arm/nucleo_g071rb/nucleo_g071rb.dts b/boards/arm/nucleo_g071rb/nucleo_g071rb.dts index f06381de690..c9f1a2b6575 100644 --- a/boards/arm/nucleo_g071rb/nucleo_g071rb.dts +++ b/boards/arm/nucleo_g071rb/nucleo_g071rb.dts @@ -140,6 +140,8 @@ &adc1 { pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; vref-mv = <3300>; }; diff --git a/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts b/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts index 198ec0e30f3..e74550e497f 100644 --- a/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts +++ b/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts @@ -161,6 +161,8 @@ zephyr_udc0: &usb { &adc1 { pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_g474re/nucleo_g474re.dts b/boards/arm/nucleo_g474re/nucleo_g474re.dts index 1e0c34760f3..33c071d0adb 100644 --- a/boards/arm/nucleo_g474re/nucleo_g474re.dts +++ b/boards/arm/nucleo_g474re/nucleo_g474re.dts @@ -189,6 +189,8 @@ &adc1 { pinctrl-0 = <&adc1_in1_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts index 8c993b3a34b..f93964479e2 100644 --- a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts +++ b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts @@ -140,6 +140,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_inp15_pa3>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; @@ -150,6 +152,8 @@ zephyr_udc0: &usbotg_fs { &adc3 { pinctrl-0 = <&adc3_inp5_pf3>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_h753zi/nucleo_h753zi.dts b/boards/arm/nucleo_h753zi/nucleo_h753zi.dts index 869ade3957a..701cf4276f3 100644 --- a/boards/arm/nucleo_h753zi/nucleo_h753zi.dts +++ b/boards/arm/nucleo_h753zi/nucleo_h753zi.dts @@ -137,6 +137,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_inp15_pa3>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts b/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts index 832060e66f4..410bd0b6904 100644 --- a/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts +++ b/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts @@ -116,6 +116,8 @@ &adc1 { pinctrl-0 = <&adc1_inp15_pa3>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_l073rz/nucleo_l073rz.dts b/boards/arm/nucleo_l073rz/nucleo_l073rz.dts index 3a77cb7c7db..b5cf07203a6 100644 --- a/boards/arm/nucleo_l073rz/nucleo_l073rz.dts +++ b/boards/arm/nucleo_l073rz/nucleo_l073rz.dts @@ -135,6 +135,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_l152re/nucleo_l152re.dts b/boards/arm/nucleo_l152re/nucleo_l152re.dts index d0c250f18cf..fc308f5988f 100644 --- a/boards/arm/nucleo_l152re/nucleo_l152re.dts +++ b/boards/arm/nucleo_l152re/nucleo_l152re.dts @@ -124,6 +124,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts b/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts index 582537fb719..070260451f3 100644 --- a/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts +++ b/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts @@ -117,6 +117,8 @@ &adc1 { pinctrl-0 = <&adc1_in5_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_l476rg/nucleo_l476rg.dts b/boards/arm/nucleo_l476rg/nucleo_l476rg.dts index 2d0b47ee6b5..b39a87345e5 100644 --- a/boards/arm/nucleo_l476rg/nucleo_l476rg.dts +++ b/boards/arm/nucleo_l476rg/nucleo_l476rg.dts @@ -167,6 +167,8 @@ &adc1 { pinctrl-0 = <&adc1_in1_pc0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts b/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts index c14a8af00cb..690e4bea360 100644 --- a/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts +++ b/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts @@ -206,6 +206,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in1_pc0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts index 75f6dbd2ab8..b92c921df38 100644 --- a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts +++ b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts @@ -177,6 +177,8 @@ &adc1 { pinctrl-0 = <&adc1_in3_pc2>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts b/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts index eff6e955772..0a6e03c7d6c 100644 --- a/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts +++ b/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts @@ -106,6 +106,8 @@ &adc4 { pinctrl-0 = <&adc4_in8_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts b/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts index 5ec02cf0559..48822f2fe13 100644 --- a/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts +++ b/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts @@ -144,6 +144,8 @@ &adc1 { pinctrl-0 = <&adc_in5_pb1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/ronoth_lodev/ronoth_lodev.dts b/boards/arm/ronoth_lodev/ronoth_lodev.dts index f801db87fb5..024e71a7210 100644 --- a/boards/arm/ronoth_lodev/ronoth_lodev.dts +++ b/boards/arm/ronoth_lodev/ronoth_lodev.dts @@ -163,6 +163,8 @@ &adc1 { pinctrl-0 = <&adc_in0_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/stm32f3_disco/stm32f3_disco.dts b/boards/arm/stm32f3_disco/stm32f3_disco.dts index 2ec8f21e1f1..f90c10cf71c 100644 --- a/boards/arm/stm32f3_disco/stm32f3_disco.dts +++ b/boards/arm/stm32f3_disco/stm32f3_disco.dts @@ -220,6 +220,8 @@ zephyr_udc0: &usb { &adc1 { pinctrl-0 = <&adc1_in1_pa0>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/stm32f401_mini/stm32f401_mini.dts b/boards/arm/stm32f401_mini/stm32f401_mini.dts index 513a5fe3e3f..8553bd8edf4 100644 --- a/boards/arm/stm32f401_mini/stm32f401_mini.dts +++ b/boards/arm/stm32f401_mini/stm32f401_mini.dts @@ -117,6 +117,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in1_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <2>; status = "okay"; }; diff --git a/boards/arm/stm32g081b_eval/stm32g081b_eval.dts b/boards/arm/stm32g081b_eval/stm32g081b_eval.dts index 79c7835d6b4..fa29e8147d0 100644 --- a/boards/arm/stm32g081b_eval/stm32g081b_eval.dts +++ b/boards/arm/stm32g081b_eval/stm32g081b_eval.dts @@ -131,6 +131,8 @@ &adc1 { pinctrl-0 = <&adc1_in3_pa3 &adc1_in9_pb1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; #address-cells = <1>; diff --git a/boards/arm/stm32h573i_dk/stm32h573i_dk.dts b/boards/arm/stm32h573i_dk/stm32h573i_dk.dts index 0f33f7c5e85..efe64d0e781 100644 --- a/boards/arm/stm32h573i_dk/stm32h573i_dk.dts +++ b/boards/arm/stm32h573i_dk/stm32h573i_dk.dts @@ -206,6 +206,8 @@ &adc1 { pinctrl-0 = <&adc1_inp6_pf12>; /* Arduino A5 */ pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <6>; status = "okay"; }; diff --git a/boards/arm/stm32h735g_disco/stm32h735g_disco.dts b/boards/arm/stm32h735g_disco/stm32h735g_disco.dts index 7f99d83167d..29eef0e5326 100644 --- a/boards/arm/stm32h735g_disco/stm32h735g_disco.dts +++ b/boards/arm/stm32h735g_disco/stm32h735g_disco.dts @@ -113,6 +113,8 @@ &adc1 { pinctrl-0 = <&adc1_inp0_pa0_c>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/stm32l496g_disco/stm32l496g_disco.dts b/boards/arm/stm32l496g_disco/stm32l496g_disco.dts index d67625c9f10..977e70142ef 100644 --- a/boards/arm/stm32l496g_disco/stm32l496g_disco.dts +++ b/boards/arm/stm32l496g_disco/stm32l496g_disco.dts @@ -165,6 +165,8 @@ &adc1 { pinctrl-0 = < &adc1_in2_pc1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi index 84f32dc10ee..14f11ece9a9 100644 --- a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi +++ b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi @@ -202,6 +202,8 @@ &adc1 { pinctrl-0 = <&adc1_in13_pc4>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; }; diff --git a/boards/arm/swan_r5/swan_r5.dts b/boards/arm/swan_r5/swan_r5.dts index 73f3c7410e3..221ca274fde 100644 --- a/boards/arm/swan_r5/swan_r5.dts +++ b/boards/arm/swan_r5/swan_r5.dts @@ -195,6 +195,8 @@ zephyr_udc0: &usbotg_fs { &adc1 { pinctrl-0 = <&adc1_in6_pa1>; pinctrl-names = "default"; + st,adc-clock-source = ; + st,adc-prescaler = <4>; status = "okay"; };