@@ -46,6 +46,33 @@ ppvar_sys: ppvar-sys-regulator {
regulator-boot-on;
};
+ usb_conn_gpio: usb-conn-gpio {
+ compatible = "gpio-usb-b-connector";
+ vbus-gpio = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
+ id-gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>;
+ vbus-supply = <&vbus_supply_regulator>;
+
+ pinctrl-0 = <&usb_vbus_det_default
+ &usb_id_det_default>;
+ pinctrl-names = "default";
+
+ port {
+ usb_port0_connector: endpoint {
+ remote-endpoint = <&usb_1_dwc3_hs>;
+ };
+ };
+ };
+
+ vbus_supply_regulator: vbus-supply-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vbus_supply";
+
+ gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>;
+ pinctrl-0 = <&usb_vbus_boost_default>;
+ pinctrl-names = "default";
+ enable-active-high;
+ };
+
vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed";
regulator-name = "vph_pwr";
@@ -239,6 +266,16 @@ vreg_l18a_1p2: ldo18 {
};
};
+&pm8150_gpios {
+ usb_vbus_det_default: usb-vbus-det-default {
+ pins = "gpio7";
+ function = "normal";
+ input-enable;
+ bias-pull-up;
+ power-source = <0>;
+ };
+};
+
&qup_i2c1_data_clk {
drive-strength = <2>;
bias-pull-up;
@@ -467,3 +504,31 @@ &tlmm {
&uart7 {
status = "okay";
};
+
+&usb_1 {
+ status = "okay";
+};
+
+&usb_1_dwc3 {
+ dr_mode = "otg";
+ usb-role-switch;
+};
+
+&usb_1_dwc3_hs {
+ remote-endpoint = <&usb_port0_connector>;
+};
+
+&usb_1_hsphy {
+ vdda-pll-supply = <&vreg_l8a_0p91>;
+ vdda18-supply = <&vreg_l14a_1p8>;
+ vdda33-supply = <&vreg_l2a_2p3>;
+
+ status = "okay";
+};
+
+&usb_1_qmpphy {
+ vdda-phy-supply = <&vreg_l8a_0p91>;
+ vdda-pll-supply = <&vreg_l3a_1p2>;
+
+ status = "okay";
+};