Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab3b6fb1 authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Gerrit - the friendly Code Review server
Browse files

gpio-usbdetect: Add support for ID detection



The existing driver does not support for role
switch based on ID. Add this support to switch to
host mode depending upon the value of the GPIO
qcom,id-det-gpio.
Also the final state table if this GPIO is present
	USB STATE	ID	VBUS
	PERIPHERAL	HIGH	HIGH
	NONE		HIGH	LOW
	HOST		LOW	LOW
	HOST		LOW	HIGH
Also add support for DPDM routing to different ports
based on a switch driven by a GPIO. In host mode
it is routed to one and in peripheral to the other.

Change-Id: I3a6aa36e06ea433318262d26f940b106d79e48d7
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent d9eff3c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment