blob: 95ddf34f08f8c7ac82eb9109046a69f381a5ab11 [file] [log] [blame]
Pavankumar Kondetieaea7fe2011-10-27 14:46:45 +05301MSM SoC HSUSB controllers
2
3OTG:
4
5Required properties :
6- compatible : should be "qcom,hsusb-otg"
7- regs : offset and length of the register set in the memory map
8- interrupts: IRQ line
9- qcom,hsusb-otg-phy-type: PHY type can be one of
10 1 - Chipidea 45nm PHY
11 2 - Synopsis 28nm PHY
12- qcom,hsusb-otg-mode: Operational mode. Can be one of
13 1 - Peripheral only mode
14 2 - Host only mode
15 3 - OTG mode
16 Based on the mode, OTG driver registers platform devices for
17 gadget and host.
18- qcom,hsusb-otg-control: OTG control (VBUS and ID notifications)
19 can be one of
20 1 - PHY control
21 2 - PMIC control
22 3 - User control (via debugfs)
23
24Optional properties :
25- qcom,hsusb-otg-default-mode: The default USB mode after boot-up.
26 Applicable only when OTG is controlled by user. Can be one of
27 0 - None. Low power mode
28 1 - Peripheral
29 2 - Host
30- qcom,hsusb-otg-phy-init-seq: PHY configuration sequence. val, reg pairs
31 terminate with -1
32- qcom,hsusb-otg-power-budget: VBUS power budget in mA
33 0 will be treated as 500mA
34- qcom,hsusb-otg-pclk-src-name: The source of pclk
35- qcom,hsusb-otg-pmic-id-irq: ID, routed to PMIC IRQ number
36
37Example HSUSB OTG controller device node :
David Brown225abee2012-02-09 22:28:50 -080038 usb@f9690000 {
Pavankumar Kondetieaea7fe2011-10-27 14:46:45 +053039 compatible = "qcom,hsusb-otg";
David Brown225abee2012-02-09 22:28:50 -080040 reg = <0xf9690000 0x400>;
Pavankumar Kondetieaea7fe2011-10-27 14:46:45 +053041 interrupts = <134>;
42
43 qcom,hsusb-otg-phy-type = <2>;
44 qcom,hsusb-otg-mode = <1>;
45 qcom,hsusb-otg-otg-control = <1>;
46 qcom,hsusb-otg-default-mode = <2>;
David Brown225abee2012-02-09 22:28:50 -080047 qcom,hsusb-otg-phy-init-seq = <0x01 0x90 0xffffffff>;
Pavankumar Kondetieaea7fe2011-10-27 14:46:45 +053048 qcom,hsusb-otg-power-budget = <500>;
49 qcom,hsusb-otg-pclk-src-name = "dfab_usb_clk";
50 qcom,hsusb-otg-pmic-id-irq = <47>
51 };