1*4882a593SmuzhiyunWhat: /sys/devices/platform/<phy-name>/role 2*4882a593SmuzhiyunDate: October 2016 3*4882a593SmuzhiyunKernelVersion: 4.10 4*4882a593SmuzhiyunContact: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 5*4882a593SmuzhiyunDescription: 6*4882a593Smuzhiyun This file can be read and write. 7*4882a593Smuzhiyun The file can show/change the phy mode for role swap of usb. 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun Write the following strings to change the mode: 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun - "host" - switching mode from peripheral to host. 12*4882a593Smuzhiyun - "peripheral" - switching mode from host to peripheral. 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun Read the file, then it shows the following strings: 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun - "host" - The mode is host now. 17*4882a593Smuzhiyun - "peripheral" - The mode is peripheral now. 18