From patchwork Fri Jan 19 17:11:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13524027 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2069.outbound.protection.outlook.com [40.107.22.69]) (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 147715A10A; Fri, 19 Jan 2024 17:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705684382; cv=fail; b=hZsGFtp7PLcy6Z6qxwqSXwWQggWgbL7XjJZBMoc9GU4nzHHlxRlc1NZ9bsEWnd/7kASm7KyfI4nQP+idOA2/t5TMuw10OoBtxMdtzstmKqGrWRboFM7HqvWe1fQS98OSGPrScj1Eh+0Py+nqDvB0nrbQ+Zz7VEqAWWurUDpM10k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705684382; c=relaxed/simple; bh=V4CkPmE5sJm/QKoZDeZ2XTghlJMzEDmmIDCJ574ZXAo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=NJrWryCHLG6GAsm7Gw6ZbPM95NeZnZ5LpJRUAcbpkv+3ucAJMyDgSkAFAWj6sm71KQsZf3nKRc0Ep10yiI5+I7UmB0Hf8qwFP2VHZzALlFpkXq0gWrNsMMmvjr/1dRIyuMTCvIKYRkz/dNSXc5grynATYt7cIR8G9KFTFGX35AM= 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=NS+WuN6i; arc=fail smtp.client-ip=40.107.22.69 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="NS+WuN6i" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZF3jV7f8Lt1xNjTmPIqeidGKZr+IOdAMNm7+uAuK87ymkCSoYzCNO2q17ETJH3rPUhTNOzk8pQCnFX42obCn85mhEFXZz5b2w6rL+5Lbl9o9QgZ2hkR0Xr7Im5oHP7Rje2GdQzMb8SoMpHD9C8XjQBT0QCamepPKhZoU8kqvbeDfSbwIknxsNb5wYf91iy98O3ZKCkd8bGuGZnQ6WyL0q3Qzx9UhR4IE4BOenHQQiqpkG9PUtiWzg5fpfaTVBzClQ85PEepAdWy/Xpghybar7Vz4YqTjJjr8UF88HjOaDh3yGhq3uozhkpCS/ZfRY7FiJAw+4aiMswEmrgAlRi0krQ== 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=0HX8b2YytgPKGFXPo6S0m3CGINW2GHZdmojsFID8CjI=; b=ZM+UuwSuFN+UUPQY7YtdsqyHVBgdkg4px5HdCKgnxgNqjBs43cY9JSpxiSoDTQ0uXlor8+s8VUZUvCn9XHFUzri8AXO+BGZS0Bny8E1SVZLSohxLG2Gbp5M72XtamuZKw34wsASeQ8F4R5RPdnkXc1S7rCIbwfb/Q/3tFmQgpao5wzy493GneZK27Lz14gXdVq5l1lmvAi/VSg4FaM3DGxR/d8IvT+em1czNaC01TGATGFemZLXLVH7CLQWRIUwcSz2bA5TklimgU1ECjO1TEIfag2r5hUyuowHlmGKQDofF3FanqXbbLKdghCfyOhPGXGZg/w+NvHQC2AQIidFGbg== 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=0HX8b2YytgPKGFXPo6S0m3CGINW2GHZdmojsFID8CjI=; b=NS+WuN6ir9GHfQxhYvP6tRx2652D0JT93JM4jyQKkv/yXEo12N2zTK08hbwZtyOEyPlT7iN1iuNaOJFxgOPjTFDSz0aTLLCxDujLI6yv0JlwpVNdJLt8IKvHpbRJ3WSDG6MIKFG68XrdVQrlf9rqQakUNGOoqp5CBEJL9fjFQIA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA4PR04MB9688.eurprd04.prod.outlook.com (2603:10a6:102:271::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Fri, 19 Jan 2024 17:12:59 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::b8af:bfe5:dffd:59a9]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::b8af:bfe5:dffd:59a9%4]) with mapi id 15.20.7202.020; Fri, 19 Jan 2024 17:12:59 +0000 From: Frank Li To: manivannan.sadhasivam@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, krzysztof.kozlowski@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, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v9 15/16] dt-bindings: imx6q-pcie: Add iMX95 pcie endpoint compatible string Date: Fri, 19 Jan 2024 12:11:21 -0500 Message-Id: <20240119171122.3057511-16-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240119171122.3057511-1-Frank.Li@nxp.com> References: <20240119171122.3057511-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY5PR20CA0023.namprd20.prod.outlook.com (2603:10b6:a03:1f4::36) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB9688:EE_ X-MS-Office365-Filtering-Correlation-Id: ede17224-77ab-4219-794e-08dc1911e2eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FuK1+G4DMkmqjqvV5ZZWiGMFTAqKjv90mkVjRa+IOxya367GpcfuxqfbDaThVFb1DQ8n0geHFs/VCGDT0azpcDPMbbZIpwna11Epth9vR7bYY3Y+d6+eJnLzCrYRGHj0BtmE+fIDLHvX3faDCdE+jCKH+BFspJbAsIBZINaCRr2wWOrktv8SkYv51NYmsUT6Ks9B0q5A7ydkPxknc0qPlEzwVdBs1xBsUkWOlZGWdPdX3Oq2SYy1vwUZghtjSJPNuGWKNoQKIKaNAcNBP5ln6VQok2ERnLUx55h8UvP2+iwJ1Gv++7qIseqW5G/HSKEaEmT3HqzfFWtJiVl6VcSIsOhK0Dl4XvgqD5d/YSXpH1FSXGwwXr1qluraEZ892PQbZHZF5JovYBXsAy3kpBVgDJZhqEC1AhRSDZS+bP3s9enfExVLlvprLGwYQoRmmuIk8z1vDoVuN8gZ2kkwkJzkk9ydv+8Fxv05KbCya3f2sN9Dvp+dPe9nLnZuUHEFhs5lZXXHAkbaQus1IulUXsyNzcd2M3CYnboGvOf6Me2bhmFFFANi4uUKvNAwUctnl2qDG2pMagLK5kd+4JcxmWyOHn69GCKyP4PxEwHfdzTOS3ZWtrENTX4ZVMMvRrf12cv40SkakIqu//HqoECPIh/gMQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(136003)(396003)(39860400002)(346002)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(38100700002)(6666004)(41300700001)(6486002)(478600001)(6506007)(52116002)(26005)(83380400001)(2616005)(6512007)(86362001)(6916009)(316002)(2906002)(7416002)(36756003)(8936002)(4326008)(8676002)(66946007)(38350700005)(66556008)(66476007)(5660300002)(1076003)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CGsbkh372Fur3nRijgfWjNjlWHYXkqrsaDzwnY2iIS6K1BdmdO7Kpr5ENC9W19yQJK9nqTxAIJEhUQYTvuwtZJRD75zxb+SMIQzcykgQWCWJN7stFMypc+hbO8Gr9KA0Ql4qWjqMVb5ACatz7/w2hD3xz3b156VBd5sMF1UcdBZwlKVis+IY1YemqI7cIIezD+7s4Y7c+VUjvgINHuhaREkoNtbaq+f9XfK1DxNZNslVAR4JDpX7V0VdapQmiCAxcQQBvLzYrw3xwxWpuVQ42500jSj7Gu633zzE7aieS2qoxc71N/0zi4aHR6fBimLnvnD+Ov+wpGpjHd0m7tpyAi44o4Efb5A1TIVv+jfTpC4U2Q9hOwe0WAsI+o/RFYQSEL+gyT0NZEhFiL34/whqim+MvAU1T7tH4LbW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wM1szE1HTtrJ+/WY9JyGaoRbaXR6u/kFC+vlhczelgi9EoMGMX4x8qAQMwHPMfe5ZceKvzKOtWnQ= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ede17224-77ab-4219-794e-08dc1911e2eb X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2024 17:12:59.3925 (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: 6GOfU1gz7a6/r3G7uRw+n9wMFZDKwfVcvvbXBjqjZ/dgzDoyzlli6eXKohw9ACGbM3PGLL8b7YUC4M0fvDCwsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9688 Add i.MX95 PCIe "fsl,imx95-pcie-ep" compatible string. Add reg-name: "atu", "dbi2", "dma" and "app". Reuse PCI linux,pci-domain as controller id at endpoint. Reviewed-by: Rob Herring Signed-off-by: Frank Li --- Notes: Change from v8 to v9 - add rob's review tag Change from v3 to v8 - none Change from v1 to v3 - new patches at v3 .../bindings/pci/fsl,imx6q-pcie-ep.yaml | 57 ++++++++++++++++--- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml index ee155ed5f1811..f4d6ae5dab785 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml @@ -22,14 +22,7 @@ properties: - fsl,imx8mm-pcie-ep - fsl,imx8mq-pcie-ep - fsl,imx8mp-pcie-ep - - reg: - minItems: 2 - - reg-names: - items: - - const: dbi - - const: addr_space + - fsl,imx95-pcie-ep clocks: minItems: 3 @@ -62,11 +55,48 @@ required: allOf: - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# - $ref: /schemas/pci/fsl,imx6q-pcie-common.yaml# + - if: + properties: + compatible: + enum: + - fsl,imx8mm-pcie-ep + - fsl,imx8mq-pcie-ep + - fsl,imx8mp-pcie-ep + then: + properties: + reg: + minItems: 2 + maxItems: 2 + reg-names: + items: + - const: dbi + - const: addr_space + + - if: + properties: + compatible: + enum: + - fsl,imx95-pcie-ep + then: + properties: + reg: + minItems: 6 + maxItems: 6 + reg-names: + items: + - const: dbi + - const: atu + - const: dbi2 + - const: app + - const: dma + - const: addr_space + - if: properties: compatible: enum: - fsl,imx8mq-pcie-ep + - fsl,imx95-pcie-ep then: properties: clocks: @@ -87,6 +117,17 @@ allOf: - const: pcie_bus - const: pcie_aux +# reuse PCI linux,pci-domain as controller id at Endpoint + - if: + properties: + compatible: + enum: + - fsl,imx95-pcie-ep + then: + properties: + linux,pci-domain: true + required: + - linux,pci-domain unevaluatedProperties: false