From patchwork Sun Dec 24 18:32:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 758285 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2075.outbound.protection.outlook.com [40.107.22.75]) (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 EDEEEE572; Sun, 24 Dec 2023 18:33:51 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GbUjiP/C" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I5bF4DEAwBu+DX+/tqEUnK0TlA3g1w3paxRPB6EtOAa2+udM6tRjGcW/6Cz8yQk9keTX2MgAtH3F46cgp+IuCQCFw7OKPZ14wM+p9Ju5z6jvyAJZ4i9m7DqcTdXKpwlVgDndyYoYC4xUEYARH29/UWdvsEWqQHYgtutBIRIiBclbAqyKNzOUxHjLOQSjcdt35e+RX3oLGpmFX+zWN7J3oTSqVyA6ENl1JvIN+i9S3lqpWMeTLIyaLKglN2zHqUVWqN7PjOaXFPsTH2CGW1L1U5W3vk3GyQrprtRwMvrRztKxGDz9iXBEj/jXvq/Td57HiaSmnGiUvRCZGo9bQG8pBw== 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=DwGNcVVm9dRFaWrWACS5+4/Jv6HAxqd0aWPvzjOpLIE=; b=mlpbKulOXiPMrlukQb9yLWBOdEYGiKCgdZU03EYoCK+hM7DkP2LYELAA/gprTuJs4yejSY9P4rCiy/n8aIKXEmEaT/04j92QOs1Cm96Lg01OtQITOZRDpYUjqnibH6fzjpeTi8N6wQ21m6+hAA3Etj4k2AWmUEpIn7gkvQCQrOfriiOaP30TafpiSd6l+AneTtHCMqUfQAcM1Qf34fEpwDNjgJYaGHcOD3amHnh4rvM9ieuIr4hVP2J+00FFcVKJT7nzlLm6s3vg7XvQXEkc+2fCVpmRA0Ck9FLyOmJ74m+w0PgSUFvp7I1Nnni7dFEyt06SW0UfCEv5D5IkObpbAA== 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=DwGNcVVm9dRFaWrWACS5+4/Jv6HAxqd0aWPvzjOpLIE=; b=GbUjiP/CRd6WOzlDOvntdopat3uGtTKMlHfzJ/UAHf1qSVf44i4dTbSyDvDpkqcrQAbC5CvYo2PZWZJKjDI5IHVejjGrE7kFjix0PhuAqB2q3nVqaiRHO9U8u/wwkHL8BnhwwG8ajf2QrLEQlu4oUgvMm9nOyUE+fEQIMQZs67k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS5PR04MB10020.eurprd04.prod.outlook.com (2603:10a6:20b:682::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Sun, 24 Dec 2023 18:33:49 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%7]) with mapi id 15.20.7113.026; Sun, 24 Dec 2023 18:33:49 +0000 From: Frank Li To: krzysztof.kozlowski@linaro.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, helgaas@kernel.org, hongxing.zhu@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, manivannan.sadhasivam@linaro.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v6 09/16] dt-bindings: imx6q-pcie: Clean up irrationality clocks check Date: Sun, 24 Dec 2023 13:32:35 -0500 Message-Id: <20231224183242.1675372-10-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231224183242.1675372-1-Frank.Li@nxp.com> References: <20231224183242.1675372-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0169.namprd03.prod.outlook.com (2603:10b6:a03:338::24) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB10020:EE_ X-MS-Office365-Filtering-Correlation-Id: 8bd999f8-13b0-49ae-107a-08dc04aedef7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fBPOTqvr1QskLGfFmBlQsx8d00hBSH5PJoAAiEfln/hrTdnEZdDBJ5WXiAFqGXpiMe+lJ8cvO/bfDHrpkm1RIAZyvpobgIU9dE07Yieu6aktT3Lpmxy2RQrKA2lNF4XBUvQzaeVk2qp4ZVcnPhiR51rtuku5IiFmn7t6ohzwJfmONBMX+b5z3UZRyJyL8QY3CR5nTDA7hExmEbqNinle+/e/a63wMs2koqOhK16hEyEogBu7h/1L6P8FFVefyQdc7TDCZ0NzMNWFe/PIwsHcfEkKO44LoosHFz5OfDvhgJ9OLXxJa7fMA2na6QchorEBA9zpMScO0OeVC9dafmp8Rpu6ZO15QAmowXP37ANiyzXcmKtej8NBtHcCSPbmNPS2TLgX2kWLrp8hnoI3Z5dvJS/yaz5OwDo/8cfbtQSwtWuRPgfKllugOQfyX74IABIDVdkV53xD41v0WZNwo5jqdAiww3OO850UclSyOpJ7onW7t6DXLM35EtXm4KCDubXjXtjttX0LrnKtDJecawGrY2SCUH04c80tmk9mOIIBa/txzWoSwEZq8c3ATc8YAgpCaWV0j7ycHkwkMsAIWoMsgqelDImQp71ub5byDVuPZVVyaPmqhGtoXZY6APUFFjcoWQk5e1SWQ1hjn4AwUSQ+yw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4838.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(39860400002)(366004)(346002)(376002)(136003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(38350700005)(41300700001)(86362001)(26005)(36756003)(2616005)(1076003)(83380400001)(38100700002)(52116002)(478600001)(6916009)(316002)(66476007)(6666004)(66946007)(66556008)(6512007)(6506007)(8676002)(8936002)(7416002)(5660300002)(2906002)(4326008)(6486002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mSjiI2tarp9sQ0IcxlsqsQM/VJwvE43kcxtaFuxSt9eoMIFd2Twy1UqZF0jVgx80kr+oxHL5d1jTrEb3jWFITj8Qw9DhGmiKDRa6LNTHNmvwptTCQ8vEI/rtCe35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NWHLFmRSZRjjFJWczeIeysk6jt1NlrlLnR6MOSkGDPqXsquDzT85JxWGLcE1mGT2DhGxw565lpRi773O/D6YxvlDhlYC9FdtH5DPUOfjtF/kql9JsdryJxH+jWZ9Y984egTDFBqGISC5mqjxNt5orLOJKgfRRcMyA0e7/1YdLR+fL6NtDBXhg99A/pAt5ljiczqgIygMKW1yu2rp3qGYt7leyWNKI/iCc6hhz0NjL7dFQBqD+ANNiy10YWd3Fnr0n7zserP5bpGQD+aIzc7Qnw0T6HhakHs5P67lca1qt3j+QL20muC29OQPMJ5eFeEv2DBykUsM9ut17/bhGf//zzvgR1MIomoQ0b2J+29ChP10EGkA3PZ3fgkqE= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8bd999f8-13b0-49ae-107a-08dc04aedef7 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2023 18:33:49.2835 (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: bbDiBuEK1YvC7EE4VLFTQbP4/tETqV720gyecPmmCJTcGuLzccBVAz2ID8nIV8WBoRBc5J5rI9tFW40lGKMZWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10020 There are clocks and clock-names restriction for difference compatible string. So needn't irrationality check again for clock's miniItems and maxItems. In fsl,imx6q-pcie-ep.yaml if: enum: fsl,imx8mq-pcie-ep then: ... clocks: clock-names: ... else: ... clocks: clock-names: ... In fsl,imx6q-pcie.yaml. There are 7 compatible string. Each one already have clock check logic. if: enum: then: ... clocks: clock-names: ... Acked-by: Rob Herring Signed-off-by: Frank Li --- Notes: Change from v5 to v6 - rewrite git commit message and explain why remove it safely. - Add Rob's Ack Change from v1 to v4 - new patch at v4 .../bindings/pci/fsl,imx6q-pcie-common.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml index 8f39b4e6e8491..a284a27c5e873 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml @@ -150,22 +150,6 @@ allOf: - {} - const: pcie_phy - const: pcie_aux - - if: - properties: - compatible: - not: - contains: - enum: - - fsl,imx6sx-pcie - - fsl,imx8mq-pcie - - fsl,imx6sx-pcie-ep - - fsl,imx8mq-pcie-ep - then: - properties: - clocks: - maxItems: 3 - clock-names: - maxItems: 3 - if: properties: