usb: panel type-c need support adb and u-disk [1/1]
authorhe.he <he.he@amlogic.com>
Thu, 30 May 2019 06:54:52 +0000 (14:54 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:45:34 +0000 (14:45 +0800)
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>
arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts

index 5b1af05..3c69287 100644 (file)
 &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";
index 270a211..0f27d43 100644 (file)
 &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";
index a32b2b7..a55ab80 100644 (file)
 &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";
index b1f88fd..9757d8c 100644 (file)
 &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";