Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp888569rwl; Fri, 24 Mar 2023 03:30:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bjRmaKQ3ccHiNJDqYnc8TJt1ypBVpZJIAE+R0OGKRHUkoVIIZOf89AOL7zBGhDCPDT8JUb X-Received: by 2002:aa7:d68f:0:b0:4fb:8b80:e959 with SMTP id d15-20020aa7d68f000000b004fb8b80e959mr2600936edr.32.1679653801061; Fri, 24 Mar 2023 03:30:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679653801; cv=pass; d=google.com; s=arc-20160816; b=UvJCImn0POswN3o6eMZEO3JBLS4Q6FSE6G1ABl5kjrspCoZ7BLsatZ2y08a/o4BMDL lEGVGHlNiOj2E0b8Gqhp5Y45XJuM6xIJJGijIN2w8FtO18F9hU9u9UBqrsr0ckbldnA3 AQFJrqiiyxtSxFBCPzWBUhp9gbJGTE0F9P8UPuFe5OWPp7MDqY0BYHKzJ7XZG0yvRqMH RY1/aya6TNcwB3tFybVBX2HB5cUGsnCDaBmGK/093DxBOx/qxysAz0Ud6TAEVVgTMeY4 QLRD2UD6fUdDdbqtcvBm2RkJjTqPGqj8FyuGlAG7mRCRdbmT2aXKvUEoOMwfDRuKxK3f eeQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=huKbJOubJ54pF0u6la/xRURYJgoEcJjjdXdUNKSWlao=; b=rXMEEcLPXBV79P71VCvSzNVZoD8Un5dmPGMp01EL+EX3T7wfpRMJA8qWdcunkpZCIl Hm/B9fzZghLQH6yJum67OZb5N5ipQeQMHjUcXQS79LDgmJnhMfEugA5bZIaMEamjbXb1 NUWn8FSAYjfuDqFgww36IU1VDvXFyaI3urrV/oZnfhZLAuB4+1Zp8B6unKNEVQPZaSXs K7N+Wp+RA+s1c/ZZy1fcU9SU45c27NcXIz4kmkUTdluFAKRq+wqNON6CDI99ENzkz+Zr JoI4iqTZHYcivCPOQPpeKQJCVyYVhHuzKXvPiy/0DFejHUgcqq5gqbk9kjHS2fHvD23O sj4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bupmxJxK; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020aa7d282000000b004d49f845574si19838233edq.223.2023.03.24.03.29.36; Fri, 24 Mar 2023 03:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bupmxJxK; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbjCXKSX (ORCPT + 99 others); Fri, 24 Mar 2023 06:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbjCXKSV (ORCPT ); Fri, 24 Mar 2023 06:18:21 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2047.outbound.protection.outlook.com [40.107.20.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273065FC5 for ; Fri, 24 Mar 2023 03:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ho4GpyzAw63zThwVLZMoaQFFZnu2/zop4a9EYV9yjwrr5dXh0cVZt2+AhsUnMZa1OsDDoIMSH3cpgSy4Lt3+rMBaD21Ai2lKTi7tgPc4KYp6jwqThTUimP7emY71o38G39u9LAfOTWz1Cu/rhMX6x0E+o7o4heLYzD7QFjCrzQVBGyeh4+Qex+QnKna0HmDkkqQ/S/tf6jADFMTyHWR6aAPcTaqLGVcP8xAMzQf56nb9kC6AXOJsCLQMBu0i9mKIRKLwjlLOpbg1XhJUUW5/0g5P99R4nUmCl1x0u7FtK8It3iiNhpB+Jm9PYQRsWi16N6sH47lISQ5sQxhT64gwZw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=huKbJOubJ54pF0u6la/xRURYJgoEcJjjdXdUNKSWlao=; b=jVtRdo0BWBGs+xR2CTIPrmpch//AWamvk/wXrvLX9e21mmuFAmWjVMrKB7HeqnjIpW82nsN5KyJ1QNipy7+EimzwIH6CybYQfYbjagqGsUh2GKMQQH8P9jF4X0hA0IPCH5o4TM4zypMqwVkYaQL0dqX/aJf0Hf7Dffk5Epylv4cure/rPTxlDBGMSVv+xXvRTQAwttjHcDJa+rDObqmkg4gL6in/oMyDBm3Pg91odp7TEzYwbf8M7TecMbP4F1TgcSNn7J/rv5Aw/+9fOcKUNlvqDBsq7GLmWnXQM8Ydh1RvLDMECkB16nLK61LuNC1W88XuSC9fGjYFY6YIT1cX8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=huKbJOubJ54pF0u6la/xRURYJgoEcJjjdXdUNKSWlao=; b=bupmxJxKVJGrszZ6nM6DRCfPfD0WBhploFJAGhvQq8P03of0cz/InWkuZP7FcsMO5j09/jTFKzdTbqbTMVceBG1AGf05R1M7wfhW12g6A0pgIWSOMONmm76OdB81bYqIEIp5GdgifUD3zhGrmPliudCXwZCBAgh8x8IV6ThqAMc= Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by AM8PR04MB7794.eurprd04.prod.outlook.com (2603:10a6:20b:247::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Fri, 24 Mar 2023 10:18:17 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::5b9d:2097:31d0:c3a]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::5b9d:2097:31d0:c3a%9]) with mapi id 15.20.6178.038; Fri, 24 Mar 2023 10:18:17 +0000 From: Jun Li To: Marco Felsch , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , dl-linux-imx , "festevam@gmail.com" CC: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , Xu Yang Subject: RE: [PATCH] arm64: dts: imx8mp-evk: add dual-role usb port1 support Thread-Topic: [PATCH] arm64: dts: imx8mp-evk: add dual-role usb port1 support Thread-Index: AQHZXXZt5pMZSwGyAE6437fZs85FYq8JtdDg Date: Fri, 24 Mar 2023 10:18:17 +0000 Message-ID: References: <20230323105826.2058003-1-m.felsch@pengutronix.de> In-Reply-To: <20230323105826.2058003-1-m.felsch@pengutronix.de> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4PR04MB9640:EE_|AM8PR04MB7794:EE_ x-ms-office365-filtering-correlation-id: 6805686a-388a-4cad-55fd-08db2c5115bc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9znldTUXDnWMPvk4V0RWWPe523JjrkdRpH9OtpWhf7g1u1DxVSs8nwxTl0RtlBIGyKX2C8PWWnu//PkVZX4ptnaklQOykwtp7iStHoYV8OwBSY6q2dyL5kpaaL9edboZ3wI925wxrMeocmI7NuYVjWSO6UJa3EIPmI177Z0onC4InGkOykbplHsiOdb5qmuAVadaEIwQwxb03+IHGgeR7SqhFJxaMGG7LgEz2rlUS+abesK5lrxk2hmGj2lNFkFOk/p9kxMFLYnM1MP5h4y8FW1etWmPxpM8CKqAng0z/IDH9VV+vX8hYsyUE26Zxxj92qxWydN/7ae6FjFlWU/vQ6eblOfc3VNH+BqQxuOujyxBV5EnWuBWlM7/9E+gMe70MHVciTKZWLO8Xq69n/gSgK8fFpb81t7Ul/znN16Zt/lKOeVJv3h1Ut0/IA303HpcOMomPT2Zyh7XKBowFN44nOUAO4Okhiac0YGszAxUg4u2/D1ZAmhfIx5j9+6LtnBHT1mnwfzGEw3X12o8yZX/Ig0THkXq9JylCp+3694MXRb0Y6ajxECw0XL5PbFZwtlhVAA5RP96A6azUGxPp3nQFO+0qqWUnNMrfd7Pzc8Fa26QY9zM31uHuTrZzvk8c3BkWoS8edRAuAjqp10tGtYB8c4VwWcjbntxClaD2ZGwMQAVN5lUAYsWnSxgu0Pikwm089TJj54INRERfeTada0UBY3BzOgdT31xY05U/1JyH3bxqBC7BiaN2h5fy1j9/4xO x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(396003)(39860400002)(366004)(346002)(136003)(451199018)(66476007)(64756008)(41300700001)(66446008)(8676002)(5660300002)(66556008)(2906002)(38070700005)(44832011)(4326008)(33656002)(86362001)(122000001)(52536014)(38100700002)(26005)(478600001)(76116006)(7696005)(316002)(71200400001)(110136005)(66946007)(8936002)(55016003)(83380400001)(54906003)(6506007)(9686003)(53546011)(186003)(32563001)(473944003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nYoERG3GA54B8ItyG6sNpfUbSrGMkBvJ443Oh/SKygTOjwwRkI9Ypnwmb5os?= =?us-ascii?Q?zRtlH/72b3R8VIbcMW1u4gmwNsfHUzolY9QtOwzxLlQWvbtVXnFgdAeZva9A?= =?us-ascii?Q?kBKTjO/MKc92Dzx8ImLGxQlwX9J5DeGt8Wo+FJ0IqjTvy+9pguAvDnS5scfc?= =?us-ascii?Q?dmejlLsaLWBnO2O2dpHlBW1jpaUJBtE6Gt4EZIz0usXlEMP+xhQH7zIhR9Ye?= =?us-ascii?Q?A3aLaU3bks4D6cVUzsIh9Hm4yakxP6oDUcRlOYJqRsd3Ja212tKTVn5RsKqo?= =?us-ascii?Q?1TppDFZCVVNwQnJRBQQOipZycaqLjFGzNP9sdeLYmpIqj4p+DKP60sTVNlw0?= =?us-ascii?Q?EPhjjSeh2brHEWsf+0gB2hZFZs5gNWWMdKhj9e4lPAQV8cmsjuE/v7iVc2QP?= =?us-ascii?Q?23Eo0vYcTDlCnQ+yQGoNSaS6tgwXCBaWlQTMhjtpWKlLngaRQyyXzDkjO3Dh?= =?us-ascii?Q?aM9cyDLnwpgGZZKejUlYh1iSnRJwR7TdGok/6dnpWRJydt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EoFleXtUOe0k6t6NVtCBHxdrGv4ZgSzx01NkEI?= =?us-ascii?Q?CsEGk+aH5L5cEdgLUnTJPkWX6M4Q/E9jxaOO6g4PwPUBE3gRTTxnXCTg10ni?= =?us-ascii?Q?7TOav9I/crP0RvvxIPKKgbG6IxZetfRwkPiLmEtgbhF6kPxBMiN4IFUB6QH/?= =?us-ascii?Q?McPbN7nMtbkJB/26hdU=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6805686a-388a-4cad-55fd-08db2c5115bc X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2023 10:18:17.1225 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FB6JzppBBVfAZYrUu3Rnw/5xmXQZy4G6q/l+45GId6IzFNbhS/9VbJn7UAQ1jOum X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7794 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Marco Felsch > Sent: Thursday, March 23, 2023 6:58 PM > To: robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > shawnguo@kernel.org; dl-linux-imx ; festevam@gmail.com > Cc: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > kernel@pengutronix.de > Subject: [PATCH] arm64: dts: imx8mp-evk: add dual-role usb port1 support >=20 > The i.MX8MP-EVK has a dual-role usb-type-c port marked as PORT1. By this > commit the dual-role support is added which allows the user-space to assi= gn > usb-gadget functions to it via the configFS. So just ignore the orientation switch will make this port cannot work at super speed, this is actually why this port is not enabled at upstream. I see the orientation switch via GPIO for SBU is already merged: drivers/usb/typec/mux/gpio-sbu-mux.c Do you have interest to expand this driver to support super speed switch for this case?=20 Thanks Li Jun >=20 > Signed-off-by: Marco Felsch > --- > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 59 ++++++++++++++++++++ > 1 file changed, 59 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > index f2d93437084be..982fe35f09a7e 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -5,7 +5,9 @@ >=20 > /dts-v1/; >=20 > +#include > #include > +#include > #include "imx8mp.dtsi" >=20 > / { > @@ -336,6 +338,34 @@ &i2c2 { > pinctrl-names =3D "default"; > pinctrl-0 =3D <&pinctrl_i2c2>; > status =3D "okay"; > + > + tcpc@50 { > + compatible =3D "nxp,ptn5110"; > + reg =3D <0x50>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pinctrl_tcpc>; > + interrupt-parent =3D <&gpio4>; > + interrupts =3D <19 IRQ_TYPE_LEVEL_LOW>; > + > + connector { > + compatible =3D "usb-c-connector"; > + label =3D "USB-C"; > + power-role =3D "dual"; > + data-role =3D "dual"; > + try-power-role =3D "sink"; > + source-pdos =3D ; > + sink-pdos =3D + PDO_VAR(5000, 20000, 3000)>; > + op-sink-microwatt =3D <15000000>; > + self-powered; > + }; > + > + port { > + usb_con_ss: endpoint { > + remote-endpoint =3D <&usb_dwc3_0_drd>; > + }; > + }; > + }; > }; >=20 > &i2c3 { > @@ -449,14 +479,37 @@ &uart2 { > status =3D "okay"; > }; >=20 > +&usb3_phy0 { > + status =3D "okay"; > +}; > + > &usb3_phy1 { > status =3D "okay"; > }; >=20 > +&usb3_0 { > + status =3D "okay"; > +}; > + > &usb3_1 { > status =3D "okay"; > }; >=20 > +&usb_dwc3_0 { > + dr_mode =3D "otg"; > + hnp-disable; > + srp-disable; > + adp-disable; > + usb-role-switch; > + status =3D "okay"; > + > + port { > + usb_dwc3_0_drd: endpoint { > + remote-endpoint =3D <&usb_con_ss>; > + }; > + }; > +}; > + > &usb_dwc3_1 { > pinctrl-names =3D "default"; > pinctrl-0 =3D <&pinctrl_usb1_vbus>; > @@ -666,6 +719,12 @@ MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 > >; > }; >=20 > + pinctrl_tcpc: tcpcgrp { > + fsl,pins =3D < > + MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x159 > + >; > + }; > + > pinctrl_uart1: uart1grp { > fsl,pins =3D < > MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x140 > -- > 2.30.2