1 From 1ff9a279dbeb0034929042faef186ce934474c2b 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 18/18] ARM: dts: Add the FOTG210 USB host to Gemini boards
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
11 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14 - Rebased to kernel v4.19-rc1
15 - Drop pinctrl-0 handle from the second USB port
16 - Add comment on how to deal with the USB pin control
18 arch/arm/boot/dts/gemini-dlink-dir-685.dts | 8 ++++++
19 arch/arm/boot/dts/gemini-nas4220b.dts | 8 ++++++
20 arch/arm/boot/dts/gemini-rut1xx.dts | 20 ++++++++++++++
21 arch/arm/boot/dts/gemini-sl93512r.dts | 8 ++++++
22 arch/arm/boot/dts/gemini-sq201.dts | 8 ++++++
23 arch/arm/boot/dts/gemini-wbd111.dts | 8 ++++++
24 arch/arm/boot/dts/gemini-wbd222.dts | 8 ++++++
25 arch/arm/boot/dts/gemini.dtsi | 32 ++++++++++++++++++++++
26 8 files changed, 100 insertions(+)
28 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
29 +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
44 --- a/arch/arm/boot/dts/gemini-nas4220b.dts
45 +++ b/arch/arm/boot/dts/gemini-nas4220b.dts
60 --- a/arch/arm/boot/dts/gemini-rut1xx.dts
61 +++ b/arch/arm/boot/dts/gemini-rut1xx.dts
63 /* Not used in this platform */
72 + phy-handle = <&phy0>;
75 + /* Not used in this platform */
88 --- a/arch/arm/boot/dts/gemini-sl93512r.dts
89 +++ b/arch/arm/boot/dts/gemini-sl93512r.dts
104 --- a/arch/arm/boot/dts/gemini-sq201.dts
105 +++ b/arch/arm/boot/dts/gemini-sq201.dts
120 --- a/arch/arm/boot/dts/gemini-wbd111.dts
121 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
123 /* Not used in this platform */
136 --- a/arch/arm/boot/dts/gemini-wbd222.dts
137 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
139 phy-handle = <&phy1>;
152 --- a/arch/arm/boot/dts/gemini.dtsi
153 +++ b/arch/arm/boot/dts/gemini.dtsi
160 + compatible = "cortina,gemini-usb", "faraday,fotg210";
161 + reg = <0x68000000 0x1000>;
162 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
163 + resets = <&syscon GEMINI_RESET_USB0>;
164 + clocks = <&syscon GEMINI_CLK_GATE_USB0>;
165 + clock-names = "PCLK";
167 + * This will claim pins for USB0 and USB1 at the same
168 + * time as they are using some common pins. If you for
169 + * some reason have a system using USB1 at 96000000 but
170 + * NOT using USB0 at 68000000 you wll have to add the
171 + * usb_default_pins to the USB controller at 96000000
172 + * in your .dts for the board.
174 + pinctrl-names = "default";
175 + pinctrl-0 = <&usb_default_pins>;
176 + syscon = <&syscon>;
177 + status = "disabled";
181 + compatible = "cortina,gemini-usb", "faraday,fotg210";
182 + reg = <0x69000000 0x1000>;
183 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
184 + resets = <&syscon GEMINI_RESET_USB1>;
185 + clocks = <&syscon GEMINI_CLK_GATE_USB1>;
186 + clock-names = "PCLK";
187 + syscon = <&syscon>;
188 + status = "disabled";