Pavankumar Kondeti | eaea7fe | 2011-10-27 14:46:45 +0530 | [diff] [blame] | 1 | MSM SoC HSUSB controllers |
| 2 | |
| 3 | OTG: |
| 4 | |
| 5 | Required 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 | |
| 24 | Optional 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 | |
| 37 | Example HSUSB OTG controller device node : |
David Brown | 225abee | 2012-02-09 22:28:50 -0800 | [diff] [blame] | 38 | usb@f9690000 { |
Pavankumar Kondeti | eaea7fe | 2011-10-27 14:46:45 +0530 | [diff] [blame] | 39 | compatible = "qcom,hsusb-otg"; |
David Brown | 225abee | 2012-02-09 22:28:50 -0800 | [diff] [blame] | 40 | reg = <0xf9690000 0x400>; |
Pavankumar Kondeti | eaea7fe | 2011-10-27 14:46:45 +0530 | [diff] [blame] | 41 | 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 Brown | 225abee | 2012-02-09 22:28:50 -0800 | [diff] [blame] | 47 | qcom,hsusb-otg-phy-init-seq = <0x01 0x90 0xffffffff>; |
Pavankumar Kondeti | eaea7fe | 2011-10-27 14:46:45 +0530 | [diff] [blame] | 48 | 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 | }; |