|
@@ -34,15 +34,6 @@
|
|
|
|
|
|
chosen { };
|
|
|
|
|
|
- usb_p1_vbus: regulator@0 {
|
|
|
- compatible = "regulator-fixed";
|
|
|
- regulator-name = "usb_vbus";
|
|
|
- regulator-min-microvolt = <5000000>;
|
|
|
- regulator-max-microvolt = <5000000>;
|
|
|
- gpio = <&pio 130 GPIO_ACTIVE_HIGH>;
|
|
|
- enable-active-high;
|
|
|
- };
|
|
|
-
|
|
|
connector {
|
|
|
compatible = "hdmi-connector";
|
|
|
label = "hdmi";
|
|
@@ -54,6 +45,29 @@
|
|
|
};
|
|
|
};
|
|
|
};
|
|
|
+
|
|
|
+ extcon_usb: extcon_iddig {
|
|
|
+ compatible = "linux,extcon-usb-gpio";
|
|
|
+ id-gpio = <&pio 16 GPIO_ACTIVE_HIGH>;
|
|
|
+ };
|
|
|
+
|
|
|
+ usb_p1_vbus: regulator@0 {
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "usb_vbus";
|
|
|
+ regulator-min-microvolt = <5000000>;
|
|
|
+ regulator-max-microvolt = <5000000>;
|
|
|
+ gpio = <&pio 130 GPIO_ACTIVE_HIGH>;
|
|
|
+ enable-active-high;
|
|
|
+ };
|
|
|
+
|
|
|
+ usb_p0_vbus: regulator@1 {
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "vbus";
|
|
|
+ regulator-min-microvolt = <5000000>;
|
|
|
+ regulator-max-microvolt = <5000000>;
|
|
|
+ gpio = <&pio 9 GPIO_ACTIVE_HIGH>;
|
|
|
+ enable-active-high;
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
&cec {
|
|
@@ -243,6 +257,20 @@
|
|
|
bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
|
|
|
};
|
|
|
};
|
|
|
+
|
|
|
+ usb_id_pins_float: usb_iddig_pull_up {
|
|
|
+ pins_iddig {
|
|
|
+ pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>;
|
|
|
+ bias-pull-up;
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ usb_id_pins_ground: usb_iddig_pull_down {
|
|
|
+ pins_iddig {
|
|
|
+ pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>;
|
|
|
+ bias-pull-down;
|
|
|
+ };
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
&pwm0 {
|
|
@@ -469,12 +497,25 @@
|
|
|
status = "okay";
|
|
|
};
|
|
|
|
|
|
+&ssusb {
|
|
|
+ vusb33-supply = <&mt6397_vusb_reg>;
|
|
|
+ vbus-supply = <&usb_p0_vbus>;
|
|
|
+ extcon = <&extcon_usb>;
|
|
|
+ dr_mode = "otg";
|
|
|
+ mediatek,enable-wakeup;
|
|
|
+ pinctrl-names = "default", "id_float", "id_ground";
|
|
|
+ pinctrl-0 = <&usb_id_pins_float>;
|
|
|
+ pinctrl-1 = <&usb_id_pins_float>;
|
|
|
+ pinctrl-2 = <&usb_id_pins_ground>;
|
|
|
+ status = "okay";
|
|
|
+};
|
|
|
+
|
|
|
&uart0 {
|
|
|
status = "okay";
|
|
|
};
|
|
|
|
|
|
-&usb30 {
|
|
|
+&usb_host {
|
|
|
vusb33-supply = <&mt6397_vusb_reg>;
|
|
|
vbus-supply = <&usb_p1_vbus>;
|
|
|
- mediatek,wakeup-src = <1>;
|
|
|
+ status = "okay";
|
|
|
};
|