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: 13777287 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 19A7AC5321E for ; Mon, 26 Aug 2024 07:11:38 +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=jUvyS6wBHOdfXUbJ91I/zXi40m/hwyVSSzOM1+9oYwc=; b=imvwcKDyYzcJROl77ShliN7B2R y7mZYzmSSlFN/hO0Ks1ObC0K+Js2LFcbGsj4UjM4GeOmQpT3E2WcjqV1h5iHI+r1USyiHtU8cedTA hm84PN9K9XlQ/kn/98rPKhCOCYcH/+n16t6VqsGov/tkwye7nw1VF22o5B8jwezdiuhYCk9+Suk96 Hkn5XioSxd7MwzTmCrdvVV2oBn+8jdl1hrjOKDkGzOlCqli/7xlCrjyleAanGMOc5YfRT44BRLvj9 vHSmYr8TflSyYab8Y4oE3+HylZqW2XxhbV3IZWC77wQB2m2FZIXF/ajN28m4K3HcICxYLnm2+55zQ MKe1Wnrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTsr-00000006D8r-0ZoE; Mon, 26 Aug 2024 07:11:25 +0000 Received: from mail-dbaeur03on2061c.outbound.protection.outlook.com ([2a01:111:f403:260d::61c] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTpz-00000006CdG-34c4; Mon, 26 Aug 2024 07:08:29 +0000 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) 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+jcxOW6LqPyrzxTtfN9Z8Cx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RS9cZOULLWgxnQ6vUhkkAUVWJGtQXwYjS9FP3XYqkv264vpKEwJqIQJ3c7ak9n/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_000827_809905_878D1912 X-CRM114-Status: GOOD ( 10.74 ) 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. 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: - | From patchwork Mon Aug 26 07:08:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13777288 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 7CBF6C54732 for ; Mon, 26 Aug 2024 07:12:23 +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:References:In-Reply-To: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:List-Owner; bh=g6l96Tlx2Zk6CpCxmkaWzI6pvlz4tAqOkW9DYYRKQhM=; b=wg2PpVBx0Ff7sKlkfl2qqxOV9Y Ba8+qUfETk7/InxMzvQRzBQgWxCvAshI512l01Q8PuNuo8D6cRGe3AuE4/A4sCUAtWOb7Bk6Pz+fW XMYhmE1Mf6HLU/QoVVK9MKfmgY4JnxAo1bg7dO5a55B0V2CC8jPnXHPKOQjG+RWQ2LXjHPbj5xi8i nS3tr4+obSzTPLpm2KqINT/jAB+fluBTucI81vOpgyL5w2FBcRopqRelgpntb0oT9P+KemtcWaL33 EwDE09yvLBP7I9r5X4vOaXRwrc0eNLK/0ekuHGmnk0j98N3mTFcMZlcrw6s2a8sAdwvQVjjn4Og3s Mk57dxeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTtd-00000006DOD-336d; Mon, 26 Aug 2024 07:12:13 +0000 Received: from mail-dbaeur03on2060b.outbound.protection.outlook.com ([2a01:111:f403:260d::60b] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTq5-00000006Cf7-1ahR; Mon, 26 Aug 2024 07:08:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=j/ZCjSW53A3yJYY6OL/6lurFKqt+sje/Y4ZH4/mKto4+f1lAJeYyvFSVXgg2nRQA5friKcVVs6pVM6gtJA9Q49kpaAlfpBDZeyjp0bA+ncWUrBnwa14rjlrPSi9WAB1N1EocAmaCJC6WP23WrTtMUm1+NmEWVsZHRovpRWGuLmy68jmqWEeAoBsb7zhVyRbEi+a66gzsxtTNJpFNlQjzjynkWDlvptrwWHdqf2dU8b8664wfstKV5A9q+Pup6fecdvBgZDgyafr+zDjwfsuWbV99/VBjjjCsJu1FjCBDZ9z3WZ6NSXPmYRxw0RKRYzBqGQRTd/Wh0i5AunDvhKvJBg== 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=g6l96Tlx2Zk6CpCxmkaWzI6pvlz4tAqOkW9DYYRKQhM=; b=NiZsBtNyX2R18nCrFBwT/1FASyLlLaz7yANlaBWFzJHgIAafU8q6x+h/4euDh8z7H9PAGBQJo59QVSuf1bhpcuiuARjC+ccHgBSnNSDIeezmfJDN2ZjxfQU3Sl03+OSvffkzXXj+YCRMiDR37w/TAzWAms3rfIIWAZGCGSfcH7iCMHsRxfd2CqJBXW2QDm7/pnUMZDwzsWeJvvnlgTYstjoGtqsrDECRbuKz76/BLq99YyR4edNAa8C8EyKmzWj8S265duD19L/rm05w0Rnn0noUVdk89sbzQ42Be/2GUdSo7tFyjmb9NJT34gbvj1WgVZWMZo//Ls+lqXQpg6OCIg== 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=g6l96Tlx2Zk6CpCxmkaWzI6pvlz4tAqOkW9DYYRKQhM=; b=nZMBitZXX/dZXs6Sr1bAYnR6aGus1NoaqgMx+whMjLl060g0ddHbYASKI77oDPft+njfj4fGMKZ/jCQCrGJL2RimufU8lYwfSbPGaUS5uDuPpTDZZwom9R7pQjKJC97pebm7Txi21xsxGHRALnihE5VUKgZioMC8V2UWqvQGB5Gf0Vfd2ooeYv+WyGM3reRgNhiIP2ygUrqJ+eZswbe5rLKeRPjsU+qaIPvWN5bpNCIAicJpZLKyYSbNJtau9V6073xtShB6UHhoDhYoci+qNNJcglqDHzyFxrx78phQ+Hq6sfor9UGsuuroInVdzjuAk5oE/7KCGZpJJj8z9XUObg== 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:30 +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:30 +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 2/5] dt-bindings: usb: dwc3-imx8mp: add compatible string for imx95 Date: Mon, 26 Aug 2024 15:08:51 +0800 Message-Id: <20240826070854.1948347-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826070854.1948347-1-xu.yang_2@nxp.com> References: <20240826070854.1948347-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0194.apcprd01.prod.exchangelabs.com (2603:1096:4:189::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f6c0dc6-8513-41a8-c12e-08dcc59de36e 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: D9wxRwx6S2wfQfv0b0wB46rz914AamktMclVylwg+5G8XSfA/G569OwFwAIJEsThoccdLVh+ujA/NChkYBUR7x1JZmcIkQtRC2iM2E4UyG2mZDWo+LCrCX7fzj5wZfEVZHMWP5z1NwbhrmVrh1QAYV1D6dsxlW9bi0haiIxZDb90f/r9E1Vmk+oUNt0yOUEz/kj+KS2lzAiHZRj/iORaczcziEvLrO7zaubyNdBmU8LRDolQsxITma4QxUzGY5GHusiBVDys9XL1+B8MiF5u4DhEtFk4i9iUvJjX8GCX2wqCQhizZtJpGhn/4KXGPh59GeWdtiiKPnQdhZpi4hRSaTKJIOVl5N9xCrXyhF8QsCi8bx03PyCKppkUyHyb11t/eA7KVvfGptxOV2ULyqFFeNKavhrrohF0kVuF1gUCS0U7jTRVxaKRhAtV4kAOjSSA/9gV7mNtcS3hTK3JhvquBZ+df/7gK/ViGqd30K1Yz0H5hO0M9Nwa+NEquEPhl5ItfOHgXbtlsmlskUVJIPVpYjf83GjIF5cWa+iRZ05FP9umblXYraBae5I1pEg7N9fh3A0Kp3X/eHSxcSYFHG3cDCcWv/5slrQN9wdXsxvO7hs2UNPKS4JUgF/DaCY17bFn2zAxlR5Y8m//BUhA7gTb1+BFGzw9N3q8iZObDzkcb4OFkkQDJpq01vICBXMJVUANaPIP7+gWyIt9qQeIJ70HZASHsgjsCWX7Yk+zZ7ucWi4i6j90zxXhTADnorvahVKYoP4ZbNZqr1bsTITaG0ips/jndxdbTms7yq7UiWW3BLOnKEcovqPSnDysdMtsAomWFOjOtEHKqiuqrWa6Qn2+YNZVQ/scVUpti0Sq69UzEg/9JdyTeGa9BwmGw7EO21blMFkh6fvTZ6jJeHmLgwo8mXvRHu4O3dEucH+OVoCt8WPuWv4zszQb/PHPOrU0PTQT+nbAi2anGpaZGTw2H0y8SK5fONs8OEYhETOUn7x1pzqbRBBNNfoROHJdmbGqCqEMDF5kp93pob61TeWQwDBohxEPaQ4uRETlCS4HdQF8mNqNs+K2TMp/9CgPK0iwMaLkyj7PV0BjfxRlTFouRi14A7ZmSa/wtF2KDwYpkfEPVwZ7KUqdCT/Nuavaw8N94axzLTBbA+IyH/RW/yG7nvDtrSZoVXUrJFZQLYeUTKd6XNqmLwag2BBd8Kiy+ksPnvY9T9T28gygkLMtrB8CO1jF+4YtFWyy7wP7L2T1FnPkuFoRA4764l+szr7M7cDhkekpw/FW+gmqjTf17w3hskh//lIMQ3qJWDL+0smHC79tcmqcSszI+wiypT54AwVA5gfN5zfVH+TcUOzR1danxcHMwWCVQ5g+UItCUPxBjJTdHrzIn+4Z7wHE9cW/S5djG4mZ9qtWV7E1Ec70DmLJOxAbYoE7dIzDRgmb7dPOn+BkUaY= 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: Lnl/uVir6YJVKWBLV2wZuFUWwrY++SIsN33HkCXiD7UzJMLGTfdW/3TN3eJA/Cs8agMM3B/MP9V6mcxKV2AOJ7fnPFRicrjmXcHFzbRbindDD53lfok49dgR+Tz+bY/34+KT4zUK7PMGD2ayHpzWVY6X17BWgs+9KkwFzY7HSLMWuUsz+oLb5ePZoK9tXOyAeuJ6c1a6ZsF8lIicIkJoYCsUIse29KmY49H/oqCvmGitvfAlk5qp4vi+56wisV7it5xugzC94QG+i2TGxDq8iqhpzbgAi1XT5x7RP4REnkwSSOjb1ZRXBfHhLjWgGEYL8M+Rg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3yIUV+V5+KEoeBc+Djvj6Pmtw/wr7m7cNxWkuaxDudrad8ZHXvdVZH/J+z/NW3svD6C/vHesFv7vB0Wo7lZBJ2+Oy5LgvV/IRU/PDiqDJpXdTZ9KYvg3XOyf3zmqcTaS6ruxWynCfAQ/3FlvpUQMtEz3LNXgH8N7KnoeaV1m5kkQO X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f6c0dc6-8513-41a8-c12e-08dcc59de36e 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:29.9540 (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: KuSAUFheLETtfd4YaAGLCwnbVJKeCVo5lSyIyvyw+2HTJVXPOCYqEio+Np01tEFT+UL94ebCUVA3YuqiZsGmKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_000833_442947_EE6DAC32 X-CRM114-Status: GOOD ( 10.13 ) 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 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 --- 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 Mon Aug 26 07:08:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13777299 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 DCB27C5321E for ; Mon, 26 Aug 2024 07:13:59 +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:References:In-Reply-To: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:List-Owner; bh=GDBYO6MJ9p1yGkRX8zTIZh2SdlUV3N0E5+QdtlYlrFE=; b=xVlvtvV1EB/d4bDAv/tefXdGDQ kuEfLeLkqRtCyJ8INYwNUSUClljDsQSCcs/O0Pc7NuVlqg4Du9dTKHTXQGroxynNchdLo280RfWTR +pMy/mPhCxW69lcI0I5/OHbtjFw2H6gvE647GR0CU7BatndQMXIw4BQi3Aaa4cueitzi2oO5dJxr7 D7X2mi67opf3tmiEkvOpd0AQMZD9Kf0OJsJY3iO4ry6FvJs9UG8i1OCoyQ0T0Z3XS+sxJ1FIFfes+ bxhTIy9A0BK9KpgOKh7X9sMrabPrNJegGhdd3rcjGRgHXWvVuAfYPFKl1UC6qaD3NPSQhhCVBNARU AzB7yQcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTvB-00000006Dlg-2xO4; Mon, 26 Aug 2024 07:13:49 +0000 Received: from mail-dbaeur03on20623.outbound.protection.outlook.com ([2a01:111:f403:260d::623] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTqB-00000006Che-2vbS; Mon, 26 Aug 2024 07:08:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=p9OhwE/hGUtlTNNYMGi3mhGd/uba4OTk4YXGFBVyLfu0W0li/XxoT4Hm/bYecBOlAnr/qX8tpct+wR2ZwCmDV85bvgGoFq7T5RIQODaRttpLClfcB1C87S4Qbz3RXiRcI3uzQGGODQXv3MWvJ/DWjPNmOSJ1S+igyNQKn99WZvm4XyZVlY+C8n+DvY4tjnqGFGPkhokT22qTytRjUcVl7bSb9qkyp2kvAonxa2hRLGJ9iQ6q2yBuDdRmKKaqyUtQuNB7EDneO7ZYzWMapYbAzsyWTUAem6JMnxqAXU1rDS1wNHnaej12/ig1gmmKplgIf/SDGSJtGvBTrGuhXCt1FA== 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=GDBYO6MJ9p1yGkRX8zTIZh2SdlUV3N0E5+QdtlYlrFE=; b=t91hhpTXWMujTihk3dw71/OQ5a22xOdIFpwoFtnwwNTNt9nwqyvlZXJ62Gr8pRVKjI+WiQWnq127O71vC1x3TmOacaP9OlcN7cyN8w852Rji5aXwkNNgdDn86ByVT0ryD99AWEIpCl7IBOjZB1g52OzBN907HtgFlinKqOiL6U076RhPa33jpCnriOGRDMrTRiiieXqcON149jm3vYoR0MUgWx3nysNE5FnKUlUMiS9riDFTufUmvTJXqAZ0JpLV292cLJ+uIICnlWgqE2jeUpymwo/9sfQvF68iqn6xw2Loytuisv2CRydKXBqVKMg3LTvM+DOckflG5LFFt+BicA== 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=GDBYO6MJ9p1yGkRX8zTIZh2SdlUV3N0E5+QdtlYlrFE=; b=A+zcxyoTz3244bAUjprbtZwM5vgBoH7z/2AZ8c3iNq4qMPh82xifHyKkTtkzJDwkOFWolubSCEYqCbu5ek7zGUp6wzmCcCfz+/yTnA6J8Bsj8+uvsZk9SyEPfPkdRSfoytiwvpXQz08/9kfle38ZDFqNdTR5Vw7wLihS65NnpR6qEoHwGMbX57Sbw58UjSAaewpnWu8U3jyU0gZk1zHZg7QmtmKu6Js8YSlLFB4loYlUyRl5QetOVquUywskYwZFqWUvJhvPpQhE/WZ+aze53oVth4ohpSavmK3A62jn0P9lnSpcBJQkyGdreXj8/wrQqUsbrSHDOOCjPhVJFcg+xg== 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:36 +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:36 +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 3/5] phy: fsl-imx8mq-usb: add tca function driver for imx95 Date: Mon, 26 Aug 2024 15:08:52 +0800 Message-Id: <20240826070854.1948347-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826070854.1948347-1-xu.yang_2@nxp.com> References: <20240826070854.1948347-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0194.apcprd01.prod.exchangelabs.com (2603:1096:4:189::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 31f17188-c009-46ef-1064-08dcc59de731 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: 56cTFsm0mDrp3UKymHE4o1I3FM+Ghe55IfOWMdIukyvFUI349l/oLsCXBclepG6v4085v0+NdCHU5mmsUSLs3tvi0ujD8EqAPwVulmOUYIkkaqIQV4G6oEZfdhCz7/7MPHfJHLLkf/zzy1H3nr/3Jl9Ggudkdfqz4krVLO9okWbgBAKj8J48bPrEdRaBtcjYf+wBzJHg+ZkHegbuT9gsrgD7dGovRs0zCyIrjAjuUz/8Vf8EicDEazY1PSDDwuVK6mcLsO8QlcK9W1E3I2HPkUVq9aE/IkB9casurElszZ0V1/XFz4jIeQo8+2UffQqQKDthkapmGdTKbx5KNveZj9pGEBJvvi8irxQWFoEMjp4liSz4hFxnaPhRSvLOx5a1nPERA5IOE7+1V7nFC8rP2P9ZCps6FZ8IU2oX8BxEU0p1ZA7T/IrnFkJuXjEj+7tEDoz7F/yAYPjzxWTpouTwUqF/julUFcA5XDSYOTDG7c7Qx+dvt2bluSmyAGqoeLjF/tzIC/rbgu6yRFvFZMPvUVP5s8c0DBWbmV+azvxY3zQhVd87+jkxmBC6SmCQsGbMChHKeeT2dGnUBp5VYgXlaau5qE0kSRqnF009wbvgncTZpSVSz6lAjFrhFg0h/iuiaMlbGKxDHr5yVmBZOijOOrOxuCGDqgI/Alwrox17Nowf3jpb5m9xRZqZg8WL+A6JG30B7pN89ufmiLlEDBXIFV9iypxsq7Xg/qt5Dyy3UVRJJ+GZlNriJVIYep4s3t6NOrcA2QqX7D7kx7ohgso3TC7Me4WHwcTMeSvX/oAIaRVkt5D70OMSJiWpLnIh5ljdVGMWM+1CABjjD5aK15pxcI3XrWumx/I/jlSPhhIPimPhdEy7HNAT0FB6ryEWKtBL9rQvUM7oWV1RsOVRp8kghKjtTaT+3XHtmLXH3+OKA4MThhs0ZxjPIAGsQWI9nHyOkjQNldhCB0kE2GibrEtzsflF9lCCkc5dZ9BNUO5V4y8wWStRJbti7ihC9v5HNxaXI67wiHq5JqKgU+o5BW5A9T9rBGx2JIOhCl73+s0t2nKfl6dleL6wvuWtw0mqm9C5LJOKZ38KbUTwHUF6lILd+bwPQjTch8NsXbnsR6fx4cC7l6IOdqmptp3QcG7mi9mfluUkgbG6rK0P0MmJuTaLC6pOq/XNVmUiv3XuvDpGTojK1kUyYuDMxrFaVIXzkuwwat+vLMZrkZ/zZbZaRCFTyys42g6mJazG7s0wJZH4m/UM13IhS7q50YH1RqmRMGkt0qAJw3X13+61U+qVPutl5fPlbI45G8d8GZemRtZInDxQ5DMdNbYU1C3fjIv/OIPcBInKtPuST6psX6pxAqST89knzlDSllidvwd6EDdQGUmvL5GXM0+Q2AwsB+JD6fFQ7n2LZ6QC0jDBCG4fqI4d4E5XZK62JPAFkm2c883IM3Y= 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: 4uu7oZUBti+aS3x0q6/YGg/bWHpQPTPP0kvXsIKUcRqcTuE+S9mqZeRL2FP7im0P+I6U3rtCgfkbS/N/jNqFix1yWf75aX+7CUw5jUmMhWP+MW2V2LvAwM8tTd9wdRiJbWZHY2NOMw34vViozJlkf9DH9HClAuxwAEUi2DaVMfK7jxvfgzCShX47I2qTmh7zx2OxJgm9xsJSXK5+d+TnyZYn7jqnWhvg2sxTIc9gwfObUi8C59L4jXXAq2TlfNKri3+V5oMha6a8CNI7unagQwGi4XVJkeikvs87ArIR4y7NfoZ+FfXvlpSMIACglmwxP1qDH6dJUR/0ksM2mkFFam4WGDmyUcS6SvEuiV9D/xA8FexzCen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xSk7PTupQYnNSWNzo9YOIJO2mKcAHF/OB89sT/x7NuYcPAJaNmfZWS9hviNWZ6/gAP97B9rOSR7OToUzOuodLMdicE581zwGFpkpDXcjqizBryLXNNuA+6ErEz5nMzNO+WUN X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31f17188-c009-46ef-1064-08dcc59de731 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:36.1794 (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: TH/H+mDuan+PmFprqm2Mg2EgP5Ix1kfdLiNqxYcqz+ecRxtw0/uHKLhAfPKJ433goih3dZyYnVhT4S5HpOYqyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_000839_917226_1AF25DC9 X-CRM114-Status: GOOD ( 20.31 ) 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 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 --- drivers/phy/freescale/Kconfig | 1 + drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 240 +++++++++++++++++++++ 2 files changed, 241 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..8bd6d91951a2 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,170 @@ 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 tca_blk *tca; + + tca = devm_kzalloc(dev, sizeof(*tca), GFP_KERNEL); + if (!tca) + return ERR_PTR(-ENOMEM); + + tca->base = devm_platform_ioremap_resource(pdev, 1); + 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 +535,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 +582,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 +623,13 @@ 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")) { + 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 +637,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 Mon Aug 26 07:08:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13777300 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 BAE9AC5321D for ; Mon, 26 Aug 2024 07:14:48 +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:References:In-Reply-To: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:List-Owner; bh=cGHiZ+fydGFVJytAyg5aNfOBoJVRhwyBXS1VCC9o5nY=; b=bOFwnSnoqKORCk4Ovto8Sc/wgg k1hUNJDQOKm1+1alucfYuBu92+ZDj+KteDwBGlNA6cPsQQMiEa15zQ5dKiopYdjyfbXeSNxpBQsCA 4OFyrGLD8BhmOKWrPDQIlxQCszGFyT02ylCpXxTLkiFEukrjKo3OD4b40XCnWGoWUp2hFb8Vok6gr YYWhGeTKBY9sdBNgUSMnXdcNcqW7cM8VBRjNoqRUehMRCZiYjQMqL/T5E3TeOdnAE8kyoazKVS+yB mgOZlMdZQRQlYMa8hjImgepFkX+smWUGnQLDpiGR1Gwv2hJ8Gyvmc8RCUjWM4Qd5PEFArNSdzkviK T+Tw0QQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTvv-00000006Dt4-3vLt; Mon, 26 Aug 2024 07:14:35 +0000 Received: from mail-dbaeur03on2048.outbound.protection.outlook.com ([40.107.104.48] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTqI-00000006CjV-0021; Mon, 26 Aug 2024 07:08:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mGZsI75GZP7YXzI75vi6ylO290cwZmdrmFwz/KHgLQmgrwJDmVgiULIQeicQRSdiztyVuHOJaxwGsThWj+ecU34+xha0UhorsJN9h+HsGWLTVORoq5KKamU1BiFjyACM1qyOFXiVuSwJ1lQvWh82Jxnus+Xf7aMZGGfl2MGDJ4Zfc60vvTVvLmYxmNId0ocutGlbAlWsZPFmTyDcIH/2u8vyCDHRqxz+Tbzq3+0hzVkiNuw/Ks4rTrvfJcLtGtCBqV6qSvXSoxnNDWayVFn8kx/DsT4KfdCd8+OI6b62sqXITYGJkDi7cFNX0lOFd+2nBhjAqOHEO3NSmd2+AhYAGA== 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=cGHiZ+fydGFVJytAyg5aNfOBoJVRhwyBXS1VCC9o5nY=; b=xnAbykQt48xgULnwHkxQEkIIDFtc3QP4vNG5RQuc8MhoqZvh5KmTMkZ6kYeCqNtstgfXrmn+0WtLcN79flGSXsT3g63u+CL4q7RU1Yp33BIclHZgnprwCNOW1iDBb1PMLpuQJDEFsipIgvdtfqWU3Gw9roRPlnAIjjr/GAuLWNA8EN5G5rr45xNFaFFWJ09IBAqnPwItm1AeAfKZ3xMaczNuX4W0qOpWA7BUXU4fDgTFP0S0DcFh+TsdOXkNuRNkSyXjPtpzdI/tbHW7/LWERCHEjzkue9Vo8eMV2qNbQkTM93tQDJJrBqZ+NRRhWmwrGMOG/YKXOBXSFBL8pKBGDA== 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=cGHiZ+fydGFVJytAyg5aNfOBoJVRhwyBXS1VCC9o5nY=; b=JtJmTQ/18EQ/iuXiVgQAY5HaAIzgovkeWd4d1zPfbJ1WlhzBmdLVkst+DmmSRnn3SFSUDhM5bEJ40J69KduMyk0DYTmuJBuqhsDlAGNzt/+VxXhrF/UQsM4xhO+b2JcikFbptRW7yQI59ppmGMHJNneS6p78EiDqObia6vZqOBLnL8F8U258knIKzX2lDfL+1Ve3YYISQ4TTWQbalW8uBU5ovHAoEGIPZtSvFv9YCPowZZ9pa8qQ33HLYfo0NAD5I5fReQaKt3nZo7VrD+Sr0UdMlckRay70AsxvHj8tebX9xxNrw3OjlF4OEFh1JA0473qjOkPFv/N0ToVjmmW9FQ== 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:42 +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:42 +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 4/5] arm64: dts: imx95: add usb3 related nodes Date: Mon, 26 Aug 2024 15:08:53 +0800 Message-Id: <20240826070854.1948347-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826070854.1948347-1-xu.yang_2@nxp.com> References: <20240826070854.1948347-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0194.apcprd01.prod.exchangelabs.com (2603:1096:4:189::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 163f7166-bbec-4972-f072-08dcc59deb0b 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: Yfu0k8w/uz8Knt8dcTB0dESwMXkOW70vpdhWHk4Z6CenuVUR2b2H2UV21fYiUUNuU1d18MUi/SY0754JnbnjRrHCB6xVsOBoEYdfk3d7WDjNopJWEJ4W+AQD0sGuZgiPCNx+19Wl+sNSbhAPtN0qLi7mAkdeAAXWGWzJpaUs7CWVyVWaYuMnRznC9RFyLfXjmGuGlKsGYlyjFFL7o1GBhtw8v0UZkWlnqTgAjhXfmS+4PWX+x9PAJRQXq8DyGzetWJ2eFO5mHFqOl2uP37RfsPRvps0XbIDmNm08lUmatlcy2vZvm7k8pzZ/4EJQONeLDbESIL74iu6+eIDUszGMstNEbHLjgRNtzCQMMqjGc8aJNIEKyGVdiC5NGZv5wgBVflgqPuA0LPhwViuRKxB5nhhzJkyBkCH85ODUbTFi3m79X2C2lI2M1j2T/atITAKULfGDqw9Z544xFlXNEB4itk01NuRL1UITXDay2QDbRTbntO/adycym7pclbedE94h3WDXpsWe3osgzNBALBaDcCiBGycYfC1KsBlpCLsF/FMOe56iHM7pgcpr0mLEJ5k2eWfOxro5bUF9QjYYNvV2tHIVkC18XYT7iPJGg3UXxXEaPdSfOjhAPKtE4VwJyA8XLBQFyvNABfi9tE14wgMGteiRewJnIU4uvTESTj2pH9W4TX8wkEfom9h2lESV9QpJz10q+e4XEUYNlB7juM7oZmZwzjxIoTeGbEQMU2hgI4ETdI02AGx/3u7lxXcZ956fn7jgBZvvVD0yj417dg2WOh05yN3ieOBLx0stmkq64Leu5SZ49numttDTUcMp2peNVUm3+MoCVYvSiaHyiXZRMf/Nyhzc5zBrNyRdCq2jsK7JrdATk6WsrrvlaspVtm72cBkQAkAsDmq9bNLCrLDSfQacYqOWAeZQbo+5hSbimtTi7du1XlAeN1c6t0VD/Viv62ulLxmIVuVJIgouBhTF+nlWehUHkDX+sMrV/sfJF5l/tGCMMw1CCo0vEeh+/gG/tf+gZzphAfW0XDTnQTlD9cUeCVvCpKYMv3fRT0MXOkwtqNnMLVnAcyqXv4ULHMEmehn5A7rxV1abYvvRl5I+atklvPT0N8vlgMYUFKAfswgENeTfwESDCScnoziInHl4nITzYinxtvHsZcFRMI0eAan4DgVUda65TaxenilqtUB3UawP8Vg+lL32Oga34Y/CL7ClVuR6eZfNXdTWwU441X3QUIsQTO8R/WdYqmfkdGNbCxP5NvSTmi6xVXhIk+LMfbMt1m5RNIeZ3fU73X2k3rtXM44NM2p2VHvouGyIncWqLa/2/toD2+8DDnCxl2dc13GzE+h9gjuh2qzQ3tM/8UPu/GDR2/yuji+vXGK+7VmH03T+qfRnsVV8hEO5QPGx9N7hrqcLhPpBcPrU808SwQGxUr4uoDg1/kuvJClhQZ0= 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: wj4xc2Rsdl5DaG69ycOUuXIyvONmFoYCbDhbLY19EvLtXunqHr7W7y8ca8lyy5mQQlWzvHRdVEeZ93/gjlEXbmXBKaT0Emf7o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8Lfu18xUowBC4crrA6I0t6MaUE999/cVaY799h2R/GM2nwCSu8CYjcc22uQsMvm8dyrVj4Lc3gI45NupUWjrfE8ofIcqm54J5f6zFcY5DLAllltWIR5znkrfVW1p2yQJJdT3HU97xy6DDYvL4rlgz2p0ihatOEyG+yzahX4zKMBVVhp7tsLDoMvjt2tgW+Due+Woe68633+Rjuhs77pe0JcwLKkIdVkut8if0sjIOcdqJFgnVJ+jN2jHsRfgF0kfbQ4/jsqwuEdd+qnnwXPBgtmzvoUJc84tYY/BYHuuWedSxfdbQbNPe1bKefMF4/sHYMFLQaCEUcFMKDVf2Q0Hs6em51EHB8ERq8jWQHkB0p+a4jUS6phhS1HcL1tyKrKgQ6mihWK7Jp5fCt7CgXOabl1sFSvHeurHsM7aPki2Zb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 163f7166-bbec-4972-f072-08dcc59deb0b 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:42.5048 (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: +N+AxUwRcLsJ44qjJSj6i1lmC/MtKQbU4PnTJz5yS9Xp3v2ud5xlOTD0gzK+ziRfR0qx1yLTiFzyX9fA7u7PKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_000846_066421_3E61E2D2 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. 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 Add usb3 phy and controller nodes for imx95. Signed-off-by: Xu Yang --- Changes in v2: - no changes Changes in v3: - 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 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 Mon Aug 26 07:08:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13777301 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 B8204C5321E for ; Mon, 26 Aug 2024 07:15:31 +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:References:In-Reply-To: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:List-Owner; bh=aN+CB8lunIQWJJvOwgo6E+dee90lpc+pQQewjqEOb5M=; b=M1j4prYqNwHcnpbsubufb2uzL/ hH7qXN55PIf1JuxXFCZhQHytk/9wVfnc3M5Kai2AhqjBLuczbXe9d1jSAYcy9tj+VCBsy7eOOY8Hc 7vcQqEoDtOjt4AGOmj0lUKoWTEDYQP5Juy9d/lk7ez0/rURLjo/ONqEvzaFT64XQAg6jxUgZYG24U V3i1mBUuxBNwSPP9SsO1gorBmsRVpNAYyI8RbjoI9ZHuKytelUjMOJ5DHhlmBLCz+TzebkPEzcRlq vlF40UrpqHQXXNPJID1CYYzgshOfDsczrSazydTjVspr9RPKUQFPKZPr0CidsNRfT3cL3YJrIQeO3 XQj82ZPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTwf-00000006E53-42Pl; Mon, 26 Aug 2024 07:15:21 +0000 Received: from mail-dbaeur03on2061b.outbound.protection.outlook.com ([2a01:111:f403:260d::61b] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTqO-00000006Cl9-0tps; Mon, 26 Aug 2024 07:08:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hgepawRc5+htmQVb0socB5kn1Ug4hEYSlC7hSCAbGkjHtd9OlMv1DTvaLwBhPAD24HROZqvFEXUlKZkQdwA37lHK6Z2+c+lnlTWESMuDvgK4uoppvNRZ4SN+yaXm+MnzhrofzWIYBoW0h/keOLOF1eYOe0zWz//Df06aWikvGiqmzIv/j8+u4YKXtuO5CuaiDP85BEcG4dth2PL6qDO3VTn4/DKmr1sDQ5c2oAWtA/keQQ+Jicu0QJge68pS9r9hoAt+InPp5NNfNobrbzTa47AfkukPEoXGJ9+TELHYwT7WTrpcWPUTHEpQgG51KoFJek5B0JRzKvrZkinPtDoiLg== 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=aN+CB8lunIQWJJvOwgo6E+dee90lpc+pQQewjqEOb5M=; b=my12h7o/XgQwepnvzUroRJBlZaDWd8FIEX1Y8SMqOMGby/g3OiuG6fv60yRLkn9IxG3YWUv6cx6/QeKnuU4BzZoaUdiOoVvnndYLjIOclvAbAyDiIp++oGOlFfXJK8uaDYeO86L5HdI0VZUIsDSVtd9dW7S0xr3Ktrk5Z+vgAsxKajlZ4u/PqN5JMe6pinZoGYmj7LQQfH2Ly88z3wucTtvtS6YFN4n5vL5jBaLUZVfxoPCERn3ss+JMWPjJuL+FjkEF58slIlFoILojH2goz/w1CpYbAIQvAGHje6QfIF3fmVo6yeNFdQHyHXkoXh5QDl3w9YQmH92DLzOiUcUwBw== 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=aN+CB8lunIQWJJvOwgo6E+dee90lpc+pQQewjqEOb5M=; b=IT03c74Ral25cPPr09Y8cDNnsTkWFWtHQz9AvLtmWRSnu6Re0vet67xGo7VSax7lMLWRqBD+cYbUymOQJfltVk2vAZu38uw8LmLrr9BpWvIknN20lpuplBqijjxLEYWCqNanvLVWB0YKVOTBn683UtICZkMxjvQkIOVd7yePzyEdpYeu+T3p11oIVfO1VinJPhgG3s5pffBLoq4XhLdDH2rVpho5ReTdHKmgiXpr2390t0tZonalHLrhGaQSrHq7FLtACTZySAoFYr9E4y5UUtW5tfmI32uomxT2BzZIFpiywROdN55UvdW9yMUdlQKTrPIDwPLOLDnrWdYt3uns+g== 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:48 +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:48 +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 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Mon, 26 Aug 2024 15:08:54 +0800 Message-Id: <20240826070854.1948347-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826070854.1948347-1-xu.yang_2@nxp.com> References: <20240826070854.1948347-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0194.apcprd01.prod.exchangelabs.com (2603:1096:4:189::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c3a4f8c-fa74-46cf-39ff-08dcc59deeaa 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: vAKxmNRTuKqtMQDxLkal/T4RvgQ3wgwFpE/MwQhKHaZbuMN79gJs5CGowhhv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9vjV1k7flVx8ealXDLPIjSZyCaLNlTjfr9hBbrdkbFofswhKcUWJeGWOmK3zzRKDVgIhtpmmajWnfBSXucdXS7SXXg9EmZ5ld7xmkBeXzVTABUmIdo/FdaJ7PfcRC3NTibej8b3e1ka0stc0A7A3PyI5uvfbp7bo/0YRLpk/PO+/Divn2HF+I0EcR1y2FerhdpToEZ9XAm1oxd/jXbeFvW5eXksVBMlzFb4yzsnKx3E6d6qKxyFxuEhOBV8S+vPbqqLNOFfyoKGT4d7+yzk/Bb4xhfQ2U9rAS9WInwF8zb2n0jxRRK0= 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: fXTPFmp6ytZVcbu1DyTx7EvsfgkFtYK6o5GEr6Rf++aC5lh1WxNHLmfFwO91BVq6EB8IOdW2X3wAJoCFtEPIM/UZT5MevyoKpQQzVutciTDwEv14OaQCZ6fqJa4wusXqHeQXVXaycUtkiaBdZ9EvOHGqg+t5hkTopaaPHecYoPMzkv+Eom7lDv/PINBCsol244mWDGowD76AYGKQzxPrL4FXlHh2ZCUJK1/BV/4ghT7Fnpegie5t5Pv2YUs6v6NrdTq6e4kqhV5b/SNL/tdzFMqHMJ6EBMTpk5plMJSNVGY/+BAJQMupDdt2d8ATt27YUel0TZgYWtMgESauX4ziXYdM0+fl8X2/wY/q+7fa4b1hA4alMj58M6nq7at8XHR1LJb00MbHucr+zWj3eX2e195elmLffj8sopBv2B6gJRYBDRs1sL693rZHe+27FqmALnEEEMoEwklaUvR20+E6iTDoMiV7r07PvbHZnuKf//IcISMSPz2/joqhXHWGOF3ND7/f/ogksOEvipbJSP2YNrN0ZcUPEM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ossTenant-Network-Message-Id: 0c3a4f8c-fa74-46cf-39ff-08dcc59deeaa 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:48.7354 (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: 2qST1F0+7iGRXRk76JwqM6/sIKZGH/R2Y/72VcAx3ymqsJxVq1+7i9q8GYHnpoIiNGvKoqBBp1hPCUCfCphufg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_000852_280783_0AA0A3A9 X-CRM114-Status: GOOD ( 10.30 ) 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 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 --- .../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