xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/pxa-usb.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunPXA USB controllers
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunOHCI
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired properties:
6*4882a593Smuzhiyun - compatible: Should be "marvell,pxa-ohci" for USB controllers
7*4882a593Smuzhiyun   used in host mode.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun - "marvell,enable-port1", "marvell,enable-port2", "marvell,enable-port3"
11*4882a593Smuzhiyun   If present, enables the appropriate USB port of the controller.
12*4882a593Smuzhiyun - "marvell,port-mode" selects the mode of the ports:
13*4882a593Smuzhiyun	1 = PMM_NPS_MODE
14*4882a593Smuzhiyun	2 = PMM_GLOBAL_MODE
15*4882a593Smuzhiyun	3 = PMM_PERPORT_MODE
16*4882a593Smuzhiyun - "marvell,power-sense-low" - power sense pin is low-active.
17*4882a593Smuzhiyun - "marvell,power-control-low" - power control pin is low-active.
18*4882a593Smuzhiyun - "marvell,no-oc-protection" - disable over-current protection.
19*4882a593Smuzhiyun - "marvell,oc-mode-perport" - enable per-port over-current protection.
20*4882a593Smuzhiyun - "marvell,power_on_delay" Power On to Power Good time - in ms.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunExample:
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	usb0: ohci@4c000000 {
25*4882a593Smuzhiyun		compatible = "marvell,pxa-ohci", "usb-ohci";
26*4882a593Smuzhiyun		reg = <0x4c000000 0x100000>;
27*4882a593Smuzhiyun		interrupts = <18>;
28*4882a593Smuzhiyun		marvell,enable-port1;
29*4882a593Smuzhiyun		marvell,port-mode = <2>; /* PMM_GLOBAL_MODE */
30*4882a593Smuzhiyun	};
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunUDC
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunRequired properties:
35*4882a593Smuzhiyun - compatible: Should be "marvell,pxa270-udc" for USB controllers
36*4882a593Smuzhiyun   used in device mode.
37*4882a593Smuzhiyun - reg: usb device MMIO address space
38*4882a593Smuzhiyun - interrupts: single interrupt generated by the UDC IP
39*4882a593Smuzhiyun - clocks: input clock of the UDC IP (see clock-bindings.txt)
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunOptional properties:
42*4882a593Smuzhiyun - gpios:
43*4882a593Smuzhiyun   - gpio activated to control the USB D+ pullup (see gpio.txt)
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunExample:
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun		pxa27x_udc: udc@40600000 {
48*4882a593Smuzhiyun			compatible = "marvell,pxa270-udc";
49*4882a593Smuzhiyun			reg = <0x40600000 0x10000>;
50*4882a593Smuzhiyun			interrupts = <11>;
51*4882a593Smuzhiyun			clocks = <&pxa2xx_clks 11>;
52*4882a593Smuzhiyun			gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
53*4882a593Smuzhiyun		};
54