Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp556231ybt; Fri, 10 Jul 2020 06:50:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP+oFPq3XXnjHc2+54ebTdRpo9y24xU9x9Coz6lzQjRbS4gY+AjyJG6DwIDpOhhK+T06s5 X-Received: by 2002:a17:906:b813:: with SMTP id dv19mr60197811ejb.119.1594389019697; Fri, 10 Jul 2020 06:50:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594389019; cv=pass; d=google.com; s=arc-20160816; b=c+NwehhrrNZc6P8rP5kTtQsVbcOPNvjWfYJiKm4tNsbWgYD2pgqSbaNICMN2qxzhFc 2g+wH9Bn48hDq+hSMRCPikN1KUdWdUtMVqW/T59XCNCCdHFzBlGNTHuZ3vRSdDEJIkEK W+COgNwWqWzpaNUBtZgs8O1jKwkUSVPTxY/7roEcDZI+J9yBzqBfZZJy4wYyOb2tHtuH g2LtyvQK6LYrt4QPw5Bf6KuuRcxXp4bN69ysiez1G6scirS25WtUSnw3zG8BZ3xaBSZB nhAQRoT2wbkQVuCIrICZdXJjMn4JjX3JzGS9cBapux9O4EVF+uEtMJb9JpgJpklA7yud e2Zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:cc:to:subject:message-id :date:from:in-reply-to:references:dkim-signature; bh=R+d4LwhP5QGoKirMIFk26YcXQYavfLOPw9IlkScDylg=; b=QsBCcA44bnoHZF4UuCAJtlsLH5QztXhP2YM/bjZ9+C4cF0CDVxWaJHW0xIFyFqFAA+ d4KdEkZURK609OldzfmF6K2/OY9TmUzguD3Q96xCQKvMUVL2padXO3rQa2F50YAff0VV 6vpy1bWjOLOmImN6EA2TJqZ734wH7bPTBI3Ub8L8xL1VTUah0Y3fYeH1aKLzBdEXs9VT QEAGx+bBXffskkZtHgeMQk/Dq0ea1fEaTAwX1v7lKXAsR7+KuzGTYgdeRxhASxMbj4rq vVVgPAHxVj3zZybb01uTbfgubOLSc6hB0T11DsOHZki7oynup9qmJ/Zk0bqjM7rrh23y NvzQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=maMIpUM5; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si4156631edr.36.2020.07.10.06.49.56; Fri, 10 Jul 2020 06:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=maMIpUM5; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727951AbgGJNrX (ORCPT + 99 others); Fri, 10 Jul 2020 09:47:23 -0400 Received: from mail-eopbgr30099.outbound.protection.outlook.com ([40.107.3.99]:47325 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726896AbgGJNrW (ORCPT ); Fri, 10 Jul 2020 09:47:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VWt31MgvOojLJw1SmdI3T3qmKtCFCF/dh9/1ZoXM9Bo+XYMD2yRcScQw6SAzHSa8ZCnY+rjbQfnohR//wlFQvIQ3BiPA0aIlIsepqSQsPMfaPTP67AmP5szqMaV7MrRCh0qxE079opL5shcSWFGO1qSN3b++RGfno9mesDnK3/jv6Du5dmUpgcj1DE2e2XoTK2Otre8Uh3fu5CsMA/XlR6NaliTVr7tCFik9OJ+JVFuwi445UvCcYinjdO3Ay3YHJ12nfNiIdX1PUNHs8R5HuOEYpnJ+c86RNTYv7Z3Ug77doi4W/CQKV1sLqRCJAhqX3ETsuWCKExp61rSVncOtvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R+d4LwhP5QGoKirMIFk26YcXQYavfLOPw9IlkScDylg=; b=Dx5ypg6YYJGi9T9bw0rYMC47Ln7lJQDV77URcxV+KcCw8pzJMKgo3Cri6d1TidDEBmTzNMZDU/yPt2C0cj03s2X+BSXVPks33OaDDVa4IKXUzXl3qRcaW75stffAOWeM4fRTM206W5VgzDbBa7vTyxLu8Jk+jt4OJV6HTOqFOD9v9x1NBPDcvbAjUhzIzbeDsSZ22FOEUh5VC5vuhCSfBwD5oq6kAF2U/UNye4+mbb+acwXaTdjTS5crRWwqABkfmlNAsgf5MrgoX6c+XtoQArf4X0asILILVXe5DZuqXKO6BVPFsMIK89PMhUb4JkTqXl5hnaSFYrNNBEho3/vFSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R+d4LwhP5QGoKirMIFk26YcXQYavfLOPw9IlkScDylg=; b=maMIpUM5mWd+y95jvT5YPc/rJCTbqq1XdJJAUeYFG7kOGueGmP+TATZBBkXo+kBRAxfamo64z1povYsi0iIUpIvVI4Am3ZDrkQpNtlHdWXxYPGQnAGrlcYTsj1ydVpMOJk97JqJBSt/kpFs60oOs6EE2p3W84vEw/RPNog30TsU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=toradex.com; Received: from AM0PR05MB6002.eurprd05.prod.outlook.com (2603:10a6:208:129::19) by AM4PR05MB3363.eurprd05.prod.outlook.com (2603:10a6:205:10::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Fri, 10 Jul 2020 13:47:19 +0000 Received: from AM0PR05MB6002.eurprd05.prod.outlook.com ([fe80::343d:a818:80a7:3e6]) by AM0PR05MB6002.eurprd05.prod.outlook.com ([fe80::343d:a818:80a7:3e6%7]) with mapi id 15.20.3174.022; Fri, 10 Jul 2020 13:47:18 +0000 X-Gm-Message-State: AOAM5328hUBw0cX9B+aDsq9EOwaOyQGy7szfIvDqGJ+HOaJUVgjhCCsF 4NVV99uWoLUL6wdo3Szx+sOpU9lLi6iSrezA++A= X-Received: by 2002:a0c:e847:: with SMTP id l7mr70366995qvo.232.1594388835437; Fri, 10 Jul 2020 06:47:15 -0700 (PDT) References: <20200710132423.497230-1-philippe.schenker@toradex.com> <20200710132423.497230-3-philippe.schenker@toradex.com> In-Reply-To: <20200710132423.497230-3-philippe.schenker@toradex.com> From: Oleksandr Suvorov Date: Fri, 10 Jul 2020 16:47:04 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] ARM: dts: colibri-imx7: add usb dual-role switch capability To: Philippe Schenker Cc: devicetree@vger.kernel.org, Shawn Guo , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-ClientProxiedBy: MN2PR22CA0025.namprd22.prod.outlook.com (2603:10b6:208:238::30) To AM0PR05MB6002.eurprd05.prod.outlook.com (2603:10a6:208:129::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mail-qv1-f47.google.com (209.85.219.47) by MN2PR22CA0025.namprd22.prod.outlook.com (2603:10b6:208:238::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Fri, 10 Jul 2020 13:47:18 +0000 Received: by mail-qv1-f47.google.com with SMTP id h17so2577273qvr.0; Fri, 10 Jul 2020 06:47:18 -0700 (PDT) X-Gm-Message-State: AOAM5328hUBw0cX9B+aDsq9EOwaOyQGy7szfIvDqGJ+HOaJUVgjhCCsF 4NVV99uWoLUL6wdo3Szx+sOpU9lLi6iSrezA++A= X-Received: by 2002:a0c:e847:: with SMTP id l7mr70366995qvo.232.1594388835437; Fri, 10 Jul 2020 06:47:15 -0700 (PDT) X-Gmail-Original-Message-ID: X-Originating-IP: [209.85.219.47] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b0a5e047-6fd2-4e78-1f83-08d824d7c35d X-MS-TrafficTypeDiagnostic: AM4PR05MB3363: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pqJV01S91X/sjd3Yki4lS5agCCZGHtLr0CCaI2/aIMFsN4uJi/PCD0wEVXPaqi4/tramO2b3mnxo6rhr0d99/THIccAHKFWP1MPoZxZowEiAgepUgagqkhMngmO9b8W+/yRc3eham0IW0/tGYlgLnGncDl2qoWoYxCSZL8pqTFTXiBExHewm1faOtbDdLLPe71RBCh6H7LvBzaG9cgaLpLPRPXGFmFXpkQXKZaueGTE7uPpYF1h5YShi1zgPlH0fST6t1dEQFvuzEfaO/xAgN4I1yjIoFEb0IkEcC1znS+1LxYwRtMYacrR9iOk8/PeTpKogCqsvNeZF6K9V/gqqhA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR05MB6002.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(39850400004)(346002)(366004)(136003)(376002)(450100002)(8936002)(8676002)(5660300002)(4326008)(9686003)(83380400001)(6862004)(6666004)(6636002)(66556008)(66476007)(66946007)(86362001)(44832011)(53546011)(2906002)(478600001)(55446002)(26005)(52116002)(42186006)(55236004)(54906003)(186003)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: v+sp/78ZmRJgBVis/1JNmuEco+5rGFhAPMJtcdNZOLuQ0ijVyAKmw8eArLS21AAFjDvBl1DhJiQ9R5in7KugIje6bljHjpVQN+Gc5hT+AgIdlXgrKZuULDvzqzb76cfwQA8kVxHu3cHYqtskKUge1y4MtLHiwABv+mB/yo5Qtj6nX2yOe9vwc981xhZPI83tIMxCJbo/xx4jQf0F+lZrC19V3RJuShuRAWBC6vZIK2YMvOwPlBkVmBaUXDQ0sKtrj7MlCelTX32IETY3g69K0/M5EAXV1iZDvsUkzru+qteQOINjUroUBGhWx3dJ5g1ZUlMILIQsnuOhnynLQKvmNFCmgXMraDiQa/cNVIcbjg3vRj/02p116BMyN6GZm6zZeRZyFMY0L92U5NbdIR+CCPgnxHOL67qOIaSJCgr4iBuetdw63Vz5Onlx7bgS+5T2JsNLVtXldoITCenagM+K/6oQj+cz2U3bPAIDskIip+k= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0a5e047-6fd2-4e78-1f83-08d824d7c35d X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6002.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 13:47:18.9002 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4cR4A/iQlheHb8Ne0URXSTiXQqJ/oXhG8UIOa/0Qex/libtL9OoUuEURLxvR6zys4uV1vPPvp34PtQdVcbJUICNVK2jVyIFvhFU+O7L3pfY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3363 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 4:26 PM Philippe Schenker wrote: > > Since the runtime-pm wakeup bug was fixed in > drivers/usb/chipidea/core.c usb dual-role host/device switching is > working. So make use of it. > > Signed-off-by: Philippe Schenker Reviewed-by: Oleksandr Suvorov > > --- > > arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 9 +++++++++ > arch/arm/boot/dts/imx7-colibri.dtsi | 4 ++-- > 2 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > index 97601375f264..db56a532a34a 100644 > --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > @@ -20,6 +20,14 @@ clk16m: clk16m { > clock-frequency = <16000000>; > }; > > + extcon_usbc_det: usbc_det { > + compatible = "linux,extcon-usb-gpio"; > + id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usbc_det>; > + }; > + > + > gpio-keys { > compatible = "gpio-keys"; > pinctrl-names = "default"; > @@ -174,6 +182,7 @@ &uart3 { > }; > > &usbotg1 { > + extcon = <0>, <&extcon_usbc_det>; > status = "okay"; > }; > > diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi > index e18e89dec879..caea90d2421f 100644 > --- a/arch/arm/boot/dts/imx7-colibri.dtsi > +++ b/arch/arm/boot/dts/imx7-colibri.dtsi > @@ -457,7 +457,7 @@ &uart3 { > }; > > &usbotg1 { > - dr_mode = "host"; > + dr_mode = "otg"; > }; > > &usdhc1 { > @@ -486,7 +486,7 @@ &usdhc3 { > &iomuxc { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4 > - &pinctrl_gpio7 &pinctrl_usbc_det>; > + &pinctrl_gpio7>; > > pinctrl_gpio1: gpio1-grp { > fsl,pins = < > -- > 2.27.0 > -- Best regards Oleksandr Suvorov cryosay@gmail.com -- Best regards Oleksandr Suvorov Toradex AG Ebenaustrasse 10 | 6048 Horw | Switzerland | T: +41 41 500 48 00