From patchwork Fri Aug 2 09:16:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 816486 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011008.outbound.protection.outlook.com [52.101.65.8]) (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 D7FAB1DAC6B; Fri, 2 Aug 2024 09:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590206; cv=fail; b=ca/BpdIsd4l5gjOngxajMGy86dBkLaYg58Bl31AGFJedJrlS1EHqrr02j1yprTfszq1/lG8WVxb22u8iC0fnE38aGuO3wxsIguLgcgN6KmHKya/7c80ClDTsH/qIF7y5e48k3oC5v/Qx+ZlqlNkVMGdErsa7cBF4dhOK/pGkWGI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590206; c=relaxed/simple; bh=VoBXZF9lzqRd74Z8BV92uLxoWDZm5g/dKwzJybb9OD8=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=D3muKBlQ2jW+3chqxwwOk5ttgrrM6njCbKMR0PQESTW0cwYJLAVMHtGp/AQdAuRGeu0ZcfBRbnHvk5vtWZP4xXIx2+q3NrsHR59WLHunv3vZHOdKT7zxaSVO98XfUCxeZ/x3ClBgF9iO2qvWdVm6d/RUnb4G48IzHO/dT2oRaAc= 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=Zzb6saJs; arc=fail smtp.client-ip=52.101.65.8 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="Zzb6saJs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hNM0Tv40J/zcapLevBjqtMZmiXJ1I1TqlgMZfiqrk1JBki7WSzIxUsDlDxg8y9hx3jy520CgkxMy8/OMqnityzZqgujRhaV/rQPtNxs9GQYRLOR80NrvswWHP1M+eg3X3MDCBNYpTSCVLXX6XLwKBIlbpFErGH0CKhpUyjDvxOyCxXg+dco4XU+qpuCgIFJl01m8I/YlezLIJNuGqYpranneImjvgz4EzzoMW2noLc4RNrGhoYhNdcrx3H3DXUXz0Pf9/vDYGSqldDGlrvtdbFMKckDlwvQHs0Ada4VGKQxkfUA0UfytSNAxtMr40kX/kAwv41Gf9wPItCaYixggwA== 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=w0o16bU5LObzjN7Bwc/SMLxwPLL0vZ3sEalmiZjdGxs=; b=lyjBiUmRBad9beWM+xiHK2P7CRanANWDd+jyVVCM87RNaAhprMpMj9oi5X2P2MASkeyftnkoxt1wbTgN1QKpIiRPDYEwvYGuXnBpQ9m8Bs3pdN/gaHRSorRFzJrp/wwade6+g1OVaejFdB4mx7uYphnpKfuLmYDbc0pjgu5NfjX5f6kyF3JmpmxHBDUDvyCZVAotsr7zoTxP+li4dS56mZ1FOJyqyOdYrdSzKGy/uNUIYdRASB0bVPgLrO0zWd6U6i43NekrB1RUjPIwIqtvApcpePSfQqwVo59C3MpYeMrXdwJmaKm+mz+osrvw0n7EaZJmYcxEFM9BSZHV6xx+YA== 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=w0o16bU5LObzjN7Bwc/SMLxwPLL0vZ3sEalmiZjdGxs=; b=Zzb6saJsXSuW2V2t545UlFWwb/zQFkfYmhzFULvAHCWns+/dxo6eM8NCesX1qPJstodNC1tTP2LA2v+ZJoe3s/7oqZtd6MS4eRZli2lt4eP5Iup5P8PS2YweNvJ7hyrb242OEJN7xD63dzINZcqd6C4uIYhsWlAQMeb7iN92CC9cx8o8jYqMrmuVooZZR0NbNtDqJJm6I8pr3TxNYE6gsngh1thuPM09eAewb7ZmR1dAKNtKPSKrvJP7g65R30YS3NdRXifDz4YL5UotiVea00MngISerXbrrsAOrj+ISBSQ8B6rAsdFz3+WegtjgmLpi6WQStwGqztHORa6VpwTkA== 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 PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:16:40 +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.7784.016; Fri, 2 Aug 2024 09:16:40 +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 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Fri, 2 Aug 2024 17:16:58 +0800 Message-Id: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b626e20-6ac8-48b0-e075-08dcb2d3d174 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: DExXrY5hzhSKP1e5tDQqj4agaBaNIttNggsGu83SFO+St8kSu/ECvebDvmxMg5J/86ixOfk8bRquyFRbstlNejTRTLzduiaD0VttnjOGT+ZUT81Vm8IrqXyrp578+TY1pR8TJRXlAMa2CdX7/jQLPDKx5hftHw3Gsi2C0jY6RI3s/0538PiZe/UsIe2gkPKgDmOqKq53Wi+srcs6OwaIEPILPjtkz0dQjhBBifj4fEeYPi57oVQiVQyCj2lOIMqS4qdyE+DkJWWLxj7MpinVA6s3FYOGSnT/g+n4v4Y1E0lvI7v6Liu4ojN7oujXI579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kHxc/bdNVHWkpUysxTICM7SE+x5flndz7x0NFaZep5v5mlcUwju6pXB/55+sk= 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)(1800799024)(52116014)(376014)(366016)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dY5kDL7RGnta+UfSEjgixShLVxN3o5tBFLZnW4gycYeFjqkfF0gmD4fX4zrLQWe7yxpPZmkrZzhE9yHbz7krkeb2UvVmLNkOHBsd5ZM096gp5zQ44KebbG2YRnnitt5AmSj/BasYPEAvTZPovz+akfQST9UN/2GavmZV/Gvz6ybcJBz+vENdXe0OWv7gFEb3k+GWt2ED2ZAgYo09FjOodmLgEPO7UdnR5TZ/rY45cZBVKD5tGum/XegcqMbtpcf3HVRB72Ny8Du3/4P0o9ZlD2BoQvjcNXw6gIkRvu4Sfb7fkh9E1DAif3mSQvCZ50390rtFFn/4MYaZoHKk2U30tKavLIteUafRCCX4uopJTtMK9J5nVL37Q17awKFuYXZea4oOJBfxbdz1uvRQ3ZjoQkMEeXxyBF6NkuWJf1GVCdE5vmsDhbikaGvYAwfuOfNApjW9o2hPsvocdztrd5pV8M1X7PBZdUsj6poN9GX7qXVCKPfLlDG5Evz5ByIxwqVefLGZQfY/6GFdAdKKd5b0MB52SG/qR4KhS+1O91CjvAnl1Ft5tFHZkz0aJM4FZ4oiGrzsxgUnXhLY81ioEZUhFlLFNu3yrRbpzVs/GsM9UihWakScAXpb06r3pOAsOuPpwqOkBS+IOcxUo+8q/A+H+5iR97sxTEoeWodpQLHfPoVozE1fTIoKtExrS36XOXqpynckxICfWumK1/fov44w7AbJorCXuJ1yRRkgh6MFIK2Saai7FeXgYxo7B8zup/1x5O2vpWpB5YjS/8bZPKQ3zjbmGuUvZjAfck+XHRs6zsDj7mJH67z72gxpDBCx0x5o3EBqUn7Ld9dGe/5lQF+3dlti3j7aQh2AfXhfDz67J91YRlMN6PxeELxOC5WbVM4EZ6wZN6LzNAHHkYfQBFNW7gRp5HtlwNdLQX2KVZA31zLFelFXDKVr/DgDKmOhY8n1euTdck/YQgWciBfKoK4M11M9Kl/XxTflKSUTGY7cjsNJCSaymdNmHOeORGzSgk9oqltwx15mMcccCO95jaFQ+2EcDFd5vnL5KLYMwUs20z9eHVH2q7dTwpLeALS3lMlmdPoQSmdDvyph+TD1boSvXBa2bSkhI03RE+1ZqYP3rG1h/NQG3oMOrN+gldIXwEkDhMRTztcCqg/JdD1yxi16g1lhhnfB3BL2QZHiDGARei2uaXUkgAx6GQqbTrUUMwH2Nd03PWoDGwbpVVgHY16mUnLy0A3M+6cGr5rVdg1yNZlAd9mGY4fwY2BXK3z0k1QBOg6vwjzoDn2K0RkBylzlZQO+16DPH8RS0iZXrvGKrx6mwH4DEB4l8dESChz6SNCDQdYpXJ8KrJQPde8d3yXi9NYOmuLpvuaeIssotDgH8BK8d/ML57aYutlYpXflQ4jyQxJshnFeDv56epvd9GunQ/xilRM5axw/NKtObRqLmeTdWUIlWr8cviq4Rt7goeCaWakaiNkv434ToAY00TKELZZS5kqtD5mpMEHetowQqsfK5yNPXAZhjozmzcXlRVjJ0DMwdkQMheu3cL7GyGLASCmepU4ziLHJw9zcbVjbEr1GQ+36qJtYhbm4V4PuE10J X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b626e20-6ac8-48b0-e075-08dcb2d3d174 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:16:40.4925 (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: YWNicSum6sp0nhD3A4lMLRfyoA9MkghuCzjk/+8QlBam0go9jKV0yw3ZLdRIXUhoaHv8J/AON2jc8g8tf73iXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 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 --- .../bindings/phy/fsl,imx8mq-usb-phy.yaml | 40 +++++++++++++++++-- 1 file changed, 36 insertions(+), 4 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..b0a614a9556d 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 @@ -28,6 +33,17 @@ properties: items: - const: phy + orientation-switch: + description: + Flag the PHY as possible handler of USB Type-C orientation switching + type: boolean + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node to link the PHY to a TypeC controller for the purpose of + handling orientation switching. + power-domains: maxItems: 1 @@ -89,6 +105,22 @@ required: - clocks - clock-names +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-usb-phy + then: + properties: + reg: + minItems: 2 + else: + properties: + reg: + maxItems: 1 + additionalProperties: false examples: From patchwork Fri Aug 2 09:16:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 816616 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010020.outbound.protection.outlook.com [52.101.69.20]) (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 7E32A1DAC52; Fri, 2 Aug 2024 09:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.20 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590211; cv=fail; b=nGbodq5hN9qf+9QZMRiwTBrk8J5wYjiovnwR+m4dI63qxG39YdW/OeZ9q114rGZmkOBOywmS6uMQKmB7Zry1pMVLI8xmAQZWuqpXCN7dJh6N9KfolScSZhF0mPo7mlS8gStAh8uJPnMgk3QFQLGb7SVdbRvCcrOTnI9xtA0Q2uw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590211; c=relaxed/simple; bh=JUUUN5FjkCJfVhnS/mqekcUAWZhFGilXmvYcltOXpns=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=CA5PT2KeJ0V6BY9hZn173ylnRV5vDkqy01okhoKxWheiWwritgI/mxQ+6ywSzPLmdjJSYy6S97tC5Si8ilnRrVtvIqSkAqrVyxJ0yI9CvCDc/QULEHrMqjDr5m6wguAYlebQeC5inyR1BHL6nvegH3ATkQLpybsGoN+4HaAeYNA= 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=bStuLEN1; arc=fail smtp.client-ip=52.101.69.20 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="bStuLEN1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y6n3xGHzWgs2alu+GKiXYET7YMcfwTwpC3MMzlqFKEXGAIm1SdNV7n6WysjS0kMeKCr6vDs0xKyzaNpQs9VCTw38ySRsTz43UkjKqLXW4SfD+ySHO2077AoiRsaupPfbsaHgoUTv4Av8pQFfjNF078v0XVvBHgGTgC2TM7Qd9uH4OffRrbza17I8cYzm7+JCL1j9End6rNvXuiDpa3ZYa8HBMvo8MLz8qcRe2I4fXrAey8bNNomk+AXy/MaO4seQBSCNFeqdFs+rHgj2h9Gnsttlx77aqvqodqxyPDL3mpgudRsdmKemD0HeJBTGDqZnMv5tkJ6GmoDL07lZsMqFog== 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=jPC4rqkUCUq7yvH3g+bpHsy8zDR7cfQPiijZe3fvh0o=; b=Ot7r77Ku4xoPBQhZow9uMiylFSE33hjN+1RM3XZv623rlP9pw83L5udAWJY6CuJLPYaQfPYL52hg1ems9fx6d1QHAmGCnhusyxuRNlQ6ogYPKT+w4uTzAJKjiijoo6MNNxsBf1D6PoqvwZRNZ4lRn+EQLktT6PBaUR+9dW87Rnw8dL85Dn5DXFv9OTcDx9DQwdzAzQ5jTctN/LFQE4uiODUkXc/d7gNnoKtr0v+hl3Nid7182uiwjV3iY9z2EUitghGe3YcfdIz+akseocQ4/jWpN72hcCCoYVP/k1bNfNWS+sOalir18WOCm7QN2Ct/RvXKvbUsC3Y//0bNXIMauA== 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=jPC4rqkUCUq7yvH3g+bpHsy8zDR7cfQPiijZe3fvh0o=; b=bStuLEN1dasDKsIqfApBMxHzElUbrdWBL8Tcxfun98DnnYNj0ZQONQOICuSP+LICa3LzjpMrpLOdUME/jhJXevFkEHqv4PgQZHzE6goUvIi0Dwcr5riwQ6qz5xBcMqxkGAASOXvCE5/33ZJiMnCjFoZCKplDjZlQ/EcspG4KD6522ttbj57FJ/QqHEQh3b5gKCPpJMDm4liPfRnY41Ro3N+3qqMPvX9QeV4iJnaVMBjeyNsAJA6bnd868CUUJVQ6NYkMZvFs6MfpNbzRjECDpDNcoJ5eY/Z1kAOJVHg1i9iBKr/0bT6EctemqGaKLsCLpfRMMXZj/naeSfUY2AoybA== 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 PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:16:46 +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.7784.016; Fri, 2 Aug 2024 09:16:46 +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 2/5] dt-bindings: usb: dwc3-imx8mp: add compatible string for imx95 Date: Fri, 2 Aug 2024 17:16:59 +0800 Message-Id: <20240802091702.2057294-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802091702.2057294-1-xu.yang_2@nxp.com> References: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: c2851f6d-2645-4c27-3348-08dcb2d3d52f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: xlhcR2i2+JCfsH+Zo74XCdYINm9ILUCK8yIdb4OS41OhlxeJme2uEb0yGY/Ws+LU9Ax5TEY9AwVJH13wiWrynEz9GJTe776e/WsVS9BBtn/0CJGavlzYgE/KA90y5l5Zgga847pgcS2kuE+oXXpcNipYkBrSRPFvWIaohXyNSt4IzulHvAUqFXMZsiUAZ2HBHZPyYFfef8swQLHfGsyqM50Y9gmn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Yi97Uww6wQ07nHXOno9yu8/M1rybknqYufpXbqet5A7208wb+kKZMYCg8mh2p+xrruJeOgr/qsh7s1AgnNVYSprlBOIgEJk7+HHhZuB+3PSMvWcfv5Swu2x70lZ+ubjRLTqZtos/XLlU= 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)(1800799024)(52116014)(376014)(366016)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vEQp/+oMJvSzWuAxDZkQTFlziYjpS/oKFX4wz1YnBUp98i7rb0+i/xmVPCjhn2PZHb5BdXKJh3dyyJSYZH13btv9pVW6yjJ2Ks+CZlardAopL+3QkuXqFIpHB7NpIasTy8QGgikay8aNPcC6lnI1lLPoTlcP3ZoV7CWIDM2hclo4iRWt7t0ykEe2tkA0FvpqBp7Q1L2Yym6g23O4aovNXUQns6nRhkIJRp0Eexsy4V0yjjQKPVGWclUB2rTw6ZWPoT7ZaQ+WUnzsDJ/sA7hIgfPdpjQQh+sQAJ4LIf/8V9iishoq0bIATP1OUfwVtZIu9MWM/d/QJzTzs/XDBu7VBz+kOaKJjQVJ/3bIGdQxGk1ANGih7dqQWepBBuSJX7/AELu686c5nhAfIEPKSgKMjygGpgmVU0yeebFwxWGrlLOt8HNuSHbgRBN2+WayYV3/Etj4IfpW1wikSapwxUS3iHDmKmtzkFpXs/5wiAEFcbAUU7GB1+Xt3fS6XyhuybrBiD7WfHqOeoiIUQJUGOMuS6OG3i+ltGiplF+9JweSrauyRPy8bGwRBJeeV9N6N40Hz7RAfQ4O4ZB82nwgV44HQt8Q92i4s2Hqax6eUtWThPaWBmrckfNAONgndC8i0a4i5Mryqq4bsZ8VukwlO8IgZ6314kQgyYC0UhGTx3xqtGeKW3O0EvRta3S1fPGe948GYuSSj9QuPpRWQTKcVE5MUpudSER4wCruIBGNRy5w+t13nfZq30EyWMHpaSJ+i83PQ4g8ifXP1DvIsGqq7nEf6W2KeyPgBEDI39+EwckuaBJqBcq5Vq37BSrOaeJvxih3iiJd6YKY3J0C6i9DNmnR8V0wQHhQtVWDJaxPOxVq3v6L/mhojwIcYxzE15hau5hxd4QgnD2WbgHHzXEhd7XhexphDcN/nbViwMb6GKH6KPRmQQ4tqOQ2gY4AMlAMf19uydQ7bV9U8dJ/cHlnK3uRpMQdJ3q47U1lsYit2401dO/0zcbDzbx1Uy11W2Z7UvqNNy9+55EPUzrJNPQmf3MgziokPb8mKAc/MJwNWdigX6bH+zDTn/nj5DyhZ7sRAAn0SBJZJnLFEZJN/uNzsL8af6uEYV9V2IS+BsP5Z+ODor3lARWJCP+zVXuYSoy2yzST3XjAUpxBfd1hc8kSWThEijA3GflYmvA/x6FEa7GaBs1/rkDWldE4/7UZwUMscsJbRFPrx8m60xPddAs+z4ORs5SyoNoVSz/1Oft1N123JzO2QabUJfCdZ1s7iC0tZdgKuco+edPtWKjseiejEZIzluYPeHEV+cVrU1ep4Lgg1LG0Y3H7ZKt9cTnDhHIYzvcVA6f0z4kJ1yjN/YerD6w2oU31vOaa9E+tDaKuPfyRjQnEs2PT6pFaxKkiTCofINsF7+SFcDikiRJysdhFN01j7TW461qWBLymFYzL/OKGAeh8g4SDGUPltnCfpSrD1JJiFcES6bIb+F2uah77mX4PYhH66M1teDP1qlfOot2DM3zIjUYsctultWSrhwO/nAahn8YFnxwKaobkJXzgk87Npl4Swr1W1zPpod/wW4d1e7EXbtZKCX9Lveq33/V0vDa/ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2851f6d-2645-4c27-3348-08dcb2d3d52f X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:16:46.7553 (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: aqATfMP43k97eSpUVYi+ELT/Si0+cVKI1HGKFxTFL3o3uIoHlJAZapbm2Mfz/ZFpElWg/BrFefBkSOKMiFvtTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 The i.MX95 is compatible with i.MX8MP's usb controller. This will add a compatible string "fsl,imx95-dwc3" for i.MX95. Signed-off-by: Xu Yang Acked-by: Krzysztof Kozlowski --- 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 Fri Aug 2 09:17:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 816485 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013056.outbound.protection.outlook.com [52.101.67.56]) (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 AD0DF1DAC4F; Fri, 2 Aug 2024 09:16:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590218; cv=fail; b=J9n360VQdlZO2JErY9pRCBmfNGXpGPvvgZCuGNshSjOEj4d6lVfYiLTIvQijB3LdayN9WcrNAFuCQNuD+8W2orevTm9ZteK2Yz4uGEgsIaoLhMLHQXx96YJSimt+Ytu8RqUX/Q4mT3bzCaTgy2csMM1eoQbEtdeHicQCeEb5RaI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590218; c=relaxed/simple; bh=+ecjUQ8gCYGws7GBwVXhCvUp8jvOEUz7p6E/ATp5nRg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=UOpAAuCZVTT0ulCq7L83wQwAUbvS5va3MmQmwSvHzeTtEAEOv9/FrtTDVhaTkFCHETAo9QsHOrbW0aTiT7guK8CxWDpmUpQz7oJkhZvZuy9agcCZg/CYysIgtmDP1Nq+LNopVJ/I1P5fQTv7smh52oknAfQ9BUmGeILeriEdzmA= 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=MurLZiPr; arc=fail smtp.client-ip=52.101.67.56 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="MurLZiPr" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aOr+w6WsBZ5nAG5trolWoTrUVrTby/UOjJsP/wBZ+MrVKe7qOlIj5tRH3tPsK7MVZ5lve3aRPxJsMgh2bZJRdmrXRIMw3p4oP+O+IVCgdvf8kiH63UQDbZ2yTzO9AzUAp3XVfwl2ZjEvnT4QpDlUh99heIH8PMbNmMKRIiQ9H06JyY2mr75oL804mtb/wugu6a2BjsNJB9pAByOHYeXWFM5/OSTlV8CBIfYqbADkqCrwtXEZ26YLPVJJyfrzz11IUFYmg2uH6YEzH7n5MYx4U24/yoharOhE6VO+cvNWulYtZzZrX8uOsM5ZJhI/jM9EGOsvW0bELl+zizJWH2ra1Q== 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=ip2bHsqjZX1Rl9vpaMBg1l2/rxhT8b1jIUsuj9HJrvY=; b=H7N+jIi3dNrCNNc0ESvMvO2TsutXWrNZmSL7kRn9teQkwL7Di2Xwy67tvkgSdfW87+IjMISEflVNHfq1IYQjVvm7BtlcUUcmIdkRRTXbjpIT3JRT5uTFm4s6HEhw6gpc4bITlGVA9MjdVBllzuWXMs1OtfOiKoUCTWaJXABekDlSqJtU2DJJPA1/pe84tBtWBASdUUrF1cOlm3YtDa/1bjptgHZ4tTEbi6mVk79yeNGibVdRniMrzHts25c/br17EANR7HMRdSP8iyPFLaZk1shbzl/Rb2yNo/Ip4kgYjH18cCjKZNWbRhUp8sHrwTRt0PocOIRwzvUB51KyYlOyAQ== 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=ip2bHsqjZX1Rl9vpaMBg1l2/rxhT8b1jIUsuj9HJrvY=; b=MurLZiPrBJEKX5Kluq5DAnrNjJN2hLwqUCKvJR1V7GoWUyg1Yi5xFcyMKYKJO7qIxcvVI803ptMdt+mg91vHeetkCKmZTfk7Xt3wf9vpAiwje66vCjykVUqp/lymVVC1zEbwGAUBesrP50SSxARWPQm2oHvTIwD6H6Y7AGYHLSZFSY3esf1rI6JVoDsVxuvKUx3rmR0wfQE2zKxZlIMKrCM3Ys9LBe2wxvQluoOBbXf4FyX4cbvub4Fnb7lisw1P9xWZ1/0dthZTdZoUCmfVDZTo6LmsV/sL4KykfCQ/2P8InxRG9NakU1PEhGQPyg/3uv/RNULett+0sgOf0NGgfw== 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 PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:16:52 +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.7784.016; Fri, 2 Aug 2024 09:16:52 +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 3/5] phy: fsl-imx8mq-usb: add tca function driver for imx95 Date: Fri, 2 Aug 2024 17:17:00 +0800 Message-Id: <20240802091702.2057294-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802091702.2057294-1-xu.yang_2@nxp.com> References: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e282605-8e7b-4317-9937-08dcb2d3d8d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: NLg73NX26NjrIlherJLWVV7YQKndeaT1I7TU54Ll5m4kApKVpKmNm8VeT3iZEc6EUA+yF00Ij7DLBjK05xKXHuitkTf+Hug8YihCz+csJi6ZcccO/d3WrX9ehyBut7tbcYQtkDHuJJpM0dj/gy/kW/hmDjVEz8iP2PMZBVFPEYARgJypfy9nT3RX0S3G15YavM4nlMZGEwoPR4KpUQYDsL/gHtYzBJQWPlopom7YsEKMzF/x8luDu6YWjRbDdvaGWEuqDPfQuMUqDyxqnmPJi/VcuGQW7VST89WTCQG31pYgOtb28yxUWeNys+TEXFsuokGJrKbv3XKEKif8fl0NMzFbWm9ZpSzCq6TANXL9HKLymjco7c++brfmMKdIf2L8b8i11M6JjNfnc11uaJcQlFmNlad4RXLsyiCIwfRvrnbvH+JUlPgObcoU0OvAKwT5mF8xlKjxfsjWYjGDZeX0aTewpyKujCQBpxkDaayy9pWEaSKUGy5UFL5iOOh8Ym80Y4NeLzxaVirHO7M8ViV7rsQi0S+PBu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ifBYHDZ9QcKxtteWl1IyQgPhuvg2hFjslnyYxIzndsIE72s9RBIphduTNTVNnxvVhQK68u2Hqzb++/skmvl8n8DhTzhfUaRfGf35tOj5xPyTrkxJ/PsZE20HoCa1eRJa5DPcO+7l0zFmygesYi883DUXjYtBn1cSPpdgyAN+t6oSFblaNQCS67l8tqT1EAQx0ie1uL8gllX+QyTOrpYBN8oU2laJGNxSwS1OoSEkMyQ6vjWtfEUHyOEzPHbi3BtvtW2j4XyyNel5D+M0EjpfXB3dKQ4qtsO82ijJwOgC6KZDzjHgd+bsONYzM0OagVFY6RVWICvoKCo36HVMmCVp0Kf6Qcbc6mEZvoGVOscocNogC6+m6eo6BYFxL7GIlwVU7LnAsvxhb8/xx1RGSF137d9ZnsHHemktiFElbtI9UCxDUKDGQnWiA1HFgIghLIQcBf95bwg52LMbY6GbAkY/P163dwPedI6aKUZxAU9ioAxNaujdVKKQMuhabwx1RYf9MX4KIzQ6tG5ptHmYT2WZ2R5+O3ubMV0Y/IxFFMtxZvrjK2kk0wz2yUN2iYGHdXh5vQ1pvPgZEkLXFTZ8+AGBB9J6VfMjtauv5Mwf X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e282605-8e7b-4317-9937-08dcb2d3d8d9 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:16:52.8494 (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: O93nkoD/LfeOojGk8UDyfZ98V52cfVzmZwS4q6J3l6Jk7kfDT3rIcfppAVdEw7e6mqZxfVC7GukbzR2UVJfQqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 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 --- drivers/phy/freescale/Kconfig | 1 + drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 238 +++++++++++++++++++++ 2 files changed, 239 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..18d00cec0665 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,171 @@ 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 int 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 -ENOMEM; + + tca->base = devm_platform_ioremap_resource(pdev, 1); + if (IS_ERR(tca->base)) + return PTR_ERR(tca->base); + + mutex_init(&tca->mutex); + + tca->orientation = TYPEC_ORIENTATION_NORMAL; + tca->sw = tca_blk_get_typec_switch(pdev, imx_phy); + imx_phy->tca = tca; + + return 0; +} + +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 +536,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 +583,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 +624,10 @@ 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") && + imx95_usb_phy_get_tca(pdev, imx_phy) < 0) + return dev_err_probe(dev, -ENODEV, "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 +635,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 Fri Aug 2 09:17:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 816615 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011058.outbound.protection.outlook.com [52.101.70.58]) (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 A930F1DB425; Fri, 2 Aug 2024 09:17:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590224; cv=fail; b=HffOoTkQZoaWKAk1zwvm28htnRt15nG709TrkKLUf9m4Y4zx4FTFH9OBfUGw8Iwq0zbUxQeH+E6x+2vxplLqEHB5/8YTZXhFrZl3/6WizOabM+tB4wfyRIPrvzwSPoSNINjnxR87InrfdoX3zUfNmRLQQ8/XEd7FbxdfsO85t50= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590224; c=relaxed/simple; bh=oCK88yLacbboYkqIou9X57y4TwE8iffHRf8vJyZPjlE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=b3IGGKggWIPTxtl4suKUAkZR2Vz6RLsvZw9pe4acWKCj8aER/FNe4kgkcXgeJCOFryZBPhJlBzRPMhGIlXFfXkDKFmVoi+Lxat5+9G/As4/Q7f3Mk6UCHE728fdaFYbTjfgoZ7NiVPr5K+pdmjnivbhGQIkUu3momfAV7esoIXo= 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=LrjccJzO; arc=fail smtp.client-ip=52.101.70.58 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="LrjccJzO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Zy0etvOorRqUHABeHwlT5PEj3u2Axx9uvxhugnvYbyNUPwYBqAWDfdYPqmGqeaMH1RhUZUi+Zv4r59OSBDsMF2lo9SkSR7Z1eEi8cwds9vbh+LImxqHMpy3mT+6EaMevUvnEcDy8p7F3rQV3Vsz/IOebu6yi0PahcDtQQsBKpktrmE7jFwoAFRFRkUnnQcv5w1A02pAurcGQtSB+XiMFJtweHN7Ynz2XXdg7nY2DUVMRJbjgkp0tPkbia//16Rkdy1WkTxawfdM1mTweZ+NBRuptlDI/t8Bh5NDw9K9TQKAIlUD0lOcuoFjdQuHGYSZLEC9bllPEXkJcK9c3PYEYGA== 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=GetUt9j2vTQNtzOknZQOPXcwmBWfKLOSEdb6wDca670=; b=ZPpBR+LUO0WMnd5wyfOSnGfeGy58EZFbRjTJHHxRA/RrqXrQA1MEHxTmPgtj/mGxbM5DcUPuo+s5XChsDibNVMR8rLMpJDykxAjgB5ZxxxTsiWzJrXfxmXKgJLbLrH8KVrlW0wE7OmGdl7zHn84OO5U1flhfuhg+OWwIhPnKTX6C6pCPyHKcntBV4XX5i0Cjl3EEJUUzs5zNgcBH0dMOG4nfqQ+zT2DrxSPlXtK7XrMLkyCNLMDbfHUrooHHKCSI4xfCnZBrpq/CD8RclPiYaCiAnXwLVE/gJdSrQl90LPtZovH37ruU11UzjuJ3IYxYMFdmXokdk3cORucZErYfJQ== 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=GetUt9j2vTQNtzOknZQOPXcwmBWfKLOSEdb6wDca670=; b=LrjccJzOZlaZHqR/c4e0TBrJn7jrcbzA3G9UWICZ+pCXDtJurE1zCKHYCvw9+JYTcdy+06Z5aPW4uXukChFf1kYPtW6ykRfyunIM2md9ARzSoMsvIdhfy9K7cmVy2UQGhLwGsiKaPAcpW869E6JzyftmGV0z/gvlYbVrxMaFYO41ydmIL6KzKIJ1ib+SLwK6rOoToFf69UvIlbQOZkFEsWb6xucAOCZVmRwN6iTZuXvx7+k77PTR/vOBpOPt7P/kauwh/sgPCIbMxf8nmx/ezW3krHMGNtfY4NFsK6T6nE12ohRPwi4/36/CUE6izjNxZ4Tlnnye9BvrrdmXHeTjvg== 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 PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:16:58 +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.7784.016; Fri, 2 Aug 2024 09:16:58 +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 4/5] arm64: dts: imx95: add usb3 related nodes Date: Fri, 2 Aug 2024 17:17:01 +0800 Message-Id: <20240802091702.2057294-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802091702.2057294-1-xu.yang_2@nxp.com> References: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: 9dc80803-d7df-4ddf-05ea-08dcb2d3dc7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: Q8qObAHEgWoODicF94CsFBKnxvqNIpI0jra5laZKDcRaQoqP8WuIWR0L/PEQnMT8ycNGbKYRQaNII/vczBDTYF2MSTPPGJ+fCOv91S726CZ8GOZqwC2CODvGeijq0L4eZcw+YfZZM7ve+r9Dk7/HVT0bS6bXeJdl8X4b+sdttoZxKstVJgMOSu9yzfVi3672F+1PSlyScjcLYFpatMNaFtY5Low9VNnmdQc/+i8J2vxbEBB66avmmJo0vhLoxlinR1f+KO/YzIs3zoRqOhWus24EfH0prlbjaBYanI8KOcYkdj18MrYj0PQSj4eiHzu/bpFb73tKZpyvpdrcREbf4aWuHofmQmKDco4XMiu3CY6W/HZZB2fQ0nA0jdR5awWOVnT2DvCjhWBAzz0zPvu3M97Ni6fwX5ZvUKyza3SFbBhM4fNp/80qrGfPKjJt0roQy1a1uhZQ8Qczt20kiJH8RbN6lMzVy0BwN7DGQpUlyfsNaHS9IYc+ipPCrn7cNpmzdpi7nmG1fB24hs1d+dcAHuiVRR0znGQDx1pi6WsIL1pQFYLKtR6FiQdO+fam7WoFV/l9TEKZYqcOSjEsCkAAWvyJ2L2H8XVbIOWSX9NamgFwvosJD45tlkjuBnID3GDSJEDgjSEMZNrJhAuIPiELGdlA7n8EH5EFjRLPhsO1U7FGvCFV1IJPU/2o0N89wXypdXTyL23blMDV5knVDnNY05b4K0IkKtUKHChORvr7K881r92vLVuRBhyqz8r7MZKeWAkQG5i3uEgjo0hTPJnr+J2C6icsVLdLPoGUWGkzaUvmtEMNj6KQ7iwjsD/7CVOIZBtt+7LqFQdSrcNfJE547rrNG590Vqjk7dBXWTviG17TIvkoB6a0YnfMqyK5eeL1kY631jbt8ienj31X2IR24VIwISPyLLkRrkaQYUOrUegwedaGpr/WchPeVbnB6J2iZbfgUwX/GB0oZqZY0x4+OkKSiqE6HSSmBq9YyTU+BgOH6/B10el+I3zGZc7r37WACTxhD92UGqp7KYJxafbAorC9BTVgFSqtzSTPZ/Wp1yoeFVLatZ9KKXkaUPwbBRLrIFTu8upu2jFFRIxdKX/Wvp3nEfK86nvruAcq6TySRy1sQBTIk7EBoNRSbQF3ielrNrIFdqulfgpn70SPgK1sFfYgQeogmu9v5czxKKPyX2PH9aB3J458aQ2rWtB2cXDc9O8TfbyUFh2+Cad9ubcJ9l7CHTmWEVIX/ro5k5Zlxh6A8obnEP3luK0sPwn88hBMLfeUOElac9NNWzgn/UIhqHSW1pgH70kIyEwYgXQON0RmKX1X5z3NCwytuVEXXUSisZuN+T5gZMjWfSoe63c7XAqXw9DZp6w+NOQxtzTBE0lQ9uTFcZb9laEVCz9VS1mCkUfraSjYM9h004xCxQcO+XuC4T+1TZGzizHjYCTKE10= 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)(1800799024)(52116014)(376014)(366016)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-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8pS39GSlmn0f8HuAXCy/ANuMf8V/MeRiqPtSJveLQd01wF30aqJyeaz4Z4zONn5VLco/mkl+6XEDDWsTYC4jgfLDL8e1w6ylS+DGJOxX/szbyjRZcBcbbtn/vASlndR6dnvsYPCVyFPjlEFg3F5TE99GdhpkyzUrdDVpXo5+sra30WOgmkG0PySo03k+VAew+rgYH2NICgAgGW/RTr+WDf4c2tERt4a0QqnW7I6pe0mmQKVHvN10D8HVjOkzwU+RHtbSILVJeFX+m1vG5qywC4Ji7xNthGp6psIfFJB/ok+f483Ivw7X6p2L7MZhC8qlDGCA6e4J2IIVUdgyY85ql4ktRTCHLShm8tR4J5LHSuAsbYfjiDRPMMIQ+HIheD3ddwpyIO/io7K3dhJ05J47uW+/SdWynwCyFDnzp0TVXwPV9WGSn1lLRulOPyBglXCcKOBxILk9vpAoNdK7bgRSlEl5LCkjqG7McvXEv88M/XQt/xduPjRLlRxaKkaKwpBN2ysMCeaRfJlO3hnYvEdW76QmwuUL5gkXV+vGXkqO57XF5DhXwkNSyIy3gnqBV2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9dc80803-d7df-4ddf-05ea-08dcb2d3dc7b X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:16:58.8645 (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: +4rqxLor/s1j81QOWCxVY1GeXVgVggWK2io3S4l915U8arn1npOZrhbO/PcrFeAS2BJxlDgnGKkleHT4TiQtuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 Add usb3 phy and controller nodes for imx95. Signed-off-by: Xu Yang --- 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 Fri Aug 2 09:17:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 816484 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011055.outbound.protection.outlook.com [52.101.70.55]) (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 9023E1DAC58; Fri, 2 Aug 2024 09:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590229; cv=fail; b=T9Ngb0rDKpbxoaJlc+P+RPvkTNZzg3u2P3l6a0DZxe3Jgix0jvt1zLkSIoGN6HWmloCXjV8GZajX7ch6FHr/vykkokwfMSUOyvA8hIhMrH71WmkzhZH5O2GIIg7ZyvCVqFDn8NqiQje0l4gqb0SisBDuBoUbhYxq5045J5sxlCg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590229; c=relaxed/simple; bh=j5Jaza2tH0AeV30rfjXbyqUPEcApwqQaJupV8G1NTxI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=kqnmBFsDNNTwvdHb4wRilwix46HjojjY7dmXUnexmUgrKDeOLvmyXZ9BZGsENJQ0Sdh+TlviaoR+JE/8ARpiaPqzmaJhfvIbFsAYVXHUx5Ql8NhM8nMzILW8CfDHuuIt4gwJ6ZYYXF9j4C0hXEQ4hymJJFmQhFJb/yGvXWHAbjs= 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=RkvCEmK8; arc=fail smtp.client-ip=52.101.70.55 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="RkvCEmK8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kB11mWamGc0dQIsGDYZIhDx3JfvYg84tPg+rGGZ7cdiM5Wih9XxIoAwov5n4pG+/K959Li2Cl1KLuVKeCFK4yoVkKUaOSqmewrfU3HvyzKfhJgO9s0bsOwLndDIsDrkm9w55tF05Ji1jqN6V2aaaBcMIvRMzwYpiK9hfl+6fwL46Ei+hZIF6wXApwcIU2PDpWcpCIP44OTDKUfY257hi2Uv/uZoDv1y57gxTY203TWPSRRLzbfbCfUxVb8NGRbsBiVduT0aPvhOAuhwHfYZtdRYEFiHkZHfAqDFWgBnNRzx9a6DpC75xc4GgcUDV0Qev7UlPYr+3+HzNFftKLZ/5Lw== 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=rNddA1rkEiftGjcD3zl/m3iFopu9UlG+2gGTplY2Qqs=; b=FyGv4emAQi8/hAEtIrxlIv2vMQk6q/BwRO3up87R3/v0g7jg5IcLkzJRCWjJ57gtRk27tj14dGGMFBZgSvRAsL4geHma04ffGwadWNMZQzGwLRzS6K8mbbIJ3rJmMXEQqOu6sPgFrzLywxVTxSkCr1Y0MQAWnLKVfA99Lg88RqLOIWduqMMic0TKxH+NehpIJopYch0l71rHdqUT5v9j30k/ls1v9DIw/TCes1j2k/vLj2rIgRyGnAaNiNe36HNKQqmiiMNi3hgEuZFzuD1xOyz6LqlVsf7E2HBDx9tb3GKnXRdQGO8bs/JlPeXzyvYwiyLJMT4a4FMlFn5UAz9lDw== 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=rNddA1rkEiftGjcD3zl/m3iFopu9UlG+2gGTplY2Qqs=; b=RkvCEmK81DXlVPhvYoBk0+l6mGnSJ++pwGx6Im9Cw1tMko5rpXNfy3iquHwB+JECpPqqgIYqM15HyNTRru87kPSmKI7y++u+3ECPNDz4T+uIS62eIpHfhOuiKqYxMw5AHMiLWwEulsv2w5mfh4UDClr9nLn3gZOc3nnXXZM8KfF42G4oGFRaqsJ1rTSz4XGDbxFdvtfys2yu3e2qHcPHr2kpoet3oWS+YCnXlrDh3/c9AZd8cqll+fOHn6Td5gsEik+PTKvxqq7bhO18pxgulK8xliYm4rmUELV56gzTMKhR9qJ1PZhw39g/sy1nbPoBqo31R7P3l8GBPrWASYt1pQ== 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 PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:17:05 +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.7784.016; Fri, 2 Aug 2024 09:17:05 +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 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Fri, 2 Aug 2024 17:17:02 +0800 Message-Id: <20240802091702.2057294-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802091702.2057294-1-xu.yang_2@nxp.com> References: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c90ebb1-1178-4e09-5e84-08dcb2d3e017 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: IdHIFA63FyLwnybH7JKS7pDxV2zD+42FY8YRYoIRUFolRbvXeTmsp3IZ7/XIbj/GgXhQV+gnUE4jmEuayRxSrfSxLCzNEn8tdePUZqZnR4yQix78zKwccdDPWpYc2qQ1EA0XvMbFApdPIYqpQMh3+X/o2gBfPswxxzpzJw1zp5Etm6BCq8gU0Bztl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kE0OkyUDMeMQ0zc4WOOeNvi7lproFYf/uphSfLlAoxc5PnM+UppBqKX0tGgcd9zTTDu9jPxaXdTH1BKQMTsSS6vI+0ueGoNPJ4s9fm4kFuB7yot62rrwWIaVZg2ioPzL8Wq9cv0vxUkCA2pTWJap/yoElHVFlKQEubN91cZc= 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)(1800799024)(52116014)(376014)(366016)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FgCct+j/PjviZGvpBSwnwSoS37wKY7EzfNQPxna3fXaYTT063DOpj6YUguEsYxevImyaJy+ZrSD6DSk1sWjUJ2LPCzMY1TF/xyxSPOr4P+rHOamWEm9RMEcmL4xNv8WF7KAQYwwi3/V0t3HyAykb1h0Na1mF2jyvKOjmWWYeqPye73k/QjoOUe8B8Scec+NjVvkDxFUjU/Ly+jOyK8HVeWpNWgWDrhgySX3+rDdMKsDOALPOIInSRakbOXsliCf70+S1En25ZhaQRiPzYoGxVXtL/on/rvdbHjWVWunDctw1AwKIfL0VcxIb0FNNk/noVxaQAZ28Bm9jr4lI9r4QEUnfmval21VE0W7MZlpL8iPPe3XAjBtciw7cXEjLvfLGwwFOPE9pA91fLt98hhQwVN6mjtVGiXFbxfO8HAOT/nYdn8danmtKxsLYduziXokt2V4wSKqUplAdcNrT23/56H1fQ9AAZL+pWJ+M4ptSWMnwDzt9GpbJ+dtOybCyVYc1mib9V2pgEwJ34OzG020SD8ulyuenbDcguDFJRXxVqPndtl+jykIS3u9T7PW2TM9BbaiBK+SCfOZqbHFr1xVwcI3CRtYqTZm1Y/6/SWNRE3BHe+qahix/Y0sLAtqeILut/OLrL2HBNWhh6308fVW9YvtijR6qSpOfhs7KjWyjXaIX2XWZ2XbvzABEQwM/flYrSGG41n++WmC6vrREDNyMHMOgdprMmrFum369UufW/6tuoIOmJOUhQr5SwZLAa8RZER1rFQz5VX9+Vom2efHVoUUoUlOa7jWjIQDJAamrNeuJ4kaKgJ4EY6IVtmH0FWKcPpuDJwNuBZu8qKEhs4j0YvBnnCkehztkc0T7Oiuhay/EpLZJdZCL+hKnEMInkP5L0AQm2uLzyURMfEKxhvIkhJmDjJctH3CsEK97hYcPibx+0sXlckS2jeUuGCMG8mBh3LQPIxcgN/iyNChr3NkvKjgZKLdhHJmyT0mF6mys6sntsy8eA7MbikYb3n02yINuFIAa8x6ifwgA1gij0x4ePBg16EDm/smcTvxu25uvbW4T46jVdkyMnJ5kb3yUG8a0HkET6hu67O7S1Kj4DE1LomsRo9XdGnb//enN6g57pDzDBnhAzZRQdRJvBwErO4kT+S3kZTKBk7ImgHbZaCgFvPFIcp9zttrE2YRl16KxQNpgqdA05XEH23jsrOoh2FlMtwh8diYM8ojETEnA+u4Oc+P0xLIf3NnYYQZjiTYU7rGGItCCGDOtyH4sECiGDBi3c/g8zYz5bGgW1HvUWF3cdxN2rh+2QTjyvFAkw4ewL3vh6frJ241SKqBhkZ6DAhv7k5nkaZS4QtWZgGGQddJY+g1EHzKjHHrcci9vHdHGyPyOgl5SKHBLaOmmS4pDPV1QdTivgpLo88Zos7tws3blWNEjpD7T8p34oxZGNkvTKnV6DPjq5TAfiB9DYKrvzkxWpprzX20Ef/2QA/RVW9UZHzUx0NJaVTXpEaQ5+EW+I/20d2hKCBdsqG20Se4q6HgqJs8OdOiBNIviPLCNXG30V/AMfyRywe4S+IRUDEKS3oVMW7MFQqn1xlEXI+6Odu5y X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c90ebb1-1178-4e09-5e84-08dcb2d3e017 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:17:05.0009 (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: n34QnvbP5Xqkkrd593y7F/JX7l8EKq+u+49sSyS08Y/wknM0uhZkdOKVehuELcNfT78SYrDkU/EF/907aRtU5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 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 --- .../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