From 722f778afcde83bb4afc0865bbcc89f9df75d5e8 Mon Sep 17 00:00:00 2001 From: Luan Yuan Date: Thu, 20 Jun 2019 10:07:11 +0800 Subject: [PATCH] dts: S905Y2 can not switch adb/usb. [1/1] 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 --- arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts | 4 ++-- arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts b/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts index 7d6551891675..aa6641c30b38 100644 --- a/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts +++ b/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts @@ -1168,7 +1168,7 @@ &usb3_phy_v2 { status = "okay"; portnum = <0>; - otg = <1>; + otg = <0>; gpio-vbus-power = "GPIOH_6"; gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; }; @@ -1176,7 +1176,7 @@ &dwc2_a { status = "okay"; /** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/ - controller-type = <3>; + controller-type = <1>; }; ðmac { status = "disabled"; diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts b/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts index b2bb78e7ca34..68094b327066 100644 --- a/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts +++ b/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts @@ -1165,7 +1165,7 @@ &usb3_phy_v2 { status = "okay"; portnum = <0>; - otg = <1>; + otg = <0>; gpio-vbus-power = "GPIOH_6"; gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; }; @@ -1173,7 +1173,7 @@ &dwc2_a { status = "okay"; /** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/ - controller-type = <3>; + controller-type = <1>; }; ðmac { status = "disabled";