e677c3843806a1cffe84b51ef59a1991e5c8dd09
[openwrt/openwrt.git] / target / linux / gemini / patches-4.14 / 0027-usb-host-add-DT-bindings-for-faraday-fotg2.patch
1 From 3699f119ff8da021fe7a1759e98e38ca88fa6766 Mon Sep 17 00:00:00 2001
2 From: Hans Ulli Kroll <ulli.kroll@googlemail.com>
3 Date: Wed, 8 Feb 2017 21:00:09 +0100
4 Subject: [PATCH 27/31] usb: host: add DT bindings for faraday fotg2
5
6 This adds device tree bindings for the Faraday FOTG2
7 dual-mode host controller.
8
9 Cc: devicetree@vger.kernel.org
10 Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
11 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 ---
13 ChangeLog v1->v3:
14 - Change compatible to "faraday,fotg210" as the name of the
15 hardware block.
16 - Add an elaborate SoC-specific compatible string for the
17 Cortina Systems Gemini so that SoC-specific features can
18 be enabled.
19 - Add cortina,gemini-mini-b to indicate a Gemini PHY with
20 a Mini-B adapter connected.
21 - Indicated that the Gemini version can handle "wakeup-source".
22 - Add optional IP block clock.
23 ---
24 .../devicetree/bindings/usb/faraday,fotg210.txt | 35 ++++++++++++++++++++++
25 1 file changed, 35 insertions(+)
26 create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt
27
28 --- /dev/null
29 +++ b/Documentation/devicetree/bindings/usb/faraday,fotg210.txt
30 @@ -0,0 +1,35 @@
31 +Faraday FOTG Host controller
32 +
33 +This OTG-capable USB host controller is found in Cortina Systems
34 +Gemini and other SoC products.
35 +
36 +Required properties:
37 +- compatible: should be one of:
38 + "faraday,fotg210"
39 + "cortina,gemini-usb", "faraday,fotg210"
40 +- reg: should contain one register range i.e. start and length
41 +- interrupts: description of the interrupt line
42 +
43 +Optional properties:
44 +- clocks: should contain the IP block clock
45 +- clock-names: should be "PCLK" for the IP block clock
46 +
47 +Required properties for "cortina,gemini-usb" compatible:
48 +- syscon: a phandle to the system controller to access PHY registers
49 +
50 +Optional properties for "cortina,gemini-usb" compatible:
51 +- cortina,gemini-mini-b: boolean property that indicates that a Mini-B
52 + OTH connector is in use
53 +- wakeup-source: see power/wakeup-source.txt
54 +
55 +Example for Gemini:
56 +
57 +usb@68000000 {
58 + compatible = "cortina,gemini-usb", "faraday,fotg210";
59 + reg = <0x68000000 0x1000>;
60 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
61 + clocks = <&cc 12>;
62 + clock-names = "PCLK";
63 + syscon = <&syscon>;
64 + wakeup-source;
65 +};