linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add Apple Carplay driver
@ 2018-03-14  6:02 Chunfeng Yun
  2018-03-14  6:02 ` [PATCH] usb: misc: supports " Chunfeng Yun
  2018-03-14  6:53 ` [PATCH] Add " Matthew Dharm
  0 siblings, 2 replies; 6+ messages in thread
From: Chunfeng Yun @ 2018-03-14  6:02 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Matthias Brugger, Heikki Krogerus, Serge Semin, Chunfeng Yun,
	Guenter Roeck, Kate Stewart, Thomas Gleixner, Alan Stern,
	linux-kernel, linux-usb, linux-arm-kernel, linux-mediatek

>From bf48dcd9cb254576cfea373c9a5d2ab996408895 Mon Sep 17 00:00:00 2001
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
Date: Tue, 13 Mar 2018 11:47:38 +0800
Subject: [PATCH] Add Apple Carplay driver

Some Apple devices which support Carplay can enter USB Host Mode from USB
Device Mode after receiving a specific USB Vendor Request. There is a
requirement apply to accesssories that support the USB dual role switch
feature, and must have a USB-A receptacle that is capable of functioning
in both USB Host and USB Device roles.
It means that the driver should supports manual Dual-Role switch, due to
no IDDIG pin is avaliable.

There is no suitable place to add this spicific USB Vendor Request, so
here I extract a single driver which allow user force to send it by a debug
interface when need it, and keep it independent on USB Dual-Role Controller
Drivers.
But to implement carplay feature, there are some requirments for USB Dual-Role
Driver:
1. supports manual dual-role switch, such as, by a debug interface;
2. keep vbus alive even when switch host into device mode;

More information please refer to "Chapter 46. USB Role Switch" in
MFI Accessroy Interface Specification.pdf

Chunfeng Yun (1):
  usb: misc: supports Apple Carplay driver

 drivers/usb/misc/Kconfig   |    9 +++
 drivers/usb/misc/Makefile  |    1 +
 drivers/usb/misc/carplay.c |  193 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 203 insertions(+)
 create mode 100644 drivers/usb/misc/carplay.c

-- 
1.7.9.5

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

end of thread, other threads:[~2018-03-14  8:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14  6:02 [PATCH] Add Apple Carplay driver Chunfeng Yun
2018-03-14  6:02 ` [PATCH] usb: misc: supports " Chunfeng Yun
2018-03-14  6:16   ` Greg Kroah-Hartman
2018-03-14  8:20     ` Chunfeng Yun
2018-03-14  6:53 ` [PATCH] Add " Matthew Dharm
2018-03-14  8:18   ` Chunfeng Yun

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).