About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / usb / fsl-usb.txt




Custom Search

Based on kernel version 3.15.4. Page generated on 2014-07-07 09:02 EST.

1	Freescale SOC USB controllers
2	
3	The device node for a USB controller that is part of a Freescale
4	SOC is as described in the document "Open Firmware Recommended
5	Practice : Universal Serial Bus" with the following modifications
6	and additions :
7	
8	Required properties :
9	 - compatible : Should be "fsl-usb2-mph" for multi port host USB
10	   controllers, or "fsl-usb2-dr" for dual role USB controllers
11	   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).
14	 - 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	
30	Recommended 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	
39	Optional 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	
45	Example 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	
58	Example 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		};
69	
70	Example 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		};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.