]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: mvebu: armada-385-ap: Enable USB3 port
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 19 Jan 2015 13:01:14 +0000 (14:01 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 18 Mar 2015 10:55:49 +0000 (11:55 +0100)
The Armada 385 AP board has a USB3 port exposed that uses a GPIO to drive the
VBUS line. Enable the needed drivers to support this.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-385-db-ap.dts

index d6b0f7db9624d1f5e17b9600240839845fa0edc5..7219ac3a3d900743114fd7d9001748118695515e 100644 (file)
                                status = "okay";
                        };
 
+                       pinctrl@18000 {
+                               xhci0_vbus_pins: xhci0-vbus-pins {
+                                       marvell,pins = "mpp44";
+                                       marvell,function = "gpio";
+                               };
+                       };
+
                        ethernet@30000 {
                                status = "okay";
                                phy = <&phy2>;
                                marvell,nand-enable-arbiter;
                                nand-on-flash-bbt;
                        };
+
+                       usb3@f0000 {
+                               status = "okay";
+                               usb-phy = <&usb3_phy>;
+                       };
                };
 
                pcie-controller {
                        };
                };
        };
+
+       usb3_phy: usb3_phy {
+               compatible = "usb-nop-xceiv";
+               vcc-supply = <&reg_xhci0_vbus>;
+       };
+
+       reg_xhci0_vbus: xhci0-vbus {
+               compatible = "regulator-fixed";
+               pinctrl-names = "default";
+               pinctrl-0 = <&xhci0_vbus_pins>;
+               regulator-name = "xhci0-vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               enable-active-high;
+               gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
+       };
 };