18c2ecf20Sopenharmony_ciUSB COMPARATOR OF TWL CHIPS 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciTWL6030 USB COMPARATOR 48c2ecf20Sopenharmony_ci - compatible : Should be "ti,twl6030-usb" 58c2ecf20Sopenharmony_ci - interrupts : Two interrupt numbers to the cpu should be specified. First 68c2ecf20Sopenharmony_ci interrupt number is the otg interrupt number that raises ID interrupts when 78c2ecf20Sopenharmony_ci the controller has to act as host and the second interrupt number is the 88c2ecf20Sopenharmony_ci usb interrupt number that raises VBUS interrupts when the controller has to 98c2ecf20Sopenharmony_ci act as device 108c2ecf20Sopenharmony_ci - usb-supply : phandle to the regulator device tree node. It should be vusb 118c2ecf20Sopenharmony_ci if it is twl6030 or ldousb if it is twl6032 subclass. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_citwl6030-usb { 148c2ecf20Sopenharmony_ci compatible = "ti,twl6030-usb"; 158c2ecf20Sopenharmony_ci interrupts = < 4 10 >; 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciBoard specific device node entry 198c2ecf20Sopenharmony_ci&twl6030-usb { 208c2ecf20Sopenharmony_ci usb-supply = <&vusb>; 218c2ecf20Sopenharmony_ci}; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciTWL4030 USB PHY AND COMPARATOR 248c2ecf20Sopenharmony_ci - compatible : Should be "ti,twl4030-usb" 258c2ecf20Sopenharmony_ci - interrupts : The interrupt numbers to the cpu should be specified. First 268c2ecf20Sopenharmony_ci interrupt number is the otg interrupt number that raises ID interrupts 278c2ecf20Sopenharmony_ci and VBUS interrupts. The second interrupt number is optional. 288c2ecf20Sopenharmony_ci - <supply-name>-supply : phandle to the regulator device tree node. 298c2ecf20Sopenharmony_ci <supply-name> should be vusb1v5, vusb1v8 and vusb3v1 308c2ecf20Sopenharmony_ci - usb_mode : The mode used by the phy to connect to the controller. "1" 318c2ecf20Sopenharmony_ci specifies "ULPI" mode and "2" specifies "CEA2011_3PIN" mode. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciIf a sibling node is compatible "ti,twl4030-bci", then it will find 348c2ecf20Sopenharmony_cithis device and query it for USB power status. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_citwl4030-usb { 378c2ecf20Sopenharmony_ci compatible = "ti,twl4030-usb"; 388c2ecf20Sopenharmony_ci interrupts = < 10 4 >; 398c2ecf20Sopenharmony_ci usb1v5-supply = <&vusb1v5>; 408c2ecf20Sopenharmony_ci usb1v8-supply = <&vusb1v8>; 418c2ecf20Sopenharmony_ci usb3v1-supply = <&vusb3v1>; 428c2ecf20Sopenharmony_ci usb_mode = <1>; 438c2ecf20Sopenharmony_ci}; 44