From: Seung-Woo Kim Date: Thu, 3 Dec 2020 03:55:02 +0000 (+0900) Subject: arm64: dts: mesong12_odroid_common: Set extcon state for dwc2_a cable as always true X-Git-Tag: submit/tizen/20201211.030542~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F248873%2F1;p=platform%2Fkernel%2Flinux-amlogic.git arm64: dts: mesong12_odroid_common: Set extcon state for dwc2_a cable as always true Since this, extcon state for dwc2_a, dwc_otg udc becomes always 'USB=1'. Note: odroid-c4/n2 connects usb_dwc2_a_id to usb connector id and usb_dwc2_a_vbus to usb connector vbus, so usb connect event can be detected including otg host and peripheral recognition. But the detection is possible to after configuration gadget on the udc, so in Tizen, it does not work because Tizen deviced waits usb connection to configure gadget on the udc. Because of this constraint in Tizen deviced, as a workaround, set extcon state for dwc2_a usb cable as connected. Change-Id: I755b3385f21d7ac49673afea291e4a43497be030 Signed-off-by: Seung-Woo Kim --- diff --git a/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi b/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi index f0abf6b23e32..1c4f43db4f92 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi @@ -184,6 +184,7 @@ status = "okay"; /** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/ controller-type = <3>; + g-extcon-always-on; }; &pcie_A {