[v7,05/11] dt-bindings: usb: ci-hdrc-usb2-imx: add restrictions for reg, interrupts, clock and clock-names properties
Message ID | 20240228113004.918205-5-xu.yang_2@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-84912-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3287062dyb; Wed, 28 Feb 2024 03:39:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOES4IjpPNHqYXGk7M4wXluMLbqSoahK3KRF6WDnZCytrfgAmdJ4bMANnsXao+r6gv0Hw8ubY4tZj+hnKoeUHTh7Cuig== X-Google-Smtp-Source: AGHT+IHAhMTQr/WIXeaguZ/6feeR1PmEfc89pBOZ6jO00xDhBSWYpkKQkbfmuTADMHn6QiU64bWx X-Received: by 2002:a17:902:c102:b0:1db:c536:803c with SMTP id 2-20020a170902c10200b001dbc536803cmr10514454pli.33.1709120360995; Wed, 28 Feb 2024 03:39:20 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o7-20020a170902778700b001dbe22737f0si3063934pll.587.2024.02.28.03.39.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 03:39:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84912-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=evjudKE3; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-84912-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84912-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C958728F4B5 for <ouuuleilei@gmail.com>; Wed, 28 Feb 2024 11:39:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 128E13BBC5; Wed, 28 Feb 2024 11:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="evjudKE3" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2041.outbound.protection.outlook.com [40.107.14.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E5F7146015; Wed, 28 Feb 2024 11:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709119830; cv=fail; b=jWHzoz9onjEA+0ijHhUsYaFkE+TD0YtEXuNYTXM963Qsl+Jl2nz2jt1+98Bbe9KCkmhjpB+tzzd49bjw7MSrhj08VQjkxxofGWzfJdxRyC6QXVb1bl3v/fSgbjq0hwDjWhydklWO5SwBzEF7/mKqEAcdLCrnr9aG/J1dGiQND94= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709119830; c=relaxed/simple; bh=tHdbKUI5jQLpQt8UCD8B60F32XF6NDc2c6OQijjsxxE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ZGjRd3KGAmLU2s1hpXV1b0WN4/Z4sJQBXqU2MaM+e29J8uJSmrtx6TTOday9jqwnYJHOgvzA58fTb/13BoYQVRmZUliqdfCbsiGEoTQM1//CXUDdVK7VIj3/FTbHY6reWR5QWFgAZDuaQhk1tUXHlQOEXJen8zofXLyu7oeIB2I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=evjudKE3; arc=fail smtp.client-ip=40.107.14.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AsjVfCgLUEU9K83ynuCBK/9o0kXQs6TKIZVzuNNnxOKQgp7MhMo9DQVOMFIWeUrEqWJLgHMzpR6PHECj5nJ0QuG00kj0VAHvy2AswJinmI78eJFSt7U7sOIn8eglK76CRo2HrdpB9nSD5+h7LkVW8p40NRQnTdoW9ECAatZNdzv8sm4yrG18qXXzo014HkbN9EuPZgHLIdHEYkiAZo++WZrsISAnlsxngF/wYml2ydy20ZPvfbdRyhgirRXkxBqpHD5qpI0on3YTi0tDvnR7epZn1aPNcTcUTpy3rMBZYYxIeG6kYu0Fq99vkdqQDkVow177oXpvCASsjnmA+eGyMw== 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=sxYc5zCmVVzdem2J6287e7PIDGHcqtlIg6NDNRpbl4o=; b=mLdeAz0TwZJCKoG6LukjnPcITS5jPvCI6GpwYVm3QqyrUe3PYg6OOcMI4HDpE4oHJJjJ6dFN0G1FaPgr03hmGlLZAnLtbfVdaas+piC9aLnFLuQ2agVg62GAK/lEzw0GcfFx6yp9HjBVNF+mpwQhxq+3H1BxPuVjIZ7tDZkcA1nnSSUvjyHrdqlCkXz7jP1zI++utrCgrG7PxT54Bx4YgnfseFCG02DLtOxlJ00zmFVSSeAVkNmnL0C/Vc3aeP/PmVdwlMhwF4CZwTCB7cuBJx+tScfeZcmJUDknaOEvGDIpfs7V90XjMkthRquToL359AV8u3a+4VkpAa7O+eLpMQ== 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=sxYc5zCmVVzdem2J6287e7PIDGHcqtlIg6NDNRpbl4o=; b=evjudKE3otwjlQhtZLm9YeVtruD8G5/d4+VFtm83YxwKXXw8zHBfbs/1BAAMxfbjbTjtck/3yjtoaM9Yan16Vtrv0sEi6ui2YuQoqjYadnh2l/sNbjE4VAKV0sICzkr/Ov7BKW2hE+tafNbgvHZOn+uITfj/X9LYtdHJFWD3mGQ= 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:24 +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:24 +0000 From: Xu Yang <xu.yang_2@nxp.com> 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 05/11] dt-bindings: usb: ci-hdrc-usb2-imx: add restrictions for reg, interrupts, clock and clock-names properties Date: Wed, 28 Feb 2024 19:29:58 +0800 Message-Id: <20240228113004.918205-5-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB8466:EE_ X-MS-Office365-Filtering-Correlation-Id: 043d5f47-04ad-4bc5-cb0c-08dc3850a7d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RP/Z0ksTqiZJg23rxm9Z1IdHEMRbWMoig2mcsYDVkl1J4napLfhDtrN9pYMhd87TvkSaoBmwi/YywJRg3zZCi+3+SnPTq4gR6yE7PTxW1mUsQ9MicCzHCNdMEL9IpAhTrw3xqf8NItDnRVBM9xGBVrZEs9xDfc+y7V4j5X9XNBdmxBu5cT+iXHlOdTne7Oa4HbsC7u/MHO5JZNIj5c/yl7/BnAO8VxL3YYakCRxvyMsyB+PC7fAaHsBLVe1pW7lYyJBG0XhhDXq4SyFkTms9ILYynXWKtRh0+vG1yg7cVi7oQPrncsbLXW+ntssgH/AvsTjIZU2X6jplEO63ZP0t47a5rWOrxV8HurvcdYCbjUklTZ4O4mmkJJ5/en/gSp3QIMLiibdy1ZIoxsaTQ8YzG0nY6F4d7ZS6uDXpboZCcbS8mskacfcBWBbS9RKp2sjABo45kS0zt/g1/j1xJ70fS1Urz8onf4w33/IwVy0uEcJGeq2pBBz2GzoCLM5U99p2WUTLKHutWtyvzj04al/uMQELcLmUg0defkP0uMbPYAaUf4xYgMGEtlT0RLpJZkJvhEM6fAEt7fP6DaP6PkjRHWf2AEI7g1sNg/C7VNcRQTfZQeb2CGpQJTrQ/LW0Wh+09gaG3pcV0Y9NZubxTWSD6Wplz6GSXCtMfwt1vRzGGWUKY9K9VNq7tWaG+kdC7y+g2Cee390mbEVTdOVw7lTY4JlOHaUx/C0ngPFSZmupKqo= 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: /kXwmRjtBc513pLDPfqqpqt1IlLIGkqGra8u6dgOmUY1P+IJBY1feFidFZ8ovKXJTAoWTYr9LYZS/FPY+jZf2V/XLtU+0gC9YBFWTI7DR3kTljffRtM5a5OeNG+78kwLCNwZTHXAQjec5rjrUT85M1CN/jt2+vSFVu5/4m2BowotV3AeXBgh8K/wKzjo7ZfD1XW19E4nNm5zbTl8LFg8EBHx+FKyRmPRgme0M6ylMa3DaFMWQlvlXvIj9vbShs9hm+DLtC78gCGIRzsziNS5uIz8qBVlUHOjKhcQF9ozNVlg5mYPHVC16l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e2F18w0snzPl5C8ESVqtfvgtU3X5otFBjo6ixJAPvuOo/08NA3YDhMBIkzHLWW2PjmTmjt9F6MDnLgEv+TMi7rMDpDpEkIjooHagyT7zoV7aNs3393HHDw8Dbdu9T5GR3DOSakeTHRdWFWTL36uI/hspem8ztiJz8yoFCDiA4s9/DwTeTshukqtpEwalxj0M8X X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 043d5f47-04ad-4bc5-cb0c-08dc3850a7d9 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:24.6026 (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: NGxslKlfEXg+qUeJCxUjnyDy1FMnJyN1jhKkvWOUw+x+5MuuRrSRQOUULvaTLEXz13JMyufF7yqo7e9nKIhN5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8466 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792142591960965145 X-GMAIL-MSGID: 1792142591960965145 |
Series |
[v7,01/11] dt-bindings: usb: usbmisc-imx: add fsl,imx8ulp-usbmisc compatible
|
|
Commit Message
Xu Yang
Feb. 28, 2024, 11:29 a.m. UTC
Add restrictions for reg, interrupts, clock and clock-names properties
for imx Socs.
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
---
Changes in v4:
- new patch since v3's discussion
- split the reg, interrupts, clock and clock-names properties into
common part and device-specific
Changes in v5:
- keep common property unchanged
- make if-then more readable
- remove non imx part
Changes in v6:
- new patch based on ci-hdrc-usb2-imx.yaml
Changes in v7:
- no changes
---
.../bindings/usb/ci-hdrc-usb2-imx.yaml | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
Comments
On 28/02/2024 12:29, Xu Yang wrote: > Add restrictions for reg, interrupts, clock and clock-names properties > for imx Socs. > > Signed-off-by: Xu Yang <xu.yang_2@nxp.com> > > --- > Changes in v4: > - new patch since v3's discussion > - split the reg, interrupts, clock and clock-names properties into > common part and device-specific > Changes in v5: > - keep common property unchanged > - make if-then more readable > - remove non imx part > Changes in v6: > - new patch based on ci-hdrc-usb2-imx.yaml > Changes in v7: > - no changes > --- > .../bindings/usb/ci-hdrc-usb2-imx.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml > index 50494ce06d07..a4730a2393e6 100644 > --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml > +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml > @@ -49,6 +49,12 @@ properties: > - const: fsl,imx6ul-usb > - const: fsl,imx27-usb > > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 This kind of proves that your previous patch does not make sense. Why common IMX schema allows two items, but IMX allows only one? So the common is not only for IMX, right? Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml index 50494ce06d07..a4730a2393e6 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2-imx.yaml @@ -49,6 +49,12 @@ properties: - const: fsl,imx6ul-usb - const: fsl,imx27-usb + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + clocks: minItems: 1 maxItems: 3 @@ -145,8 +151,54 @@ allOf: - const: idle - const: active + # imx27 Soc needs three clocks + - if: + properties: + compatible: + const: fsl,imx27-usb + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: ipg + - const: ahb + - const: per + else: + # imx25 and imx35 Soc need three clocks + if: + properties: + compatible: + contains: + enum: + - fsl,imx25-usb + - fsl,imx35-usb + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: ipg + - const: ahb + - const: per + else: + # other imx Socs only need one clock + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + minItems: 1 + maxItems: 1 + required: - compatible + - reg + - interrupts unevaluatedProperties: false