From patchwork Tue Aug 6 05:06:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20CACC3DA64 for ; Tue, 6 Aug 2024 05:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Q/dPPKQWErtJ5eP+42tTIwEytUkrB53Y/g84VB8dN/8=; b=bphbKvwgxDEl1UuMWgjwEXj+4v OMHweJwQElP3z8vLzuVVWJkoKkHJIjGSK0HxjVvofBTyit6SNQSpW7sZLi1+dEpXTfjPm3d/IWlse rAtP9quT4JRWuj9BnbymoUveXncP8bCNXoP5+w+NXLQzZy7jRzrO21wMyMTI5KhkUIzD9Zni9tYJ5 ny1AxfsFC1Zgy5PamKtkNlFIrXQTCy1tEPOyTEgkacsKahkMHPw8NBS7RSt2lrql7qgo6wCK1w5mF ismtoq4cyVjwHL8W+1d/RDNFuRONIEYW0uPfHIXqkC5WHU4WJlJ4tSuW3s9Qt9KA/iaopVT4F6H2r ET1lkv9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCPU-00000000Xn2-2JJB; Tue, 06 Aug 2024 05:07:00 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCOx-00000000XeU-27Ny; Tue, 06 Aug 2024 05:06:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KdXXFmOCIRJcUUdncoauteTJdbC2I7WvtIF22Xh80P3lG+lCJsL4wagZU1eoIBv3BZRwHmsWnZs+s1gTV7pUKQK4EivtY4odldmgcYI6PRj5goJZKBHFP1OIvtwlzUcMahLWFsmMUb/XM2T8pmVmk26CKgjzVwLau02w8P7ySQqBztoNHeFbLIUzUnnoN2QyJsjggYhpYF4PtX/4RKsLzSI1bXBdcCUIvAEco4ojN7/3n1h51YNc3LLyHkECRmxjJkKgvW48gLcR1/b5Q6xEyLsEXq7gHMQtvLni8QF89mkn9GvQDyW+uISROaZgn7MyzlsIIH5uwUm9+8bpfgUZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Q/dPPKQWErtJ5eP+42tTIwEytUkrB53Y/g84VB8dN/8=; b=b9GVuN6U0saTg+DnO5n7kovGduVxoYlHwhQGgR5/0GwmwZGpchDsz2jo/rKQHZcD+2dmyRP4zpFyErhN2Z0Z6bFcEboZwY1LFFBsjI9bWfzv/zZ6yie1OupdmHkVDMU+i0AwiUbJQ2qJeIvnjKQkbtJnpx1DE+VjaaHLNZxZihCK+DYA5i0gUC0WSDJoDoxLdEj9aH9I4YluL1n+vsofcdi0RtKolXivVVccqHbQabtvZCc9B4+6y4Sr6tZEQwBTTpadDGWoIIz/HxTyBntSAGtkn/blz1wKBB49u8b+hnMIXPkXHndZFfBmZTjXS/WjUzRXo1JZb7gDQYkj5kLlxA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q/dPPKQWErtJ5eP+42tTIwEytUkrB53Y/g84VB8dN/8=; b=le9O++9h1iwLyh7t8yTOpnweUDtAX317h220wymLd2KJ5UNjSZWgM+VpSri62poIc4b2Y009yAc2WuShIbe/F6leQLzVK7c9WfqpqIVczAmNgLcw3gnezLwj5iPkGBIjKjWoOWpcp5ozMn6u6QTqj+bfngG8PQTwFGsnI2lEYU6D98qiS1ydW7g2O+Yi6ympm3WHB7iE6tcZ8LqeWtqiVbuxtyiwXHzpaKjvcMLnz3c6NvNlC1rW4lAd8l8joWrsHp9GgyabfdCupu7NsaOSA0g9B0OrRH4Ldj3vcG4VZzsje62mSHO2vHpOGHpMwKpY7lANMJf7J1bDwJHK6u/JUg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:17 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 05:06:16 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Tue, 6 Aug 2024 13:06:35 +0800 Message-Id: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f34e5af-feb8-4991-7a86-08dcb5d58059 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: AuyFf8QnFic4FOA+8+TEQalz9W3E1UfWZuzu+MbCLCNs1fnkeIkpZsUHp4xadfIFF1TNeOh/o6UiZXYwdKEzgHBa+QCbqGsAcdLdxVNiB0q/RwXYkAMsOGgXcls91u5RqSDxFF1HQkv/+UgMARgGtJnfDpF+g7Y9IZL8wGUIzb5/9l+fyVj0Y0GgU/BOqiCeoekExNUcjPfFilA0d8/pG3Xk0xxSD8jbftGnKYvtTZQYe04A3RfVIGuv7jJ22XMvQk/dVF1yXfpYtSlpAqBbagBNjFKSQtSxnC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gDJogUINItYUuPpJ/zXeXIfYg2SYbNMrqoOIyah0PG2PiLzgU53aeioJZ3oOWlwsmXx5nUGzUSQErR1zBxiQmfaR+c= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(52116014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vEIdAEeO9GcuUbbofES8KC+TIpfPpQFU8ZsVEwCGtYFyVrmJvr8nJkVHhMjsXJ5rI1CIcDbQeRn7ZVpA5bXaXXHoOtA8bM1ulZF0Al3g41Bk9JznS1VGwGewVoGePL+dciWCzuadKz280nUoHsEDnKYKxpQVMp/k8LJcwm43i2+7MRERCxH2nWHiDi67zr4K8lnvuLJjY9SnRR82FF1/Zru7wtSmclEdPcB8b7oln5wDLtBdQuFZ9ZtwK+rR/z577KX5FmJhcfs3x+UpG6yh3Fu8bBrY0r7CblV2zcCnKDqCtMHw4j6UkkQgYx+6DgHAh0DfpdJUSFjmmcwd0fER85u35M4E6kwfHrKBuXP1cnNAsqN5qjOs83IvZx+E6wf9j7R0kbdiBAQutHYVgWEOhmqbzwGCNisbq2gfmQDpRqO6C812Rin0ztAPysN3cKxaTazb1yh5wjkTQX3tYaLcmTtsPr4AjqhHP/5RXg0czBtBf59Yin+V2C2NNL/kIXOOq8VxV381qek5FfoRpsbUAmC3NDJUhPXW99Yw/Zw1Y8UTJS+VkMtZKuK5xMcdZ7pcyreAbwlLl+TNTcOzr5hfdvAAvf3U8LX7zpA8iCjpEFwryuqWVotl8+mXJypYqu2x7LK0KHMs87XO1LCanAtDVxoxS+xl2wHVzH6G2jdUM52MtFGreqnb4yUeDsAgH8JDI52od623ZZoq1AIiijzkCfEuDubMxCK4PPbV/DKmlTiNIgKKdIjgapqDeZE+aQ/T74ayzOxne4aTRDjvg0EEVtFNaqhUrztr39iTEY32F6y/zdg+Ec7Ld95bvVMdVNfXMFjO9i3NJxMHkNau9Op9gtijGVYoMSQqpEaF9Mn9HoNKP1BuoyUyntskVuRvNtDUcC57bRm7j78WFW6vF/DtZzRSI8yBJ1st7KSGRufRe9Yeq6aQz9zsWmsMfi8Qhr4xBxzE77dWZV2yyIBnBbpvAt+Lq/rQ4SrBwCeNJHoF7EZ5mNwJOsgkTEf5tAn+BMi9FKEQKpebQXVisli4fkJHNmYcU0sBWuvU8Ks727S5VL78orxjK+StIPgHVqbHvxi/ddZO3d37iQI7ae3zq2bHlukHsKHwd305kkfSqw5A271u3KgCt0ln/z1TtmkWEZaFZO/cr0r/ojoHw4DL5ZClFPAwGtfqFz65aVErprxddEVly/Fji0M7Fg5Jy7+wqiElUAR4v5F29dTyIAde1UQ7BogrSB7khNChXbM2qKHWbi78pK7PlFe9VFXADHTzDwcnGaP1RvVWbT6tVMXer4TeJFnWdNMfwPDJNEfzF2a3WOiYifQljry0XxSl158FQ73o6f0nBDkwJnrClFf4s6t5u7IFTv3x03H8xWiycKgysSK7uaQGsp7+pdqFDc9ROpvjKI79kFkBO9vc6Go/xfQBOwCwlpXgD28zoBxi1qbX2m3dggvV0DBkaAgSFsuddOlBCroRHZyz/epCsggl/jS3EFWxdW5VDqJQgcFR4Y1m19a+Pel5e6R6EsjR7KaYwMG2GTzzYfszX/ybTQvwFqM5jn2THI6LO0qxZ9rAsT5SacFwLUncH3QkEs+ZjIjniTU7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f34e5af-feb8-4991-7a86-08dcb5d58059 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:16.8707 (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: MC93k9JQ9IwRgru0gO3GI679woK/cMcAefFMmyXV5t+vfFq2mOH5ljJzKPzg/+a3Yffdl1yWGIpyHD7CBorrjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220627_577075_3C5C828D X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The usb phy in i.MX95 is compatible with i.MX8MP's, this will add a compatible "fsl,imx95-usb-phy" for i.MX95. Also change reg maxItems to 2 since i.MX95 needs another regmap to control Type-C Assist (TCA) block. Since i.MX95 usb phy is able to switch SS lanes, this will also add orientation-switch and port property to the file. Signed-off-by: Xu Yang Reviewed-by: Krzysztof Kozlowski --- Changes in v2: - replace minItems with description in reg property - remove orientation-switch and port - refer to usb-switch.yaml - use unevaluatedProperties --- .../bindings/phy/fsl,imx8mq-usb-phy.yaml | 42 ++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml index dc3a3f709fea..6d6d211883ae 100644 --- a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml +++ b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml @@ -11,12 +11,17 @@ maintainers: properties: compatible: - enum: - - fsl,imx8mq-usb-phy - - fsl,imx8mp-usb-phy + oneOf: + - enum: + - fsl,imx8mq-usb-phy + - fsl,imx8mp-usb-phy + - items: + - const: fsl,imx95-usb-phy + - const: fsl,imx8mp-usb-phy reg: - maxItems: 1 + minItems: 1 + maxItems: 2 "#phy-cells": const: 0 @@ -89,7 +94,34 @@ required: - clocks - clock-names -additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-usb-phy + then: + properties: + reg: + items: + - description: USB PHY Control range + - description: USB PHY TCA Block range + else: + properties: + reg: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-usb-phy + then: + $ref: /schemas/usb/usb-switch.yaml# + +unevaluatedProperties: false examples: - | From patchwork Tue Aug 6 05:06:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754455 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F2D0C49EA1 for ; Tue, 6 Aug 2024 05:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rO21Z84TIBM4wX/0k273hxCU699eNOPvLQflKz9vuns=; b=nzJhiCwTl5dj0BWGLu52rB69LK 9lMr/e260Z0VE4ZB+GhoZO9r35ustV73KY3k5aBEgJwENVkdV02qvaxzOKUPO/4T91Y6FlCLh7418 lZgaXkS1KF7mRTYElgRhEmupNw9tICcz0IRHCkU3ka6K4Y8og6mzqYNHeCssl+bpsSi75pRjQME5x 8Sd+KRY0cVja6YwibKG1XkuYNwdtZMTE2I4DcqWTqBTZlZ3rZB9bqdv37UMxG1hvOGiuU9q7W/XQR +7kA7EkW5USgbvhZ0ToRrJ7/nZj9q8HL58T3JRZ3XMnqcTeAn5i1lKAqRx0AytiUZM/n83cq6yRe0 OD8d+DIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCQ0-00000000XuC-25XY; Tue, 06 Aug 2024 05:07:32 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCOy-00000000Xec-052d; Tue, 06 Aug 2024 05:06:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zLFhKxQg5mjKjbQuO5xvfxAEdjLWS6wlfSjNYhBGcq5anccPEE6ltOaMDQp1LaElp3OphOA1/CxyqIYo/v1bUC9MyRmWO0pxAXZwfEAXZypwZ4y9dxcRqvIeTGOG3nvZwOpLNjzXlF+aBC4NdvwMfDA6EYbGHMEkDebVRZfguG7LRMWLgwVQwzhHR/kGg/2C68Uw25s/aDoTRyzLCG/rmOysIhhzp+W8YwXuvq7/6qLuxgRLGXHu9RMzIrp6AICgIid0Csr0VsZvrbiu3Zzg8SKKNpFZ95bNn4LR2ujF2RhBZBbYMMcxQhhdjO/4M+YnAtY+3y2c1IUlosx9jF9GQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rO21Z84TIBM4wX/0k273hxCU699eNOPvLQflKz9vuns=; b=btY8JgtgjD9R9hYfeduQfaAQuDviqmNbj7GqM20UrkV4BCFvu82b/hfkDxZ6xtyEAp8s0D2tpreLs1g76tgWyJbuO/cZQqINnjAJj7S4kriapAjeAbxHjuw06DCxUNN/tHBE8Q4WKfsd7e5b8jRepWoRnToV0BK46OodMOGrycAtBlx3/DWaDlF0fD6JVIlKIjSGGB45PJ5XnnTn1BZMloLq4COUjelpsUWYfA8W/UXnb8Y6tSuct9aIZoNHYT0Mnv31fu0MCR0UIoRRIf+az4OIP4RzT0uWOtQ6qUJo65idOJYI7av2YbvgrlLyNk0n0G/YVg08qUsUnA8peOWH5Q== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rO21Z84TIBM4wX/0k273hxCU699eNOPvLQflKz9vuns=; b=SE+14gOh026Kh7rI8I97ffmrvp3OMN//b+mRkgloDDSgGA3rbC+YNjuIHpmnEew75Vq6BalADbfdynmNDtp9QMEA/khTOwl5dKg9PVEkX2rP3BM17LN8eLo3x0TcDsdP94eQ5wqL6Knjvf9XfAmL9va1kypDoPeCAXRj8HVQn/N3PsFhC49q47nz2w9Yu279sP8JwDyysollFUf6DB2S29t8bWRMcGDZbXCFYX0weaDGeJ8g5sVZ+xk0cqoP1bWEMLdpBaKeSE8QnX+b/C6QobkNiGAdyEbeUCkGVZ4nl8UTJHKLGnOoxRCCFqEfeuKaYz8wk4nwHNhVrZrj/aqvlg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by VI0PR04MB10211.eurprd04.prod.outlook.com (2603:10a6:800:240::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:24 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 05:06:23 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v2 2/5] dt-bindings: usb: dwc3-imx8mp: add compatible string for imx95 Date: Tue, 6 Aug 2024 13:06:36 +0800 Message-Id: <20240806050639.1013152-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806050639.1013152-1-xu.yang_2@nxp.com> References: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI0PR04MB10211:EE_ X-MS-Office365-Filtering-Correlation-Id: 4716c78b-495d-4b2f-8d8e-08dcb5d583fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: G8i6/g+nioDzMpdlwZCkIaQrUfzbgWO39hRkZ/HyZ/D9uClYRG6Zs2BwfK3EWJDwhvbxCLQaExOQFsPh2jHSbnYdwugSSMp5+p+aI0IZp+/T4iff8iwn5lDHLmSGDd98eNZVdquSVbRUYWZSC+FWoH6y6+GLY1/L5aSe2dPJoj7qU5k9BuLmfx/V240zAAVANpnezKfAEF4khzGwpxFI4vWIuOZcdreTjDxAaSJD3gURgKAO2cy2KnV7YKcNswzTvOMz+r/yk4YInWvNSevwYO/+YN5K3Xi4Wuckz31k4DPmfmkjPf6NYlqMBA1vrlYpMcUCcKnzlycDRTMuAlEMYltNPpj/bqjSk+1wX5/GnUoSTb6bpAJRvWMxN5Oo9Wa0ANSGnU+mvdN6OlodmyDOZw/83mZEBfl5Yeqrwlss4nbwY80yT7gCzkuMWfVs6MpNVekWMtgZ+18tCvTEj/PbQorpipvKIE8HkBvGf1TMTghLjwG+7Rrxq+mbI1YLNw5byKbuzGOFjRQmAix2jq6YLzumGwhbLdl3kqQoJb69ni14PgN33Pf6nlnybIj0WbeZ47tC/PsxUAo+ENI2XVtAzu3xoqtfQdYput6UV+KyYvDrpnwOqafkuh1pmUiehohixvVSFATfV6R1hu9wVKEzcudpm6ejzD9sNpAERZv6H5yGOysviLSwK2fLbW1kIKEhZFAsAEoY0JBmxbflJoVdGWEYOaLd/U94URxaHsVOI69hUCu4u6J+XNO4WQTv7XaHBc1BUu9YoSXFSdI79U+I9g5AfS8o3tnkFfQ869oqu/GKrK7BxSgKmgxT9hj4jrf1J9YhBpQ28esF+bIZiyvrok9IsVHyjCyHj9LeM+TZ63D+u/uOofCWR6MVT/OYFxGrs4BIdy1t6QSbJx4h63PxplRjVdaeIrSQOBRoeY6MgK6MVwlh7Z7x/QFANtEDKupyvlemXlAXGqNbSGFH9oS2i5vrJDtDpz3c1po3aLdYpg9lA++G/VQXuGd6k8f7CDW1yXUNRuIIDd+S6aml7ulqnGpyCA/n5P6F1NCgd8nPauBBUQ/4LjbJTK2IJzEiqCvR/C00125krC4adSg9dbOT621VnOS+V4tMCbiOvQwxzJfaYc4NRjp3+5ldOyYug3WuUeEW3iUQxaw7K2+y4hRWlXnlFn+42RdkLFRj3CUnfhuyKH2TqO4k03Ha4xXMNO2oMImi9M7c4aXb6mWEX8VLkh0ianKrrjbn5rhz9PILvULqD4zbE8c2nzqgehz/bh13W18tLjUQd0UE+2SMzFwiEN2UFHFHZTx8ZUUv7ksdDnFSZwaquajIYMKM0S86AEWCExaW7v5IzUrL2HKUhX3/9nkv6zJwrvGBAdjNIqKm+5o72cdZIfmUqdv7IVWxOxL9LdYo4CsKUdA7V0/Z2D552xRya87M+zLJJOEl/TJSjsw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VdEH3IeUqTYWEo3wKhzoeb5plsqeroxmEBb9vzs/FBneTi1XW60pjzj06OrfI/VhjigHheuQXC7iZ44q3W2QA+Kf/LrCsvhdAhVXoRToMK/hjQyzZ2x5TwqFj879P6/mlaABJDtmO6rMuz7Cj8Ci3LjhOjGjWweMirntLCslzwyLaRJXtoupiOsWhumxbCTbuqj1UEBwUOTYGufcLb+QEFp59MXL+kSRygci9RmpRYbgnK4feWG+4ewxxX9fChYLRDFHa0a8wXlfCigFTdDBv4p2LozT69NbSxOLDa2S7gak+z6NDQpKLl2yl82oJ4Xgms6PoEJX4nUMRSJzhbQWB4e88QKVuQyhGlbO8g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H7sFe2+f+hQ80qSsQpLTjJ5BhF/hwpND6H7zTHB/BVzEa0j9WflLQvtkJyCkG9PGrcUNgeQHWypxySSmio4ZkHz3JEVuSx3fMcTMfn+pvgjLqNdrjpbwq3Bjc5Ig6i5AbP2elPfoYA0iNBh3yKaOKLGfdkbjthxA8NCBQ+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4716c78b-495d-4b2f-8d8e-08dcb5d583fe X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:23.0104 (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: 6B02pVPblQNv1mFrgjk92bpVGDA0UTCmjPGfemGMYyZ7RwfvImptTv3AGu38NRs40aSqh6W0C1AXBnn/Qx5n2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10211 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220628_081393_79F2D9C3 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The i.MX95 is compatible with i.MX8MP's usb controller. This will add a compatible string "fsl,imx95-dwc3" for i.MX95. Acked-by: Krzysztof Kozlowski Signed-off-by: Xu Yang --- Changes in v2: - add Ack-by tag --- Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml index 9ea1e4cd0709..baf130669c38 100644 --- a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml @@ -12,7 +12,11 @@ maintainers: properties: compatible: - const: fsl,imx8mp-dwc3 + oneOf: + - items: + - const: fsl,imx95-dwc3 + - const: fsl,imx8mp-dwc3 + - const: fsl,imx8mp-dwc3 reg: items: From patchwork Tue Aug 6 05:06:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754459 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57BC8C49EA1 for ; Tue, 6 Aug 2024 05:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GXEfgmieagnCZ49FjC8cs0TBt1wAYYdBupL6+UXjdpY=; b=CsEYQpbP21DvOS/OJb5JmuiBbT K9wIHRB0+W1mnb88uoEh2UVUY+pzrcvu+/ln/iamp39dDEXldiJiJD47eeX6Dra2lO4Qp9Lg5NMc2 RZoWJFQ+UlgaPNc3IIYFMtzxn+VJLu91n+lMCTP4awxbYqr3eWz0mFqL3wEXEAOjIoYw2TrP6REhZ d2K5TaZ6rxqOy0z/R3qhvIkDZJbwXfvsCS6ZSjmnp2FGRYSGINFoIS/4yctgRTHQ0HtqKMdu1jwGh GmHi/Y++owyJAKfjoM5gbcrWo99hotEYjLfRYW22RSyGnPXkt6hQxTGM7yZj28Gzgtv83V4G9Ac3X zAuHrgTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCQy-00000000Y7h-1P5H; Tue, 06 Aug 2024 05:08:32 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCP2-00000000Xff-22us; Tue, 06 Aug 2024 05:06:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DZnDiydOowlVDUmazHAxfxBUIv0L+2JOulV3Wseyj+6IEPEWqt6XMv+uGjQvUkLNUYObGbvOV5AoWcbrKTe4ou0YFb14r+jNcBEdEHqxrsFlEzZxi53cVjRy2B4Yg4H0MHui3HdJpv8UceB8jcFJCZETwD+jfADh+vL00vIgAXJosHUVpFkbiiodxacjFZxOa7Uq4sEKiOsf/wINLyB8z08sBA7wWRGqxRq5125FtsCMukdtyahYtFB3/tCW2AkFHLVhvKgcw6EZ1jJBGi6p+9ASesSRQfXoJ6EjnDF+LSqoupQ8jU4yoR2GssG51YVlfLSkPQtdLg05zqlqfQ3o+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=GXEfgmieagnCZ49FjC8cs0TBt1wAYYdBupL6+UXjdpY=; b=mxBuTrze/geh1ATfAnxRR8BmXlt6Htgr5ZhahglxTnNuq40RuP0J6azC7dOsEQwGAdxlEAmoDWIKINynatwG6LNxTKGhZUHnmj+FjvQ2BgqxZFVp0DJkQtIW305cSlC2GUQ3ppAE4ZAN2B80UbyYUsphRfGLSA5Wg0gOafjWpOnMzhNCZuxCvKdHiULZ0+GlvWIB5cogHKHmhJyT1SX+xYvgFOG/IqnVuPkt44/NpLZTz9kbTlWGSzyBfsfC3IMOLATj33Yl+L0SM+E89OX8QO1cIGSIUUqFVy3D8Fb4IkyinSBL2WOQGA9kFdrtz54RfMatmX8H0CvBAvirffQSJw== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GXEfgmieagnCZ49FjC8cs0TBt1wAYYdBupL6+UXjdpY=; b=XVqgy8i+lL47WAUexjJ+sfMtc3b4MVmzGpcSLmEfgVwu8GRMajh8NI27GmU/dffDIlRMh5lII+UruKtgZU5A6Cb6/1PSzzZhPNK3IvvcippGxPp8dczccOxSr7RFbPKai2fj4UXf1ilby+IERVrZgyTBFp+D+VdIorR/WghKsaHgFkqFsPVjC76g2BXDVNvVpt+T3D9xYt3k3K6qmwrjpdl+3u0EHWrtxU4VRV4bsWXhG/jUPY2IVGIItdqptCL9CKnWKoNtCS1VBMWhIY1rlFPpyxAX5olPV92XGxpWBl5Vbh65o+QyLAxL5RkXYL3eDj7ZgjtVGCd5ocJNtrlk5Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by VI0PR04MB10211.eurprd04.prod.outlook.com (2603:10a6:800:240::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:29 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 05:06:29 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v2 3/5] phy: fsl-imx8mq-usb: add tca function driver for imx95 Date: Tue, 6 Aug 2024 13:06:37 +0800 Message-Id: <20240806050639.1013152-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806050639.1013152-1-xu.yang_2@nxp.com> References: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI0PR04MB10211:EE_ X-MS-Office365-Filtering-Correlation-Id: cba50985-7b36-42d6-d271-08dcb5d587a9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: CT4hFvxMh4KGS8vd7X5W5Td4E7oSGr6YtAXDT0a5TL//ZFJ9l6lRMCo3h4O83i/7vbkA3ld6989JnKRSMv0MRM96/XbpC3dpGOSudQTqQuI9KNYN21CPBSThaX5f9r1kZ02izemhECTOk6tO2yg8+uHzJRpWuDA47Z7nXHN5E1cKRkN1OQkrBtzKdg04OMLDvnVhY/nwchaZboAieQiSlsVhCz/71YPRktz9GzZ/9Kai/xA7QPWyzhVoYSKJZJGZ8ap3V35+ytN0FwySstQsXwEhwrbOVkHDHz/IbW9D07oHkFDLugOS5e6NAbo24aYRruE0Obl5xCg3URLnW3hqBga/DjVFdXviW9Qq5MZCOiEHSAY75cVS6NbZQsWHeeZ0kwPI8AXNrdYloV4I43XtUdyIxBhOEHTF3oWM5E+pquvVIQ5IqTHPf4dMN6xV0vW1CTBHQy81LzwW3dIUWJzMul7IXc4Hl2AVufowBetDkuz97JNcH62ITP6Hn0hWIFpfn/0ZIZAGzYnFT1AOHZ/oGdF7cDDW8iLt2cUFCttdHLJl3QdGto+7RYA/axI9awB8fZaDPgxkuHb/ARWCTfFIxr0kE7BPlj2Lq96A2phLIdEu3UOYVBHIJMjnWjOL7yiH+L1XL5MVoN0MUHSxzvigG+Dz20gHPj32SUFyiUq69/m3Rl6JA9txVQqN3Rf+fEPkPlgAmu78izq453RsIM0LykEowNybcj7BvCuLXJSX3jQTZ52suekawChev0CkGbeGzyFxDmoN/wncvIj6+2GpgSvMo4+YqZrGA7Wmc+Mfi6aa7WvjUFYXuNDQt5aA3gyt62f0gtSkbrG4ycriGz1zPrY6LG45Vr3cL/uJyG3o8gkhAC8kOhMMSnT99jaZ3FzWvwj+QMYy3zfdRECIeoi4UWzLnCGqWR+LK/qe0YcE3lSzus+xbXIpUAUrNigKEyNP+SypADaaB793so4HaKopYnhIrUiplrbnig4hVyVtUQqiYNHTAwHDHKYLkXkF/ud5D7SL/dnRa0pVt5M6Kg8dngs0PV7pGcdcC4g9o92BsiIUBPkrAVnyts/BltIbrb62ceMHL9/3Cg/lFICkSuMwvPaRgWWmmxHM0XKpc0zemTWLR8Pk+aVWstnHOBagIVRxw82AEOEC6qazTF7Vu4bqSuLzyXdm7hpuqWcHyFXnwv+amL5lSEhgtm80l/z0UT0RsTH1Hejl67GmJhfGshjcjVVIFy/OcbekiedW+tAKTMALjCscj2g14h7oPhv1gAqcEY6Ik6o1dQ8gSPqmmpVWz0URy6nD6+7QU29JlKZLHRTxhfZ5UcV7Z920g7OE4i73eRnH74bgqbzhroWqFDJJoxazHz9OPhoPzFMZwKEuXrlmkDdNq31yz8SuZt+LiTJM/9sutIs6J7HzYPfEde94igxXyy0k1ypLnHs6ugwPNdY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1kU68fAnWyVrU7eAfU8WGDRDAovJ46O+8N6Efh0hqiD5SuQ9Lgr6Rtx+e/FQgDJmvN/FuQrIZ3UwngTcZnR45M8at/syscUnVK2M4csoW+CRtlfMSm6gDrmmJ1Cw74nkrh23FwxwT0y0COVltgJJmsmqg5gDozyEyNp2kyVVYxoSCmv4hPlF5RdtBWjV8ac1mlSD0lWGtXvxeE0nQ3niRr/xR7YpAOgU2tX6+xZu6wQrQ5aXP52wcf70w5V8Y0wHotpSXJASTzKZ6jn5vCZ2m5xd0P5V59iMhIgBrnyx4jNBvaz8UQXuoUkh7AHzGb2ztOQQ11YcJhtgyJVu5ozB0MZshWLaXk16nHOb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9URgmJqCAlD+le2v6jEyCpdptfq3UryLu9iKdOPeuCIWXX2WGaNUGGtaUeteyNPkYIX83/YLcjNv4dJ7jwNGS9bDqvYe0wIjzqmYzuIVhcRshW9vkupyBhHIAShKkacOEe+sz94Cu/Kr3DkCSOW/Aj5P2jshbUlufDjqURwaqosGucaE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cba50985-7b36-42d6-d271-08dcb5d587a9 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:29.0525 (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: RpAXoMIOl6QzChaiJhqiWqy9PIz4VcDFGV7W0ZL4yeHEdpYPl3DUpDeUE+ofNS3Wn5Eutkt2sBdPLxJ6RMLYxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10211 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220632_724806_FCEBDA38 X-CRM114-Status: GOOD ( 20.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The i.MX95 USB3 phy has a Type-C Assist block (TCA). This block consists two functional blocks (XBar assist and VBus assist) and one system access interface using APB. The primary functionality of XBar assist is: - switching lane for flip - moving unused lanes into lower power states. This info can be get from: i.MX95 RM Chapter 163.3.8 Type-C assist (TCA) block. This will add support for TCA block to achieve lane switching and tca lower power functionality. Signed-off-by: Xu Yang Reviewed-by: Jun Li --- Changes in v2: - return the value of imx95_usb_phy_get_tca() --- drivers/phy/freescale/Kconfig | 1 + drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 240 +++++++++++++++++++++ 2 files changed, 241 insertions(+) diff --git a/drivers/phy/freescale/Kconfig b/drivers/phy/freescale/Kconfig index dcd9acff6d01..81f53564ee15 100644 --- a/drivers/phy/freescale/Kconfig +++ b/drivers/phy/freescale/Kconfig @@ -5,6 +5,7 @@ if (ARCH_MXC && ARM64) || COMPILE_TEST config PHY_FSL_IMX8MQ_USB tristate "Freescale i.MX8M USB3 PHY" depends on OF && HAS_IOMEM + depends on TYPEC || TYPEC=n select GENERIC_PHY default ARCH_MXC && ARM64 diff --git a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c index adc6394626ce..8bd6d91951a2 100644 --- a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c +++ b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c @@ -10,6 +10,7 @@ #include #include #include +#include #define PHY_CTRL0 0x0 #define PHY_CTRL0_REF_SSP_EN BIT(2) @@ -50,11 +51,66 @@ #define PHY_TUNE_DEFAULT 0xffffffff +#define TCA_CLK_RST 0x00 +#define TCA_CLK_RST_SW BIT(9) +#define TCA_CLK_RST_REF_CLK_EN BIT(1) +#define TCA_CLK_RST_SUSPEND_CLK_EN BIT(0) + +#define TCA_INTR_EN 0x04 +#define TCA_INTR_STS 0x08 + +#define TCA_GCFG 0x10 +#define TCA_GCFG_ROLE_HSTDEV BIT(4) +#define TCA_GCFG_OP_MODE GENMASK(1, 0) +#define TCA_GCFG_OP_MODE_SYSMODE 0 +#define TCA_GCFG_OP_MODE_SYNCMODE 1 + +#define TCA_TCPC 0x14 +#define TCA_TCPC_VALID BIT(4) +#define TCA_TCPC_LOW_POWER_EN BIT(3) +#define TCA_TCPC_ORIENTATION_NORMAL BIT(2) +#define TCA_TCPC_MUX_CONTRL GENMASK(1, 0) +#define TCA_TCPC_MUX_CONTRL_NO_CONN 0 +#define TCA_TCPC_MUX_CONTRL_USB_CONN 1 + +#define TCA_SYSMODE_CFG 0x18 +#define TCA_SYSMODE_TCPC_DISABLE BIT(3) +#define TCA_SYSMODE_TCPC_FLIP BIT(2) + +#define TCA_CTRLSYNCMODE_CFG0 0x20 +#define TCA_CTRLSYNCMODE_CFG1 0x20 + +#define TCA_PSTATE 0x30 +#define TCA_PSTATE_CM_STS BIT(4) +#define TCA_PSTATE_TX_STS BIT(3) +#define TCA_PSTATE_RX_PLL_STS BIT(2) +#define TCA_PSTATE_PIPE0_POWER_DOWN GENMASK(1, 0) + +#define TCA_GEN_STATUS 0x34 +#define TCA_GEN_DEV_POR BIT(12) +#define TCA_GEN_REF_CLK_SEL BIT(8) +#define TCA_GEN_TYPEC_FLIP_INVERT BIT(4) +#define TCA_GEN_PHY_TYPEC_DISABLE BIT(3) +#define TCA_GEN_PHY_TYPEC_FLIP BIT(2) + +#define TCA_VBUS_CTRL 0x40 +#define TCA_VBUS_STATUS 0x44 + +#define TCA_INFO 0xFC + +struct tca_blk { + struct typec_switch_dev *sw; + void __iomem *base; + struct mutex mutex; + enum typec_orientation orientation; +}; + struct imx8mq_usb_phy { struct phy *phy; struct clk *clk; void __iomem *base; struct regulator *vbus; + struct tca_blk *tca; u32 pcs_tx_swing_full; u32 pcs_tx_deemph_3p5db; u32 tx_vref_tune; @@ -64,6 +120,170 @@ struct imx8mq_usb_phy { u32 comp_dis_tune; }; + +static void tca_blk_orientation_set(struct tca_blk *tca, + enum typec_orientation orientation); + +#ifdef CONFIG_TYPEC + +static int tca_blk_typec_switch_set(struct typec_switch_dev *sw, + enum typec_orientation orientation) +{ + struct imx8mq_usb_phy *imx_phy = typec_switch_get_drvdata(sw); + struct tca_blk *tca = imx_phy->tca; + int ret; + + if (tca->orientation == orientation) + return 0; + + ret = clk_prepare_enable(imx_phy->clk); + if (ret) + return ret; + + tca_blk_orientation_set(tca, orientation); + clk_disable_unprepare(imx_phy->clk); + + return 0; +} + +static struct typec_switch_dev *tca_blk_get_typec_switch(struct platform_device *pdev, + struct imx8mq_usb_phy *imx_phy) +{ + struct device *dev = &pdev->dev; + struct typec_switch_dev *sw; + struct typec_switch_desc sw_desc = { }; + + sw_desc.drvdata = imx_phy; + sw_desc.fwnode = dev->fwnode; + sw_desc.set = tca_blk_typec_switch_set; + sw_desc.name = NULL; + + sw = typec_switch_register(dev, &sw_desc); + if (IS_ERR(sw)) { + dev_err(dev, "Error register tca orientation switch: %ld", + PTR_ERR(sw)); + return NULL; + } + + return sw; +} + +static void tca_blk_put_typec_switch(struct typec_switch_dev *sw) +{ + typec_switch_unregister(sw); +} + +#else + +static struct typec_switch_dev *tca_blk_get_typec_switch(struct platform_device *pdev, + struct imx8mq_usb_phy *imx_phy) +{ + return NULL; +} + +static void tca_blk_put_typec_switch(struct typec_switch_dev *sw) {} + +#endif /* CONFIG_TYPEC */ + +static void tca_blk_orientation_set(struct tca_blk *tca, + enum typec_orientation orientation) +{ + u32 val; + + mutex_lock(&tca->mutex); + + if (orientation == TYPEC_ORIENTATION_NONE) { + /* + * use Controller Synced Mode for TCA low power enable and + * put PHY to USB safe state. + */ + val = readl(tca->base + TCA_GCFG); + val = FIELD_PREP(TCA_GCFG_OP_MODE, TCA_GCFG_OP_MODE_SYNCMODE); + writel(val, tca->base + TCA_GCFG); + + val = readl(tca->base + TCA_TCPC); + val = TCA_TCPC_VALID | TCA_TCPC_LOW_POWER_EN; + writel(val, tca->base + TCA_TCPC); + + goto out; + } + + /* use System Configuration Mode for TCA mux control. */ + val = readl(tca->base + TCA_GCFG); + val = FIELD_PREP(TCA_GCFG_OP_MODE, TCA_GCFG_OP_MODE_SYSMODE); + writel(val, tca->base + TCA_GCFG); + + /* Disable TCA module */ + val = readl(tca->base + TCA_SYSMODE_CFG); + val |= TCA_SYSMODE_TCPC_DISABLE; + writel(val, tca->base + TCA_SYSMODE_CFG); + + if (orientation == TYPEC_ORIENTATION_REVERSE) + val |= TCA_SYSMODE_TCPC_FLIP; + else if (orientation == TYPEC_ORIENTATION_NORMAL) + val &= ~TCA_SYSMODE_TCPC_FLIP; + + writel(val, tca->base + TCA_SYSMODE_CFG); + + /* Enable TCA module */ + val &= ~TCA_SYSMODE_TCPC_DISABLE; + writel(val, tca->base + TCA_SYSMODE_CFG); + +out: + tca->orientation = orientation; + mutex_unlock(&tca->mutex); +} + +static void tca_blk_init(struct tca_blk *tca) +{ + u32 val; + + /* reset XBar block */ + val = readl(tca->base + TCA_CLK_RST); + val &= ~TCA_CLK_RST_SW; + writel(val, tca->base + TCA_CLK_RST); + + udelay(100); + + /* clear reset */ + val |= TCA_CLK_RST_SW; + writel(val, tca->base + TCA_CLK_RST); + + tca_blk_orientation_set(tca, tca->orientation); +} + +static struct tca_blk *imx95_usb_phy_get_tca(struct platform_device *pdev, + struct imx8mq_usb_phy *imx_phy) +{ + struct device *dev = &pdev->dev; + struct tca_blk *tca; + + tca = devm_kzalloc(dev, sizeof(*tca), GFP_KERNEL); + if (!tca) + return ERR_PTR(-ENOMEM); + + tca->base = devm_platform_ioremap_resource(pdev, 1); + if (IS_ERR(tca->base)) + return tca->base; + + mutex_init(&tca->mutex); + + tca->orientation = TYPEC_ORIENTATION_NORMAL; + tca->sw = tca_blk_get_typec_switch(pdev, imx_phy); + + return tca; +} + +static void imx95_usb_phy_put_tca(struct imx8mq_usb_phy *imx_phy) +{ + struct tca_blk *tca = imx_phy->tca; + + if (!tca) + return; + + tca_blk_put_typec_switch(tca->sw); +} + static u32 phy_tx_vref_tune_from_property(u32 percent) { percent = clamp(percent, 94U, 124U); @@ -315,6 +535,9 @@ static int imx8mp_usb_phy_init(struct phy *phy) imx8m_phy_tune(imx_phy); + if (imx_phy->tca) + tca_blk_init(imx_phy->tca); + return 0; } @@ -359,6 +582,8 @@ static const struct of_device_id imx8mq_usb_phy_of_match[] = { .data = &imx8mq_usb_phy_ops,}, {.compatible = "fsl,imx8mp-usb-phy", .data = &imx8mp_usb_phy_ops,}, + {.compatible = "fsl,imx95-usb-phy", + .data = &imx8mp_usb_phy_ops,}, { } }; MODULE_DEVICE_TABLE(of, imx8mq_usb_phy_of_match); @@ -398,6 +623,13 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev) phy_set_drvdata(imx_phy->phy, imx_phy); + if (device_is_compatible(dev, "fsl,imx95-usb-phy")) { + imx_phy->tca = imx95_usb_phy_get_tca(pdev, imx_phy); + if (IS_ERR(imx_phy->tca)) + return dev_err_probe(dev, PTR_ERR(imx_phy->tca), + "failed to get tca\n"); + } + imx8m_get_phy_tuning_data(imx_phy); phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); @@ -405,8 +637,16 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev) return PTR_ERR_OR_ZERO(phy_provider); } +static void imx8mq_usb_phy_remove(struct platform_device *pdev) +{ + struct imx8mq_usb_phy *imx_phy = platform_get_drvdata(pdev); + + imx95_usb_phy_put_tca(imx_phy); +} + static struct platform_driver imx8mq_usb_phy_driver = { .probe = imx8mq_usb_phy_probe, + .remove = imx8mq_usb_phy_remove, .driver = { .name = "imx8mq-usb-phy", .of_match_table = imx8mq_usb_phy_of_match, From patchwork Tue Aug 6 05:06:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754460 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1903C3DA64 for ; Tue, 6 Aug 2024 05:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u3ZCDYxchFU+3m+x5vJxpoZ+0Wmvrk70e/lGAVRCxKk=; b=28U+xV61fyvvSl3LIy0aOSnen7 RB3VKft5wjHVS70jbapsbNcHzZSg3dBjLIoOESQCqRSn2G/9LMpMRQZ1Fz2S1uWvvaEvh18ON4/Kt NjhL6ApOwGbuZMmpFG/61Ko+rxQZxemQxeIplak7OAvivUW53bvfMG1OG0ivKTmhMNRKsvWrTbnBF 9ZU1clusoHUIynj3vCtoUJlvHwrAX4m1AD9h3w6zCQPXcNDsNK8pAzR+H8xfKKqrbre4f7uq+gS0f gx5TuG/yquzSWIlwSH3xDvJugWPcP7lAxD+WXJisJw73C+5NzKqX4YCbJrBJlH8M/M1Rq5WcKTuNN TLnOuS6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCRS-00000000YFt-2dW8; Tue, 06 Aug 2024 05:09:02 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCP7-00000000Xi3-3yde; Tue, 06 Aug 2024 05:06:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hNXbTmCY7C3+M1TLjdoJy6qSLbTFngpcOleq4eyaq9IZd1zLb5QlIFdI1THOI+UtZTgs+pbNSAnMUYQJpnzyNl/yvYxTbBAnTqI8p4HiYSC/UwSf3C8fx7vBXOz2pA+JJshMDIg8Alxy3CyEm7GAtP7SuN2I5rQZge7VQRJGhX8YtzO+CT/YHyv380eSe5hPBdsnvUi6y+Ug97Ent5U6sHkYStsd2mX436RB2d/EQpKXSLMpbVMI6BBgvCHNfjevxFOj2UHR+pw9HdMBuWXSkKNy8On7ad8ez/vqPx+vNN1pZgQ/kcKsTUffAZS4ZAQy+WeABgqdjSXY2n95smNC3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=u3ZCDYxchFU+3m+x5vJxpoZ+0Wmvrk70e/lGAVRCxKk=; b=vgb4Fofhc/zE34Mr5dSdbnZpCEtmA/9VWBJ8dfqs3c65HNwNempN0cv9G2SpH48/rpGoJ85Um975azFIJwZwn9cecOrzQk5Z4lrgHp4tDFlZCGyZBaom7B6nyWW+zqMxiu5VLhFLpWc8XMGDQSVJquDmuuL4wdo/B79u2aXkDxmhALopFlKBwrGMSGELaGwb7FrVA4n5ldv9usOT9wWD2ApFSA4LW+3yWiB2ZXZ4MFJzjpgZp/JiSl0+Dzxu/XdfsdvgLdhZ1McKK9+nui8qowLmdsz/meRBQw6wodM27C486/H5vzSKNlD+NifJlZkej0V/h2OrPi3GNQ5tVpbr4A== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u3ZCDYxchFU+3m+x5vJxpoZ+0Wmvrk70e/lGAVRCxKk=; b=RjIVLWQSHp/9dts/H725zn3pqbFwFvi+8b7eBDgD7/LStvJ5OSY2UFrBMcPlXOXkXwo9PA+lBpBLrITjqlzMOOKPLJ+OyOTXbsy5K7Bf3nfkFEIqAEcfwUgzOuoCWC4BEjsBZF5QKGWkubMCTX0TdSFzq4KooO+YRerwNHbIW0R21NqZ29FfbwSpmJREzJsS1NLjQz3V1QoHYx1RWDaaMwv/cUjvd0pD7DV8+uHAwtpRfQFbx3rfBeh82yF0PZp9ZrzSnTBAwOkNIPpfkTYkuH6Onv9Vnfv7qqkoDhx5GbXd6YeBloRoHyGrk8XRDOPUcTlqWZCR8bA+5mNVsw4wzA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by VI0PR04MB10211.eurprd04.prod.outlook.com (2603:10a6:800:240::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:35 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 05:06:35 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v2 4/5] arm64: dts: imx95: add usb3 related nodes Date: Tue, 6 Aug 2024 13:06:38 +0800 Message-Id: <20240806050639.1013152-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806050639.1013152-1-xu.yang_2@nxp.com> References: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI0PR04MB10211:EE_ X-MS-Office365-Filtering-Correlation-Id: 239b6e73-abb5-4bcb-8c64-08dcb5d58b4b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: G4wTo5xUhu9GXgoJYL2c4+eGoIpyKKkSSdqQQ3Soe37NFDxYn9RGBhjapLhwxQnMqvzRHu0TkzgbkdqdXPA6HMZ1ViZgpFe5FXQ7g49wZSy2rMfqu1ZJUNtbNemAQuu0W697Cr2rP9WksMQhKWusruNGSEuVaWmQlc7U1pBG9p6yHsN5Mbww/psIcoJsdSrQLvZmMB/YYEDWH4WelhEPzB318RpnBSqz55mePQolPSlc+QYZ+bpKDLbW+wd7RtvkNVwKV6SvTMiR/2m681ftOkpsemVVD+14ZKFuqdGQEHiFD7EM9efEuqfw/ynuASB+zXH6f9EvB5A6Xj1Q3w6J8xLqiI7jEdp3BL3aKRHoDYYmFlfSHUZsJb0YEz9238/kKbsYf9gyRKtMj+0wWMcNHaNvBn82xVKwbPm2JlaZ18jP+ZBmuoj56gxCqwY3GVpCykPALGfiAzDYaaaqNL6hH/YDKwqSNCRDAyxIKb1hqKy0y9gR0aFadKlUxv2OGZ65JchciVSoKt83VmHLKzy9/QDjZfn+6RKMq+QgM/jsxaNVlQbLhmgujdUfrko+qTjXIJL/q9+9r7T2C2fu29dbWoExSRihYj8cN4tvrhwUjXBquZ84BjbailY/HeI43mnh7frNK9it/1Sc62uqSrzqIz4iX1y09Vztq+iaZebfR7nXyDxuATvX4aepi7ABSDntEIEX5CsN/9JQQ7THqYqqzJqxwU1CVaTcseoJDmPjvGv5r+7nLbMQPVZ0FJdqhXsBFjisH1uMqrDcOattWb+NwpDbcLlXTc9I4eUUaLIXlRO9b+hRs+2im/jeDZGwLUw4Od+qoK9cddwO/MEdspSQEnkNFC4MsQQF7xhQyPKyI0vAAbEOUW0QjfOCVv8l4sbgrnhuIDsDet9nqz4GG0SdlbZnd/WvD4CL2aXFGdn9H2lpW4hpVHBjPhTXsCs4UeBxzuYxZQgQNRdBYAmRTD6tz1BObvMD3WHZprOQQFIqKQVfS9xhgsf4g9dUjJ64cTdOWr9hBR7RtZVD74sg35yMi/cwTvNJhs9QkZkHNoU8WOP0X/6X/n8UTA2+kbCPnp6NA6k7Mu7AmXSsm2FEEsFSwxol92n1oUfvxjLyU3oAeOyW5IBAX8Y+S8O9iX5/ANwu9RvrOhldp2/dgkOzBwQigfcn3bUlYrQaQZwB/pEOn5lNgU4gW8MJzkJmbuyJGsTR+CRuqBbX8ZIKTb60WpYhopl3ugdzANTraxeAXpXCu7bwpARyLcLFPq1B6AwO5Lqx7JUmym8XV4MknB7i4mLoYZgSjGJt6DBlwCdIeN1XIsJfVF85dWVaIkXpGw5sg57bWDxdk6EYq3gY0xujTiafMOozFt8BLVxW7Ra6zYSPXHzz2KbgJqh1VsNZlfQTCukSkK44BBN46+Y6S1mY2xfPRTI/NR3JkOD5XZI9kSFDC+8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0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mbZxiz8lJ9wPk0clG37nEO/+xRfkg6ZBjbXsrXJ830ytz3Si3p6HYs6dqiJmHwPBMzuPBeSjR0Q+5Ao8avrsz7pRdFj53sEyXh/OzkNlCRU5Mddf8kvbJmZxxzLfQ89yUJgvD2CTVENKszpNol/WPOspnMHBch63mEMNTnrYJbVv7rP3BfYWe2f+XpBbLrhRAzaepEIk1Tyyzl5sF5EcNNTKYrfIbLfiwGXiuze+OaszbbcfDgKMZtaMptThLoEq+DTuuodsTEEJg+RmqQpue5GdkhG6IgUWVdC9nacRPN0pxeKshXSmdVVrel7JcgN9Th1g1H1Ruz8NU9tQesCFZNohqpqIKD85GBq2N7rE0P9OfzbYd18g73UkukJx/yIMEFywqQKgDKordgQord4HE2OEMt+xtJ3u54heK5t9zFkiZ3xjiIDBps5cOP3IWoAdT9S5M5lqJQO/N4/9qXNYQkQ1yt4m2x+IDG8TarnJZ6EXCOl8SovJqfHlaec3d1ULnQqfa1yCHru X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 239b6e73-abb5-4bcb-8c64-08dcb5d58b4b X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:35.1267 (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: XvxIBF8o8ro5rN2eWuby7waALUaOL/Vgy/DD4FXqO/HwwqGDwjtz2LDXAvmJgSOWRiL5xuz9MsnAAYGRkcJh9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10211 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220638_009590_05E6B5D6 X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add usb3 phy and controller nodes for imx95. Signed-off-by: Xu Yang --- Changes in v2: - no changes --- arch/arm64/boot/dts/freescale/imx95.dtsi | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index 1bbf9a0468f6..06a7c2f1e211 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @@ -1188,5 +1188,48 @@ pcie1_ep: pcie-ep@4c380000 { power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>; status = "disabled"; }; + + usb3_phy: phy@4c1f0040 { + compatible = "fsl,imx95-usb-phy", "fsl,imx8mp-usb-phy"; + reg = <0x0 0x4c1f0040 0x0 0x40>, + <0x0 0x4c1fc000 0x0 0x100>; + clocks = <&scmi_clk IMX95_CLK_HSIO>; + clock-names = "phy"; + #phy-cells = <0>; + power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>; + orientation-switch; + status = "disabled"; + }; + + usb3: usb@4c010010 { + compatible = "fsl,imx95-dwc3", "fsl,imx8mp-dwc3"; + reg = <0x0 0x4c010010 0x0 0x04>, + <0x0 0x4c1f0000 0x0 0x20>; + clocks = <&scmi_clk IMX95_CLK_HSIO>, + <&scmi_clk IMX95_CLK_32K>; + clock-names = "hsio", "suspend"; + interrupts = ; + #address-cells = <2>; + #size-cells = <2>; + ranges; + power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>; + dma-ranges = <0x0 0x0 0x0 0x0 0x10 0x0>; + status = "disabled"; + + usb3_dwc3: usb@4c100000 { + compatible = "snps,dwc3"; + reg = <0x0 0x4c100000 0x0 0x10000>; + clocks = <&scmi_clk IMX95_CLK_HSIO>, + <&scmi_clk IMX95_CLK_24M>, + <&scmi_clk IMX95_CLK_32K>; + clock-names = "bus_early", "ref", "suspend"; + interrupts = ; + phys = <&usb3_phy>, <&usb3_phy>; + phy-names = "usb2-phy", "usb3-phy"; + snps,gfladj-refclk-lpm-sel-quirk; + snps,parkmode-disable-ss-quirk; + iommus = <&smmu 0xe>; + }; + }; }; }; From patchwork Tue Aug 6 05:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39EA5C49EA1 for ; Tue, 6 Aug 2024 05:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PVptErpdxS4Mb3skpVZRlUdQzigA3aGQXUlPPEx11ik=; b=ueXW52C1nuOkyyCBc4EIUgaoOJ NY6BonEJVUXYFfWXAYRY/pVKxbK+TnPQcd84G5AhrGt+OFHp7QjsF5HL7tlsrUuBNJEFyQonlgduB G5jId5hTaGeKpQ1R9h5ZRjXFUzJsNQk1eF5b2hWBYFnspgd/R6RsoK1wjjlkWSnwrujESDUEZgQuf 7IB4y1frUX2sGCmLfRtoP8BECVvWl+1w6i1pg+90DHY22ABQqFYdp3NFHH9xOD6ImBRaCb+NxSseu 3tuDtb0kDl/Qo0dFYzS5wQGyMOCCZPky138xc+jeXrrHih6CP5lCOC7XJv4uOBDTbuJZJiEAALh0h kmdGLdKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCRw-00000000YMA-1fk0; Tue, 06 Aug 2024 05:09:32 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCPD-00000000XjH-41KR; Tue, 06 Aug 2024 05:06:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ikDrmeVkUjoDYGDfYDfvPG9G0OeaoDOR2IW84wyfBzLyeBqxnOyXOy03vbu6myHIxwwlqIQmcb3T7fxnuJz5hR6I7xzCYvRcUbCsWNrcb4A2p/hdlX+rDQdS02T+GeifyuR1MUcUzV+YWMIyRTzh6jUNU5tCK6ZdkkXwr7iUUEtsqrJWXM6w+qmoKb+jwTYeCeyA2Awhby13dNK4BdVAvF//lL56k3/R612rQw2LyImWFakvsNk410KJFKKN1K45DZZHG1iOoD/0h4tVoO+nq/pcaJs3emWds9L6VCjp3UtjQ//pNpKf0haG+sKXCgO9rkfaLTqvqmYbvrtFTNZIHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=PVptErpdxS4Mb3skpVZRlUdQzigA3aGQXUlPPEx11ik=; b=B9dX8+VRLdwxRjN40PZ084ktTeJ72t5rsoHCWmYO9/fmyTjcOI5SjAEEsP0uEGjBoIgsaPxW2qSnWCePvZBiDDeymVZ175pxbylR68W2pMxPlo4pZRZy4jk8HS36zCBcnRByEtW4tRsuiAGGsa7UD9QTWSFUboiENohF4vUwL+S+1VRb4x4XRFZNYak3wFc6EJGvCEbkPKiKih0/zw3gcP8exf4bz6kiJXbWk9TIF3blac+2EoYeD1yIrMj7J7W43gc9vmX6qqwBk9HPrStvE0XTh6MvtZa9Do67GI6oKTaRGv5YE+DY7AVTbjwLJU1jDlsbxcgk5qacpHN0zNqsdg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PVptErpdxS4Mb3skpVZRlUdQzigA3aGQXUlPPEx11ik=; b=MC4pUYwy9UUTpN3IJhQXQyTxJb/qGVfeDcVjgvUbVznnzJbA5ckwr4CxisvX+SpJDYKPb7tmMn5y8hDJEvVYLvAsOZsjaadO7TdnX7/XFAWETSheXD3H8tqIYkYh5vIOVRf6mnJTJwVjXqhdUrez0yRmMQ3lgIsQ+Poy86wOAKzeidSLXvsKpgBb1EjP2leeWh35B7e/hksw8SNr+JB+9tpuG06RysWBgyTGtxeOxCcxRheoHh+xknI95BxigaAlO++YvcL+LSvKCa54ufK0P3FXdHHGAYwSePNJfFhnuyvK//x3zfRmY32MS8bOxlaA/EsNhOz51B3LKaFtyE//Hg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by VI0PR04MB10211.eurprd04.prod.outlook.com (2603:10a6:800:240::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:41 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 05:06:41 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v2 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Tue, 6 Aug 2024 13:06:39 +0800 Message-Id: <20240806050639.1013152-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806050639.1013152-1-xu.yang_2@nxp.com> References: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI0PR04MB10211:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b07edfd-1ea4-4226-7ab4-08dcb5d58ede X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366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jj1ydgMvKiZBc4v2u2SBJxCUtAMEFhp63W1T2SvKnwCccEMhuWngW1YReUb/ztYsYpuQqKP632JchLwnKkVrKCZTjDM6TsxERizefdlDHjAaOc96szWyLfqf6SInA8jAu8vAy97MCycn1DGf5N+KML91utGp+pKdbhKyQm120VcKtsiL4eARtiHSsBH327lnf6xMXJhKSqAmjbsaHTT/jPwXad1CSQ5X7i+wLCJ9rgcyObBRlVpr8SD4aGv6Q55ubC/wjtC77u9DSRemoGEC+pTYe6YbVw20i9VpdDWLNN55cpdYyRN9R7Ywmq3H4Mf4TXgxC8MQWvcVYopmlaFDFIuOCXUzAf7p/uc9oHqCwQN5weTPZ2wsruqRDxsQ7sj+eZNW+AuHvN/xMJRhDGpH24I5Rd8mqCiK7D/bGI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y1kauGl5AnmjPq2WgZdtu0/qUcn+XKlywgJHVagCfMSdiPXVIkC5vJ3N3StwlF1g1pnI8AA1hjiWlEDEVA6i4o3wPhsxtMtzcjfCCdf/fAzT/lke08xrSRE3Uqzl2dKEhn+OYGiVE4MkSu139wD5BvL8z2TIAplkzBJDRXEapse0KKXzXpdMzvREcvf48HLQVki7J4A9EgLWOYAoEbD4cgVgj/DOhCr7f9P/3NI6NPQB4QhEnrM/cvGd9eJlNk9Ov+dQgWVqTFvhQXfS5duLynX3+gYH/hAOfzs2AoiWHYCPqDNDLilbRgOWim5FTbNTU48aPgZ9cRhqGMhqtMfntO7M6aUGYiM3VGKHlgCloTc/N2HfHQBG0wRrL00V2eauIsLzbLQ/d4vyghaTxAn2/3o33KOaacpRhAcLb0ZQO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tMAm51muCmMjyvbzgh2C9QIvU9S2snHEoka/sc0OSZPpzPh3yyloUrH7VK6SQ9a8PXu4kTHhESUMraACvwwMc85f+Xql7kE46QcyVysvw X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b07edfd-1ea4-4226-7ab4-08dcb5d58ede X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:41.2012 (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: RhfU1o+vKgOAQy/ByvTsRUcabO3nEXG45V/EB8IC1oid0H/1D37bjqNFLXR2/M5eWkZ0c+J4g5zr5GP4lMiYzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10211 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220644_027098_731644D4 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This board has one Type-C port which has USB3 capability. This will add typec nodes and enable usb3 node. Signed-off-by: Xu Yang --- Changes in v2: - no changes --- .../boot/dts/freescale/imx95-19x19-evk.dts | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index d14a54ab4fd4..46a9cd3d4403 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "imx95.dtsi" / { @@ -99,6 +100,48 @@ i2c7_pcal6524: i2c7-gpio@22 { interrupt-parent = <&gpio5>; interrupts = <16 IRQ_TYPE_LEVEL_LOW>; }; + + ptn5110: tcpc@50 { + compatible = "nxp,ptn5110", "tcpci"; + reg = <0x50>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + interrupt-parent = <&gpio5>; + interrupts = <14 IRQ_TYPE_LEVEL_LOW>; + + typec_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <0>; + self-powered; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + typec_con_hs: endpoint { + remote-endpoint = <&usb3_data_hs>; + }; + }; + + port@1 { + reg = <1>; + + typec_con_ss: endpoint { + remote-endpoint = <&usb3_data_ss>; + }; + }; + }; + }; + }; }; &lpuart1 { @@ -128,6 +171,38 @@ &pcie1 { status = "okay"; }; +&usb3 { + status = "okay"; +}; + +&usb3_phy { + status = "okay"; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; +}; + +&usb3_dwc3 { + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + usb-role-switch; + role-switch-default-mode = "peripheral"; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + status = "okay"; + + port { + usb3_data_hs: endpoint { + remote-endpoint = <&typec_con_hs>; + }; + }; +}; + &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -245,6 +320,12 @@ IMX95_PAD_SD2_RESET_B__GPIO3_IO_BIT7 0x31e >; }; + pinctrl_typec: typecgrp { + fsl,pins = < + IMX95_PAD_GPIO_IO34__GPIO5_IO_BIT14 0x31e + >; + }; + pinctrl_usdhc2_gpio: usdhc2gpiogrp { fsl,pins = < IMX95_PAD_SD2_CD_B__GPIO3_IO_BIT0 0x31e