xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunUSB COMPARATOR OF TWL CHIPS
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunTWL6030 USB COMPARATOR
4*4882a593Smuzhiyun - compatible : Should be "ti,twl6030-usb"
5*4882a593Smuzhiyun - interrupts : Two interrupt numbers to the cpu should be specified. First
6*4882a593Smuzhiyun   interrupt number is the otg interrupt number that raises ID interrupts when
7*4882a593Smuzhiyun   the controller has to act as host and the second interrupt number is the
8*4882a593Smuzhiyun   usb interrupt number that raises VBUS interrupts when the controller has to
9*4882a593Smuzhiyun   act as device
10*4882a593Smuzhiyun - usb-supply : phandle to the regulator device tree node. It should be vusb
11*4882a593Smuzhiyun   if it is twl6030 or ldousb if it is twl6032 subclass.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyuntwl6030-usb {
14*4882a593Smuzhiyun	compatible = "ti,twl6030-usb";
15*4882a593Smuzhiyun	interrupts = < 4 10 >;
16*4882a593Smuzhiyun};
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunBoard specific device node entry
19*4882a593Smuzhiyun&twl6030-usb {
20*4882a593Smuzhiyun	usb-supply = <&vusb>;
21*4882a593Smuzhiyun};
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunTWL4030 USB PHY AND COMPARATOR
24*4882a593Smuzhiyun - compatible : Should be "ti,twl4030-usb"
25*4882a593Smuzhiyun - interrupts : The interrupt numbers to the cpu should be specified. First
26*4882a593Smuzhiyun   interrupt number is the otg interrupt number that raises ID interrupts
27*4882a593Smuzhiyun   and VBUS interrupts. The second interrupt number is optional.
28*4882a593Smuzhiyun - <supply-name>-supply : phandle to the regulator device tree node.
29*4882a593Smuzhiyun   <supply-name> should be vusb1v5, vusb1v8 and vusb3v1
30*4882a593Smuzhiyun - usb_mode : The mode used by the phy to connect to the controller. "1"
31*4882a593Smuzhiyun   specifies "ULPI" mode and "2" specifies "CEA2011_3PIN" mode.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunIf a sibling node is compatible "ti,twl4030-bci", then it will find
34*4882a593Smuzhiyunthis device and query it for USB power status.
35*4882a593Smuzhiyun
36*4882a593Smuzhiyuntwl4030-usb {
37*4882a593Smuzhiyun	compatible = "ti,twl4030-usb";
38*4882a593Smuzhiyun	interrupts = < 10 4 >;
39*4882a593Smuzhiyun	usb1v5-supply = <&vusb1v5>;
40*4882a593Smuzhiyun	usb1v8-supply = <&vusb1v8>;
41*4882a593Smuzhiyun	usb3v1-supply = <&vusb3v1>;
42*4882a593Smuzhiyun	usb_mode = <1>;
43*4882a593Smuzhiyun};
44