st,stm32g4-comp

Vendor: STMicroelectronics

Description

STM32G4 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', 'DAC2_CH1', 'DAC3_CH1', 'DAC3_CH2', 'DAC4_CH1', 'DAC4_CH2', 'IN0', 'IN1'

positive-input

string

This property is required.

Legal values: 'IN0', 'IN1', 'DAC2_CH1'

hysteresis

string

Default value: NONE

Legal values: 'NONE', 'LOW', 'MEDIUM', 'HIGH', '10MV', '20MV', '30MV', '40MV', '50MV', '60MV', '70MV'

st,blank-sel

string

Default value: NONE

Legal values: 'NONE', 'TIM1_OC5_COMP1', 'TIM1_OC5_COMP2', 'TIM1_OC5_COMP3', 'TIM1_OC5_COMP4', 'TIM1_OC5_COMP5', 'TIM1_OC5_COMP6', 'TIM1_OC5_COMP7', 'TIM2_OC3_COMP1', 'TIM2_OC3_COMP2', 'TIM2_OC3_COMP5', 'TIM2_OC4_COMP3', 'TIM2_OC4_COMP6', 'TIM3_OC3_COMP1', 'TIM3_OC3_COMP2', 'TIM3_OC3_COMP3', 'TIM3_OC3_COMP5', 'TIM3_OC3_COMP7', 'TIM3_OC4_COMP4', 'TIM8_OC5_COMP1', 'TIM8_OC5_COMP2', 'TIM8_OC5_COMP3', 'TIM8_OC5_COMP4', 'TIM8_OC5_COMP5', 'TIM8_OC5_COMP6', 'TIM8_OC5_COMP7', 'TIM15_OC1_COMP4', 'TIM15_OC2_COMP6', 'TIM15_OC2_COMP7', 'TIM20_OC5', 'TIM15_OC1', 'TIM4_OC3'

st,miller-effect-hold-disable

boolean

Disables an undocumented compare feature (sets COMP_CxCSR bit #1 to 0) which
holds the comparator output during the duration of the Miller effect.
NOTE: This setting is supported only by stm32g4x series.
NOTE: It is recommended to enable the feature unless very fast events are tracked.
Please refer to following url for details:
https://community.st.com/t5/stm32-mcus-products/stm32g431-comparator-bug/m-p/679540#M250779

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.

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.