Skip to content

Commit

Permalink
drivers: adc: adc_mcux_adc12: set the vref as a property
Browse files Browse the repository at this point in the history
Add the vref reference voltage in the DTS, so that the adc driver
can retrieve the value for conversion.

Signed-off-by: Marcin Wierzbicki <[email protected]>
  • Loading branch information
marcin-wierzbicki authored and nashif committed Aug 30, 2024
1 parent 53e7a9d commit 71810a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dts/bindings/adc/nxp,kinetis-adc12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ properties:
required: true
description: sample time in clock cycles

vref-mv:
type: int
required: true
description: Indicates the reference voltage of the ADC in mV.

"#io-channel-cells":
const: 1

Expand Down

0 comments on commit 71810a5

Please sign in to comment.