ARM: dts: Berlin: enable USB on the BG2Q DMP
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 17 Nov 2014 13:35:45 +0000 (14:35 +0100)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 18 Nov 2014 19:32:07 +0000 (20:32 +0100)
Enable the 2 available USB PHY and USB nodes on the Marvell Berlin BG2Q
DMP.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
arch/arm/boot/dts/berlin2q-marvell-dmp.dts

index a403b0a5ba9179d8a8c9d3fab0d3be37ee5eb831..28e7e2060c3399c204f547b37fc325fa1069e8d8 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 /dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
 #include "berlin2q.dtsi"
 
 / {
        choosen {
                bootargs = "console=ttyS0,115200 earlyprintk";
        };
+
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg_usb0_vbus: regulator@0 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "usb0_vbus";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&portb 8 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+
+               reg_usb1_vbus: regulator@1 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "usb1_vbus";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&portb 10 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+
+               reg_usb2_vbus: regulator@2 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "usb2_vbus";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&portb 12 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+       };
 };
 
 &sdhci1 {
        status = "okay";
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
+&usb_phy2 {
+       status = "okay";
+};
+
+&usb0 {
+       vbus-supply = <&reg_usb0_vbus>;
+       status = "okay";
+};
+
+&usb2 {
+       vbus-supply = <&reg_usb2_vbus>;
+       status = "okay";
+};
+
 &eth0 {
        status = "okay";
 };