Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4459059ybg; Mon, 21 Oct 2019 09:18:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV5pGVxyqvSN+W6p8IgfOHXKL02Sw3GNj1zt0/CIkQwFs4tiKjqJoJvmJE+HryH3xRJSRH X-Received: by 2002:aa7:c954:: with SMTP id h20mr13937483edt.159.1571674711259; Mon, 21 Oct 2019 09:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571674711; cv=none; d=google.com; s=arc-20160816; b=YKMrQ5zdmpPM8gTmiVhfsQFVo189rmR29C/jOHfvpqbi5FXB1sYWaijU/QTaoV98T6 24hZtE9NTQuQ2lbu20sXA5eLgZIS0x5aGLz2trrBeFAC+8MZmGgRzz6AILSpVcHub+cy nsXShRlP3rkISZ7zqtSGre+mYR0KAQqGUVUj373/MIhrF5cof+1R8OjN/IiTGFMhrzVv OpWZSF3HWTzSGzpcMHjNwAmgsW17eciZcifQTPXDax+Qk3oszDdHJAmLwqPIZRqqBA83 vNS7gBniwoYt1Q8yGHTcGvJ8wRgLqTNyGAbUROFlULZ2Jjshw24575cK5wXnQ71IRRoA x1Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=lkDRxLx0e64Dw8F83EKAXaoP6GxpGN0qeMyvz3hwbCs=; b=EEEpDJ9JUUBb5qm6IuGVh/Yxr2u1sIvFRsBts5Vm909v6PQqCF26CUG9KeVqU0CI0/ b71uj2CYfZQsuWyEb8VTmJ6xXSFDLo3TKTTDSC30TJaYeydec2YIC3DEIDut2vIXjLqv GiMjfCwXYED0m3smVt4LZ3+EYL9+hoGZhrRWXI8Zzcu3R/QYK6ilfyKqU8iqSRSIL6ae 6lCmpQmqYZhUMoUk2YfjLKC/Tvu1Teqee5mPb8Mbj/db1xx95DBuG98AE4GhAscqXl26 mBOZAXMoMq17Xsmo3alqxsjEOzYi1ZjDZylVgFQQ6MJQrxnryStrIHFSYx6hJsBObUT5 Zxsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NztH2lX/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id la20si9061274ejb.73.2019.10.21.09.18.07; Mon, 21 Oct 2019 09:18:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NztH2lX/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728768AbfJUQRS (ORCPT + 99 others); Mon, 21 Oct 2019 12:17:18 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51994 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbfJUQRR (ORCPT ); Mon, 21 Oct 2019 12:17:17 -0400 Received: by mail-wm1-f68.google.com with SMTP id q70so6833653wme.1; Mon, 21 Oct 2019 09:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lkDRxLx0e64Dw8F83EKAXaoP6GxpGN0qeMyvz3hwbCs=; b=NztH2lX/cIvVrXrCMiwfb5TW5vyGJtlgX/seuc3mVoXS+8ENIlD59Yhxxj/C7aH6nc D+l9KX/juO+goIqOHhPocDMBmP6S0JVCbSCWIABAUsLNlkQHw9ii0yFiJpKtKYPm8u/7 VxSzHvKgHCei4sK4xixE4Ndh1b0yD4nfRgCS8xy9+a+zl9ZOM8DxmvVAixwpQaGhu8At uDqErRV911Yk4Q/tSfAeni6XtjJqhO18KQmOGl0FtMgK2lbDw4VYvWd0DXBCaV9O7wys qix7a+/+Gebgaqzv7lN9vZdHUw283LBYjW73y1J3olsct47xK4dec46+b/7LDAWCmZ0S 22+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lkDRxLx0e64Dw8F83EKAXaoP6GxpGN0qeMyvz3hwbCs=; b=YNkqXxwijHdWzs+SrmaU8zukmYcgJr8L8a17hQ1QF5oMoyPf12+CsMWOqaGlizl/nV +oyoLLakcfFNPh54gRXDLUEpni4yEsC5qUSCHtc85RfHNWiv0fTC8JPUVZOrE1uR0ron Pf24/rhA/xExRkA1TowDs4YcMROsGpV523whTGgO+LBrkD8pMnEYL+W9VH3ukteDlhbN zpTr1aevF4aGBhcYKeJiSNQiyshNt26VRSk3zZ4+tlHs+qM3AP6YQKdy2qBgsezQ7TwR +SMwEOqYxxM/KqkQFHZoQIUEHOyRf7fMhYujAF84713RyWlfk2Zx8DEDQcr5O0TWeJUy Z0+A== X-Gm-Message-State: APjAAAW/HY5iJYtAKsNuvmRSDenJYLg6sIZ+VJEh9If+Zy1zhgivLdJP UyTZv7gfMFGx7vDL/K1RMgop498p0vI= X-Received: by 2002:a05:600c:219:: with SMTP id 25mr6595987wmi.174.1571674634775; Mon, 21 Oct 2019 09:17:14 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id 79sm23848976wmb.7.2019.10.21.09.17.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 09:17:14 -0700 (PDT) From: Igor Opaniuk To: linux-usb@vger.kernel.org Cc: Marcel Ziswiler , Philippe Schenker , Stefan Agner , Max Krummenacher , Oleksandr Suvorov , Igor Opaniuk , Fabio Estevam , Mark Rutland , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] ARM: dts: colibri-imx6ull: add extcon for usbotg1 Date: Mon, 21 Oct 2019 19:16:54 +0300 Message-Id: <20191021161654.14353-2-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191021161654.14353-1-igor.opaniuk@gmail.com> References: <20191021161654.14353-1-igor.opaniuk@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Igor Opaniuk Add extcon usb gpio configuration for support dual roles for usbotg1. USB host/gadget switching test (1. USB NIC emulation; 2. USB storage): [ 52.491957] ci_hdrc ci_hdrc.1: switching to gadget role [ 52.502911] mxs_phy 20c9000.usbphy: vbus is not valid [ 56.749160] using random self ethernet address [ 56.758637] using random host ethernet address [ 65.768968] usb0: HOST MAC 00:14:2d:ff:ff:fe [ 65.887980] usb0: MAC 00:14:2d:ff:ff:ff [ 66.294961] configfs-gadget gadget: high-speed config #1: c [ 78.741971] ci_hdrc ci_hdrc.1: switching to host role [ 78.747522] ci_hdrc ci_hdrc.1: EHCI Host Controller [ 78.790174] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2 [ 78.868498] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 Signed-off-by: Igor Opaniuk --- arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi index a78849fd2afa..988f1a800d5a 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi @@ -29,6 +29,14 @@ clock-frequency = <16000000>; }; + extcon_usbc_det: usbc_det { + compatible = "linux,extcon-usb-gpio"; + debounce = <25>; + id-gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_snvs_usbc_det>; + }; + panel: panel { compatible = "edt,et057090dhu"; backlight = <&bl>; @@ -150,6 +158,7 @@ }; &usbotg1 { + extcon = <&extcon_usbc_det &extcon_usbc_det>; status = "okay"; }; -- 2.17.1