Skip to content

UPSTREAM-PEND: backport VREF for MSPM0/MSPM33 - #52

Open
natto1784 wants to merge 9 commits into
TexasInstruments:v4.4.0-ti-nextfrom
natto1784:v4.4.0-ti/drivers/vref
Open

natto1784 wants to merge 9 commits into
TexasInstruments:v4.4.0-ti-nextfrom
natto1784:v4.4.0-ti/drivers/vref

Conversation

@natto1784

Copy link
Copy Markdown
Collaborator

This has following patchsets from upstream

ID Title Status
94732 drivers: regulator: mspm0: Add supoort for TI MSPM0 VREF module Merged
116778 dts: ti: add pinctrl DTSIs for MSPM0GX51X and MSPM33C321A families Open
119150 drivers: pinctrl: ti: mspm33: enable pinctrl for MSPM33C321A Open
115444 enable VREF support for MSPM33 Draft

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/vref branch from f0d021f to cb4273e Compare September 28, 2026 13:07
@natto1784 natto1784 changed the title UPSTREAM: backport VREF for MSPM0/MSPM33 UPSTREAM-PEND: backport VREF for MSPM0/MSPM33 Sep 28, 2026
@natto1784
natto1784 force-pushed the v4.4.0-ti/drivers/vref branch 2 times, most recently from 4347359 to 8e3865a Compare October 7, 2026 10:24
PR: 118623

This is required for msp_delay_peripheral_startup's definition to be
visible to the linker. Also guards the early init hook with the
HAS_MSPM0_SDK Kconfig so that MSPM0G/L boards function as they did before.

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

PR: 115438

Replace ti/driverlib dl_vref.h calls with direct register access against
a locally defined register map, removing the DriverLib dependency for
this peripheral. Behavior is unchanged.

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

PR: 115438

In some functions, "data" is not used if
CONFIG_REGULATOR_THREAD_SAFE_REFCNT is disabled. Fix this by guarding the
variable definition with the aforementioned guard.

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

PR: 115438

CTL2.SHCYCLE must encode the total sample-and-hold window, not just
the sample phase: it needs sample_cycle_count + hold_cycle_count, not
sample_cycle_count alone. HCYCLE keeps just the hold phase.

Rename sh_cycle_count to sample_cycle_count to make clear it holds
only the sample-phase cycle count.

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

Exlicitly use the aforementioned property for the VREF peripheral on MSPM0
SoCs.

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

Add the ti,mspm0-vref node for MSPM33C SoC series.

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

Add a voltage-to-current buffer mode (v2ien register bit), orthogonal
to sample & hold mode rather than mutually exclusive with it. Redefine
MSPM0_VREF_MODE_SHMODE as a bit flag, add MSPM0_VREF_MODE_V2I and
MSPM0_VREF_MODE_SHMODE_V2I so set_mode()/get_mode() can express any
combination of the two; the regulator mode API stays a single int,
but this driver now treats it as a bitmask.

Also add regulator-allowed-modes property to the devicetree nodes to
indicate mode-capability for the VREF nodes.

Add the ti,v2i-enable DT property to select the initial state.

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

The VREF driver configures analog pin muxing via pinctrl, so ensure
the PINCTRL subsystem is enabled whenever the driver is.

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

Set status as okay for the aforementioned node and configure pinctrl.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
@natto1784
natto1784 force-pushed the v4.4.0-ti/drivers/vref branch from 8e3865a to ae48759 Compare October 7, 2026 10:41
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.

1 participant