blob: 8fe15c611d8a2c6cb512a1bd357da36bd12aaa95 [file] [log] [blame]
# Copyright (c) 2018, Endre Karlson
# Copyright (c) 2018, Song Qiang <songqiang1304521@gmail.com>
# SPDX-License-Identifier: Apache-2.0
description: ST STM32 family ADC
compatible: "st,stm32-adc"
include: [adc-controller.yaml, pinctrl-device.yaml]
properties:
reg:
required: true
clocks:
required: true
interrupts:
required: true
"#io-channel-cells":
const: 1
pinctrl-0:
required: true
pinctrl-names:
required: true
vref-mv:
type: int
default: 3300
description: Indicates the reference voltage of the ADC in mV (on the target board).
has-temp-channel:
type: boolean
description: Indicates if the ADC has a dedicated internal temperature sensor channel.
has-vref-channel:
type: boolean
description: Indicates if the ADC has a dedicated internal voltage reference channel.
has-vbat-channel:
type: boolean
description: Indicates if the ADC has a dedicated internal vbat monitoring channel.
temp-channel:
type: int
description: Indicates the ADC channel of the internal temperature sensor.
vref-channel:
type: int
description: Indicates the ADC channel of the internal voltage reference.
vbat-channel:
type: int
description: Indicates the ADC channel of the internal vbat monitoring.
io-channel-cells:
- input