From patchwork Mon Aug 26 07:08:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13777274 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2065.outbound.protection.outlook.com [40.107.104.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 4260877111 for ; Mon, 26 Aug 2024 07:08:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724656109; cv=fail; b=KJQo78PsRx6Q7t+ULP4IIJ125dzb9g8OfZofdIbAKg+/+r8NSvRnzto+Weh0sMl1EoNmBjlW0HND/ETM79E/QLZ6pFxbBXnyAAr2JtusA+jXYGZsl84fz5psblTXJqIhtdOGbsgQkYgENPQYfGaHqOe9S6z91VLuEqj/tKy2n7w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724656109; c=relaxed/simple; bh=ihJJFoCtwFInmHag+Ff+A0FUV9NB8ya7pIPhIclteKI=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=C9ettMHONczP8gCa8cEe5pJX3xVRGmKbBjv9cRrvkwm4DB5ajQ4+TTuJC4pBjNKUTz6aeiNmw/Mu2eV63jU41h3SxjvYUr2jUokUdXUIyavFS7gM0DKMWfDp6P8AP6ueqt7GvzhrGUmnAOrQiIjqDwLRDcZpJy6LWu2djpsbQyo= 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=My7PuXyG; arc=fail smtp.client-ip=40.107.104.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="My7PuXyG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X+AwlQbcJ4wGF/yVrC+MeHwGXgVg2yZKSQG+LnaIxEcNFrhGp494tMIGqUrWwLu/A4ZeGOXEDgCLEQygsUuVwbSArnaO/f3fon397/u0oTpww7012wfK2kmKrPBMX9PPAO8THFPCEpKqa95bWORctz/oJzOUCECm6zYFdkzvVv6W6Yw+vA40trasPlv6RViFt5i59MvNJ8UfeirgNKue/Sjz+AQHO2BCZeU45Uu+pe38j9PiO94PLbvl99VHD8iPjlzuvNy9NbXjyXFgPvbrdF4Loo7q0lnJkyFDa1LBh9Fexnkb4WXH9tVAyKaMfpmKyT/9yn8GVhp9exYHu+w3Ug== 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=jUvyS6wBHOdfXUbJ91I/zXi40m/hwyVSSzOM1+9oYwc=; b=wUk/27EHWdskmAV+iGY7Ypgr45LZkIG8tR6WifHOGAyyelewPj1AEX/x3MECdpT0DMhuQ1RIoAG0A8ivBJ99xpYTwpGBA7DouR47GSotpyaMU/7hReb9BPhq/9LgHTdqyAWcQgJWFS8Eoc7f+515jJY/ULkSZjbXHQoI40LNp0sW3xABPEi+Rl9Co+MWzlP0OSTd7zDzdrzDd4taAkH/tGs+OVWB/bu/CTNp0MA56T75BrXpp9EZUnUKPUrP6toFXqFStZ/YIyJ7Gq8ysdMEpwWTIBOaLKuxh+SVwxgETXOkkSgjbKuYed9S9xDowB1irp5/JiIkX8VFEV1tgODV+w== 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=jUvyS6wBHOdfXUbJ91I/zXi40m/hwyVSSzOM1+9oYwc=; b=My7PuXyGlZBL5/ZY0CGXXDlkm5/0bUt+TEbJ4V+mio+MTq6emMCu54wW3XtWMbi8OBjndv7xK/W8ie6foXzXtAeik+i7uy2nKT7kBUllDcsLh29UVCh4ebhAdhC+Cd/6NWFQu1KfXkYaEpXvwNGu8FobQ3BcbzKELTdEOR1Q5dOUtO0Zp7VuYEYQMVWPwT0s5K/0M6vdt/D2m8YhmyveSMyezJ/JcGRHIdgO44rkjF1VDLc0gJHb3oBwfy7iKvwOuupZoLa+3iICcuZFfqkzvTWXhB/aRZfTd4gVpypaPAxGs4mj+QjhNB4E7h7+LVZBUC9D1+f4BXLLd1R4Yp3ojA== 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 PA4PR04MB9637.eurprd04.prod.outlook.com (2603:10a6:102:272::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 07:08:23 +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.7897.021; Mon, 26 Aug 2024 07:08:23 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v3 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Mon, 26 Aug 2024 15:08:50 +0800 Message-Id: <20240826070854.1948347-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR01CA0194.apcprd01.prod.exchangelabs.com (2603:1096:4:189::22) 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_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 38f988ac-86e0-4e3e-9136-08dcc59ddfd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: TW1cewbFOa45xaFBQJPneUij4yL8MKdX3R0Qk1khJW6VSbBWQVSiNpq13AqUo9ULuOcs/aHrzMb2wAzStsV+UCP9dr3k/+XomGH0d6BnWaHSaXzlJACcbbMunJrFQqqWvcS7Pe/7VAc1BX3cDs3mte4eW6uIHeMsHvkkZGE2wC05C+g8JGoTUkoUzHJ5jsfklFGVNyfUxnt5gYVc9ZVFIufTR6JEB/CzTgaOlIkNea28Zj2mVJbk6lkKY5aUsAX8CUxUEtaZh1+jcxOW6LqPyrzxTtfN9Z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D0QRS9cZOULLWgxnQ6vUhkkAUVWJGtQXwYjS9FP3XYqkv264vpKEwJqIQJ3c7ak9n/gkj/kVrO/H+sVRi72U= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f7rbPtp83u4/oS5ILNjCpS9Oq+sLUJ1KvUZ3Awu3DxEQ6Z75eCzwVMM66ik9iXBTTbfFnZDdUbK7PkieWUa22efQDJIeIKWrSd10JgWTWpFqczVDCSKAmVKaPXDsWXcI1Ly4erMM5naTJdtsLzb9Ecr+CWNwnDf7HFrBbHnOh3K98KKzomDRYgmHaBqQspvxeqD2ePg5biD45lF2TcLINtzZXSOTKSMOwC23bqsSvRwARFjaDXKnhlESzH9ppGgx1wrtcVYqz5q+D6oYYAlJ9AUbkGxO2DTeORQJWgR7Jh8JALOdFWYNJd0tzg2WRMT9A+UDnK/bjQNQGvAIDkgrDMFwWb3JDu5/vu8iauRD8s6GdKj1T8rg8+Z8K424KYY8QaPJW7eHvCmkBXhemgCS+YaNGaObakTAkETRZgwetw6zmIUXmq0IxrodsA5xWFB0xZZIZ0nnDWOw0AlpQerD8ILtYfKtfFIcde8c1cVGGccuPYKUOqLQjEEsu66+46GSPJffjEB89kl36p7XHe9CWQSNS7gjGK/2j4ONaGAnctFESE9awizclIastQQFBCBPW4aTzV9T3pwOICIPFk0ahgmjYO6Xs7QmZ5gIibHbZDpWf9v3S6IrPElvrgOuRpxN+ayxEcG0kBsKBrKvB06UaD/WVwbPDOikd8e+10jdW+5KEcRrndUGU7kiFY9vUZ7IruTMTPfCWVBfyW25CXBw6n1J5qtuxhdReYGUwyhmPvbtRPyOhtURQxc/dqiHVV/OlLUNwKpOWrw+W/qLVQPZt7Bk4/rjbQ7GNeXjSNcGahnwLbyjbcbdkCjJLxun7azTKsUnpewL/SVe5YrOfvVXJOQgXADXQ6AGYBUDBLQOku5zUzq8isW/vXbhBURFtoGe6nnSWe61rhWWSBMnKDYHest3rnJnNN6eEKYs8fKwX9jx8D+a0qDejZkhXVZmdRIQKQdikkoYvMJYAZ8lLYafu5fghlWPdk5SDxo6ysF6FcZhXUEFJmsDtJU0x1WSgtHHTWtqF18i8dPrxGELFzYj7ZKzi0GExE0TI8tUItRtzT60ciVTxHCKRuxHLvfRT5pCe3wnXYTTm35j4rtbopX6FPetkSwNCw2IjsHF0JxANt9M/ts8gwY4pvGc1uIO9ftQpwzMLA4cb0hse3s7CBXuoHh5Y/GvvJReDx3eSUZBDVimSP55yaP+AqP9NhBjkRFnkzdpkg3YtwarQ/n3IUzmByNmvKqaDPoD5nXHRwrlwLfmqy4PhKnhOeALkvnlCIIZlnqMbo8ssCmUhoVbkQGuTzGPJuvS39Af2MiHSzcx9TbX3BBisHpe7qKceyT5KXU0Rg5Sk5CDgh88R6F/LpUGahY/yfs3YoTY6hPUkJ6uNSaa0czRDClnKT0bbxrnYlHwwZWN/sSEJlR7cQJzZ6K5UNMmOBlGDwGm92WxghRhIhBCK6mO43rz5/9HW4gqI6tLecaEOSTMD0WUr7BLJ9+FbmD7G1nD5W9OrmKi8fDAem/qTC98r0x3iEsPCg/96DotLcXwgK96GkU52aLNNUQZewSJQiigM+J6iXZ0DV5ryOSlSdloDN9Z3j4bSTQeEVYZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38f988ac-86e0-4e3e-9136-08dcc59ddfd3 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 07:08:23.8032 (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: Orn7UkYb32VnhReibHq8x5gi4kTRB+DJ9xhLJJ0TLps7RDPq8YaKfm/SavXTU9HM8BBjoTI5yeh+X630uvKGRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 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 --- .../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: - |