Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp3150rdd; Mon, 8 Jan 2024 15:25:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiV9uK9RhF87AGBTDmod9WrAp14eCkShpp8oitxRfTpF+ZCrrU8s+HdEL/KCubnO9vHQev X-Received: by 2002:a05:600c:216:b0:40e:4251:3fd0 with SMTP id 22-20020a05600c021600b0040e42513fd0mr1775305wmi.151.1704756337618; Mon, 08 Jan 2024 15:25:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704756337; cv=pass; d=google.com; s=arc-20160816; b=StK2nP2CVLkll7SUraq1o9v9UhS2E34bQmeZocd6C0crPrSF1DztOBJygFbiHpQVsi ME/OP2Ksxceb2gbveAxvbtLDJW3O/uejdsqOR/Ivz4OyJf3E+xb4nL5UM/328L7d9mfp PC3HNX6C4NUsoH+n5gZpkFrxPa71n5s6U6cGauyQh5LSMsA82HKds81yTz2xwQ9E/SUM ZqpibtqErWi6g4dn1RqFsOhJIGqH/0PbLuyE9KqjWJo7n/H7M0i5Wq1x5oEcehOyFfrh c1v+kvk2cr8FB8xLNT4BbjB42wNha+Yb82U+y0n74/IKFdpp5MQ9qUy5yE6+00O+qpfH vtdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ZNuEqwnvrUxPSqcjCvVLoRsw0bm7wK8OqtVGkt+aEeU=; fh=492Ek0Vpabbqz4y1lk9p/Id6JH5wlBXcD/z8VK8wbWM=; b=rNaP9QBYJjpFr3zWy/9tlqgUbmRot9kLTLv8LQ2E2T+Fx23eGFAgcnD3PPlFmOGFVB qRaMVYosgnHC9xbjlOl4WvSNHyzgondlkRvXDg5rjRSwvAgFaaGtLecUpFHH5r4gQht0 HAQMt+L54lC+nUzljPJu2E7y83lvijiVKg8zuPkuHiLBIV+DQVBNJTFsE3X5DBmFVKlE VR3SpTym04ybhgLIYw5GZfSjm9kCpbP5a4l5mgtiZuAFQPp6+GruqJeGhZG8EUHxmjMo h+78PuYFmEfCZsL/Ws0ZukwUkZlyj8N7z6nvxmWxhGrifjjK7JzrVKuNjmZNGuziwxFI GGsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=hmD77X1K; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-20184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a11-20020a170906244b00b00a28d3917ff5si302413ejb.650.2024.01.08.15.25.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 15:25:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=hmD77X1K; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-20184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20184-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 30DA31F24137 for ; Mon, 8 Jan 2024 23:25:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 814085812A; Mon, 8 Jan 2024 23:23:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="hmD77X1K" 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 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: linux-kernel@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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F7ww22KScDkJ0KbBrFk06PMcAEhkBtX05o0ac?= =?us-ascii?Q?skUgCbxU2bn5fbFh50ImwsYpLTr9CfisShLjJvI3bXU/HpNfrygf6b0aY3BY?= =?us-ascii?Q?0/xXJAb7b3sDygLrqiaDc8r5/MVPmB4dMv60IiegmLZ6UhiwEpKqnW+QjLnr?= =?us-ascii?Q?E9NiUkaWZ2WQF0kI6MGOnaFd55GfjD+elBZa8yzc8IYUuCAINsQfNPgBN4pP?= =?us-ascii?Q?gKO0C3e+eGUcD1z5BroCQ8Lkhr1OLzg3MCYvgG0gB3+WkLSdRVvOivkoplAu?= =?us-ascii?Q?fmEYKUpCRwUYyKAt4gGPPhIFMm+qjjWM1pBwh/KvuL1IPjHYIh/nrW3qJ0VL?= =?us-ascii?Q?vo91pIig6OK2Yjt/xtHk21GckhCT2sBnD7buFBHk9JVbjcE5yytoDW8pO0bC?= =?us-ascii?Q?yYu+zp3Wr95xQjqzvF3UQ9QDvwf8hDtoBE6lsOtMFQC3uUvZXeAJfPqEcuHO?= =?us-ascii?Q?EaKwJ5SLXZIKI9F28w6zow7Q+T4MrMaKczy6u7YJFBj/9lC67Ouavl3ZfzJZ?= =?us-ascii?Q?p8WrMbaiA5k4qVPW1L/JkD+2u+eY3guQKlbkDV1Mgy0suNgAallHC0ER0EdJ?= =?us-ascii?Q?Y8onA9fHipDCaE3OqdcIYqoPwwPQZXhHQqBQ4TcQZLwQSO0RXBpVOb6He8OI?= =?us-ascii?Q?uw1XeHPy34CuAYLgIK+DJF2zn30WeDME8eej/jIYzlxHJEjl9UwkAXE5QsrK?= =?us-ascii?Q?dmVkNsULRWEPbnDWK/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: -- 2.34.1