Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp538983ybt; Fri, 10 Jul 2020 06:27:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0dPNQoUNgmJjhdjWVefpdpAc83DMV37ONUj3AwpIJQhMBusqupO2BceAcFFAllfQPk0rX X-Received: by 2002:a05:6402:b86:: with SMTP id cf6mr4817117edb.42.1594387655580; Fri, 10 Jul 2020 06:27:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594387655; cv=pass; d=google.com; s=arc-20160816; b=ggo92Po5gt29vjdJl0crF3XFJpfBCIYCHdgqQke+/7BBSkP551Kp8e4rEBCYpw82uO JwokkE4wQzLJIRfX7y/RMzvmjr+A54nGBMRkXtob/X+NPl0tuLjJUYc7dmr+QwZuW+ch MOUmtATR9n6qTu5dutixyqBjgvGVZDoxD6AjceRB5zVn990eTvfK125xcao6F2AMbK/H hn3h8l1K8ilQCRzmt/dK+5RZvuc3iYwoSl1pkQZG8txkR4hqvk3m+DHR1HHL+nVYmsZV 6zfdQpcyYl2u8Q3nyHIdUHKPsHbv6SrYV0N6JOaGF38kRlQnnarrnq9MsMCXgCb/vp+v N8Wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z1VZdcK57fMzfjRdfqGKeIF4DBxecLIVXGJUSoMVXdE=; b=O+JylhdouS2yow0YEHOQR6SLRw/Thlgvs8bQYbdbpcdBakJxF5wSOcw26RxAONd1gE yAu59nnZ/cZ2qX6xkpJN29wTjUJRoXTUCZHmM7gMgvfVJUcL2CdMyT54KD7x9Nblk+vh ZYnnnzBEbKYWf2s1Pgf8WAlsnhp63djGPVGRst5rUB5Z7qS8lfCsVkL/VlwxvlTVX5R9 rbPehMNpXkOlCnRzIMrI0nq2IjY8l40L95wwiJjXNg51iu3kZOjg5M3nzIJX/e00QDVU 6+su1bspbgOQBWw4akf59UR5pWva8i1qHF1MYl9ugOg9fyXNufpb+9J0pVtG8w0mCHz9 QmGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=SPPlq2PE; 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 dm15si5352741ejc.728.2020.07.10.06.27.12; Fri, 10 Jul 2020 06:27:35 -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=SPPlq2PE; 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 S1727975AbgGJNYv (ORCPT + 99 others); Fri, 10 Jul 2020 09:24:51 -0400 Received: from mail-vi1eur05on2110.outbound.protection.outlook.com ([40.107.21.110]:11584 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726820AbgGJNYu (ORCPT ); Fri, 10 Jul 2020 09:24:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hkCIdv0PJmCebPDnp6EBZyZIsjQtFV4NsYlV7I6o52t70GEBELY+qfdqJz3VJC6p74UEns+yalnx7hwG4HmbOne5n1xgJ6QDLE3JtOh3pWcyv54kLRiqsGZw5Xxc9c3YJj6ybAPcxB59XMtPcv2x+NW79irWHSlInaPDOyfUv8O9v+AagS5uuF7aa5j7i+VRKmiUSP1CtRgxD6xkQgMGitPF74t4Oc56lL/6YJAdHLk5xraqSHLbmtY8gCk2qLlzuL+5591RYTrwYNSjywgVK9FBDj5chGb0xH1gn1RHKzFyDsyBegOGGia95pkEVW8RBw+Xzjdw5kKU4ZjHRBeG1g== 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=z1VZdcK57fMzfjRdfqGKeIF4DBxecLIVXGJUSoMVXdE=; b=U0xhhSk9hH6xVT7DhQ1aOY5aMAAHwdz4icV1sK8ng0+oeV9BV+zGEuleKDYDI6702vOahI1ZvrygUei8/lKJ5Xyhavff4krWqn6aVo9X5qFw0zUs2wEENOPRturX0b+OESluZvdESfhQ7Bso3ulKr17OnWwAtTfkvxlsTHI9/99XExDHNSAC/034lSGJRBsdh+bWoDAj7nTfsuTJzs3h1PEwKXpCiho+5O5/sENNjX/+kbyzdI2qCiajfgI4Al9SH+uIzI9vDcelk0CnwZ9RRJOYjF0Xtf3PZEuJeZLEEHm68qirbLmgENWIPmJ1mCSi0117Zm9QLgbe8ub+qbQAmg== 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=z1VZdcK57fMzfjRdfqGKeIF4DBxecLIVXGJUSoMVXdE=; b=SPPlq2PEMUKLg/jvFML93A9NIdNBJt/8UM4ppOgLgH9Z8LhTLc2hf3y0WOMo4vUGgB0wb3TgUx1eTXXYsJoRC0ut8t2X1B0FZkDNXqI0M5j67SF80chjzao7k+g3jR+qJ1IGZLB2YkRPW2Rplpg7b1tjOz6FkdodxFK3q4eEAYY= 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 AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) by AM6PR05MB4821.eurprd05.prod.outlook.com (2603:10a6:20b:2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.28; Fri, 10 Jul 2020 13:24:43 +0000 Received: from AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d]) by AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d%4]) with mapi id 15.20.3174.023; Fri, 10 Jul 2020 13:24:43 +0000 From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo Cc: Philippe Schenker , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: colibri-imx6: add usb dual-role switch capability Date: Fri, 10 Jul 2020 15:24:22 +0200 Message-Id: <20200710132423.497230-2-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200710132423.497230-1-philippe.schenker@toradex.com> References: <20200710132423.497230-1-philippe.schenker@toradex.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0015.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::25) To AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from philippe-pc.toradex.int (31.10.206.124) by ZR0P278CA0015.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Fri, 10 Jul 2020 13:24:43 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [31.10.206.124] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab74de38-ee9d-4c61-34d5-08d824d49bc2 X-MS-TrafficTypeDiagnostic: AM6PR05MB4821: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-Forefront-PRVS: 046060344D X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yZACMPVQ8J47L0mKd8pKMLTaZBj3aOC72KebEZRxbOqiEYtpn8xP4UyAUvuj65jCYxlHNHkqx4QImUxHhesf79X4lX+8aB7jdeXosaNc9YMotvcG0O2DsNP+tXgI3gRIsbRgcckD87Jmso07j9pMdjdptLJGLehSGeHlHrAByNjC3W3ArKu/v+3bysUtgvIS0FB4qGum/PSUav+3FResUuxV0Fp8ylbf1QvaF2oijnunscmvXtv8bvaSXmwpvfy9D0UjesBvWUAR2iyjAXJHCAflNeJ5E71XTj1Xa+U006Fz2bJecJG89sxLlrA4UAo8+LYsN0lMI/LNc/WfaDNrJqjOk6/MVVfPotIYNkVeIKs+hH5F6v37Rqi4Mm8Y5ip8 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR05MB6120.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(136003)(396003)(39850400004)(346002)(376002)(1076003)(66476007)(66556008)(83380400001)(6506007)(26005)(6512007)(8936002)(54906003)(44832011)(4326008)(2906002)(316002)(6486002)(66946007)(2616005)(956004)(86362001)(5660300002)(6916009)(478600001)(8676002)(186003)(36756003)(52116002)(6666004)(16526019)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: FrOEPRkCX0YyxkW9b37ZjQX9tWn3XAvo9kixqslDZaNhk0aVz1MCeQJ0BF5ozbTxQqT/JJSrenNq2OcFSI0KNpuV0r5ge1Qv++SM3gv0Dp7/IsmDlqC4hfyG/uyc7axcY1BKvOA6SemdBQGdcdsWqo4UEQINGrh9nQtE5SJfS00Nuk7iVQloHRWdjGZ1K0P2DcywfOv/s2ljI0HPYBnK6kNzv2bXfdkRED5wws/MN2riQAph76pfVK++UXAhIQSRib30U/OyP5QJguIf5eah8zj36JPOs1oVV9DBKg9QzQ2kvsedBFH7XaShH6p8TzALYUYnrZvt68Fs0QmsMWHP/BVo6UKvqYHBzrn9QxNtK5nIGW8WLvAoWadnlLWWeW6UbJgxaSHNyJR4fOueqCU1ssVDgdh4zOpWIAy5y6e/4Oqh0L5/l+ntFSqYOpx5voNPJ/yFYz7PZcUkHV/dlTwR+HLTYGe/4jwiIa93OcntmJs= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab74de38-ee9d-4c61-34d5-08d824d49bc2 X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 13:24:43.9177 (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: Cwf9aRMZ70TfIsdENa7dG5JkddmgbrFteQqFPCCtJis0cwHUj7JjJaNUOWsCXOhMjOguk2q2IjnGAVD38zYAX37aefClU2AIRYg4Mb2ROQs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4821 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 ++++++++ arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts index 65359aece950..c978b3f19a2d 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts @@ -45,6 +45,13 @@ clk16m: clock-16m { clock-output-names = "clk16m"; }; + extcon_usbc_det: usbc_det { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -220,6 +227,7 @@ &usbh1 { }; &usbotg { + extcon = <0>, <&extcon_usbc_det>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index a4a54c82e28f..de49f9faa426 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -363,7 +363,7 @@ &uart3 { &usbotg { disable-over-current; - dr_mode = "peripheral"; + dr_mode = "otg"; status = "disabled"; }; -- 2.27.0