Configuring USB as device

Hi,

We are using the Humming board pulse as our evaluation board.
We want to configure atleast one of those as a USB device, while both are configured as USB host…

After going through the schematic, we found that USB2 is connected to the Host Controller and USB1 is directly connected to one of the type A connectors.
So to make it simpler we decided to use USB1 for making it as a device.

we had just modified the dr_mode property to “peripheral” but it gave the [ 1.879143] reg-fixed-voltage regulator-usb1-host-vbus: GPIO lookup for consumer (null)
[ 1.879150] reg-fixed-voltage regulator-usb1-host-vbus: using device tree for GPIO lookup
[ 1.879162] of_get_named_gpiod_flags: can’t parse ‘gpios’ property of node ‘/regulator-usb1-host-vbus[0]’
[ 1.879180] of_get_named_gpiod_flags: parsed ‘gpio’ property of node ‘/regulator-usb1-host-vbus[0]’ - status (0)
[ 1.879418] reg-fixed-voltage regulator-usb1-vbus: GPIO lookup for consumer (null)
[ 1.879425] reg-fixed-voltage regulator-usb1-vbus: using device tree for GPIO lookup
[ 1.879435] of_get_named_gpiod_flags: can’t parse ‘gpios’ property of node ‘/regulator-usb1-vbus[0]’
[ 1.879453] of_get_named_gpiod_flags: parsed ‘gpio’ property of node ‘/regulator-usb1-vbus[0]’ - status (0)

Could you please suggest us how to add the USB as a device. Please provide us the exact instructions as to how to do so.

Thank you