From patchwork Wed Sep 11 06:17:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13799728 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2044.outbound.protection.outlook.com [40.107.247.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7088F1DA5E for ; Wed, 11 Sep 2024 06:16:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035398; cv=fail; b=mLXbhn35Cu+fXq9dciANM/hgLi7eSWnZXi4AypSa3uRWD1fDAFpgTfDWGtyorg7J0QGHdkQ+BoHO4cqEpwXlTTN3647huneB3QbY2AjHJVX3IXPylDUc3HvUjm5TgUklxDa/QG1Yw+v8o8nBwZdsTtuLJMF219vVRyJFvEaTOes= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035398; c=relaxed/simple; bh=ow+7twRnTRzjUFuIptIt+p2ySRaTVmLwh3cR9HZRx+c=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=Vmaz7AzmiG4r+HGAFKZrakxk4wfyzkknJAhV/th+ugxs1DfS7A6E6fWNwTQ0ZgN1yt2oiZGs6mMxJa0DqTbvKXdSywHqnq9T0A4T7qYwrMQNB8WTn/AQFuUwWMIFCTjuETDJkH5U9OfQjqENN/heN+0IjmhE6wJ0DXTumeHwPVY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=fSl5YhDY; arc=fail smtp.client-ip=40.107.247.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="fSl5YhDY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eWIdrFBvrl2qsjmB/VS7pflUldKetK0iC/zjGEzXSGSTVnaoOeN3RE7JP/ZUusVoW/1yyuMTl7pkNROmRVceeBoUdOjmxdGzBfoKSdlg0/8w0m01G9tIGKf08+QQqEj/1bTjjR93xDRsB55mgZ36ImTpx/YCO46ZwgijSlYZlolTsv7RpcHhMRHbcdqN7+djcBrERZTmfMXO7JPrLAfcZwzjAkbxl1dOUFAI0ue9yGqANaufqSnrtYmR730qnOp8H1yFo8OF0G344/T+/Elb7h+I76lof2kv7Au4RklGTFzvIZtZCSaJNn+h2EkRfT0TIdwwwthf6peUm34g9usKew== 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=wpcVFgHj03WkMRz6nyGfenu6MUZcmtloixbrvlP5QrY=; b=b/nC9lqEnpZsn7lo9FIl1Npec+6F2+ZesDOXiD/YdEre0AMH0TH4GQyAO8G8vcQ62o37vDn1XyMTDLsoQP8rokpgti/GdxfgxFLIOzWmHS9NrQpcfFN0C8xiYpPkELiiP8po/Uiuy4k0gReQtE4HUhW1xCi5cYEcv6gLnT2Kh6Oarg8b2bCu0cBUSzN88euwxdWZKkkYqy5iHKnBJTz3K441IYryS2BsWs5X4vRGcBe7fAxyhAq39QKXuoIKYuS8Drzyoox9Bqwvj0t3ia3P6bvug0GXLXFv6iJ2SRenlIc53Gx1E/u1wcHCHT6foHtkVxfcFS+MsFn2fAzJlT12Gg== 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=wpcVFgHj03WkMRz6nyGfenu6MUZcmtloixbrvlP5QrY=; b=fSl5YhDYvfua/4HU7fl7SIFaFq5zyZyeiIVd6eTZtxpMlAqesC2La4k16vYk7yGjx+5WucZ77I0ipfb4jXO2TDjVn1KJ5gZp91UM19WRr9hwxBKmEGm3vRyhD4p2Y/NapCkeX5dEA6gTbnyMde2cQXdlVNx0NAA5iOMQ2K+e3SJzBEgyxcI5Go9zCMVeToaknTaqTyBpgiZON6UB4LgV//ADybqXtBOXpwDjgNtfXjCbsCdxvm0iudXj/e021U4Lt9N2F4Nw1tUvNDpgDFJp5j3SmO1BnZM784QoeoJJATdDYYwUMDnEcEq+GOO6zMXbtlWCeALZKITOdWlbuUXrJA== 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 VI1PR04MB6878.eurprd04.prod.outlook.com (2603:10a6:803:12f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 06:16:31 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 06:16:31 +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 v5 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Wed, 11 Sep 2024 14:17:16 +0800 Message-Id: <20240911061720.495606-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI1PR04MB6878:EE_ X-MS-Office365-Filtering-Correlation-Id: ca498f24-08ac-437a-ebd4-08dcd2294737 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: g3CywfCsvWSr40cV2HRJk0IjTTFw6mcbKlUs+10LKfiukjiaKODg8G8Nm5X8aS9guZTU+6q+e9qDSB4VhB/QcX1Xl7HQaPzBL1OtHiNChCKI19yCbDviWyz2FiWKD/blSjAyU0bonCPGLqGCRatmBmtXPUQUhpaX5ipjZMsMu7TallZbvDoBhOEdZRcEdUOsl979+OQdnVqgkrJBbhhR3IzgofPKxcSFM5OXJbsGkLbtDpni2pCC8JJDmOQoMaevAi/w0o16aDnLsWBOJz/I9BJz3RqEx9YRcdQXrCFf0omcur7xW18q5d7SWcl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UyRYDA5MiKSIxnR5Aum7/JBAvyN3N4l2vqwFuDbtEzf2+jxU0= 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)(376014)(7416014)(366016)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mqhzwCymnmf71kHNr2muOLjqxQl+TP0HJwmKUWAHL//R5RDOx7E8EvSXuf+fqY9WCsSCuOSzW5HkTurRgCqh+rrCR5aZ11PEcNV7B/a5GGEKBal9xbvJ6WCW6MuH/N95tJlij/5CXXi/kwvxGqPHS+8lufvesZTcbtWpx7pAeStHOjvr36RjIoV/amkKJApRKR68iArEtdzNDu5rjZ4gMOMXsElt23+cpKh0fTTAxtwmw1IIrh82MSVa1B7z6GbvdbC0oCdUNz3+MP5zotS0nPj9bHlZFz/38Ayp9vOZamTH5d2Yx8VhTiA4aDny7WPX1uXAGZzfQHTYmoHS9syYJKkuNDoOD5KdByIaZ5nhuI5TYsSgZy9SEMdx0jDm8y2xEWG7Kp2rVOyzKdhfPQOugE8PUhjyRd4NBiPSjBRSHTt4s1kgShYuawtGyNQS7/n7gCOQ+7luT64CMDL0M4lR8siZ1EV1T1E3HlWH5+a0E6UMlTCrnHpSiZry0ubgIZVVDCqFhRlEqpEbPYznA3pPGvC+CEVJRhYPaktLowOY1aQSu3FBigFwwBL1uwqBXcPmvZuM3X/cz2lVw0xzmL8af5cu21twgyQLO0/uSTvwq0aCUijChovWw8UxMC03lTWJvGoN/Ib25cBosEJTbBXSriIu37c1d9BvHmEWdMHxQM6zJZAX80Yync8kW+DS/sdzbwq7IXULOHA4yBvQRlX2JjVTv1TqwCN44FvyOVGeQOngIF5+D9DIF/OjybNhRmxnDMsoJX7K5V/tOkoGCwyh78tls5PigN2bKeXPdJcxOrHM9z/5fTYiXcvzEFogX1WyBZZbkvi/5Cdsxq1ZixF5uV18TSrLf37OCnc1PUxMaxGTyry60CRm2AR34qXXsAbYGIxXhSURv6blHP7Q69WRmmtH4B8p0xYzSBHMxUDnyZ5S1kjDjH6f+SiEKdLkPQDDmh/rFFOYp2ofKrurCxk77xNrqXc+4wY2V7WNHhOB8ufpqdEXgEkbj2xydm4G8i580JiEXtvtEGJel1JYNp0v1v/k8tXE6OxaIBuAC/FD8T5Vrjg4H2HckUw3YoQIEvs+bdLEEdDeY9JLrb9cIi+2eX0Dn8RLDkr5bFsk+2RyubGJWxY8MPCMvAx/XM0poI1VlHua7d5lFo90dvbhWHz6AXf+AideHbKz8tviMduPOqoTrIngx9nSURYg9+QbFmWc6oIDhUCoLzXs3lyMiBdVae4/mm+zgVHUdbHjNcpJd74lVtYlpi6Poyie7CtlCA6BIOZDNZOLhbmMrTIGB7XB+gEFRKI/gukvVLdJ218rXsilI68gqoPdiGwSEUHrUKHndfroCCIO4Lv8seJ5f3782nZqyAxY1WvInu8f7wKcg52qzUfQ8IMrBXJdlE6HVm9tFkE1cT+jam4x3Uf0bHZKUAgHI5WWjbVQnWqgt4ZldzXKnCm34Krt54jLMwmaxnH2tXuLk+dsmSxrwvBGNGvkw41zxToJxi9WDeNixjC9GoCt5i9/YqELVYfehBX+NbrnNbYZuGxgU/JSG38RINidl6E1KwcYJsnopxFSQU7hHAHt9aeXyJrjlPZQPW4JE6XY X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca498f24-08ac-437a-ebd4-08dcd2294737 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 06:16:31.1874 (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: Fq+h0dhKjPGQkO9U+qVTjqdPHP0j28vT1xiNqM1VQPdLhWHGi6+QBAfXKEZI79H/2E7IUwMOrrmfS6w51G/Ghg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6878 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Xu Yang --- Changes in v2: - replace minItems with description in reg property - remove orientation-switch and port - refer to usb-switch.yaml - use unevaluatedProperties Changes in v3: - add Rb tag Changes in v4: - no changes Changes in v5: - no changes --- .../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 Wed Sep 11 06:17:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13799729 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2065.outbound.protection.outlook.com [40.107.249.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3598629CEB for ; Wed, 11 Sep 2024 06:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035403; cv=fail; b=uQ8M25Lr5AixcdDjG0xgl4RGPJv2bknUuKZG6N5U7x5KIcIcwVgt5niTkQsAjTH2Wbm3HIijY/G5lhUZg73M6iP/vRz0eeozVknzsR+zcyYPGqWoCh/ZgawMWHNs/DddGSsYlnz6Dx/2Op4q7hV/6RIXbi01l4MWRX1nq2qHEx4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035403; c=relaxed/simple; bh=yotd40rd+Qe8Nl/mbFVT/c2GD+w2ncOSiGM4/NH0hlw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=jnf6K6/G3jtSSiYhb8vIDEPpie5zpcFqSboOKv9zPIOb3ZQPTcHB4kW+BMFg9wpaWk6FQBNRGEC23LJQp0WvgS3ex6LGqtg1iVlm6HfNcjcfWnuwgGQnDjBKNlc4h35VJJFq6p7SUNdIhWVTB8Z0CDYoXQ4ot+8XzXkCY06lZzE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=TAhAvhNS; arc=fail smtp.client-ip=40.107.249.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="TAhAvhNS" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tM3qD+82H0iKqoAOmQLBKpCzoQq39ua2b+hRhsKJ/I6VAAZYCiBop2dBAXXip/QsIMcR33qqYVo2+js1fAB6niNMWH4jWSqexZaOVWOTGICwlgeNuYkec/xACHb5qEJ9VH6V7rFrE/vMZEnFbiEie2Qn2tVhW1INEutcOgwq+KYx5Ym3/dcV8907wUjlS9Uuu1uawrWXi1VHiUkuxwCyjJ9atpD/1GQ5VEHssKkj5Rxn37efldAyCEs6dhnkmCdFFDUcIKFQW2sYbw1vDTzIUHy6Iw2+sxUuQWUfGLWE2fm5byWEUteAHlI+eDmoMu2uUDjcnU8SgeGM0Z+O4d2YCg== 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=5w+FOBCIpnBGrufAJOXY9hayxyY98hwCXhCsROkvEp4=; b=PrSHOBbzItUJP0/WndpmDkoTyBR3oOWaRLxb6prgJWfLjbsja1hKxpdiGXCi0VAH0hvKVWbtPjcXocZNW7c+SIV+kFq2HhUrXcJqvEdzq/Gcktmc19y1PC6TzvIwVV3SNUKeeF+Uh2Gb/8BF7r6LFxhzIhZZ4j2oApT602M09B8lDkIUCwOX3fMbr+p0zjZrmYGRjbYb1Ny5avuSfLlXaa1AVcUAq2y7rASzvP0oYkJpmPQjS4Z5bzzf2CpMLeNZtiTe9+vtSfCCs3B+Yh1WSdfzsfrtD+MCifDpMB9MJaV/bI6klCCGWDZkLROREg8WOYRcLv4FQi4LF61X1dbuCw== 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=5w+FOBCIpnBGrufAJOXY9hayxyY98hwCXhCsROkvEp4=; b=TAhAvhNSqK3ZdSR4JwN1XmNmQsH9nkfGV87QPvQgWHawex/8oGTxmcC3RMBntSOQ5/NP4od+kgdlzPwBYONel3OvxJm6Wfvx69R03EQV6/fwujEvqXIBUjspHyDtCq6nUqaySYdzoWInMWKYNkE2/X8mefk030RW91Satyw3J5rPVYEA92Q4K+4opM+gNJ0VA2fbqIyYFc2zxMhJa3/6dZ68U6RiMABi4xcb6kcMtluWQuDBNRZZOM6D39wBFYgYn5sdiutfZfMRHkPZPMeuWIxxuHsNxUxeiMKukCkdpEuZRqHTbT4ff+xoPhxuOxXHVsfVH8g3cPgHGlyiQSw/pg== 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 GVXPR04MB10561.eurprd04.prod.outlook.com (2603:10a6:150:227::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 06:16:38 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 06:16:37 +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 v5 2/5] dt-bindings: usb: dwc3-imx8mp: add compatible string for imx95 Date: Wed, 11 Sep 2024 14:17:17 +0800 Message-Id: <20240911061720.495606-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911061720.495606-1-xu.yang_2@nxp.com> References: <20240911061720.495606-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|GVXPR04MB10561:EE_ X-MS-Office365-Filtering-Correlation-Id: e0897205-6ddd-4494-c530-08dcd2294b0c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|52116014|38350700014|921020; X-Microsoft-Antispam-Message-Info: P+2MrJNal7B9Qw8bIZPALvn3Em2OXHMQ4Yfx3axi6IGf/WWsz92FaZOWYwoWq91TO9A+K2TsQxg8fCGcSllfWPS34TyHndyjDAhRZ9GYFN06j06i3iC15TXF0h+KeT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kRAN6iPNkWt8piP36B/abGiWzmP27all/PyxQ0s2S6/JxknEtY+xs86RQIoaoQqo86dl8+ZoUcwkUnTlTufd3UzFJjAHOWH8vV1F6z01IjlOETHQWuqVWuc4pxrDrSLKwvBXhlyVbUuzv9sIiRXjt3xNXrJEaUQ+YzLrm3SgceAw7AcpHaHE3HTCygyGiP9K1iGLyqYOB/48T6scMkWVlssbJPzzfeTZ5kCJRWV2QQDSow= 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)(376014)(7416014)(52116014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PSut086YMPW7ADmPukEKmM/adqZGdQhsxxN1Yc2XN98Qm/a4m/6DBUM3cr39/8M/xJkdr7Ex7sPM627DobfKQ5sJREdckhRnTyM8ttNmvcyDBd6s5f1G6ctCGRSpk5lnlKXQSEBOCQcMhgcAR/Hnl5fVUAW6QjLnw6YU4WA0QpNwuo9cQ5RLZHerCJE7iCYQycDt8J1QwhJRu4SP7FR/KVl+t1KyMbaIvuFK5HM7nps5FSOVkUNBhDqsFr1oUKSMjJbhQciKg0Ncmcb6ijUXqfmCzEbn7r8kjxfJ2Zrrhb/Wnhxe2DPfQEzTFivrd7NibZo/xkyGl2/KeYseDpwmv8bydLQzMpY5JFQXtNB8WlOKTJjgcWYK0+ArSW7Fuz4maNThUQGAYCzrzBnHzn9atr8tahMoNJs7Pr+v5+wpnFvAISRk5FPFG2X905GLaBL+JWe5EszZKirLT1QQOhlntf0MbPz1E5tLFMKplr3+vXqJQ927WiUZQvrqHwMNlbGqmfCQgPcu2j+j0Lbcb3MdRP/KsBjwgpaYySYcsEHH7gWimvvRabkE/KNbNT/2OP80T/JFxLjQppzt6YBvEmXeGVkTx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08dcd2294b0c X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 06:16:37.7361 (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: +4g3PjldHbBhcvPxFKhywuEPNi95vd7/DreHS/nACIUlJ57zG7S9ZrhosZzjMTDhMsdWSDJ/QiHWRDDmT38u2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10561 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 Changes in v3: - no changes Changes in v4: - no changes Changes in v5: - no changes --- 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 Wed Sep 11 06:17:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13799730 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2088.outbound.protection.outlook.com [40.107.22.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 670B7768EC for ; Wed, 11 Sep 2024 06:16:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035409; cv=fail; b=koqZ67EsEjbLF/m+V94AqJw9GPm+1nWgPawSOZq+tsM0RyAcq++be+YwSdm+CkH2uh8/6CdtyjmCjyw1U8mCztkv5VybNsXu8RFr65VqAKMJl5V8S3bmi+PoC1Yxj2ASiHfh3izrfkzou1uGYxZzBcRo1Td/9ANWnR6js1cqtL4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035409; c=relaxed/simple; bh=hPNt7HrlF44PgGfA55Jn9XW5b1m+JgI1/XKTL8pr584=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Vqc4wb3eWC8ZaXayUGbmid3dmO2IKWPwftvnVIv8Pu74bmQ8S0/MguPY362RXNpjDhB2414cZctPutY6EbP4ut1tST1zlxA/L7PNSnopazU9TIeUL6S/EQH0mx0wSYK8ZtDzIKqtHE9RqWaSFOwLwf9ZmGIKZaPYzDr2CzSWWKM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=VWPE/MmK; arc=fail smtp.client-ip=40.107.22.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="VWPE/MmK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HwyD+MiHnFd+MpIv1pCMovXK2d7QKyOgqTLdvj8mH1tBpnn1GVa3wBDxNWJ3amrDEYggiLsgOhBd0GkMko0MY/sw5FbShYegLySw7N1onRUeXX0gLbkXfaayfOGHNmpJaWBQdqscaOM8QLiH77nS6HSrtYEiFuR+CcoB2t0tJAUnYs/r+DDsyKtIVSAc+ejgfwddZGOHyEoU2urpNE0APHBtE3fZn/Jo8Q7QLWd+Bs+jaYfCzKNRU0FA912eODT31WvsNpNXNoywaUIt+t3+2b18yAaQFBy7T/9Dyw3C7JG/chxNm7MfIuDstO7Bb5TXFFHF1TwOTT8PTP70VxOmpQ== 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=uHjdUHh4sjWrICd5p3QlPzAa2C9HiIrX8YNyz4dm3jU=; b=TN2vZNxEC0cNdzC7V0pKRCKIYYhnvSB9GcHh2kyiVqhYkLohz3OaY6RLeTjun12mfa0JBAiYcIeC/gjIw46rLRkCtTYNU8iGAf9wQpFDAzkMw3xF/GheQq9Ibuvy57CZpjtvpY+FgHlW4iNgZ6fwa18YDRmBvqpOxPTe9zYylpeA4Lbrtc85H4sH9RW+7IyFrhVkSpZ/rhsQLn9X9jiEVeH6SCFgfgMiODXQAjqpzzWuG1iQjCTQI7r+upfXNYy3FhWK3vJSK0AN8Xo98IYm+tfkYVy9D28dKuIpYFRxxagaKC8hMRtOPfdajGbYqHeXVAYWkBlkb2pmlbAf9+Mupg== 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=uHjdUHh4sjWrICd5p3QlPzAa2C9HiIrX8YNyz4dm3jU=; b=VWPE/MmKeFQgjtZJuWQYuuWP1P0DVypZyNZjwmLyrjw/Wf3FSvhYd7y9ConuYJnDPXkYf9B4w15oCTK7PYTBIDKyQIU4AY9Ys0AQ40cEu4r34jEuKpyDvlQ4WT7KQ/FHIhBmPXG10WLZ64unliGbuewNJTsLwkFgzG4FcoLJuOLAXoWHTzJPgpLFGwapZ5cvI/qxweXcRGwrGUpncB7IcWwhIeF5RcuK6qOmzMeIydkZhNjAb7EOj7K5+95rN08HnjPAFawyYuGgAsPWElVKrdu4zeelGpra9megoY5X/H7t75QEnfykyNoZnpZ/2J7is1+TGdYl/Ok4hczy4iN54g== 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 VI1PR04MB6878.eurprd04.prod.outlook.com (2603:10a6:803:12f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 06:16:44 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 06:16:44 +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 v5 3/5] phy: fsl-imx8mq-usb: add tca function driver for imx95 Date: Wed, 11 Sep 2024 14:17:18 +0800 Message-Id: <20240911061720.495606-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911061720.495606-1-xu.yang_2@nxp.com> References: <20240911061720.495606-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI1PR04MB6878:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bde6e6f-9142-42af-4147-08dcd2294eeb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: Pcq6m91yj3GsKwPqOrb24JiZEYdjUcpvW4Of8LCNjEqvf5h1LYLuhkqIVCsMvI44qG232LdR3/poU70d4gA5BmYmDdrXAbPzVcj4sl/xNeDkcDuUcaoRddY2EyIfJ1LzS2Vfyow1sVSKc0tqzEqNUuQm9TvQSRUj1IpsU7i76NPBO/pYRzfpRweb0fJ2/J7DSVFITQNYR0h73NYI+oEaGvjHoQTHiTV0jvmhqa2hqZwghSPDJ+e8FL8uPW2NygDW668ugoTBbe6j507SX93WV0YJJ77WnCkHmY4qU2PRp5DAm9LAtXSP0sZZ06x34zac/wODTWRaHVddjO+U/H/co77wUpwZDFkELYQE1Xi3Ud+BpRhXN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cQ/qTjj5RihK7EruuV2n5BbA= 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)(376014)(7416014)(366016)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PEbZwlYNxOPRYKPypOcSG7xIPe6ElW9asVPp0AZ7f8oIauBPFQd6RxUx4+n9Kshg8qQjaaZIrjbWH267LK2rImASkbCwQ7DdEaN563gyJhXe5tXkq/G3BdEt42wdUudJNtrSfqo/jnl2/gsvwBoJ8MDpp//Wv4pVlrQRoeyMgdyZE0LkCGqIDpplUfA1cyBaEv6iA/PGyJeizMbnMlgLEbErnDrPIQ445u4h2d/zypJuxxo9K/JvTG7phS5ch6nUC12mtcYkdaerCylUMI5Jhmr03Fi2uFaOq9q4oCzrfGG4eanQtjpCaGRfkVMZx3C/iQwvW6qkyzfVogX6CoUjLcmezJ3frvqHJC73wptG4Vo9wI1bl7LaE+3PqFO8Ze//IEpRciKoRip7l3C6hMO98w69Kjthd2uJdCuZhVOb+MxdLJ0chOjczqYuGNpg3BEILCeLG0We/sDdVIJty5tcq5LuFJKSFtRbT0ZKYGzi4S7WIMTQhdje9oOqV0exDgc7VNa3Lb0PZp7EYoo/61hOqtJzCbk5R3GIn/eug3dJ9lfDfjyk2w5k49vKa6LNydYBVsBrmqtk7s2c4goaW0GHOHL0O8BWOCySoQ1GrAskIwWdn9J8YmqYCZd4HFdKHnaiukW4cVEpMFfWII+TsNpPf43o8eVhTkE3vBm17//b7gEgn1WkOBhBRLrQ6eKqzFo25qhcmyI0z/zK3LiylRWFswyqDAD+Cu4BRTksf8CT5yhPp4DxVc030gbpPBRPyrHrA/ZFiuc/ipxq2RZ3r/xnqYVFS0+xjDjWk1wwnHSxWNcCiKQC+g+ps17+j9Vkk2Rkx9Jxx4RglkaDvvMRnbpfNOX/I7NaZPTPZuAfEm6JGUpvV7wNYO0nJj5KqxH5vJc1u6uJsZHe7EOdlVYk7gMX4PbfPoLK5zuFaAt2x04VECk0IXGgBR0jd0f4taibMNcxcCpI+o3N9906shB65p345dAXMpNa1rO9gsI07NwCa8CKZgWiuWx2c9Aqkjeu/Lv9kna+feG180fCcwYv+lgQCUrZTgqp9MO8wEXuKfxWzneLwXupIeCVyWZpgS7qkpDcfyIR+w2s44FGuZcUEEQnklO7/m9L3vYtxYbGCcc2QvVnU8jml0sXgyAd4ufJMosSr3qVL4t1mPS/isQv0E42CpSlL64Tu8YfoFv2Fya68kDr2YbwUmTdEvj3ioTXSNwkQQQFUyzxGeXIbF0A0n+T1iOhqz06GmU6fbcXCAGAA7RSHJkr9WG0HWkYrE7jvjraggkNC1At5t7SbnTKaoeGzi/T14GHezqlmDadRkBM5VpX9iFui7EX7X89cQPmXUX53Nbo39AMMvC23Yh0NUoOjs1HnHTqbW4NXTOCI6lGG26wZKcCJDxfa49N9quWZZDfCV6F7FliYwNcuG7pXLxz3Cqg2lFhl2Nnz7HXokVkkvBqZfRWBHRiJi2hQnWn8/Zj2Rx1rpRj9Mnvi/g1aYdwwie7mK6BG1XoftRR3IazpcppGs8KOuOkhBJpCgrcsbkYq4IbSzBt+tlBSibY0SMWpIJ6zolCv/qc0HufmqeO6fkgkYE/roA1kfZDIinpYIMC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bde6e6f-9142-42af-4147-08dcd2294eeb X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 06:16:44.2509 (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: 9/9rGm51Qt/8j70BB7X3QVEhUq7HDUwaDDtJXi7v0KEquG3arUnKUJubpjvMqESSKLO+xV+shNHsHPcne6tl+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6878 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() Changes in v3: - no changes Changes in v4: - remove compatible check for imx95 - check whether tca register region exist or not, yes means has tca, otherwise skip tca setup Changes in v5: - no changes --- drivers/phy/freescale/Kconfig | 1 + drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 243 +++++++++++++++++++++ 2 files changed, 244 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..f97f86644b2c 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,175 @@ 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 resource *res; + struct tca_blk *tca; + + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); + if (!res) + return 0; + + tca = devm_kzalloc(dev, sizeof(*tca), GFP_KERNEL); + if (!tca) + return ERR_PTR(-ENOMEM); + + tca->base = devm_ioremap_resource(&pdev->dev, res); + 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 +540,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 +587,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 +628,11 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev) phy_set_drvdata(imx_phy->phy, imx_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 +640,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 Wed Sep 11 06:17:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13799731 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2084.outbound.protection.outlook.com [40.107.247.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B711D605BA for ; Wed, 11 Sep 2024 06:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035415; cv=fail; b=EJf+M3Qoz/RSfVTKN8+0qQTmIfFw0jYSCWmcYDJLLHbHkSwYXvImkjPnJFZIEJ1JTh1L++Sf9iMUw/1+Pi8qsCrWgzcTHE/8MCtXun9krhhRXNlq0ttmclXOCoqNkeVlJHCO4FRfqL3YOzNCs0p/Z+YmiHhsVjMdfNbvR68GBc0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035415; c=relaxed/simple; bh=OOdgoMAhsa/EJOk7CSaysZe5hSkyC44qvNlo/fuzO88=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=kcoQrY7gC4miL1TTPz0X5AzA8Xf4VxdXshYojRi7ugpxZmx3NkpyOTUNNHLqygJuVLsIrJ17Fnbx5Q66hIzyMw16YYZKLGbUbOlOoCSCEsiIo5sH5hfgHJK7CFQLuYMkwuUgLDyKqBY+11kNhtD3eGyTJtL+aFw4IKu6QwlXwsk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=YAsQHIWy; arc=fail smtp.client-ip=40.107.247.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="YAsQHIWy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xATseL4/tp6ucWSDSIWVceFGhYIJgUl6ZF4J6iMxDaKAkTp8hHTWfCdFzwOOvMeJ4fMfYTTr1e9igAc8I9IjlKdjqEP1Xxus/Cfhf2ne9/AtWOgo4O4l6yTWH78DrPR3FO3bBljty/Cpkbpb3WDc2JxQssB7UgMDNQpNh8TPL76NYi5RG3m0Iunh4KQ9470SSECSFcWCUF8XdGMS59M8XA3cdKh1QNnrkvroJnuoT6EswNEWC9QAABev5VO0uzqbor1p/2+PDspK+6qw/P7Lf5fm6ucbGuBSsfLCXnwje5t7ZB3vvfgul4v5byDN7grJ0jSnFg5BKTGcnrGs1nJ/Vg== 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=SfHQ2Leyuf8f+f78gKVAKywXXSn/RtpZFypjBT4h2rE=; b=fqUb3mVwN0IqmZ9h+r3Xv0lQyR+ImxQ9dkHCXBz0UlQfq0k7uIXK3BhuNF3hiF4nRROupc6qz5YIAyXL1mR4GcszjIBtZHu1LC/VZvbKDRMRUko0Ym6VrcabnBg3rYuCvJDgMEaDcVVmY5Nf35l6QDBgGM3rtZ9ME2VH+Y3EsTiD92TtT+W62wD6u5iRt/SW523H2xW0IUvV+l+HSkghuXLEkdNw7qamAyXrZIWqvhBcPdBm2PtLXN7dNT0Jp2rwKHStiSApc26n3omzyn1qIYSjaFtk3M2+zRi1YjsG/JQ7ga54RHUOu7vuz6K0yIkLCVAVNFudEUvQwQY+4PKXYg== 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=SfHQ2Leyuf8f+f78gKVAKywXXSn/RtpZFypjBT4h2rE=; b=YAsQHIWyQ0VjsRVPFcRftqHo1pL830D2V9xDkq7iiz18Oz/wAUNza8meIE9ac1EKVwFgIL5HhXeny4z1SUbPf+UmTvBUSkEXZ2e/C84kIa576Uy0Y/SbMbiPYTRouEDMCoEY0uJ8ZrLch1H9Hx8LJpungd8y6Ag6Z+0NyAKwlvjRkiYWHx0EniJIIOg4S2PrPho8ie6cSNeFuDpg8e0ZV4wjjBoohJLQRTIhfHRQF1sOOhrkS/pUkOpDjn/fKt/PxizLAgUPhCG6Bgy/IXrzc97uDg3HwPnqrmLnOFPX8y1jnymYE2LkBmWBOU8/FzqW50LvhyD/Ew1qyt4PsD/uKQ== 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 VI1PR04MB6878.eurprd04.prod.outlook.com (2603:10a6:803:12f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 06:16:50 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 06:16:50 +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 v5 4/5] arm64: dts: imx95: add usb3 related nodes Date: Wed, 11 Sep 2024 14:17:19 +0800 Message-Id: <20240911061720.495606-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911061720.495606-1-xu.yang_2@nxp.com> References: <20240911061720.495606-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI1PR04MB6878:EE_ X-MS-Office365-Filtering-Correlation-Id: 2de58b5a-6253-44c0-e5d5-08dcd2295295 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: 2sx1JJLMaKB83QOWOVt32ccPGP23gVrAsyIFor/jCt2BxTt0DBQ4crq9w00Ya4hoEWm7WJ0pXxN1ECRwUm7eZ4HHeNLfVIPcVYtQhFKFTngnQ4z3dOL9ElBKZIlXH5WLwOrpv6yX6JZetqL5vF59A7tPZv8VrYlgBbR2Hve0BrNEn2j39C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IhhGWWoT3Kug+YXNQCnpDHd44HQRylV6pZG4kXFg0CUdNipIsZJ2YtblXp4ndZHRwqN4qPncoptPI6C3uS0xBe/p32dZbos/a6wMNicSTAvfshaMJw7tDKcW+uMKa2chdEAggHwHITZOHLnzNUMhb7yxCfoK4LLd9hQFrJTHfg6mdePhuFL/ARlf5SmxqOuI0F4UbI= 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)(376014)(7416014)(366016)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BjLhx0vxr7PLJDCor9r4o+S+Ae5LSZamI9102+oK6o16+psfoAfEi4LggWrFWMbxo8DE+tieus8TKxEBBvx7nyzQSXpkaIhU0O7nBZjBVR+XKpxCQMJT0+n57KGbMEZcVb/pe8MiFuraFDgpaggsb6T8TszXNeb1jfq2VlmX7kqR6QrLj4Xaf0GKhHADNxhdbcirc1D4N7NZrfZy1CPQ08HEQEd5mJ7mN/R/t749brC9ZbNfH8vEjbDgHkFWidZ7SYWR+5kwheO2g0jZYm5rlkfjQhHNUsuo2Jjmt0Ogk5ZVhnaZGjF/VPhJO3WMy8s07E1Ud8Z5HAsTpPs/cfV3RSqmHvQ/IkFh5Y7yEleJFqUyA5eyhX4+BHP2pav1i34O87qnqec5NFr9B76HDkyYO+8XcKSFu2jOipllHOZhkSvEIIomQTSwDu7Y/CTyLiUNVeIE6qJiUC/f/AImriOldq0bdPCdnKW8jVCBCiBj7UdAoXuPMzAfW1F6TpJRxclFqVigV+bxBrS2e3Xw1OreOGE2XZxQpQg4ccxZCfVoYxL+077lhhkquUrCVSZNd0yESzw34P2UZdHxAOwCDDyadU/1uV7iWl7mkmLQnhwY609RPaoXdjc177ZlmXUWPFVk/M3IZezDbieaz1jdhNsqC8dNF4B/PTnGSB9gQEeowGnUimVN30EzQUJVTs4b52TDwpVgOFZF5KPFp8JDbAVwhME4cX1n9XkN1y/jHpL4nI2ueGrVFYUSt1VROe8r7RJcTfp1ScFrtjFDtgSSC9H2sk2l1k/AKWeZ5u/siZ7wDyMEbsIEry7f4/Akq1zqWNvpuisjDTtjhvAzsmhw4eJR4gwy6QAJQuE6TQa4DkMckirrvaLLkEuc3K0SHiE5sScCbMqa8Qhvw6KmAXhYpxvl8yv6FKT0XuKhC0AzLjx6Hd1X516nDX8C37Z4TcqMhiOKhjFG7LIbS/uAmDNw9Y6rqdjmSVgbzewkwkcUbRNZI7R/1PDiFZbkiklfBN/G/BTvAbzub9+Qy18BdHYD6j1UzTYbDYznzluaO6Tp1UTSMryvM3Zdfh6TH56jrQB04h4iDcVKqTqeWGO6DL8EHPcjO9z9I7Iu5E5stvkO00RETMoHMDSPWRWVUo7RrddEmVyBn5k9c1z0k5TLtun0OGcAR8NdfW6tU1g4hK6TLgSJydTkUjILSbBvzqwW4aTsLwR2W0mQ7sx8P2xxbPanzfRD4RcGI3WbYM2Hp0T8PtbDALQV9kq4KzeE0n/Kh1lQRuXGmdPqBmZrqSBJE5GrTHYASTfhsFyNMTsYUFUGR91fX9oyLSuyqykMtuaos11SwPaSipBD7lO5Ts8UXn5e8BrFzkW2LUKo55BR+XwWtUxJ6h+ghiGSUcrdbphUyTf80SJsnDqxutfnxU1Z3wccmZfzBu8PPJkKzNDCOfygMH1vNn1mItKETAP0DMwINYkI+T93zOxfg/b0Tr0vMsi4f6arYfzhtjuLE4ODu29ivAp7BXloJUVhoHgyTvc6f9bsxW8Cclcwj2ltgsilvfEDKIL2YKxb5FfHI8oNBs4mLMukClwmVb5ECSgk2zgwOajQOERn X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2de58b5a-6253-44c0-e5d5-08dcd2295295 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 06:16:50.2793 (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: XlkNN9lwaljZnDf0vqRo4m1Tobx041dUWEu42dPwOUtppCXpJCQWZ9hzAGXt+DTssUXX3hnel0pWBhbpk8MJKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6878 Add usb3 phy and controller nodes for imx95. Signed-off-by: Xu Yang --- Changes in v2: - no changes Changes in v3: - no changes Changes in v4: - reorder nodes Changes in v5: - 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 425272aa5a81..2377b3ade95a 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: 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>; + }; + }; + + 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"; + }; }; }; From patchwork Wed Sep 11 06:17:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13799732 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2078.outbound.protection.outlook.com [40.107.247.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D588757EA for ; Wed, 11 Sep 2024 06:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035422; cv=fail; b=axP2cYgub6nWpEVf8cvVXWBHEFQeKZjK8F5laA9/q0q86F1PHPJLMWIrNIBfe8RqBT0hcNQZZ50PO7XisPzrnUv6HT9Vr/wSoKYgNMoaS6PWtVQzUXtwo8iClhkgwn19Y3Z5Ur/u+UOMOoPg14W2A6tlceayO2FrDbADkBO4pxQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726035422; c=relaxed/simple; bh=UFhJ9s6pqsvbGa/kSBjLaPlGQ3zmm4rGAe9rN1WkqAE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ISNedARc/vbl3nRpghcVehyR4iOxxhjUqW77FdGPEq5dvH2i3H6SknbBkAXaRJAoNzpSFZBz0PyNtMMQSPJ73WdI4UtQwEawrdRJTlJyxW1/PSbbPXl5t3OZktE07gXlIlbpv3cXBUXQXzZ3D2Y/8QH30UJq45ySZJWLewTSlUc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=BG6hpKC4; arc=fail smtp.client-ip=40.107.247.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="BG6hpKC4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZpTBgfkS/p23kjXRJR5shURgJ+m0bCCLhVlMpGkl9HG1Kr8Ih9NOEXIF0IBuCFnqBa1cFxWJuh0biJEmLJ9npFUudA84/rEKuEYUVKKVJVUWkhEnIWthaAsuNKKFsQs6AADLbiCMcAM89xLRKEByu4d1mjKJS73CNMGjY9quvMPe4YFoffSILEjvLGgYSNmOSiM0/IVY8csNqZGbRDPvkup27K6ejXE88FQWImT1/F3K/AgC1W5x4CL2DwtwDUKMgA7mQ8/jE0MAGX0NRDYGv5/c9Wq6BE6QvvggZnl9bTn84HpjbdhsAF2Vx5aTxZWK1qiEYn3cHdCUIORsFBDgJg== 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=wQUQPzSk6lwtWHyQynAwPtRcQwkGUoLruTj17HUG9dw=; b=AVR4NAqKPynXFcCNusDXeDcEHlL2BLNkaxd4g7JGKQnV3Lt6l3aXdIk/bAOM/kEo9jOMthZCfjjYuU/R60lXwkiZAvFplDO25a+7jegK9YOTLtGOJ2wec0G5uBewV9lZ+LDX2kW642pyjGRx74eS6OQ1qmHrrgvwgXQgZ0aQhCB5MxxFuzxK9BH0XzRyEy5vbLetknqnDJHX/HlIeFzt3U/XwzvMBe2RvOk6ZIlT2pVOglcwtkVdBHV/nwtc5GhR0FBSK0O2X9olmRmp4cMNxe7Y34yHLT+7Ryxcb6TGlZW7yXy3ie6T/RpdfAPiPkUhbyHI8dyNwBzOuPEa4/HPLA== 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=wQUQPzSk6lwtWHyQynAwPtRcQwkGUoLruTj17HUG9dw=; b=BG6hpKC4N1MCfoDhOJ93sORlRqicWcCUcwpN2HYPrcSmgdQTl3diGMmmpt4Loz40CcFJGS35g6Akj59QPUS0YYG5TxIWFYUuMY9HutuPnF8CcuX4GrHIFRfIxkAOqbV39FAwphtMf37/9G3thLg7MJLekyv0Q+pJ1F+9D4hVq8a50qZqz/ir2tqmI0iQxqe2OY3vbwTUfWipul9iPSZBf8/9puc7m0IT2sEUP7B1fW7Q6pT9ZIaec2RdXiZO1nvyEQEiCO6vMzwXS9tkLxaslygnb0ZSV1jOilY/0gQR7RJmD4s8j7xPhyWprZbquHvjBCj2wfDAPvBJ9rxfwwupgw== 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 VI1PR04MB6878.eurprd04.prod.outlook.com (2603:10a6:803:12f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 06:16:56 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 06:16:56 +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 v5 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Wed, 11 Sep 2024 14:17:20 +0800 Message-Id: <20240911061720.495606-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911061720.495606-1-xu.yang_2@nxp.com> References: <20240911061720.495606-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI1PR04MB6878:EE_ X-MS-Office365-Filtering-Correlation-Id: 20480720-c9e6-422e-2d31-08dcd2295666 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: DArKbWi037+kImz2dSjOZ1hkjaChgACukL1Gh9svfAAc7bW902QYYeGbDF2FZl45b24V1aQGPNtDXEiaPv/AvcOC1w7FCJ/inHvWqyeFkPq0r3+MicI6Ofc0cZdcEwic8AipYRmNWPyCIkOGiRthBmCwiSF377MrMjmL5qu2/Pus2vsHKPUU0eBLRBq5EtLYo4AwQNpN8Vw5EdM87sNGGagFoZ8bsF2ps+Fzk9nzGlRAO2fA3liCczB8MoBSzzOOuF8t0gmUX3CUfE5k9wFmeeB7MvqHuAaWZdASlg8TNgSk5TEooxieEJJadC/XY+rbYMI0k+NKmM3FCpBALjC4FBuh+fRD+U6WDtv+2HZ1cWs7V0+6d1TgaEmRqR9AJcYhqZp7/wE3QFfdJS4C9g93PWE9deLwrbyLY0Rr2AhtDEWDeK0jcFzX6az1aJKmsKWftvX/HNgx4LbfAe+I9T6jyNv7LX8JqARDJ0dqhnFShMboyFVCfCEct2LbaE9M+shvxYFs4NI7b5QyRZAdRqKZkl0+K3/g+sjBPAK2n+B2ka4tmavaw07Y6YYvfCtjEpEfcGcgnGKpyll5fr+we1QVhXK+tAY8eh0DXgX/CbOTO1zVls7A/Xw7vTnu0Io9h2Kcm0rgpDFJVo10PBCsDXjLMy5dvjWDK7x1m3v0mUdh+m35XKJftC2ZTLyBfw1c9nuuK3afNXUjK1zHpJnsqv2rM+EcuICTrFB4q1+EZt65KiGnaN4+MtveaVjCg0LHqayaJC18l5/U5HvY/GD5pezy03veyT6Ao8MBqNUSOHmvLBPClKEk08NvQPYjO1ebiVPmzX9Ve/WZ5EBT052HzFka+GNLWksRN3ODyVTHmHD+JwJHJ3d/gwXCg3M6yCGT93d0dbSU5zBL9rWh0wMKYmQJY6xA/cipSmpyydHwJWA4O1BTSflChdBD1Z/KuHgZWPfuCIxechS22AxjexLSBG1hhHf1y3VxQqHWP04bjqXnvNxYs8aS4nIppBkkSjQow6omSdNytr+ndbsmo4/LHLKpKym2qf1qwhWX30jlzyTNSTUloM/seRgFdytU8/4/qHPznmhxwaGuErRyfSGYFrwHrQwZte3mqKUE0Xkgci9jGAtQ8BR/vTfb0T3XZXblje+DXFHafWACJFNdJGEhqwiwpZ6xf7fPsqnshFYq0ys6ycmUDDzWwcs0h1bsOehfgLGPfvyodcy3JnbP6CSNprs29CeuyWJ2Q/KtASXWRHPKXrDQjwDsgnKu2uM9ECWFgMkhTtMsPnVA/nZujBXxCoVesNQYqyLJt5cbu7+VKvo0+df+CVWlGssz3TLAZLy0kCU5TDx8bGJImOZJJO5q1ml1SYfbQBUtFEJHYwltve58N6UpML4+FRJJSvB0QIEjj2k1f4bszVvQ82UD2SLAjmx2R4imM93s6ON7z1LAFmM5Vh0= 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)(376014)(7416014)(366016)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M7s8Z6doT1/itCKui+LIJSvI0lyAcSOgk6ERyoz8W/gXTcD+axwEd4B50fqKmwhGYk1PIXxi0oIC1Dh7lw9eL8cW/M0+uE+RrUWpNPHSQPlOxwCS5K/hrYk1U3aIecgIud5pWdOSlt9tPkqdyioMrdXJRH3qUYuG/X3B6eIOhmuBZvZ/5T2igLmP4JFMEvDQtN/MsxgBBLS4i5VMzIKoq189cXryMZlwbu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4LQc4wxb+p6ZCDrrUt+YfrFBTUELAEf1F5/ViwYekPc7O25msEqdZwmPrMu8lRW3m+UtgNvhKnKY9P9OtAFCmbfw5Kn8ayJa1k7PpIBSV2dmd+lA7XElHU1B4Hb+xM4hVAH4Vl+Mj2jFPZEzDsEpJ5OSL04g80viyuEFfbFUZGXiDWIQ2PVj5I9ZaqdMNQIPqa6SA7mUZyZLgfXIWKRVDsy9jjwqSrp2Poa5hJMzgl2dEPb8+Feq7rQobvkKvD6uBIiq58qARnXHt8GV5dAVEdVHOWswn5cr44KQfeIFBK84p+S X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20480720-c9e6-422e-2d31-08dcd2295666 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 06:16:56.6577 (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: XYXC64Kz1EfxpZfV0oeV8t1269EatoTU6ErXTv08Q9yZjsz6FKl29k/p6+L96bG6mE86Rf1Pg6CYDFE2+JTTBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6878 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 Changes in v3: - no changes Changes in v4: - no changes Changes in v5: - correct nodes order --- .../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..a6888fdb6c0a 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_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>; + }; + }; +}; + +&usb3_phy { + status = "okay"; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; +}; + &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