All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] phy: qcom-usb-hs: Add DT controlled VBUS pullup waggle
@ 2020-05-21  0:50 Bryan O'Donoghue
  2020-05-21  0:50 ` [PATCH 1/2] dt-bindings: phy-qcom-usb-hs-phy: Add qcom,enable-vbus-pullup Bryan O'Donoghue
  2020-05-21  0:50 ` [PATCH 2/2] phy: qcom-usb-hs: Add qcom,enable-vbus-pullup support Bryan O'Donoghue
  0 siblings, 2 replies; 4+ messages in thread
From: Bryan O'Donoghue @ 2020-05-21  0:50 UTC (permalink / raw)
  To: agross, bjorn.andersson, kishon, vkoul, robh+dt
  Cc: linux-arm-msm, linux-kernel, devicetree, bryan.odonoghue

On an MSM8939 we have a system behind both a type-c controller and a USB
Hub. VBUS is not connected to the PHY and no GPIO is available to signal
VBUS state to the USB controller and PHY.

In this case we've used USB role-switching to transition between
host and device mode.

The current code in qcom-usb-hs only touches the VBUS pullup control bits
if we have an extcon but, setting those bits is still required on the
example I gave of the MSM8939.

This series takes the downstream concept of a DT driven flag for the VBUS
pullup bits and applies it to upstream in the poweron/poweroff path of the
PHY.

I've opted to unset the bits on PHY poweroff though in downstream the bits
are only ever switched on if the flag is present, downstream never switches
the bits off again. I think though, setting the bits off on PHY power-off
is the right thing to do, so I've done it.

Bryan O'Donoghue (2):
  dt-bindings: phy-qcom-usb-hs-phy: Add qcom,enable-vbus-pullup
  phy: qcom-usb-hs: Add qcom,enable-vbus-pullup support

 .../bindings/phy/qcom,usb-hs-phy.txt          |  8 +++++
 drivers/phy/qualcomm/phy-qcom-usb-hs.c        | 36 +++++++++++++++++++
 2 files changed, 44 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-28 22:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-21  0:50 [PATCH 0/2] phy: qcom-usb-hs: Add DT controlled VBUS pullup waggle Bryan O'Donoghue
2020-05-21  0:50 ` [PATCH 1/2] dt-bindings: phy-qcom-usb-hs-phy: Add qcom,enable-vbus-pullup Bryan O'Donoghue
2020-05-28 22:34   ` Rob Herring
2020-05-21  0:50 ` [PATCH 2/2] phy: qcom-usb-hs: Add qcom,enable-vbus-pullup support Bryan O'Donoghue

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.