From patchwork Mon Jan 8 23:21:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 760834 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2080.outbound.protection.outlook.com [40.107.8.80]) (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 B03245811C; Mon, 8 Jan 2024 23:23:02 +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="hmD77X1K" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wk+6uQ5d72MeFQz0cZROYjes1HqwSFs8l+0jkBdzjNeppj+j7I9osDS+689IMY6n393apbXBg79elWd/xtAhNv3O1JoEgvCdLFEPGHsGRVQ/4PRsBVWOESI9Id1NqOyUhvYgHeFfMByaQ/8EayixNwCOFVfu5mxZxpwjMJbSULWeMnKMxKFbb/fOaD/iogHdmbLYgyLk+kEH5BaxUzRzRMG8E7sE7dlTdy7xS3tSCLlSRf7QSpAb9bYJBZQagxZjnv7IO/84FJd9UGWCwbfRbbP+piQcBN2+lyZlZIebegQjYL0wQrzLi3nrR3LPl6oWC3OBd7+ZP9C3bbbwPEXBjw== 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=ZNuEqwnvrUxPSqcjCvVLoRsw0bm7wK8OqtVGkt+aEeU=; b=lqpqnubsFBshAjutfJhzaXf4sjib1mIVarmuKPBHSC7AxhjMVsllc51fn1TLRb7MUJo8jYnqMPXMyOvHX6gseheENpLsl17KF2vnUOKwlYcf1egvCcp7sRiXeefl1zKecTBiWKRPvz8BD20Kr6euY0O2ibyR3E6jANmNdaC/iSup2gRgFDfwo01e9IiX6LS5FgPmsn36ZlQBa9eym5ospkfBd1WkVR0AsacVcSQftWpv4N0WUkFlM0dvqPvHlqU4gVdydp8Nu995qgsGzoY3IGdnPSM23HP4PJRHLcIKg1iRkmlZ4/aIrlTJjOAGaPGC2lyr6tpsZG/69hLJfU8EDw== 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=ZNuEqwnvrUxPSqcjCvVLoRsw0bm7wK8OqtVGkt+aEeU=; b=hmD77X1KijJa11HJKZ3Rj5LVSJ1GmDoEyyDqahudBzncgCVJiNbKd2F1L6YnlQmXTOM83PmvB2s50Q7LJQiJxjcGbmllIQEbb5orpEzS56xw6W6kRxHndWKtm4lSOMKFo1dRcuRDZSEwCc39slsZWVZvLXZT05aXEjWu1YoZSFA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB7511.eurprd04.prod.outlook.com (2603:10a6:20b:23f::5) by AS4PR04MB9338.eurprd04.prod.outlook.com (2603:10a6:20b:4e6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Mon, 8 Jan 2024 23:22:59 +0000 Received: from AS8PR04MB7511.eurprd04.prod.outlook.com ([fe80::8ee3:bac5:a2da:d469]) by AS8PR04MB7511.eurprd04.prod.outlook.com ([fe80::8ee3:bac5:a2da:d469%4]) with mapi id 15.20.7159.020; Mon, 8 Jan 2024 23:22:59 +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 v8 10/16] dt-bindings: imx6q-pcie: restruct reg and reg-name Date: Mon, 8 Jan 2024 18:21:39 -0500 Message-Id: <20240108232145.2116455-11-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240108232145.2116455-1-Frank.Li@nxp.com> References: <20240108232145.2116455-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR02CA0063.namprd02.prod.outlook.com (2603:10b6:a03:54::40) To AS8PR04MB7511.eurprd04.prod.outlook.com (2603:10a6:20b:23f::5) 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: AS8PR04MB7511:EE_|AS4PR04MB9338:EE_ X-MS-Office365-Filtering-Correlation-Id: 2238b683-6a34-4274-0db3-08dc10a0c0c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a6yQvceb/7bYiRKHMg7oIJfOzdVHiK22SUcAUrZsDSLCTsLWkBMlUsZcsTzZNsRkyZJuAAcJDQ44U8OxsTHWb+ri2nzWdsh4Eewz/ZCKCmiOSVrx4meuEDVKXlFj959fO8HD0N6pHtlu3nJvOC1C/mF0j8Ail+NWaHHzGQ59OGymmRp6e5XJ6/v/pYFZNqcTID62cYLIIjx0Q4YybBKeaGDUuW6u0KLpYcL6eDsM6Ig/pUohnUYN5DTItqpecjvt3fZfsq0co+EJCz+KQH0uFXwrMdfW/aaCrc1081bcxjyu+0cD5whz31nuxiL4wiMP9Vwa2OmqWdB9XttqXUzWC30YlDi+d9MeJ9HFmLcVj1iTvzsaBiA+Y6VMUFaR5Q6pztBBQgVUoLcBGLM+51QONzSXO3p3pIma7PZMpGf+9TPDaC33kM4yAsPHsVlb6upJKCTfTT9M+FT6ONabDKnn8eFeiZ7IelqUAZ866BpHTzzVlEhyD92Sywf4s2oMP8r0TVDkMfQ5KlmXMmn/VAIKDzVajMxd/Vtf+3gu8BkUrwwzWeLkzzVXn/W/PZnsrGCiZ0HveUVT7ZVnUZlgQFB63YTHJ52NqFa/Nb3g4OT3ZPWWgE4JATmIONNjdCv1KlJ8KhzX+ppB/T6KJLnwelgE3w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB7511.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(39860400002)(376002)(346002)(396003)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(52116002)(6506007)(2616005)(1076003)(6666004)(6512007)(478600001)(26005)(6486002)(38100700002)(86362001)(38350700005)(36756003)(41300700001)(83380400001)(7416002)(66556008)(2906002)(316002)(66476007)(6916009)(4326008)(5660300002)(8676002)(8936002)(66946007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2hEgMfSVz5bxx3fGHNrUp2wbjqNwQJHrGrRHjoI4rw7ucfnF0AlfL0mmhNXycm39ckY+A7jkZXBRBosxOpYLYi23/4TZaYMMQAvDbRX2+LIfsdCK534H5NI7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/nrW3qJ0VLvo91pIig6OK2Yjt/xtHk21GckhCT2sBnD7buFBHk9JVbjcE5yytoDW8pO0bCyYu+zp3Wr95xQjqzvF3UQ9QDvwf8hDtoBE6lsOtMFQC3uUvZXeAJfPqEcuHOEaKwJ5SLXZIKI9F28w6zow7Q+T4MrMaKczy6u7YJFBj/9lC67Ouavl3ZfzJZp8WrMbaiA5k4qVPW1L/JkD+2u+eY3guQKlbkDV1Mgy0suNgAallHC0ER0EdJY8onA9fHipDCaE3OqdcIYqoPwwPQZXhHQqBQ4TcQZLwQSO0RXBpVOb6He8OIuw1XeHPy34CuAYLgIK+DJF2zn30WeDME8eej/jIYzlxHJEjl9UwkAXE5QsrKdmVkNsULRWEPbnDWK/2RnTPYT1AYB1N5LDZubsEZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2238b683-6a34-4274-0db3-08dc10a0c0c1 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB7511.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 23:22:59.6857 (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: swTA9rZtHSVJvN2GUODvypuxiV7HcpUx25jwH9LHA/+n04NC4qqwPQTPvBptelpd+ARueqTnY+G8x3OJchFMlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9338 snps,dw-pcie.yaml already have reg and reg-name information. Needn't duplciate here. Add 'if' check for existed compatible string to restrict reg and reg-names. This prepare to add new compatible string with difference reg-names sets. Reviewed-by: Krzysztof Kozlowski Acked-by: Manivannan Sadhasivam Signed-off-by: Frank Li --- Notes: Change from v7 to v8 - Add Manivannan Sadhasivam's ACK tag Change from v6 to v7 - add Krzysztof's review tag Change from v5 to v6 - Add if check for existed compatible string Change from v4 to v5 - add Rob's Acked Change from v1 to v4: - new patch at v4 .../bindings/pci/fsl,imx6q-pcie.yaml | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml index 81bbb8728f0f9..eeca6b7b540f9 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml @@ -30,16 +30,6 @@ properties: - fsl,imx8mm-pcie - fsl,imx8mp-pcie - reg: - items: - - description: Data Bus Interface (DBI) registers. - - description: PCIe configuration space region. - - reg-names: - items: - - const: dbi - - const: config - clocks: minItems: 3 items: @@ -90,6 +80,26 @@ required: allOf: - $ref: /schemas/pci/snps,dw-pcie.yaml# - $ref: /schemas/pci/fsl,imx6q-pcie-common.yaml# + - if: + properties: + compatible: + enum: + - fsl,imx6q-pcie + - fsl,imx6sx-pcie + - fsl,imx6qp-pcie + - fsl,imx7d-pcie + - fsl,imx8mq-pcie + - fsl,imx8mm-pcie + - fsl,imx8mp-pcie + then: + properties: + reg: + maxItems: 2 + reg-names: + items: + - const: dbi + - const: config + - if: properties: compatible: