dts: S905Y2 can not switch adb/usb. [1/1]
authorLuan Yuan <luan.yuan@amlogic.com>
Thu, 20 Jun 2019 02:07:11 +0000 (10:07 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 12 Sep 2019 01:59:36 +0000 (18:59 -0700)
PD#SWPL-13103

Problem:
S905Y2 can not use adb.

Solution:
config dts, and switch the state in uboot.
setenv otg_device 0 or 1.

Verify:
verify by faraday.

Change-Id: If4cda761e346fb63d6918db74bc03f23cdcb3a1b
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts
arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts

index 7d65518..aa6641c 100644 (file)
 &usb3_phy_v2 {
        status = "okay";
        portnum = <0>;
-       otg = <1>;
+       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 = "disabled";
index b2bb78e..68094b3 100644 (file)
 &usb3_phy_v2 {
        status = "okay";
        portnum = <0>;
-       otg = <1>;
+       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 = "disabled";