drivers: regulator: add set callback API and driver for Nordic USB VBUS regulator#97642
Merged
MaureenHelm merged 6 commits intozephyrproject-rtos:mainfrom Mar 18, 2026
Merged
Conversation
masz-nordic
previously requested changes
Oct 15, 2025
kl-cruz
reviewed
Oct 16, 2025
tmon-nordic
reviewed
Oct 16, 2025
Comment on lines
+14
to
+18
| regulator: | ||
| required: true | ||
| type: phandle | ||
| description: | | ||
| USB PHY and controller function depends on the USB regulator VREGUSB. |
Contributor
There was a problem hiding this comment.
Should the nordic,nrf-usbhs-wrapper also be used for nRF54H20? How would the nrfs be modelled then?
00ec840 to
3d7218b
Compare
|
bjarki-andreasen
previously approved these changes
Mar 17, 2026
Member
|
Rebased to fix CI failures. |
9ff6094 to
6b2eb07
Compare
Member
Thanks! |
aescolar
reviewed
Mar 18, 2026
8d3783c
6b2eb07 to
8d3783c
Compare
8d3783c to
41d327d
Compare
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>
41d327d to
92d213d
Compare
|
carlescufi
approved these changes
Mar 18, 2026
nika-nordic
approved these changes
Mar 18, 2026
bjarki-andreasen
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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