usb: panel type-c need support adb and u-disk [1/1]

PD#SWPL-9127

Problem:
the id pin of the type-c is aways high, whether it is connected to u disk
or usb cable.

Solution:
It need set vbus high when the usb mode is host only.

Verify:
test passed on sm1

Change-Id: I4ff8a9b5419b54828ecd797a78d149da98535dee
Signed-off-by: he.he <he.he@amlogic.com>
This commit is contained in:
he.he
2019-05-30 14:54:52 +08:00
committed by Jianxin Pan
parent 4cfa3d7b51
commit c44defab4c
4 changed files with 16 additions and 16 deletions

View File

@@ -1659,15 +1659,15 @@
&usb3_phy_v2 {
status = "okay";
portnum = <1>;
otg = <1>;
gpio-vbus-power = "GPIOH_6";
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
otg = <0>;
/*gpio-vbus-power = "GPIOH_6";*/
/*gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;*/
};
&dwc2_a {
status = "okay";
/** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/
controller-type = <3>;
controller-type = <1>;
};
&ethmac {
status = "okay";

View File

@@ -1659,15 +1659,15 @@
&usb3_phy_v2 {
status = "okay";
portnum = <1>;
otg = <1>;
gpio-vbus-power = "GPIOH_6";
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
otg = <0>;
/*gpio-vbus-power = "GPIOH_6";*/
/*gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;*/
};
&dwc2_a {
status = "okay";
/** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/
controller-type = <3>;
controller-type = <1>;
};
&ethmac {
status = "okay";

View File

@@ -1645,15 +1645,15 @@
&usb3_phy_v2 {
status = "okay";
portnum = <1>;
otg = <1>;
gpio-vbus-power = "GPIOH_6";
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
otg = <0>;
/*gpio-vbus-power = "GPIOH_6";*/
/*gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;*/
};
&dwc2_a {
status = "okay";
/** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/
controller-type = <3>;
controller-type = <1>;
};
&ethmac {
status = "okay";

View File

@@ -1646,15 +1646,15 @@
&usb3_phy_v2 {
status = "okay";
portnum = <1>;
otg = <1>;
gpio-vbus-power = "GPIOH_6";
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
otg = <0>;
/*gpio-vbus-power = "GPIOH_6";*/
/*gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;*/
};
&dwc2_a {
status = "okay";
/** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/
controller-type = <3>;
controller-type = <1>;
};
&ethmac {
status = "okay";