From patchwork Tue Sep 10 07:03: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: 13798015 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 4252CECE564 for ; Tue, 10 Sep 2024 07:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=MiL8VW8MPJERDeKq79i41aoh6/qspvGTKbTlcYfm+iM=; b=ZXZJrQYQNnXQsO nHru//EtOt8Stb7w3V0HC647FaLI7F5qomeYSMM5YRZgdpGswTAN0Nbu7JTTBLLvSJDO3d9yFRBxf t/ckmE6Ujy98zbIf5W/FRT54tVgPixD8n+aXDF0FYy4zeKlXTkh4hlHPsUmCDdMvJ5LIO9XCjsa6Q HWZFuknQB4VjXZmu1/kcegH8A5ceSAonHpU8p2VbVxjNvK6IrMRwOBs9tAGTa8KIxlyavAtKPs/iw LGgdm5wqNIRxZiJPXijUb9UTHhnsbTiHIKz6EVq48xzqYrfmaLsk0yxtWMvjjL4q139JE0Rj8YPz1 jiRkNsHPS4jhU3UcJmsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snuuE-00000004Wuq-3qsS; Tue, 10 Sep 2024 07:03:18 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snuuC-00000004Wu4-2XMY; Tue, 10 Sep 2024 07:03:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SZ6PWSDEv+PoBTmA4EkLVZPvr4grIHGmPn949VaaZINQiiIzLHGIGPp1oB5nDi6uv0NNi88Ae41eeL1yQNzDLkDNRk1+BrCRs5KTx9zWfepWWE4jM8MBU9ATzQH1F0C3t/6G4s5Iz+hV53I1uF+G33AF9jz0rNwYtzAf+6BC0/devWKwHC7uazfZ49uEWXyC6FYOupQ7kL6fLFaA1f69L5iSvxhF9aqqGaFS2dsadukPzXFht6Gdz+yX+Br6BC7OspRXwJX/XDjqX0rhJpleX/Y/BVBn3WUw0E1JnAb072bjoFmr4n7ksq+se+Pit25U2Qvo371nZGNqu2bIOJT+Rg== 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=oL/W2dv0JiR6ixWs28Px+WcW0LjLoUyM/xiiZG2pqxw=; b=ArLB9ihUV04avGriToxGsJJWRhc+PBNnC2vzYo7JZkBDwG/u660g77bEDi3EMGDiRcJR6jSxJl4mazgrnpPunhtjV0u6c5kE0lTUcZ3l1GsSDaniCit/eeTvO9VC1QeUMdIr/eavTqni0NBaO/HV+vT1OQxh1koZHUwSqYM4nwZHPmMgmLJ43RCqxh16vq+1JPeY3b2ULoFbAT+t75niQzEG5OAMptmygGhE5f4SQi9Dhz41sEWYozghHvleSNIr/4DR8YCTn3mbQ9nA0BZFSJQlVTxnqrNYvIFGk6EwVpcZ0jEMlFWrAJaXawGuQKVG3IjMuiJCrutGxnWTjyIsHg== 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=oL/W2dv0JiR6ixWs28Px+WcW0LjLoUyM/xiiZG2pqxw=; b=lSw0xEbFbHhia8X1wS9Keafi8JI5CuwMegvYvZuy6UmZhMoXuOHBIcc8LSHBvoOX/N/Z+qisVBqN7cjuecUiBTgWQX0iZbL2yMJvCX8hFF6PlStg7pgzaL59oMGbsA+2/M2P+5Ms0hUFxv5k+QBjZvt9SIof697nRfO/ASl8uw8Y3grGZDoiFKg5pwipxQj/AEmvNDX13IFoYKDhIed8La6gSc0NNdAXUm0h208zvl4RxyTwWzfFUAW84tf8jrA20Y6/VY3qZV80rWZJgbFvDJ+c7atwoXZ9dDijHUVcaa0baXWWORefE57IOnA/gdIEj1GogW8pB7o3rAaoCNB5iw== 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 DB8PR04MB7099.eurprd04.prod.outlook.com (2603:10a6:10:12b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Tue, 10 Sep 2024 07:03:06 +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; Tue, 10 Sep 2024 07:03:06 +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 v4 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Tue, 10 Sep 2024 15:03:35 +0800 Message-Id: <20240910070339.4150883-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR01CA0184.apcprd01.prod.exchangelabs.com (2603:1096:4:189::9) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DB8PR04MB7099:EE_ X-MS-Office365-Filtering-Correlation-Id: 998e1d75-6c54-43e6-b0af-08dcd1669ea2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: 1o8qZct3blxAWayV3nZLyom5LS1uPywL4ydRoqyJoOCuMbwu8/wpeYyrLP+DR2LdS7+nguZlC0mmtpYmGqy2vSkoBtbv5TJ5+qBsCgpWGr0XPrZOU7/nY8bM2Z2Z0ILlxsbySimWH1Hn0X6pkXkD0Y3x2b2Q8XaW6PVUPbpIwHEGNglvQhZp719BVkkHVJbuahT7VpjfrgsCIAAOEW71SS2RP+nhLG75ypBLpqmTup5fjxjcR6kWk4YCGbL7tfSRLuCeLAU+NkhW/BH3xmVNXxA/sRvlQPYxUuF5SL0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VGOgaeJROL+9RM98gYwejZcIGrxItiRqANi8nD0wpn7SsCWBpOMhpWpmEBnKh129ITE7POs39V5ZxWGxk= 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)(376014)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4KcCoSlb1T+i2iJyl3/S/pmkFhHNgOfoA2scdg8iCL3QlG3vWV9mLs4RWUHeTmAmey7XXmrfs82l3SZeXih4nyUZoJ9Sx/UFiUpriGdZSosOJXQCQ8lca4GlvMNMQa5uVc2dj+GzGYysBKDA7DvOpoM58PloVXx1Mv6DeuE5o4/4TTgHoJaiRioxycvmeUaFrdIPJAGL5T4wOGSeFnGOA/1UZTyxFKlv+PjNUZTIv6G2YkjUIrJrDJW8PBDogP/JZC5ECUj4rk0fKHTnAqgeyAi4sz+kmwCLr+sTDkY1MIQmDX47IvZbPsVq2c1iLNHucwKdqUYQAqgYbfe/cGooEPwZngNyAo54qy6WRa+GdKEbdxcfI4T5nVRWnsPqSFLjpofaBXkqn7WN++BVxL+2pGPAAMi2Q/dMbMuud/6I3KcLXZOdWFQBzGcHsuFYde+FdcNpcnW26qBaZJ4PZuJf+GAwsuaCcSM7WoIurhGYvYWFAYz/nfTl4u5OPgf3t1SKehHm28io8JE4nSWo3XNiSZQJKQAjIe5CdRx3VuPCdzkmrFXefQvEuWqOTElli0m6DPNMIwDG9i3qmvLP7gVXLMb40ncFg78rmIBCUPhUnYmUNObaJOEk12BBGmRIo08MjpLdHsI51+lzhBwPeCBABKV6+XcRm58NGOMePteOWHuen0bGkg0O+cDwBvtoq+bexd4UFkc25UxFtY3y9hGUInO0CYo8l0PmnsDShMMFqmT8uc3Xni5LN96d3i07viB5bIfugRxNz+MpXe19Agoh7hmoETdBZpvq9Cj7UtCxWHjW5XyGO7D+xO+Kw1BTmnkQBtsC2shobQK7Tt9cWpDzMvOLY3y0wM+aISsvO625nrshkU9e/eh2tMfbox1QNf1NjdVhUl6pyCEwETipgVcaqBSctpiejmd2QeazIGJqctgsSAPIgZWu09irUV/PJDRl7XfBKCj4wjD0ubhQZDCmCjiJrudiCHxaXZCbswHHuP83JnqfXqTbM0K1jhU6h/VPM9cqQwmQZHPq8xdaRhh/9fnNrVaAPUwCaDELnPlQGL46mk3CzXIlnAxLs3JRbRWOu/6G1XklLBOpzVp/Hg8mgw/xsg3WmzwlYZ+qUve27Rr8QEOKgUZXagnTNqjDgDLF3G5SVGmLCUK7LK64/TFm6LhGiduZ8WfT458Bg9/98PPSjjktwjjTxovryJSFOKprHDBECCDEi3jWIAObHvCwLxHwKpjQKrhLE49DD9uwXo+a3Di+OqhUB/iRbvOLF9XGeftiRumaNAdXyfegUJrW6zdSGVcrHwSY/9Xo7fr/cjj8EA8GX6YEn8hWbX9dfqgi4Wp2ST8GNdZWDPEtxCQc7vvDYPIoizFIV0nwarLSt7SdwTRKdpA9V9ybcQGCLR+BEkFMfbK4/iKwx6E/EBforRAOvCbmAiickN+sHhd1XX1NUd68xYU4s8SAOA+lUeNAWSEH2VKTEB4VtDnf1LTiyx/l8Id0LqeRXBE6YYftAm/sZdWx9qwL+JQjzHIoncjMZzdwdZ1fyt8GUi85d8ZEdP46YLejHbXg7MNRE66ZP0W/H0b748lWXZ7B3/MES1bg X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 998e1d75-6c54-43e6-b0af-08dcd1669ea2 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 07:03:06.1840 (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: vtYs33HkzLwnUy6RO7IfnCW2mmwmOIQIesL9W0UdQUA1U5D5v3tjh8NOLA8ie/qkFUGkHavW/eVINEAYoBonyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7099 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_000316_679542_5755F30D X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=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. 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 --- .../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: - |