boards: arm: stm32g081b_eval: Add ADC1 Channel9
Add ADC1 Channel9 for measuring VBUS on UCPD Port1
};
&adc1 {
- pinctrl-0 = <&adc1_in3_pa3>;
+ pinctrl-0 = <&adc1_in3_pa3 &adc1_in9_pb1>;
pinctrl-names = "default";
status = "okay";
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
+
+ channel@9 {
+ reg = <9>;
+ zephyr,gain = "ADC_GAIN_1";
+ zephyr,reference = "ADC_REF_INTERNAL";
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
+ zephyr,resolution = <12>;
+ zephyr,vref-mv = <3300>;
+ };
};
&ucpd2 {
