From: he.he Date: Thu, 30 May 2019 06:54:52 +0000 (+0800) Subject: usb: panel type-c need support adb and u-disk [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~369 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d22e16aa6673a0afb4c0d38bdcdbd898bdd63e75;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- diff --git a/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts b/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts index 5b1af05..3c69287 100644 --- a/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts +++ b/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts @@ -1680,15 +1680,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>; }; ðmac { status = "okay"; diff --git a/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts b/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts index 270a2110..0f27d43 100644 --- a/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts +++ b/arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts @@ -1680,15 +1680,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>; }; ðmac { status = "okay"; diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts b/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts index a32b2b7..a55ab80 100644 --- a/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts +++ b/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts @@ -1666,15 +1666,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>; }; ðmac { status = "okay"; diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts b/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts index b1f88fd..9757d8c 100644 --- a/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts +++ b/arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts @@ -1667,15 +1667,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>; }; ðmac { status = "okay";