blob: 1c870acbd034cc9961bcbc56b8e49c641b7bcfbd [file] [log] [blame]
Mayank Rana511f3b22016-08-02 12:00:11 -07001MSM SuperSpeed USB3.0 SoC controller
2
3Required properties :
4- compatible : should be "qcom,dwc-usb3-msm"
5 - reg: Address and length of the register set for the device
6 Required regs are:
7 "core_base" : usb controller register set
8- interrupts: IRQ lines used by this controller
9- interrupt-names : Interrupt resource entries are :
10 "hs_phy_irq" : Interrupt from HS PHY for asynchronous events in LPM.
11 "pwr_event_irq" : Interrupt to controller for asynchronous events in LPM.
12 Used for SS-USB power events.
13 - clocks: a list of phandles to the controller clocks. Use as per
14 Documentation/devicetree/bindings/clock/clock-bindings.txt
15 - clock-names: Names of the clocks in 1-1 correspondence with the "clocks"
16 property. Required clocks are "xo", "iface_clk", "core_clk", "sleep_clk"
17 and "utmi_clk".
Amit Nischal4d278212016-06-06 17:54:34 +053018- resets: reset specifier pair consists of phandle for the reset provider
19 and reset lines used by this controller.
20- reset-names: reset signal name strings sorted in the same order as the resets
21 property.
Mayank Rana511f3b22016-08-02 12:00:11 -070022
23Optional properties :
24- reg: Additional registers
25 "tcsr_base" : top-level CSR register to be written during power-on reset
26 initialize the internal MUX that controls whether to use USB3 controller
27 with primary port.
28 "ahb2phy_base" : top-level register to configure read/write wait cycle with
29 both QMP and QUSB PHY registers.
30- Refer to "Documentation/devicetree/bindings/arm/msm/msm_bus.txt" for
31 below optional properties:
32 - qcom,msm_bus,name
33 - qcom,msm_bus,num_cases
34 - qcom,msm_bus,num_paths
35 - qcom,msm_bus,vectors
36- interrupt-names : Optional interrupt resource entries are:
37 "pmic_id_irq" : Interrupt from PMIC for external ID pin notification.
38 "ss_phy_irq" : Interrupt from super speed phy for wake up notification.
39 - clocks: a list of phandles to the controller clocks. Use as per
40 Documentation/devicetree/bindings/clock/clock-bindings.txt
41 - clock-names: Names of the clocks in 1-1 correspondence with the "clocks"
Vijayavardhan Vennapusa934d9cd2016-11-30 13:10:01 +053042 property. Optional clocks are "bus_aggr_clk", "noc_aggr_clk" and "cfg_ahb_clk".
Mayank Rana511f3b22016-08-02 12:00:11 -070043- qcom,charging-disabled: If present then battery charging using USB
44 is disabled.
45- vbus_dwc3-supply: phandle to the 5V VBUS supply regulator used for host mode.
46- USB3_GDSC-supply : phandle to the globally distributed switch controller
47 regulator node to the USB controller.
48- qcom,dwc-usb3-msm-tx-fifo-size: If present, represents RAM size available for
49 TX fifo allocation in bytes
50- qcom,usb-dbm : phandle for the DBM device
51- qcom,lpm-to-suspend-delay-ms: Indicates timeout (in milliseconds) to release wakeup source
52 after USB is kept into LPM.
53- qcom,ext-hub-reset-gpio: This corresponds to gpio which is used for HUB reset.
54- qcom,disable-dev-mode-pm: If present, it disables PM runtime functionality for device mode.
55- qcom,disable-host-mode-pm: If present, it disables XHCI PM runtime functionality when USB
56 host mode is used.
Vijayavardhan Vennapusa3e668f32016-01-08 15:58:35 +053057- qcom,core-clk-rate: If present, indicates clock frequency to be set for USB master clock.
Mayank Rana511f3b22016-08-02 12:00:11 -070058- extcon: phandles to external connector devices. First phandle should point to
59 external connector, which provide "USB" cable events, the second
60 should point to external connector device, which provide "USB-HOST"
61 cable events. A single phandle may be specified if a single connector
62 device provides both "USB" and "USB-HOST" events.
63
64Sub nodes:
65- Sub node for "DWC3- USB3 controller".
66 This sub node is required property for device node. The properties of this subnode
67 are specified in dwc3.txt.
68
69Example MSM USB3.0 controller device node :
70 usb@f9200000 {
71 compatible = "qcom,dwc-usb3-msm";
72 reg = <0xf9200000 0xfc000>,
73 <0xfd4ab000 0x4>,
74 <0xf9b3e000 0x3ff>;
75 reg-names = "core_base",
76 "tcsr_base",
77 "ahb2phy_base",
78 interrupts = <0 133 0>;
79 interrupt-names = "hs_phy_irq";
80 vbus_dwc3-supply = <&pm8941_mvs1>;
81 USB3_GDSC-supply = <&gdsc_usb30>;
82 qcom,dwc-usb3-msm-dbm-eps = <4>
83 qcom,dwc_usb3-adc_tm = <&pm8941_adc_tm>;
84 qcom,dwc-usb3-msm-tx-fifo-size = <29696>;
85 qcom,usb-dbm = <&dbm_1p4>;
86 qcom,lpm-to-suspend-delay-ms = <2>;
87
88 qcom,msm_bus,name = "usb3";
89 qcom,msm_bus,num_cases = <2>;
90 qcom,msm_bus,num_paths = <1>;
91 qcom,msm_bus,vectors =
92 <61 512 0 0>,
93 <61 512 240000000 960000000>;
94
95 clocks = <&clock_gcc clk_gcc_usb30_master_clk>,
96 <&clock_gcc clk_gcc_cfg_noc_usb3_axi_clk>,
97 <&clock_gcc clk_gcc_aggre1_usb3_axi_clk>,
Vijayavardhan Vennapusa934d9cd2016-11-30 13:10:01 +053098 <&clock_rpmcc RPM_AGGR2_NOC_CLK>,
Mayank Rana511f3b22016-08-02 12:00:11 -070099 <&clock_gcc clk_gcc_usb30_mock_utmi_clk>,
100 <&clock_gcc clk_gcc_usb30_sleep_clk>,
101 <&clock_gcc clk_gcc_usb_phy_cfg_ahb2phy_clk>,
102 <&clock_gcc clk_cxo_dwc3_clk>;
103
Vijayavardhan Vennapusa934d9cd2016-11-30 13:10:01 +0530104 clock-names = "core_clk", "iface_clk", "bus_aggr_clk", "noc_aggr_clk",
Mayank Rana511f3b22016-08-02 12:00:11 -0700105 "utmi_clk", "sleep_clk", "cfg_ahb_clk", "xo";
106
Amit Nischal4d278212016-06-06 17:54:34 +0530107 resets = <&clock_gcc GCC_USB_30_BCR>;
108 reset-names = "core_reset";
109
Mayank Rana511f3b22016-08-02 12:00:11 -0700110 dwc3@f9200000 {
111 compatible = "synopsys,dwc3";
112 reg = <0xf9200000 0xfc000>;
113 interrupts = <0 131 0>, <0 179 0>;
114 interrupt-names = "irq", "otg_irq";
115 tx-fifo-resize;
116 };
117 };