Commit 293eb22d authored by Fabrice DJIATSA's avatar Fabrice DJIATSA Committed by Fabio Baltieri
Browse files

boards: st: add adc node in dts file and update docs



-enable adc in nucleo_u031r8, stm32u083c_dk and nucleo_u083rc
- add adc as new supported interface in docs
- update yaml files

Signed-off-by: default avatarFabrice DJIATSA <fabrice.djiatsa-ext@st.com>
parent 301111ea
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -140,6 +140,8 @@ The Zephyr _nucleo_u031r8_ board configuration supports the following hardware f
+-----------+------------+-------------------------------------+
| NVIC      | on-chip    | nested vector interrupt controller  |
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | adc                                 |
+-----------+------------+-------------------------------------+
| DAC       | on-chip    | DAC Controller                      |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
@@ -147,6 +149,7 @@ The Zephyr _nucleo_u031r8_ board configuration supports the following hardware f
| PWM       | on-chip    | pwm                                 |
+-----------+------------+-------------------------------------+


Other hardware features are not yet supported on this Zephyr port.

The default configuration can be found in the defconfig file:
+9 −0
Original line number Diff line number Diff line
@@ -102,6 +102,15 @@
	clock-frequency = <I2C_BITRATE_FAST>;
};

&adc1 {
	pinctrl-0 = <&adc1_in0_pc0 &adc1_in1_pc1>;
	pinctrl-names = "default";
	st,adc-clock-source = <SYNC>;
	st,adc-prescaler = <4>;
	status = "okay";
	vref-mv = <3300>;
};

&timers1 {
	st,prescaler = <10000>;
	status = "okay";
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ toolchain:
  - zephyr
supported:
  - arduino_gpio
  - adc
  - dac
  - gpio
  - i2c
+2 −0
Original line number Diff line number Diff line
@@ -146,6 +146,8 @@ The Zephyr nucleo_u083rc board configuration supports the following hardware fea
| UART      | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | adc                                 |
+-----------+------------+-------------------------------------+
| DAC       | on-chip    | DAC Controller                      |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+11 −0
Original line number Diff line number Diff line
@@ -102,6 +102,17 @@
	clock-frequency = <I2C_BITRATE_FAST>;
};

&adc1 {
	pinctrl-0 = <&adc1_in0_pc0 &adc1_in1_pc1>;
	pinctrl-names = "default";
	st,adc-clock-source = <ASYNC>;
	clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00100000>,
		 <&rcc STM32_SRC_HSI ADC_SEL(2)>;
	st,adc-prescaler = <4>;
	status = "okay";
	vref-mv = <3300>;
};

&timers1 {
	st,prescaler = <10000>;
	status = "okay";
Loading