aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorPiyush Mehta <piyush.mehta@xilinx.com>2022-05-04 13:23:09 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-05 22:02:39 +0200
commitca05b38252d7bf6b0d42e80b3d3d98a642f4143b (patch)
tree58cb3edef537afe19b4ac917a319b9f875f7d0ee /drivers/usb/dwc3/gadget.c
parentdt-bindings: usb: dwc3-xilinx: add optional property reset-gpios (diff)
downloadlinux-dev-ca05b38252d7bf6b0d42e80b3d3d98a642f4143b.tar.xz
linux-dev-ca05b38252d7bf6b0d42e80b3d3d98a642f4143b.zip
usb: dwc3: xilinx: Add gpio-reset support
This patch adds a USB GPIO based reset for dwc3-xilinx driver. The PHY needs to be reset after the completion of phy initialization. As part of the reset, check for gpio-reset binding before toggling the pin. This feature is advantageous when the user toggle GPIO to trigger the ULPI-PHY reset. Delay of milliseconds is added in between low and high to meet the setup and hold time requirement of the reset. The reset-gpio error handling is added for error notification. Some GPIO controllers must be accessed using message-based buses, like I2C or SPI, to address this problem, updates GPIO access with sleep API. This reset is specific to the zynqMp. Signed-off-by: Piyush Mehta <piyush.mehta@xilinx.com> Link: https://lore.kernel.org/r/20220504075309.6244-3-piyush.mehta@xilinx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
0 files changed, 0 insertions, 0 deletions