From patchwork Wed Feb 28 11:29:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13575436 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 3153AC47DD9 for ; Wed, 28 Feb 2024 12:47: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: 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=ps8bJ1tAN9Q9s7NjtCcHay1QiJmGsbPH1hX4T+EccvQ=; b=MbzrPUTrFDOR7k s+TE3eTYmtS9qyDjnHSd31rN4ibY5GMA2S9aL4iD5SUHZH2L4ytmYX2brBbPD0Stm6hI/XeluDW8H S7yh67ILlQrPBFaOwY9pNNor3Ygg0iCSIEXIlTv9lsGKu9jZYxMUMgh+OhnceHkBR4J/N5p5dkKe2 OvfAjMbcZ+qZgJVJpQ8I0jC6nVSn3Zs3PwK1ajQTqUZLQFelmv/3FUvQluXBn11W7EgiEYLvr8LFt FFwdYKl6JU3YNLkMOCEKBjKxRFzoehqaxJOSdg09GLgp3UdoOMtrUSym34AUFSXBQL+rZXuy61eN/ qcaaGn7Xp9jsDHN1ecqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfJL6-00000009IBT-1VhU; Wed, 28 Feb 2024 12:47:12 +0000 Received: from mail-ve1eur01on0626.outbound.protection.outlook.com ([2a01:111:f400:fe1f::626] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfI94-00000008zfn-1WHs for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 11:30:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jF3TtIegAP5aFWyF4Llg+Ca1Hgc1tuz/cxy15IhhE727+7ygQhT52/QJ+t9P1jM13xOTmr7m4Z/pMXF7LRH3TgQyW9gH+dOr4Fq1W9r/3kL4mXFk1CZpbyiQ6ytWAcqOgT1Rv/pSkx3Lb+NQGd0VXwy1zKtJFE3fiDt82RqeKnqz1vUDR5OE2y6FXMFhAD6b6CdAF8x8UE4YRXOibYS2wpKEJEJ28tgPu/ESFHDpu75pGiu7tIWnGbRfwLlA8WldQK2lgvKDVThvH15ORyQbpoCLJMM6b1KRrkeZjC1lUCpkr0TH6EBY6vP2hOdyGRv7wCFEbY9mpZsuLPqDZ83nZQ== 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=bNNJmWiQHa8BkKJSogrViSMO5gNi1b/KCAnuWsynFAU=; b=H1wLbTEX7BpCZ3/i5N0Qj+d+Zo8tRjDEniXMJnKY3bJhQK4/5eYC9muhb3UDYOkIJ0kd4CTPDp2QFxQzZkCNvTKoBkY9HDyLyop45dJMl4OvTqzz5jIdia0Uuzu3HmoWxXgqIALuMRP8NdGcBGvf88fDpj511QUSeDqweC5fm1cLxYvVJKFbqnWHIOVeKNrWzJY2U1EcCb2lEWC4ysmS9IMpg3reE/yN/TU6jqbEpuXMe06wPiO0rFZwNYUhMmjpQxGMUAZPD7Yynu/3d92UeJqpmdn1W2ELChNw3+y2t+bW0zBUcdjENkNrnnhFCqVOF/nfoZB2360VOM/IxAjqGw== 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=bNNJmWiQHa8BkKJSogrViSMO5gNi1b/KCAnuWsynFAU=; b=ipnuz8n7Ii94vbmYw9O4LFLTJySun9m3BQxCGq1Mb3KRxOPTeVdbSaVk8gOZkQkWwWpE0HZpf7FAU94LOdfe0ZXI7Rk2ryGEhDAChOn6Vp+lOyUuSxKlgDf2/a4lrKV9mSET2/zRvaA4MQi7PDEnOUyKBfnMb1cFawtBLMP4ocU= 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 AS8PR04MB8466.eurprd04.prod.outlook.com (2603:10a6:20b:349::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Wed, 28 Feb 2024 11:30:29 +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.7316.034; Wed, 28 Feb 2024 11:30:29 +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: [PATCH v7 06/11] dt-bindings: usb: ci-hdrc-usb2-imx: add compatible and clock-names restriction for imx93 Date: Wed, 28 Feb 2024 19:29:59 +0800 Message-Id: <20240228113004.918205-6-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228113004.918205-1-xu.yang_2@nxp.com> References: <20240228113004.918205-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB8466:EE_ X-MS-Office365-Filtering-Correlation-Id: 24fa716d-e105-486c-60db-08dc3850aab3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OLXdPbVfUGFzOmxPoEYKICq+hlaV72CFxBLh636cd9AlhKgybtFAu+EF/ACfuX6vJOSO26JPP1zRpG0130zSse3IBpwgMlyjq7K4AmDdqqsk/5q1SCA1sDvfxUS3QEIKyAXp3RLrJCzdfdjIpGZ71Q/I4HZgZfTFzwsti0gOX+leEdVvSDwXI0jlbRx7Yxb+EC6C4CMbRT23GkBRWiQDAih1DNwKOR9fe5O62nP50Z5M2bWLPTb9eJC8FGivrODvcEN6aNa9QjFUtS77ZCtTnyHBlEXgQN/ECDIsemiDk7pP4wn2+8DaAa2XQ8uIvlXzk8n/8Jw7Ofm6HmyzsQxDl8sPvypi9SWvkagvF8PeXo1AAMSPtE7p0pLY2FKNXlU2JAKysbvji4DVKPvRBfnyGBI9XUA3tLR/5XX5GeUieuk3qJsOtNfpuc9EWEO2dxMdC5OVkeG69/mVUFVnpx6NMAqGZimdwR/Iic5Pv5WvIvLiHgBRw23hHRCBaZuS4zXJTzdVxMxoLnXDUtF62Lb3bdRUg722guC5yyT9JviqHFJJdmFtDt9uXwGoUWAT3vOi/iR6sl+eozYyuOONdHmVyM+KEefyMxzvt+99beFh/YOCDUezxGrIIKhyzqyOK16AvHCCNEF7QMQB/uAflczFdGyShjM/1wwgjGEClZi7yRjPJz2wmUDl5kcWLRNLgR57uVGa/gD6zpf9qWp9QR/L5aTApMyfQsCjNV/9ZuhtHkI= 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: SYvX5AvZcZEL2l/nT58F4CsB+PdI6gs4PHYXDD4BghAz8ZuP7/j/KaVDbvdrzQ/mumbVxSpN7EcAXM2MGJnzB4UYlRoDUNkZw/ka2VmeWyOS43BDOdoeCJgwhhEmcfobYFRyOnwKT7IqQ4PUmr8sJ/mMgCb0SzAisK5936U8XBMZgborlcYddm+3O0M8w0LVCdYYhhsHVUiZiPgJ0XLHoWbn9bVKqAXfnTaBvpgBD2cfLtfMjI6uD6LOEC2gdVnOzuG72+qUTcQQFdFhhgqTsz0/b+tnmKxKXtDvFn5bS6TSESY6Es1O8Nb1fVx9HyzADKDV7aLYIxWynECVyJog9hiCEZEesHbm8Z4dF/4TAmp8GtWMWhaKh7zyHjl2KAQusNKJcre9a7HcoGZkXgtx1s7Nc7pTv+7lJD7cIWW6I48JAYFj9fNO/w0IclFLeZjvkFAipQM787IVSKOqgsCs8qlOFTcaE5agRQcUbcSbPr5PtSND4TVJZcIdutfk6y6Jtfrul5I7eN5tqAuv75Z3Rd9i9i3YNlWst5c8F1mAYdrj0IFt2FN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Id: 24fa716d-e105-486c-60db-08dc3850aab3 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 11:30:29.4749 (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: vNHfy19RXW481cNJ2moUX/I/X6RK4vIcFlamCkgfOQ7W4cKnYR2QVP6rEHXYM7k7Nn6zbpsGKDvYYJ6s31l7Wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8466 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_033042_536105_9DC917B6 X-CRM114-Status: GOOD ( 10.87 ) 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.MX93 needs a wakup clock to work properly. This will add compatible and restriction for i.MX93 platform. Signed-off-by: Xu Yang --- Changes in v2: - no changes Changes in v3: - add clocks restriction Changes in v4: - use 'contains' rather 'items' Changes in v5: - rename clock name Changes in v6: - new patch based on ci-hdrc-usb2-imx.yaml Changes in v7: - no changes --- .../bindings/usb/ci-hdrc-usb2-imx.yaml | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml index a4730a2393e6..a2932af2c09b 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml @@ -40,6 +40,7 @@ properties: - enum: - fsl,imx8mm-usb - fsl,imx8mn-usb + - fsl,imx93-usb - const: fsl,imx7d-usb - const: fsl,imx27-usb - items: @@ -186,14 +187,31 @@ allOf: - const: ahb - const: per else: - # other imx Socs only need one clock - properties: - clocks: - minItems: 1 - maxItems: 1 - clock-names: - minItems: 1 - maxItems: 1 + # imx93 Soc needs two clocks + if: + properties: + compatible: + contains: + enum: + - fsl,imx93-usb + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: usb_ctrl_root + - const: usb_wakeup + else: + # other imx Socs only need one clock + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + minItems: 1 + maxItems: 1 required: - compatible