From patchwork Wed Feb 21 08:02:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13565077 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 354C2C48BC3 for ; Wed, 21 Feb 2024 08:03:32 +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: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=3jXGt5UUEMRoEbSWrlmbANJocxALYE6mq7/Y61zoUzY=; b=trj7ZAzCQDZZBd zaKgIDHvq1I8ZH4DKugCBp7TW2VI8uMIqGgRFyGhvRp16bRHGSgRlT5pD8DhihEwH+jLdKsJnqhVX 3crmTjKWwAwX8yxJDezlFw3xYKFY4kuI646Adq/RCixBMn5FBk8Vw8Aq93SsLZrmoyqs2Kfj0EAtM BsHUBUFxunhm/8CbZ0R3v/a1EGZzFwie4KT9xrtsqf5B4zDD5xxmL/X7zVqG9ATw9wh8sHJESvo8J RzcViIDrhC6aJ6e5EVdIcSW5OTTzKYp+ujttvufwr0Bu+tNvA0Vim0gWE6+OlZVz1+01Ic7aitUlh gVGBvWFAYzmzTYSLukeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rchZV-0000000Haib-0n05; Wed, 21 Feb 2024 08:03:17 +0000 Received: from mail-vi1eur04on20601.outbound.protection.outlook.com ([2a01:111:f403:2611::601] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rchZM-0000000HaZv-0LuN for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 08:03:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ggonKO4r855gDn3nutvtUo7jfhxfLdR5f0BrQibrRI8ju0eD/JGU7tnhsF8X0UIbt1G+aX7Z7GNycF+EssNx9M1p52/MI/IdCyZXCz0KMMN+O9/B5FzkW3tOhHGh6YxHD1/4W75izKHZrDYf2BHe9ap6O8s+cmqROXnbTvrAv2MEr2zZec0rIyAXpuBK3OpioiZFB0U1zHbK8a5MRNX5MNVXJ8h+XYjaYGQKODzHGcDZTis0JVV5FjiXR1bmsZpKMTZPzEODnmWBnhf2EC+TQB/cfeWshnvxpWVBk05zdX7+1XLW5mMOiVIXUcc4qdK7m0QFDmQP/ojQimxdTLJypw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Efo77SPUftdc6VSRPIBJO/of8Og+4gFvmQDRGFG4FDE=; b=bDO4aqB6ZTsUdo+Xdz9Xj7N8jhmKGIIy7zgpAE23PWdyNcyEwZAVdta1nO+zeZG7kUmNS+j6QOV8W57Z4BhdLRJJ6HFzKVLVfvWNrqFCqNK6/f2O/dnAdlLKd4fQgTU9HSQDApn63QFeLK2CaQtKRBOVIg4eT4p+LOIj87pDfZCaz5WTkYwzHb7+/nf6/yK5Ci+MRtwOTZAYbEokBnqJzvZ8Cn4lp7h35DgIc4E/vR7gXQ+OJgLaaS79ynBJJ217OALFrfx8qOAG9c/mFWRnRiycUuwvieG4SgfmVI/cgdCvz/L4bI+RrTZjdN3XAvMlMEmboiMQyUUCcgPTIZ12HQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Efo77SPUftdc6VSRPIBJO/of8Og+4gFvmQDRGFG4FDE=; b=op1wLzDkIXVa8PvLAEA74yawlde/6uCu1V3FD+N/m93aOxPuQdr6htgSr4o5sUsZxFBY3tXlAsloxWyd/wqd6EeuwFQokETWHNzzUyWHmwMFl505Zcnsd5mVOOoAYsg+AFpGx9R1FsGJs24SYFjECk8xHARJJQnetSTjkP+i6jA= 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 AS5PR04MB9770.eurprd04.prod.outlook.com (2603:10a6:20b:654::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.21; Wed, 21 Feb 2024 08:02:58 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0%7]) with mapi id 15.20.7292.029; Wed, 21 Feb 2024 08:02:58 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, conor+dt@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.chen@kernel.org, xu.yang_2@nxp.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND v6 4/9] dt-bindings: usb: add NXP ChipIdea USB2 Controller schema Date: Wed, 21 Feb 2024 16:02:33 +0800 Message-Id: <20240221080238.1615536-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221080238.1615536-1-xu.yang_2@nxp.com> References: <20240221080238.1615536-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS5PR04MB9770:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d4e5fd6-287d-40a3-db67-08dc32b3841e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gduwVvUplHS4zNo0sZ83Uzbk0pEZmHUjntY6N1pxJNxoIm7pI3GDc3MoxNpyNXGFO7ttpUAqXoUxMypThoIrQtSMhgUe6qyYrl2/rjkD76FM/ZZH8w++YvHU+dk85C4RGpZ3NerjLSA2cPLOSt03DozspumCmv38uZfd2ZLrTlSPCbv6vslCY2mZKHx02oMQXJVdOsN5HA7J48ZZfmhi3EPy+1T8ILmZm9ha58K9lPOgLRLTjMiarMpBxGRzvpL03chkEQ7InKrePp0Eh1e3wCt00k9MJHBbJ2+2p8rT6FjyWFFQNvT3egr73p9yq0iMUEk3aMfQIjTSm81cFgDponOqJacBJu08j9o5+D/vGhFc0oycNbsxfdyQzRnqeCEXzKVTpV3Cb7o6EbhFQNte9bJsWCRy7MV3eR/73NewPDzLYW84oVEJNBvxnrLbRMMowOtbhezbOmxaayhSSL9Sw4zLRhMtBLfzod7CLrQ2DOi3ePDEVAKlXQxPPblFpzwye9LiiylyOCFa4gZnfDF+YakB6NsOrGFcwWE/y5QZ5SAeJLReyAzPnVCVvs3LMJHQg6mZsB8pY1X7s0xtehGn3TqfwlbjE3z4m+p6FekfyYQ= 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:(13230031)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vng4lcIC/k/YwAhyn542MrKfCAjKR5wiLC9PqyuxTlGh+CvEZWeFgaqgYX4dkvCDnUO1kthsYp73HZvjqF9DQnH/hj0geIqRlGTqO5hmJ6fL6nD3fexcKr6dV1BrfeF85Ew4muB8D9IeWpkrwnFfeRPhbE+CVeounOFJr2cB3ZOfsXKO/H4ym9MNuycL/PWM02FRpN6WVtly08GhltVM1T8OmycqtSwTAPgPpSH0OlJDqKufyiw53lW54Upo3W10Cp2xNhvl/dDI/1whhWI7Nnbyf6mohp/OZhzX2pvyW88FS+tx4qlaAlzul9dnjrw4c1Su/urtvW5Gkzg7wD0Ri401vslYHXecEGgNKK1y+YHzlIGD8ur71NiQTgGhVqQPvwEz6URmIEAUP0Hih6RR/kKPOPJ/9PojTcxsHCJXbgsF5fgW0v/qdDwsBWRPdqhs5qlYLQc5ePtNJqAIaSTljK5pHwHhw9OExLd9iOMwmaQmeVVbir9WvVuyzpKd1i2jwx6X/1azkE4PCaP6OicLlFAPSbozL8dYkZ0a+ADfQxVHa3Qpu3y6gh3M3hGOLI81WnKrIddeuoDRA9nhtu+i6XtUsiacELL6DMJyxAW+MiLwvUOLvj41tNXjFQOXm21FCSPOtRRvXPV/OEBtPiSNPPCnLAIfIf1Ii4JWwix4XiFe32K2k1Wi3KH6ZHC8cKjPoEKISq8ga6W+S1hx45Z7jTnUpHEZL307MqDi1AwWd2j5yyhwz+TrczAMrNyMB6eRrLvKiouYyBH67tx0eZg4Q3KOkOrdhIGrfJ/9O5yMJgoCydOeBPsjc9tWN70J22nt4L0QkLvWh9AY4sXfAKFqxRNAnQip+6HIa3m747LmfbGRcXD9+jKNaXAF0ezwioLGETypW/jC2rV83XiRRPr3JAl9SH/ZnSjR6ZTYwa6Cppaz04XFCt/5vRtO1tFMacCdcX4RGFfgqLFgFxanNvwVRMJi5mf6+jsrA3QRJaC43EGamPdHbDaUcnjI1mhdb2akDje7p3lENk7R961zCwChExQ4IfjmRKQRdZXz1QNKHRY5ajJxWZaoUjI8B3jovq4jN9+o9q6G1KkgHs6nwFrQN8HL8xdHNpwL8Rnfx2Du6V5IPa4Bs841VgcioH8SbZlCtub8FlR79AgRPy5SbCWcNRLx7pNmUpV/SSHEQ+uw0q4GB9iCExU11kNuwE3eLwDvPxI9PNKt+IaSHeMEOEYFrrL3m3UyMnQdPrZEVY1pWuDU2jduq7DeLkUWlgNyvaNcMiLUfq291cEjdzL95lej3DFj68KbxRGHGwoIJZI9UyAGZtcL9qL2GeO8if1/vzhyXuzx+qXVM0LAjdexQ0aeMM+stNcVN2BhCOcXNmYqGTgae0VVsQuYg5BW81X9SHSBt6AJwgvgq0XY7pDqNFPHiezpPr00T6HOzpzLW9FTse1WdjnKpkRb8ZBj9Rj5svHdTXt/ufsg1kKO3Mu88w0ACm7oirGRoFGwY17vI7QY/hNxMrVXtK6EjaEWg8MBN+GP6uF+A7nomI/UDE9zHs2rDrb3gaVp7IC5ndJ9Zjk9BAJNbaV8muXBQ+OwzDZbfKse X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d4e5fd6-287d-40a3-db67-08dc32b3841e X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 08:02:57.9472 (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: VAZue0ytimOtA61t/G9uJpM/V+cvYyZUqo7hfbx4YxSajDsxJ0sQSCVQ4HYQAd2iJqwCqccoaSvGmcnIXRNM3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_000308_171415_0538D8E4 X-CRM114-Status: GOOD ( 12.24 ) 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 As more and more NXP i.MX chips come out, it becomes harder to maintain ci-hdrc-usb2.yaml if more stuffs like property restrictions are added to this file. This will separate i.MX parts out of ci-hdrc-usb2.yaml and add a new schema for NXP ChipIdea USB2 Controller. Signed-off-by: Xu Yang --- Changes in v6: - new patch --- .../bindings/usb/ci-hdrc-usb2-imx.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml new file mode 100644 index 000000000000..2ec62f564bf5 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ci-hdrc-usb2-imx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP USB2 ChipIdea USB controller + +maintainers: + - Xu Yang + +properties: + compatible: + oneOf: + - enum: + - fsl,imx27-usb + - items: + - enum: + - fsl,imx23-usb + - fsl,imx25-usb + - fsl,imx28-usb + - fsl,imx35-usb + - fsl,imx50-usb + - fsl,imx51-usb + - fsl,imx53-usb + - fsl,imx6q-usb + - fsl,imx6sl-usb + - fsl,imx6sx-usb + - fsl,imx6ul-usb + - fsl,imx7d-usb + - fsl,vf610-usb + - const: fsl,imx27-usb + - items: + - enum: + - fsl,imx8dxl-usb + - fsl,imx8ulp-usb + - const: fsl,imx7ulp-usb + - const: fsl,imx6ul-usb + - items: + - enum: + - fsl,imx8mm-usb + - fsl,imx8mn-usb + - const: fsl,imx7d-usb + - const: fsl,imx27-usb + - items: + - enum: + - fsl,imx6sll-usb + - fsl,imx7ulp-usb + - const: fsl,imx6ul-usb + - const: fsl,imx27-usb + +allOf: + - $ref: ci-hdrc-usb2.yaml# + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include + #include + + usb@30b10000 { + compatible = "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x30b10000 0x200>; + interrupts = ; + clocks = <&clks IMX7D_USB_CTRL_CLK>; + fsl,usbphy = <&usbphynop1>; + fsl,usbmisc = <&usbmisc1 0>; + phy-clkgate-delay-us = <400>; + }; + +...