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