ti,mspm0-comparator

Description

Texas Instruments MSPM0 Comparator Module with Reference DAC

Properties

Properties not inherited from the base binding file.

Name

Type

Details

positive-inputs

int

Positive input channel selection (0-7) and also acts as
window comparator input in window comparator mode.
Default is channel 0 which is the hardware reset state.
Change to match the board pin connection.

negative-inputs

int

Negative input channel selection (0-7) and also acts as
upperthreshold channel input in window comparator mode.
Default is channel 0 which is the hardware reset state.
Change to match the board pin connection.

ti,mode

string

Comparator operating mode. Default is fast which is the
hardware reset state. Use ulp for ultra-low-power
applications.

Default value: fast

Legal values: fast, ulp

ti,hysteresis

string

Comparator hysteresis in millivolts. Default is none
which is the hardware reset state. Enable to prevent
output toggling near the threshold.

Default value: none

Legal values: none, 10, 20, 30

ti,reference-source

string

Reference voltage source selection. Default is none which
disables the internal reference and uses both external
input channels.

Default value: none

Legal values: none, vdda_dac, vdda, int_vref_dac, vref_dac, int_vref, vref

ti,reference-terminal

string

Selects which terminal receives the internal reference.
Default is neg as the common use case is comparing an
external signal on the positive terminal against an
internal threshold on the negative terminal.

Default value: neg

Legal values: pos, neg

ti,reference-dac-code0

int

8-bit DAC code for reference level 0. Default is 128
which sets the DAC output to the midpoint of the range.

Default value: 128

ti,reference-dac-code1

int

8-bit DAC code for reference level 1. Default is 128
which sets the DAC output to the midpoint of the range.

Default value: 128

ti,reference-dac-control

string

comp_out automatically chooses the dac reference input
either code0 or code1 based on output high and low
respectively and for sw manually select the dac reference
input. Default is comp_out which is the hardware reset
state.

Default value: comp_out

Legal values: comp_out, sw

ti,reference-dac-input

int

This is used for selecting the reference dac input either
code0 or code1 for sw dac control. Default is 0 which
selects code0. Only applicable when ti,reference-dac-control
is sw.

Legal values: 0, 1

ti,filter-enable

boolean

Enable analog output filter.

ti,filter-delay

int

Output filter delay in nanoseconds. Default is 70 which
provides the shortest delay for fastest response. Increase
for better noise rejection. Only applicable when
ti,filter-enable is set.

Default value: 70

Legal values: 70, 500, 1200, 2700

ti,window-mode-enable

boolean

ti,window-lower-threshold

int

select the channel from 0 to 7.

ti,window-companion

phandle

vref

phandle

For internal reference selection phandle the vref0 node and enable the
regulator (vref module in mspm0).

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.