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 318e9b2ba7dc7b9b508a5b4e9234dc333f99800d..5e8e964589035a6de2423ee8b27e60334f2dedec 100644 (file)
                                };
                        };
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index 963ea890c87f2ed52dd02446798aa0fae6f153ae..53b65ebe845406b9e0f76c84802a26e46d0cdbde 100644 (file)
                ata@63400000 {
                        status = "okay";
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index eb4f0bf074da368495b96c8a8f1b146cba812909..b2354c215a84a400e7e784cb40ec8f3d04d53acb 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 ebefb7297379d4ccc90ea9b7edceff92b7910e74..2bb9534407933b0ba18eefe552c4605362350471 100644 (file)
                ata@63400000 {
                        status = "okay";
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index c5bb24102b75269bb2f7f631c1398285c1f3bd3c..ecbc27d93b2ddcff2feb94882e15c9037c67ca17 100644 (file)
                ata@63000000 {
                        status = "okay";
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index 29af86cd10f7d76f0267784191a1ddd521c8b0f2..6831d2aed17ade393470c2c2845bc4f2b6c37959 100644 (file)
                                /* Not used in this platform */
                        };
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index 24e6ae3616f7165fbb12f309f529fb6ddb091825..ed38d48ef5f6a3d8dd631a0181c8acc66c0da890 100644 (file)
                                phy-handle = <&phy1>;
                        };
                };
+
+               usb@68000000 {
+                       status = "okay";
+               };
+
+               usb@69000000 {
+                       status = "okay";
+               };
        };
 };
index eb752e9495de10f8a99339d257f4680ebacf4793..8cf67b11751f7b3338329a62ecf2440f910183a5 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";
+               };
        };
 };