linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Add USB role switch to tps6598x
@ 2020-05-07 12:45 Bryan O'Donoghue
  2020-05-07 12:45 ` [PATCH 1/1] usb: typec: tps6598x: Add USB role switching logic Bryan O'Donoghue
  2020-05-07 13:41 ` [PATCH 0/1] Add USB role switch to tps6598x Andy Shevchenko
  0 siblings, 2 replies; 4+ messages in thread
From: Bryan O'Donoghue @ 2020-05-07 12:45 UTC (permalink / raw)
  To: heikki.krogerus, robh+dt, linux-usb, devicetree
  Cc: gregkh, linux-kernel, nikolaus.voss, andriy.shevchenko, garsilva,
	keescook, Bryan O'Donoghue

This patch - adds USB role switching to the TI TPS6598x. It has been tested
out with a ChipIdea controller inside a Qualcomm MSM8939.

Right now you need to have configured the TPS firmware with the TI
configuration tool so that the chip knows if it should initiate or accept
data and power role swaps.

https://www.ti.com/lit/an/slva843a/slva843a.pdf

Heikki mentioned that on the ACPI systems the firmware had been
pre-configured to do data/power role swaps. On the hardware I have this is
the case also, which is why I did't invest more time in adding DT bindings
to control data/power roles that I don't need or necessarily support with
the reference hardware.

As-is this code will do role-swappping nicely for me, and I think should be
safe on existing ACPI systems.

Bryan O'Donoghue (1):
  usb: typec: tps6598x: Add USB role switching logic

 drivers/usb/typec/tps6598x.c | 56 +++++++++++++++++++++++++++++++-----
 1 file changed, 49 insertions(+), 7 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2020-05-07 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 12:45 [PATCH 0/1] Add USB role switch to tps6598x Bryan O'Donoghue
2020-05-07 12:45 ` [PATCH 1/1] usb: typec: tps6598x: Add USB role switching logic Bryan O'Donoghue
2020-05-07 13:41 ` [PATCH 0/1] Add USB role switch to tps6598x Andy Shevchenko
2020-05-07 14:15   ` Bryan O'Donoghue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).