Skip to content

Conversation

@jfischer-no
Copy link
Contributor

Use DT for VBUS control and convert it to new GPIO API.

Use DT for VBUS control and convert it to new GPIO API.

Signed-off-by: Johann Fischer <[email protected]>
@jfischer-no
Copy link
Contributor Author

Tested with a LED on the reel board,

diff --git a/dts/arm/nordic/nrf52840.dtsi b/dts/arm/nordic/nrf52840.dtsi
index 85c916f51c..c821755d45 100644
--- a/dts/arm/nordic/nrf52840.dtsi
+++ b/dts/arm/nordic/nrf52840.dtsi
@@ -363,6 +363,7 @@
                        num-isoin-endpoints = <1>;
                        num-isoout-endpoints = <1>;
                        status = "disabled";
+                       vbus-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        label = "USBD";
                };

Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

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

LGTM, nice.

@carlescufi carlescufi merged commit 251f8f8 into zephyrproject-rtos:topic-gpio Jan 24, 2020
@jfischer-no jfischer-no deleted the gpio-usbdevice branch January 28, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants