18c2ecf20Sopenharmony_ciGeneric USB Properties 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciOptional properties: 48c2ecf20Sopenharmony_ci - maximum-speed: tells USB controllers we want to work up to a certain 58c2ecf20Sopenharmony_ci speed. Valid arguments are "super-speed-plus", 68c2ecf20Sopenharmony_ci "super-speed", "high-speed", "full-speed" and 78c2ecf20Sopenharmony_ci "low-speed". In case this isn't passed via DT, USB 88c2ecf20Sopenharmony_ci controllers should default to their maximum HW 98c2ecf20Sopenharmony_ci capability. 108c2ecf20Sopenharmony_ci - dr_mode: tells Dual-Role USB controllers that we want to work on a 118c2ecf20Sopenharmony_ci particular mode. Valid arguments are "host", 128c2ecf20Sopenharmony_ci "peripheral" and "otg". In case this attribute isn't 138c2ecf20Sopenharmony_ci passed via DT, USB DRD controllers should default to 148c2ecf20Sopenharmony_ci OTG. 158c2ecf20Sopenharmony_ci - phy_type: tells USB controllers that we want to configure the core to support 168c2ecf20Sopenharmony_ci a UTMI+ PHY with an 8- or 16-bit interface if UTMI+ is 178c2ecf20Sopenharmony_ci selected. Valid arguments are "utmi" and "utmi_wide". 188c2ecf20Sopenharmony_ci In case this isn't passed via DT, USB controllers should 198c2ecf20Sopenharmony_ci default to HW capability. 208c2ecf20Sopenharmony_ci - otg-rev: tells usb driver the release number of the OTG and EH supplement 218c2ecf20Sopenharmony_ci with which the device and its descriptors are compliant, 228c2ecf20Sopenharmony_ci in binary-coded decimal (i.e. 2.0 is 0200H). This 238c2ecf20Sopenharmony_ci property is used if any real OTG features(HNP/SRP/ADP) 248c2ecf20Sopenharmony_ci is enabled, if ADP is required, otg-rev should be 258c2ecf20Sopenharmony_ci 0x0200 or above. 268c2ecf20Sopenharmony_ci - companion: phandle of a companion 278c2ecf20Sopenharmony_ci - hnp-disable: tells OTG controllers we want to disable OTG HNP, normally HNP 288c2ecf20Sopenharmony_ci is the basic function of real OTG except you want it 298c2ecf20Sopenharmony_ci to be a srp-capable only B device. 308c2ecf20Sopenharmony_ci - srp-disable: tells OTG controllers we want to disable OTG SRP, SRP is 318c2ecf20Sopenharmony_ci optional for OTG device. 328c2ecf20Sopenharmony_ci - adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is 338c2ecf20Sopenharmony_ci optional for OTG device. 348c2ecf20Sopenharmony_ci - usb-role-switch: boolean, indicates that the device is capable of assigning 358c2ecf20Sopenharmony_ci the USB data role (USB host or USB device) for a given 368c2ecf20Sopenharmony_ci USB connector, such as Type-C, Type-B(micro). 378c2ecf20Sopenharmony_ci see connector/usb-connector.yaml. 388c2ecf20Sopenharmony_ci - role-switch-default-mode: indicating if usb-role-switch is enabled, the 398c2ecf20Sopenharmony_ci device default operation mode of controller while usb 408c2ecf20Sopenharmony_ci role is USB_ROLE_NONE. Valid arguments are "host" and 418c2ecf20Sopenharmony_ci "peripheral". Defaults to "peripheral" if not 428c2ecf20Sopenharmony_ci specified. 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciThis is an attribute to a USB controller such as: 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_cidwc3@4a030000 { 488c2ecf20Sopenharmony_ci compatible = "synopsys,dwc3"; 498c2ecf20Sopenharmony_ci reg = <0x4a030000 0xcfff>; 508c2ecf20Sopenharmony_ci interrupts = <0 92 4> 518c2ecf20Sopenharmony_ci usb-phy = <&usb2_phy>, <&usb3,phy>; 528c2ecf20Sopenharmony_ci maximum-speed = "super-speed"; 538c2ecf20Sopenharmony_ci dr_mode = "otg"; 548c2ecf20Sopenharmony_ci phy_type = "utmi_wide"; 558c2ecf20Sopenharmony_ci otg-rev = <0x0200>; 568c2ecf20Sopenharmony_ci adp-disable; 578c2ecf20Sopenharmony_ci}; 58