linux/drivers/phy/broadcom
Al Cooper 415060b21f phy: usb: phy-brcm-usb: Add ability to force DRD mode to host or device
When the usb phy device mode is set to "drd", the USB port will
switch between device and host modes depending on what's plugged
into the port. Customers have asked for the ability to force
host or device mode from software. This commit adds sysfs
entries to the phy device that allow this. The sysfs for the phy
device can be found at:
/sys/bus/platform/drivers/brcmstb-usb-phy/*.usb-phy

The following sysfs entries were added:
- "dr_mode" (RO) - The current phy "dr_mode" setting.
  It will be set to one of the following values:
  - "host" - host mode
  - "peripheral " - device mode
  - "drd" - switch between device and host mode based on
    installed device
  - "typec-pd" - device/host mode is controller by the USB
    Type-C PD protocol.

If "dr_mode" is "drd"
- "drd_select" (RW) -
  It will be set to one of the following values:
  - "host" - force host mode
  - "device" - force device mode
  - "auto" - allow normal auto selection of host/device based on
    inserted USB device

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2017-10-03 11:54:55 +05:30
..
Kconfig phy: usb: phy-brcm-usb: Add Broadcom STB USB phy driver 2017-10-03 11:54:54 +05:30
Makefile phy: usb: phy-brcm-usb: Add Broadcom STB USB phy driver 2017-10-03 11:54:54 +05:30
phy-bcm-cygnus-pcie.c
phy-bcm-kona-usb2.c
phy-bcm-ns2-pcie.c
phy-bcm-ns2-usbdrd.c phy: phy-bcm-ns2-usbdrd: Replace the deprecated extcon API 2017-08-16 09:21:43 +09:00
phy-bcm-ns-usb2.c
phy-bcm-ns-usb3.c phy: bcm-ns-usb3: add MDIO driver using proper bus layer 2017-06-16 13:22:26 +05:30
phy-brcm-sata.c phy: brcm-sata: fix a timeout test in init 2017-08-22 10:11:27 +05:30
phy-brcm-usb-init.c phy: usb: phy-brcm-usb: Add Broadcom STB USB phy driver 2017-10-03 11:54:54 +05:30
phy-brcm-usb-init.h phy: usb: phy-brcm-usb: Add Broadcom STB USB phy driver 2017-10-03 11:54:54 +05:30
phy-brcm-usb.c phy: usb: phy-brcm-usb: Add ability to force DRD mode to host or device 2017-10-03 11:54:55 +05:30