mediatek: update patches
[openwrt/staging/chunkeey.git] / target / linux / mediatek / patches-4.4 / 0018-dt-bindings-Add-a-binding-for-Mediatek-xHCI-host-con.patch
1 From 84d37aeef94deae3ce87e677f6016a5d980429e8 Mon Sep 17 00:00:00 2001
2 From: "chunfeng.yun@mediatek.com" <chunfeng.yun@mediatek.com>
3 Date: Tue, 17 Nov 2015 17:18:39 +0800
4 Subject: [PATCH 18/91] dt-bindings: Add a binding for Mediatek xHCI host
5 controller
6
7 add a DT binding documentation of xHCI host controller for the
8 MT8173 SoC from Mediatek.
9
10 Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
11 ---
12 .../devicetree/bindings/usb/mt8173-xhci.txt | 51 ++++++++++++++++++++
13 1 file changed, 51 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/usb/mt8173-xhci.txt
15
16 diff --git a/Documentation/devicetree/bindings/usb/mt8173-xhci.txt b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt
17 new file mode 100644
18 index 0000000..a78f20b
19 --- /dev/null
20 +++ b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt
21 @@ -0,0 +1,51 @@
22 +MT8173 xHCI
23 +
24 +The device node for Mediatek SOC USB3.0 host controller
25 +
26 +Required properties:
27 + - compatible : should contain "mediatek,mt8173-xhci"
28 + - reg : specifies physical base address and size of the registers,
29 + the first one for MAC, the second for IPPC
30 + - interrupts : interrupt used by the controller
31 + - power-domains : a phandle to USB power domain node to control USB's
32 + mtcmos
33 + - vusb33-supply : regulator of USB avdd3.3v
34 +
35 + - clocks : a list of phandle + clock-specifier pairs, one for each
36 + entry in clock-names
37 + - clock-names : must contain
38 + "sys_ck": for clock of xHCI MAC
39 + "wakeup_deb_p0": for USB wakeup debounce clock of port0
40 + "wakeup_deb_p0": for USB wakeup debounce clock of port1
41 +
42 + - phys : a list of phandle + phy specifier pairs
43 +
44 +Optional properties:
45 + - mediatek,wakeup-src : 1: ip sleep wakeup mode; 2: line state wakeup
46 + mode;
47 + - mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup
48 + control register, it depends on "mediatek,wakeup-src".
49 + - vbus-supply : reference to the VBUS regulator;
50 + - usb3-lpm-capable : supports USB3.0 LPM
51 +
52 +Example:
53 +usb30: usb@11270000 {
54 + compatible = "mediatek,mt8173-xhci";
55 + reg = <0 0x11270000 0 0x1000>,
56 + <0 0x11280700 0 0x0100>;
57 + interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
58 + power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
59 + clocks = <&topckgen CLK_TOP_USB30_SEL>,
60 + <&pericfg CLK_PERI_USB0>,
61 + <&pericfg CLK_PERI_USB1>;
62 + clock-names = "sys_ck",
63 + "wakeup_deb_p0",
64 + "wakeup_deb_p1";
65 + phys = <&phy_port0 PHY_TYPE_USB3>,
66 + <&phy_port1 PHY_TYPE_USB2>;
67 + vusb33-supply = <&mt6397_vusb_reg>;
68 + vbus-supply = <&usb_p1_vbus>;
69 + usb3-lpm-capable;
70 + mediatek,syscon-wakeup = <&pericfg>;
71 + mediatek,wakeup-src = <1>;
72 +};
73 --
74 1.7.10.4
75