Skip to content

UPSTREAM-PEND: backport COMP for MSPM0/MSPM33 - #53

Merged
Aman-Lachhiramka-ti merged 12 commits into
TexasInstruments:v4.4.0-ti-nextfrom
natto1784:v4.4.0-ti/drivers/comparator
Oct 7, 2026
Merged

Aman-Lachhiramka-ti merged 12 commits into
TexasInstruments:v4.4.0-ti-nextfrom
natto1784:v4.4.0-ti/drivers/comparator

Conversation

@natto1784

Copy link
Copy Markdown
Collaborator

This has following patchsets from upstream

ID Title Status
94737 drivers: comparator: mspm0: add a support for TI MSPM0 COMP module Merged
116778 dts: ti: add pinctrl DTSIs for MSPM0GX51X and MSPM33C321A families Open
119150 drivers: pinctrl: ti: mspm33: enable pinctrl for MSPM33C321A Open
118623 comparator: mspm0: convert from HAL to native Open

This also has following patchsets from downstream baked in for support

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff

✅ All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@natto1784
natto1784 force-pushed the v4.4.0-ti/drivers/comparator branch from 6c61ad0 to 9603326 Compare September 28, 2026 13:07
@natto1784 natto1784 changed the title UPSTREAM: backport COMP for MSPM0/MSPM33 UPSTREAM-PEND: backport COMP for MSPM0/MSPM33 Sep 28, 2026
@natto1784
natto1784 force-pushed the v4.4.0-ti/drivers/comparator branch from 9603326 to ceea21f Compare October 6, 2026 09:24
Alex9360 and others added 11 commits October 7, 2026 13:54
…odule

commit b565824 upstream.

Add bindings for COMP modules in mspm0 g and l series

Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
…odule

commit 17c20d7 upstream.

Add driver supporting the comp module in TI MSPM0 G and L series
with interrupt trigger and reference voltage support.

Add a window comparator mode feature for mspm0 g series

Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
commit bfab089 upstream.

Add a support for COMP nodes for mspm0 g and l series.

Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
…test

commit b131044 upstream.

Add board overlay for the TI LP-MSPM0G3507 to enable the
comparator gpio_loopback test using COMP0 with VDDA DAC
reference on the negative terminal.

Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
…r M...

PR: 118623

Several MSP peripherals require a small delay of 4 ULPCLK cycles after
enabling their power. When sourced from MCLK, ULPCLK can be as low as
CPUCLK / 4, making 16 CPUCLK cycles a safe value for this delay instead of
the default 8 CPUCLK cycles. This value works fine for MSPM0, MSPM33 and
AM13 SoCs.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
PR: 118623

Several MSP peripherals require a small delay after enabling their
power. This is configured by CONFIG_MSPM0_PERIPH_STARTUP_DELAY. Since this
number is too small, k_busy_wait seems overkill, so just do that amount of
NOPs instead and inline them.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
… ac...

PR: 118623

Replace the ti/driverlib dl_comp.h dependency with a native register map so
the driver no longer depends on the vendor HAL. All the behaviors and
functionalities are unchanged.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
…on ...

PR: 118623

MSPM33's COMP peripheral extends the shared register map with analog
comparison wakeup control. These implement a wakeup sequencer for when
device is in STOP mode while cycling between 4 voltage monitor and 4
thresholds (DAC reference codes). There is also a fixed "window mode" where
you can statically fix the voltage monitor. Implement this functionality
and guard the code with Kconfig that only gets enabled when using MSPM33.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
…ope...

PR: 118623

Add ti,analog-comparison-dac-codes, ti,analog-comparison-cmpprd,
ti,analog-comparison-blkprd and ti,analog-comparison-window-input to
ti,mspm0-comparator.yaml, mirroring the analog comparison wakeup
sequencer registers added to the driver.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
…eup...

PR: 118623

Add CONFIG_COMPARATOR_MSPM0_ANALOG_COMPARISON, auto-enabled for
SOC_SERIES_MSPM33C, gating the analog comparison wakeup sequencer
support.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
PR: 118623

Add the two comparator instances available for MSPM33C SoCs.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
…oards

PR: 118623

Add lp_mspm0g3519 and lp_mspm0l2228 overlays for the gpio_loopback
comparator test, using internal DAC with VDD (3.3V) as negative reference
and GPIO toggle on the positive channel.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
@natto1784
natto1784 force-pushed the v4.4.0-ti/drivers/comparator branch from 0bc193c to df27d64 Compare October 7, 2026 08:36
@Aman-Lachhiramka-ti
Aman-Lachhiramka-ti merged commit ba7cbdf into TexasInstruments:v4.4.0-ti-next Oct 7, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants