blob: 4779c029b6756536cd6df57424cfa9c4831c0d24 [file] [log] [blame]
Kumar Galad0fc2ea2008-07-07 11:28:33 -05001Freescale SOC USB controllers
2
3The device node for a USB controller that is part of a Freescale
4SOC is as described in the document "Open Firmware Recommended
5Practice : Universal Serial Bus" with the following modifications
6and additions :
7
8Required properties :
9 - compatible : Should be "fsl-usb2-mph" for multi port host USB
10 controllers, or "fsl-usb2-dr" for dual role USB controllers
harninder raic70a9742014-02-19 18:11:26 +053011 or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
12 Wherever applicable, the IP version of the USB controller should
13 also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
Kumar Galad0fc2ea2008-07-07 11:28:33 -050014 - phy_type : For multi port host USB controllers, should be one of
15 "ulpi", or "serial". For dual role USB controllers, should be
16 one of "ulpi", "utmi", "utmi_wide", or "serial".
17 - reg : Offset and length of the register set for the device
18 - port0 : boolean; if defined, indicates port0 is connected for
19 fsl-usb2-mph compatible controllers. Either this property or
20 "port1" (or both) must be defined for "fsl-usb2-mph" compatible
21 controllers.
22 - port1 : boolean; if defined, indicates port1 is connected for
23 fsl-usb2-mph compatible controllers. Either this property or
24 "port0" (or both) must be defined for "fsl-usb2-mph" compatible
25 controllers.
26 - dr_mode : indicates the working mode for "fsl-usb2-dr" compatible
27 controllers. Can be "host", "peripheral", or "otg". Default to
28 "host" if not defined for backward compatibility.
29
30Recommended properties :
31 - interrupts : <a b> where a is the interrupt number and b is a
32 field that represents an encoding of the sense and level
33 information for the interrupt. This should be encoded based on
34 the information in section 2) depending on the type of interrupt
35 controller you have.
36 - interrupt-parent : the phandle for the interrupt controller that
37 services interrupts for this device.
38
Anatolij Gustschin230f7ed2010-09-28 20:55:21 +020039Optional properties :
40 - fsl,invert-drvvbus : boolean; for MPC5121 USB0 only. Indicates the
41 port power polarity of internal PHY signal DRVVBUS is inverted.
42 - fsl,invert-pwr-fault : boolean; for MPC5121 USB0 only. Indicates
43 the PWR_FAULT signal polarity is inverted.
44
Kumar Galad0fc2ea2008-07-07 11:28:33 -050045Example multi port host USB controller device node :
46 usb@22000 {
47 compatible = "fsl-usb2-mph";
48 reg = <22000 1000>;
49 #address-cells = <1>;
50 #size-cells = <0>;
51 interrupt-parent = <700>;
52 interrupts = <27 1>;
53 phy_type = "ulpi";
54 port0;
55 port1;
56 };
57
58Example dual role USB controller device node :
59 usb@23000 {
60 compatible = "fsl-usb2-dr";
61 reg = <23000 1000>;
62 #address-cells = <1>;
63 #size-cells = <0>;
64 interrupt-parent = <700>;
65 interrupts = <26 1>;
66 dr_mode = "otg";
67 phy = "ulpi";
68 };
Anatolij Gustschin230f7ed2010-09-28 20:55:21 +020069
70Example dual role USB controller device node for MPC5121ADS:
71
72 usb@4000 {
73 compatible = "fsl,mpc5121-usb2-dr";
74 reg = <0x4000 0x1000>;
75 #address-cells = <1>;
76 #size-cells = <0>;
77 interrupt-parent = < &ipic >;
78 interrupts = <44 0x8>;
79 dr_mode = "otg";
80 phy_type = "utmi_wide";
81 fsl,invert-drvvbus;
82 fsl,invert-pwr-fault;
83 };