ARM: dts: Add the FOTG210 USB host to Gemini boards
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Apr 2017 18:50:22 +0000 (20:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 8 Dec 2018 22:20:10 +0000 (23:20 +0100)
This adds the FOTG210 USB host controller to the Gemini
device trees. In the main SoC DTSI it is flagged as disabled
and then it is selectively enabled on the devices that utilize
it.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/gemini-dlink-dir-685.dts
arch/arm/boot/dts/gemini-nas4220b.dts
arch/arm/boot/dts/gemini-rut1xx.dts
arch/arm/boot/dts/gemini-sl93512r.dts
arch/arm/boot/dts/gemini-sq201.dts
arch/arm/boot/dts/gemini-wbd111.dts
arch/arm/boot/dts/gemini-wbd222.dts
arch/arm/boot/dts/gemini.dtsi

index 318e9b2..5e8e964 100644 (file)
                                };
                        };
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index 963ea89..53b65eb 100644 (file)
                ata@63400000 {
                        status = "okay";
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index eb4f0bf..b2354c2 100644 (file)
                                /* Not used in this platform */
                        };
                };
+
+               ethernet@60000000 {
+                       status = "okay";
+
+                       ethernet-port@0 {
+                               phy-mode = "rgmii";
+                               phy-handle = <&phy0>;
+                       };
+                       ethernet-port@1 {
+                               /* Not used in this platform */
+                       };
+               };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index ebefb72..2bb9534 100644 (file)
                ata@63400000 {
                        status = "okay";
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index c5bb241..ecbc27d 100644 (file)
                ata@63000000 {
                        status = "okay";
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index 29af86c..6831d2a 100644 (file)
                                /* Not used in this platform */
                        };
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index 24e6ae3..ed38d48 100644 (file)
                                phy-handle = <&phy1>;
                        };
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index eb752e9..8cf67b1 100644 (file)
                        #size-cells = <0>;
                        status = "disabled";
                };
+
+               usb@68000000 {
+                       compatible = "cortina,gemini-usb", "faraday,fotg210";
+                       reg = <0x68000000 0x1000>;
+                       interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon GEMINI_RESET_USB0>;
+                       clocks = <&syscon GEMINI_CLK_GATE_USB0>;
+                       clock-names = "PCLK";
+                       /*
+                        * This will claim pins for USB0 and USB1 at the same
+                        * time as they are using some common pins. If you for
+                        * some reason have a system using USB1 at 96000000 but
+                        * NOT using USB0 at 68000000 you wll have to add the
+                        * usb_default_pins to the USB controller at 96000000
+                        * in your .dts for the board.
+                        */
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&usb_default_pins>;
+                       syscon = <&syscon>;
+                       status = "disabled";
+               };
+
+               usb@69000000 {
+                       compatible = "cortina,gemini-usb", "faraday,fotg210";
+                       reg = <0x69000000 0x1000>;
+                       interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon GEMINI_RESET_USB1>;
+                       clocks = <&syscon GEMINI_CLK_GATE_USB1>;
+                       clock-names = "PCLK";
+                       syscon = <&syscon>;
+                       status = "disabled";
+               };
        };
 };