sysfs-platform-phy-rcar-gen3-usb2 563 B

1234567891011121314151617
  1. What: /sys/devices/platform/<phy-name>/role
  2. Date: October 2016
  3. KernelVersion: 4.10
  4. Contact: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
  5. Description:
  6. This file can be read and write.
  7. The file can show/change the phy mode for role swap of usb.
  8. Write the following strings to change the mode:
  9. - "host" - switching mode from peripheral to host.
  10. - "peripheral" - switching mode from host to peripheral.
  11. Read the file, then it shows the following strings:
  12. - "host" - The mode is host now.
  13. - "peripheral" - The mode is peripheral now.