1 From dd62aee5d2d24199e71e745544e49a1a8b3c6f7a Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Fri, 21 Apr 2017 20:50:22 +0200
4 Subject: [PATCH 31/31] ARM: dts: Add the FOTG210 USB host to Gemini
6 This adds the FOTG210 USB host controller to the Gemini
7 device trees. In the main SoC DTSI it is flagged as disabled
8 and then it is selectively enabled on the devices that utilize
9 it (these per-platform enablements are done on the out-of-tree
10 OpenWrt patch set). It is not enabled on the Itian SquareOne
11 NAS/router since this instead has a VIA host controller
12 soldered on the PCI port, and can gate off these USB host
15 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
17 USB maintainers: I will merge this through the ARM SoC tree,
18 the patch is only included in the series for context.
20 arch/arm/boot/dts/gemini-dlink-dir-685.dts | 8 ++++++++
21 arch/arm/boot/dts/gemini-nas4220b.dts | 8 ++++++++
22 arch/arm/boot/dts/gemini-wbd111.dts | 20 ++++++++++++++++++++
23 arch/arm/boot/dts/gemini-wbd222.dts | 21 +++++++++++++++++++++
24 arch/arm/boot/dts/gemini.dtsi | 26 ++++++++++++++++++++++++++
25 6 files changed, 103 insertions(+)
27 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
28 +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
43 --- a/arch/arm/boot/dts/gemini-nas4220b.dts
44 +++ b/arch/arm/boot/dts/gemini-nas4220b.dts
59 --- a/arch/arm/boot/dts/gemini-wbd111.dts
60 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
62 <0x6000 0 0 3 &pci_intc 1>,
63 <0x6000 0 0 4 &pci_intc 2>;
71 + phy-handle = <&phy0>;
74 + /* Not used in this platform */
87 --- a/arch/arm/boot/dts/gemini-wbd222.dts
88 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
90 <0x6000 0 0 3 &pci_intc 1>,
91 <0x6000 0 0 4 &pci_intc 2>;
99 + phy-handle = <&phy0>;
102 + phy-mode = "rgmii";
103 + phy-handle = <&phy1>;
116 --- a/arch/arm/boot/dts/gemini.dtsi
117 +++ b/arch/arm/boot/dts/gemini.dtsi
124 + compatible = "cortina,gemini-usb", "faraday,fotg210";
125 + reg = <0x68000000 0x1000>;
126 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
127 + resets = <&syscon GEMINI_RESET_USB0>;
128 + clocks = <&syscon GEMINI_CLK_GATE_USB0>;
129 + clock-names = "PCLK";
130 + pinctrl-names = "default";
131 + pinctrl-0 = <&usb_default_pins>;
132 + syscon = <&syscon>;
133 + status = "disabled";
137 + compatible = "cortina,gemini-usb", "faraday,fotg210";
138 + reg = <0x69000000 0x1000>;
139 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
140 + resets = <&syscon GEMINI_RESET_USB1>;
141 + clocks = <&syscon GEMINI_CLK_GATE_USB1>;
142 + clock-names = "PCLK";
143 + pinctrl-names = "default";
144 + pinctrl-0 = <&usb_default_pins>;
145 + syscon = <&syscon>;
146 + status = "disabled";