xref: /linux/Documentation/ABI/testing/sysfs-platform-phy-rcar-gen3-usb2 (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
19bb86777SYoshihiro ShimodaWhat:		/sys/devices/platform/<phy-name>/role
29bb86777SYoshihiro ShimodaDate:		October 2016
39bb86777SYoshihiro ShimodaKernelVersion:	4.10
49bb86777SYoshihiro ShimodaContact:	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
59bb86777SYoshihiro ShimodaDescription:
69bb86777SYoshihiro Shimoda		This file can be read and write.
79bb86777SYoshihiro Shimoda		The file can show/change the phy mode for role swap of usb.
89bb86777SYoshihiro Shimoda
99bb86777SYoshihiro Shimoda		Write the following strings to change the mode:
10*54a19b4dSMauro Carvalho Chehab
11*54a19b4dSMauro Carvalho Chehab		 - "host" - switching mode from peripheral to host.
12*54a19b4dSMauro Carvalho Chehab		 - "peripheral" - switching mode from host to peripheral.
139bb86777SYoshihiro Shimoda
149bb86777SYoshihiro Shimoda		Read the file, then it shows the following strings:
15*54a19b4dSMauro Carvalho Chehab
16*54a19b4dSMauro Carvalho Chehab		 - "host" - The mode is host now.
17*54a19b4dSMauro Carvalho Chehab		 - "peripheral" - The mode is peripheral now.
18