Skip to content

drivers: regulator: add set callback API and driver for Nordic USB VBUS regulator#97642

Merged
MaureenHelm merged 6 commits intozephyrproject-rtos:mainfrom
jfischer-no:pr-nrf54lm20a-vregusb
Mar 18, 2026
Merged

drivers: regulator: add set callback API and driver for Nordic USB VBUS regulator#97642
MaureenHelm merged 6 commits intozephyrproject-rtos:mainfrom
jfischer-no:pr-nrf54lm20a-vregusb

Conversation

@jfischer-no
Copy link
Copy Markdown
Contributor

@jfischer-no jfischer-no commented Oct 15, 2025

Add set callback to regulator API. The regulator may generate an interrupt when, for example, the voltage is present. The callback can be used for USB VBUS voltage regulators to notify that a device is connected to a port.

Add VREGUSB driver for internal voltage regulator for the USB signaling interface.

Note: this was reworked to use the new nrfx 4.2.0

Comment thread drivers/regulator/regulator_nrf_vregusb.c
Comment thread drivers/regulator/regulator_nrf_vregusb.c
Comment on lines +14 to +18
regulator:
required: true
type: phandle
description: |
USB PHY and controller function depends on the USB regulator VREGUSB.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the nordic,nrf-usbhs-wrapper also be used for nRF54H20? How would the nrfs be modelled then?

Comment thread dts/vendor/nordic/nrf54lm20a.dtsi Outdated
@jfischer-no jfischer-no force-pushed the pr-nrf54lm20a-vregusb branch from 00ec840 to 3d7218b Compare October 20, 2025 16:13
@sonarqubecloud
Copy link
Copy Markdown

Comment thread include/zephyr/drivers/regulator.h
@carlescufi carlescufi added this to the v4.4.0 milestone Mar 17, 2026
@carlescufi carlescufi moved this from In Progress to Done in Architecture Review Mar 17, 2026
@carlescufi carlescufi removed block: HW Test Testing on hardware required before merging Architecture Review Discussion in the Architecture WG required labels Mar 17, 2026
@stephanosio
Copy link
Copy Markdown
Member

Rebased to fix CI failures.

@stephanosio stephanosio force-pushed the pr-nrf54lm20a-vregusb branch from 9ff6094 to 6b2eb07 Compare March 17, 2026 21:04
@carlescufi
Copy link
Copy Markdown
Member

Rebased to fix CI failures.

Thanks!

Comment thread dts/vendor/nordic/nrf54lm20_a_b.dtsi
@carlescufi carlescufi dismissed stale reviews from nika-nordic, bjarki-andreasen, and themself via 8d3783c March 18, 2026 11:13
@carlescufi carlescufi force-pushed the pr-nrf54lm20a-vregusb branch from 6b2eb07 to 8d3783c Compare March 18, 2026 11:13
@zephyrbot zephyrbot added the platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim label Mar 18, 2026
@nashif nashif force-pushed the pr-nrf54lm20a-vregusb branch from 8d3783c to 41d327d Compare March 18, 2026 12:04
jfischer-no and others added 6 commits March 18, 2026 13:04
The nodelabels do not have any relation to the Nordic MDK and can be
named differently between SoCs.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
We need to describe the wrapper separately as a parent node because it
is not part of the USB controller but is used to configure, control, and
enable/disable the USB PHY, and to enable/disable USB controller.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
The regulator may generate an interrupt when, for example, the voltage
is present. The callback can be used for USB VBUS voltage regulators to
notify that a device is connected to a port.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Add driver for internal voltage regulator for the USB signaling
interface.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Co-Authored-by: Carles Cufi <carles.cufi@nordicsemi.no>
PHY and controller function depends on VREGUSB. Add VREGUSB regulator
node to nRF54LM20A and use phandle to reference it in the wrapper node.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Use Nordic VREGUSB regulator driver in DWC2 nRF54LM20A vendor quirks.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
@carlescufi carlescufi force-pushed the pr-nrf54lm20a-vregusb branch from 41d327d to 92d213d Compare March 18, 2026 12:04
@sonarqubecloud
Copy link
Copy Markdown

@MaureenHelm MaureenHelm merged commit c20654a into zephyrproject-rtos:main Mar 18, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Boards/SoCs area: Devicetree Binding PR modifies or adds a Device Tree binding area: Devicetree Bindings area: Drivers area: Regulators area: USB Universal Serial Bus platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim platform: nRF Nordic nRFx

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.