From patchwork Tue Aug 6 05:06:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20CACC3DA64 for ; Tue, 6 Aug 2024 05:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Q/dPPKQWErtJ5eP+42tTIwEytUkrB53Y/g84VB8dN/8=; b=bphbKvwgxDEl1UuMWgjwEXj+4v OMHweJwQElP3z8vLzuVVWJkoKkHJIjGSK0HxjVvofBTyit6SNQSpW7sZLi1+dEpXTfjPm3d/IWlse rAtP9quT4JRWuj9BnbymoUveXncP8bCNXoP5+w+NXLQzZy7jRzrO21wMyMTI5KhkUIzD9Zni9tYJ5 ny1AxfsFC1Zgy5PamKtkNlFIrXQTCy1tEPOyTEgkacsKahkMHPw8NBS7RSt2lrql7qgo6wCK1w5mF ismtoq4cyVjwHL8W+1d/RDNFuRONIEYW0uPfHIXqkC5WHU4WJlJ4tSuW3s9Qt9KA/iaopVT4F6H2r ET1lkv9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCPU-00000000Xn2-2JJB; Tue, 06 Aug 2024 05:07:00 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCOx-00000000XeU-27Ny; Tue, 06 Aug 2024 05:06:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KdXXFmOCIRJcUUdncoauteTJdbC2I7WvtIF22Xh80P3lG+lCJsL4wagZU1eoIBv3BZRwHmsWnZs+s1gTV7pUKQK4EivtY4odldmgcYI6PRj5goJZKBHFP1OIvtwlzUcMahLWFsmMUb/XM2T8pmVmk26CKgjzVwLau02w8P7ySQqBztoNHeFbLIUzUnnoN2QyJsjggYhpYF4PtX/4RKsLzSI1bXBdcCUIvAEco4ojN7/3n1h51YNc3LLyHkECRmxjJkKgvW48gLcR1/b5Q6xEyLsEXq7gHMQtvLni8QF89mkn9GvQDyW+uISROaZgn7MyzlsIIH5uwUm9+8bpfgUZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q/dPPKQWErtJ5eP+42tTIwEytUkrB53Y/g84VB8dN/8=; b=b9GVuN6U0saTg+DnO5n7kovGduVxoYlHwhQGgR5/0GwmwZGpchDsz2jo/rKQHZcD+2dmyRP4zpFyErhN2Z0Z6bFcEboZwY1LFFBsjI9bWfzv/zZ6yie1OupdmHkVDMU+i0AwiUbJQ2qJeIvnjKQkbtJnpx1DE+VjaaHLNZxZihCK+DYA5i0gUC0WSDJoDoxLdEj9aH9I4YluL1n+vsofcdi0RtKolXivVVccqHbQabtvZCc9B4+6y4Sr6tZEQwBTTpadDGWoIIz/HxTyBntSAGtkn/blz1wKBB49u8b+hnMIXPkXHndZFfBmZTjXS/WjUzRXo1JZb7gDQYkj5kLlxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q/dPPKQWErtJ5eP+42tTIwEytUkrB53Y/g84VB8dN/8=; b=le9O++9h1iwLyh7t8yTOpnweUDtAX317h220wymLd2KJ5UNjSZWgM+VpSri62poIc4b2Y009yAc2WuShIbe/F6leQLzVK7c9WfqpqIVczAmNgLcw3gnezLwj5iPkGBIjKjWoOWpcp5ozMn6u6QTqj+bfngG8PQTwFGsnI2lEYU6D98qiS1ydW7g2O+Yi6ympm3WHB7iE6tcZ8LqeWtqiVbuxtyiwXHzpaKjvcMLnz3c6NvNlC1rW4lAd8l8joWrsHp9GgyabfdCupu7NsaOSA0g9B0OrRH4Ldj3vcG4VZzsje62mSHO2vHpOGHpMwKpY7lANMJf7J1bDwJHK6u/JUg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:17 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 05:06:16 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Tue, 6 Aug 2024 13:06:35 +0800 Message-Id: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f34e5af-feb8-4991-7a86-08dcb5d58059 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: AuyFf8QnFic4FOA+8+TEQalz9W3E1UfWZuzu+MbCLCNs1fnkeIkpZsUHp4xadfIFF1TNeOh/o6UiZXYwdKEzgHBa+QCbqGsAcdLdxVNiB0q/RwXYkAMsOGgXcls91u5RqSDxFF1HQkv/+UgMARgGtJnfDpF+g7Y9IZL8wGUIzb5/9l+fyVj0Y0GgU/BOqiCeoekExNUcjPfFilA0d8/pG3Xk0xxSD8jbftGnKYvtTZQYe04A3RfVIGuv7jJ22XMvQk/dVF1yXfpYtSlpAqBbagBNjFKSQtSxnC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gDJogUINItYUuPpJ/zXeXIfYg2SYbNMrqoOIyah0PG2PiLzgU53aeioJZ3oOWlwsmXx5nUGzUSQErR1zBxiQmfaR+c= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(52116014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vEIdAEeO9GcuUbbofES8KC+TIpfPpQFU8ZsVEwCGtYFyVrmJvr8nJkVHhMjsXJ5rI1CIcDbQeRn7ZVpA5bXaXXHoOtA8bM1ulZF0Al3g41Bk9JznS1VGwGewVoGePL+dciWCzuadKz280nUoHsEDnKYKxpQVMp/k8LJcwm43i2+7MRERCxH2nWHiDi67zr4K8lnvuLJjY9SnRR82FF1/Zru7wtSmclEdPcB8b7oln5wDLtBdQuFZ9ZtwK+rR/z577KX5FmJhcfs3x+UpG6yh3Fu8bBrY0r7CblV2zcCnKDqCtMHw4j6UkkQgYx+6DgHAh0DfpdJUSFjmmcwd0fER85u35M4E6kwfHrKBuXP1cnNAsqN5qjOs83IvZx+E6wf9j7R0kbdiBAQutHYVgWEOhmqbzwGCNisbq2gfmQDpRqO6C812Rin0ztAPysN3cKxaTazb1yh5wjkTQX3tYaLcmTtsPr4AjqhHP/5RXg0czBtBf59Yin+V2C2NNL/kIXOOq8VxV381qek5FfoRpsbUAmC3NDJUhPXW99Yw/Zw1Y8UTJS+VkMtZKuK5xMcdZ7pcyreAbwlLl+TNTcOzr5hfdvAAvf3U8LX7zpA8iCjpEFwryuqWVotl8+mXJypYqu2x7LK0KHMs87XO1LCanAtDVxoxS+xl2wHVzH6G2jdUM52MtFGreqnb4yUeDsAgH8JDI52od623ZZoq1AIiijzkCfEuDubMxCK4PPbV/DKmlTiNIgKKdIjgapqDeZE+aQ/T74ayzOxne4aTRDjvg0EEVtFNaqhUrztr39iTEY32F6y/zdg+Ec7Ld95bvVMdVNfXMFjO9i3NJxMHkNau9Op9gtijGVYoMSQqpEaF9Mn9HoNKP1BuoyUyntskVuRvNtDUcC57bRm7j78WFW6vF/DtZzRSI8yBJ1st7KSGRufRe9Yeq6aQz9zsWmsMfi8Qhr4xBxzE77dWZV2yyIBnBbpvAt+Lq/rQ4SrBwCeNJHoF7EZ5mNwJOsgkTEf5tAn+BMi9FKEQKpebQXVisli4fkJHNmYcU0sBWuvU8Ks727S5VL78orxjK+StIPgHVqbHvxi/ddZO3d37iQI7ae3zq2bHlukHsKHwd305kkfSqw5A271u3KgCt0ln/z1TtmkWEZaFZO/cr0r/ojoHw4DL5ZClFPAwGtfqFz65aVErprxddEVly/Fji0M7Fg5Jy7+wqiElUAR4v5F29dTyIAde1UQ7BogrSB7khNChXbM2qKHWbi78pK7PlFe9VFXADHTzDwcnGaP1RvVWbT6tVMXer4TeJFnWdNMfwPDJNEfzF2a3WOiYifQljry0XxSl158FQ73o6f0nBDkwJnrClFf4s6t5u7IFTv3x03H8xWiycKgysSK7uaQGsp7+pdqFDc9ROpvjKI79kFkBO9vc6Go/xfQBOwCwlpXgD28zoBxi1qbX2m3dggvV0DBkaAgSFsuddOlBCroRHZyz/epCsggl/jS3EFWxdW5VDqJQgcFR4Y1m19a+Pel5e6R6EsjR7KaYwMG2GTzzYfszX/ybTQvwFqM5jn2THI6LO0qxZ9rAsT5SacFwLUncH3QkEs+ZjIjniTU7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f34e5af-feb8-4991-7a86-08dcb5d58059 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:16.8707 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MC93k9JQ9IwRgru0gO3GI679woK/cMcAefFMmyXV5t+vfFq2mOH5ljJzKPzg/+a3Yffdl1yWGIpyHD7CBorrjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220627_577075_3C5C828D X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The usb phy in i.MX95 is compatible with i.MX8MP's, this will add a compatible "fsl,imx95-usb-phy" for i.MX95. Also change reg maxItems to 2 since i.MX95 needs another regmap to control Type-C Assist (TCA) block. Since i.MX95 usb phy is able to switch SS lanes, this will also add orientation-switch and port property to the file. Signed-off-by: Xu Yang Reviewed-by: Krzysztof Kozlowski --- Changes in v2: - replace minItems with description in reg property - remove orientation-switch and port - refer to usb-switch.yaml - use unevaluatedProperties --- .../bindings/phy/fsl,imx8mq-usb-phy.yaml | 42 ++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml index dc3a3f709fea..6d6d211883ae 100644 --- a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml +++ b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml @@ -11,12 +11,17 @@ maintainers: properties: compatible: - enum: - - fsl,imx8mq-usb-phy - - fsl,imx8mp-usb-phy + oneOf: + - enum: + - fsl,imx8mq-usb-phy + - fsl,imx8mp-usb-phy + - items: + - const: fsl,imx95-usb-phy + - const: fsl,imx8mp-usb-phy reg: - maxItems: 1 + minItems: 1 + maxItems: 2 "#phy-cells": const: 0 @@ -89,7 +94,34 @@ required: - clocks - clock-names -additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-usb-phy + then: + properties: + reg: + items: + - description: USB PHY Control range + - description: USB PHY TCA Block range + else: + properties: + reg: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-usb-phy + then: + $ref: /schemas/usb/usb-switch.yaml# + +unevaluatedProperties: false examples: - |