octeon: disable edgerouter image
[openwrt/staging/ynezz.git] / target / linux / gemini / patches-4.19 / 0014-usb-host-add-DT-bindings-for-faraday-fotg2.patch
1 From f9cfc45c57227448d4239e9582258587aacf34e7 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 14/18] 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 Acked-by: Rob Herring <robh@kernel.org>
12 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 ---
14 ChangeLog v1->v2:
15 - Changed "OTH" to "OTG"
16 - Collected Rob's ACK.
17 - I don't see any problem with these bindings, but IIRC Hans
18 had some reservations for the OTG mode, maybe we can strip
19 some properties like the mini-usb thing and use as a starter
20 so we can add host mode at least?
21 ---
22 .../bindings/usb/faraday,fotg210.txt | 35 +++++++++++++++++++
23 1 file changed, 35 insertions(+)
24 create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt
25
26 --- /dev/null
27 +++ b/Documentation/devicetree/bindings/usb/faraday,fotg210.txt
28 @@ -0,0 +1,35 @@
29 +Faraday FOTG Host controller
30 +
31 +This OTG-capable USB host controller is found in Cortina Systems
32 +Gemini and other SoC products.
33 +
34 +Required properties:
35 +- compatible: should be one of:
36 + "faraday,fotg210"
37 + "cortina,gemini-usb", "faraday,fotg210"
38 +- reg: should contain one register range i.e. start and length
39 +- interrupts: description of the interrupt line
40 +
41 +Optional properties:
42 +- clocks: should contain the IP block clock
43 +- clock-names: should be "PCLK" for the IP block clock
44 +
45 +Required properties for "cortina,gemini-usb" compatible:
46 +- syscon: a phandle to the system controller to access PHY registers
47 +
48 +Optional properties for "cortina,gemini-usb" compatible:
49 +- cortina,gemini-mini-b: boolean property that indicates that a Mini-B
50 + OTG connector is in use
51 +- wakeup-source: see power/wakeup-source.txt
52 +
53 +Example for Gemini:
54 +
55 +usb@68000000 {
56 + compatible = "cortina,gemini-usb", "faraday,fotg210";
57 + reg = <0x68000000 0x1000>;
58 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
59 + clocks = <&cc 12>;
60 + clock-names = "PCLK";
61 + syscon = <&syscon>;
62 + wakeup-source;
63 +};