Merge tag 'mvebu-dt-5.8-1' of git://git.infradead.org/linux-mvebu into arm/dt
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / qcom / qcs404-evb.dtsi
index afe69e8..6422cf9 100644 (file)
@@ -4,6 +4,8 @@
 #include <dt-bindings/gpio/gpio.h>
 #include "qcs404.dtsi"
 #include "pms405.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 
 / {
        aliases {
                regulator-max-microvolt = <3300000>;
                regulator-always-on;
        };
+
+       usb3_vbus_reg: regulator-usb3-vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "VBUS_BOOST_5V";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&pms405_gpios 3 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&usb_vbus_boost_pin>;
+               vin-supply = <&vph_pwr>;
+               enable-active-high;
+
+               /* TODO: Drop this when introducing role switching */
+               regulator-always-on;
+       };
 };
 
 &blsp1_uart3 {
                };
 
                vreg_l12_3p3: l12 {
-                       regulator-min-microvolt = <2968000>;
+                       regulator-min-microvolt = <3050000>;
                        regulator-max-microvolt = <3300000>;
                };
 
                        bias-pull-down;
                };
        };
+
+       usb3_id_pin: usb3-id-pin {
+               pinmux {
+                       pins = "gpio116";
+                       function = "gpio";
+               };
+
+               pinconf {
+                       pins = "gpio116";
+                       drive-strength = <2>;
+                       bias-pull-up;
+                       input-enable;
+               };
+       };
+};
+
+&pms405_gpios {
+       usb_vbus_boost_pin: usb-vbus-boost-pin {
+               pinconf {
+                       pins = "gpio3";
+                       function = PMIC_GPIO_FUNC_NORMAL;
+                       output-low;
+                       power-source = <1>;
+               };
+       };
+       usb3_vbus_pin: usb3-vbus-pin {
+               pinconf {
+                       pins = "gpio12";
+                       function = PMIC_GPIO_FUNC_NORMAL;
+                       input-enable;
+                       bias-pull-down;
+                       power-source = <1>;
+               };
+       };
+};
+
+&usb2 {
+       status = "okay";
+};
+
+&usb2_phy_sec {
+       vdd-supply = <&vreg_l4_1p2>;
+       vdda1p8-supply = <&vreg_l5_1p8>;
+       vdda3p3-supply = <&vreg_l12_3p3>;
+       status = "okay";
+};
+
+&usb3 {
+       status = "okay";
+
+       dwc3@7580000 {
+               dr_mode = "host";
+       };
+};
+
+&usb2_phy_prim {
+       vdd-supply = <&vreg_l4_1p2>;
+       vdda1p8-supply = <&vreg_l5_1p8>;
+       vdda3p3-supply = <&vreg_l12_3p3>;
+       status = "okay";
+};
+
+&usb3_phy {
+       vdd-supply = <&vreg_l3_1p05>;
+       vdda1p8-supply = <&vreg_l5_1p8>;
+       status = "okay";
 };
 
 &wifi {