st,stm32h7-comp

Description

STM32H7 series Comparator

Properties

Properties not inherited from the base binding file.

Name

Type

Details

negative-input

string

This property is required.

Legal values: 1_4VREFINT, 1_2VREFINT, 3_4VREFINT, VREFINT, DAC1_CH1, DAC1_CH2, IN0, IN1, TPSENS_DAC2CH1, VBAT_VDDAP

st,power-mode

string

Select comparator speed vs power mode.
Typical modes: fast (higher current), medium, low power, ultra-low power.
Availability varies by series.

Legal values: HIGHSPEED, MEDIUMSPEED, ULTRALOWPOWER

st,blank-sel

string

Default value: NONE

Legal values: NONE, TIM1_OC5, TIM2_OC3, TIM3_OC3, TIM3_OC4, TIM8_OC5, TIM15_OC1

invert-output

string

Output polarity selection.

Default value: NONINVERTED

Legal values: NONINVERTED, INVERTED

st,exti-line

int

EXTI interrupt line number connected to the comparator (COMPx) event.

This property is required.

st,lock-enable

boolean

The comparator configuration can be locked to prevent any
modification until the next system reset.
Once the lock bit is set, it can be cleared only by a system reset.
This feature allows to protect the comparator configuration against
unintentional modification.

positive-input

string

Selects positive input pin provided by the pinmux controller.
IN0 corresponds to the first pinmux option, IN1 to the second one.

This property is required.

Legal values: IN0, IN1

hysteresis

string

Selects the hysteresis voltage level.
Hysteresis adds a voltage offset to the comparator threshold to prevent
unwanted output toggling when the input voltage is noisy or slowly
varying around the comparator threshold.

Default value: NONE

Legal values: NONE, LOW, MEDIUM, HIGH

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.