From patchwork Wed Feb 28 19:03:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207965 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3550297dyb; Wed, 28 Feb 2024 11:04:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUb/lfErUhtJJldC81S5WG7YXYqOhCsrmRYkANeqX6IzTs6RaMbxKwMOkid6JQvtMOtpg5e8Jpx+iC+10vOncR7q18j4Q== X-Google-Smtp-Source: AGHT+IF+RuHTAW56+sSCJGlwmR4v7QYP5gSFuWk70oWC5dOV+BUhTxzKvWKfDRZBhzog7zmnwi/C X-Received: by 2002:a05:6402:449b:b0:566:6c13:82fd with SMTP id er27-20020a056402449b00b005666c1382fdmr100077edb.21.1709147065560; Wed, 28 Feb 2024 11:04:25 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g9-20020a0564021ec900b005663aa32e66si1723866edg.331.2024.02.28.11.04.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:04:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=pcENeWjf; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85568-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 096E51F26925 for ; Wed, 28 Feb 2024 19:04:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A040B15D5CC; Wed, 28 Feb 2024 19:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="pcENeWjf" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2077.outbound.protection.outlook.com [40.107.8.77]) (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 E5AD674409; Wed, 28 Feb 2024 19:03:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.77 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147025; cv=fail; b=AJ/xM6dLS/difKDz4JRbvZNb0qMx40gl5hWlqObjPRIze8NAwzNR5X7Ctz8KCK049FnSahB1rsEN+yM1CcTucOyWTkZnpSOSZsdkTtj2BbSZK3LSTjS9aij8yNp2Q7JJ0xeRHNC7wCIQo6FV4br/PCfkkd/2o7l2fH48GUo2JdA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147025; c=relaxed/simple; bh=qz5oL39Brj8220nsvS24/MzLmuiiqWkDQlYmL4J5yKw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=F/xTWHc2Lar2w/ZNrPcqOSQqRw9iqZ5eo6ZC7Uxuc/aUMnqFb9eVt94kNs31P021fAb0yP61zCaNEfY7JZPDAl4G9IUZOsu7FPsVVjZPrSSm75t40eWj6gJSJP6RVEdmKWSE6EfeRLVoyhw8O4vVa+hXIstG7Py+pMDo9gtKM0w= 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=pcENeWjf; arc=fail smtp.client-ip=40.107.8.77 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=MvYse7YRxeau7y4reVutOo3sIX5WCoOdpEbcvDgoZlQV2486y6GGeE4vPtfIQhPOi6aP/wUEsORrvqysbfmQ7N2QupZAsNVdiw7LKORVpuHEMiYJLrAFQiSdjZZUvo6KYkx3kgPFHQWdO4Ei4PZ7N/CKiFgXnJlroagj5nIbp36AWuXxgxps4GEBYtPeb6WwIL2FQ6TP7IsTQikoyITG4NRa7K/Sng7G1nnyonoJ5C9AxTEaIZCeBZ8BRrI1Dwegv3trC14Hl68b1xnLsC9bLZZn7wa2opHVgKgHRscinuf25dN6AqT+aYD+bDELERGCZIIMXjm2OFwIarYv76wIjQ== 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=gXu4WunQQmY3l+sAajF7oNDBik3Y3QGkhgj6iXliE88=; b=U8seNdzrnIUBGugputhjDKrmSSnG1cKH0+73cOGVzDSunGiABzWPhDWFxaNDur5b67CWuQwhY+AnZqi3BM71mgux0ipjoi738lctekIrD+A/uHg90/IwKUYTn2oHL3YsdOY3gW6SZtMkXHk61o2tU0TB9JcL8GJesEf9pk3VXJ/vf+GHXVLJkN8CKuhnw16KCA8jIRmb7SswnutZn39dETp0vCYI45tIXCcP7OiXDSCeRtYv6G/DlrvXo7nvi18eSX1KJl8YIbg/HmPm9rD2VBsYr8O5g50+kmES9BmKdsa52LU9LG5qJIVyGTe1i1SWVsJnVlIqhA5i6RERYwUpKg== 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=gXu4WunQQmY3l+sAajF7oNDBik3Y3QGkhgj6iXliE88=; b=pcENeWjfuO4p0u0pvzXhPvBYaGK111/OFZ1cfOEZRjfBqnJb4Cea9n6Pdn9iK8lRu2gCY/+sQ8Zk78RSsx+s3HEsoZ0RN8bhsCbbDh92wGOJJ8MKyL2cRbVT5knDhaF1T9XLUiZ/j+5SDNRKi05iLiuxIFFb0ufVmlmy1AdNVBw= 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 AS8PR04MB8370.eurprd04.prod.outlook.com (2603:10a6:20b:3b1::22) 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 19:03:41 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:03:41 +0000 From: Frank Li To: helgaas@kernel.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, conor@kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org Subject: [PATCH v5 1/5] dt-bindings: pci: layerscape-pci: Convert to yaml format Date: Wed, 28 Feb 2024 14:03:17 -0500 Message-Id: <20240228190321.580846-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228190321.580846-1-Frank.Li@nxp.com> References: <20240228190321.580846-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0165.namprd05.prod.outlook.com (2603:10b6:a03:339::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|AS8PR04MB8370:EE_ X-MS-Office365-Filtering-Correlation-Id: 62ca58df-03ea-43e4-2898-08dc388ffa63 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h5WkSju89i0TE+w8mwWLItBwU2TrxEJbQVL/pnl2JZ21pEyRf/bbpMXH64nbyMbOMwlxmU7hNVoFHX96qPecnRpBPzC/ChOrwl7N/tkoJ7FH6KaS92uo2KaTFnWa5dqaXNBaxd6km7CJAjibcCPdH2SAqW6Nwu+fYLQu/MBV8m94s9b3Sg+AN2gJOETPmgGgnAt5NHCwfpyAIoFwdFYjbFgOl5EUAi6BeBFXOrfZtrg3O3v75eMz09NjMSQ8Xg2364KUilDptaPlEDikxMS6y48gFCXzOff0W5yFWl/I87z6UozMNng3WKK430v0KBLRYUSwZhvHXnM86VHXOayUxAB1O7vBIFEAvrd7eMZjAd/CcYr47tF1fhY4aGsD3/nxIR9ZE0TfXrTnMQJvzyjzVHUnkx+h47zDi1K6WG43Dpaw6UsM2RgdGAMV2+1cvmHqPuudBOcjZPTQoMYy4NgZYwLqB6pBBoprogS+iyPyDPp974z5tlgZhAaYVre6ybloCbRhVzLePeff5HActMfFskHac0jcRK9wl2DmD0RGCPFoolsIwdDcmBtf2ltuE3nbHOzE+xw/DhXLl5DzDT4usFWOFfct/5unZ7W5k/MMH3WEXWdY+gXlSzZjM/A10dWJAcx/vsQqaCBqe29whKeGuNMg/4BiRSHPPhzO2UKKGmrP81raorr6OakektHU8b1oW0Utm81zT8wb2misQhdBkQ== 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jR0NnH16DIpTbC2h3BbxuP0Yh6jFY544KYS0cWNEB0SFpR82bajb3WjgdINbI4jJiqO5MN/uaEfmX3lVAkU0jvvY0QkU07IPWhlhDjcNPXWpxPi0hUeLcLhV82bXXUkgihy7HDHsPtg1zE5kiw5Ecxo0GjOljlRQ/S3sS9gHYmRLsPYkY8Vq+1YLwJeEjtYGqdIO9shbJbl8FXfV0WI47KcW+LH9Etha9hw2laQ1bvbES+ml8+UoAJadfNMml+PIeroerXL+u+0zTvIPuwaex0xFOCBw3S0mhS1WrXwGd4s5aqZK4pfish7yIAu6xYIAIXekFMPViVoRdITRLT4IHpruG6rgy9Pb5UVKepammZQOxMsSgyD9h/zE9qyZSUYtC4AaJEW9zuzsSRdnvmT4Z3gCoy3hNPzwe6iUwbGbaJ125f1Ls+p9nIYCoo9CZTrYoewdnwWXZ7GLcMrIGCnvCiVC/mnLaEvN2aormozL7Y9g/1i+5NnAAPZYXPS750M75itaEEEmwss6xoK/LkESVfq2rUqbPzfgLbpBM+bEZL0983yVpsl47vRXvHvNSIwBJKKbtS0jA5ro7Hh4k187U+2EQ7R9RFKWRpnB5EVI7d0Bg3z2Tp14BwNevI1aLti/ZHoIGtL29ox9UjANhnOT+HP3kD/wJO31CsPMMPUSonKPgQOidqZAj69CTFwaT9sp8GVXwW0tb24u4vKEvc1UBVnm3fmXInK1IrYVcLMnLDl39PhrXOgMoHV0xRRoBGt8zXpHRZGmhxvQNL2Q6TWHi2cV8q0OdBOve/jYOEEABI1vRGHRCVqf6XTJfAOaBwNF7RHysObnR74VM3sM+XyOWjiQFUPV9I4E8TmaqYfoQ2dhPLHoWi9UX0RGzybWS3vJ0V16EQ1YB1xTmcXykETBZmJhd2YIHzAc54zEUN/CIRlKq7LYyI3XFvpAgjgVvdmS8zaLMtqbgPmc3heNCtrmOKq1klHk9KajPRSYGuvKV0aESF6Tza/7O9bK2IAA25RL/91C/0UkCb0XLLP1hxVyEMJfH9PCDUQ+BTj1fL4dvC8Yt2YMZ6dj+LRtIUc98N1BCPWaw5znzzRxJ+wKq+zy5rpqeyDBrB+b44HS109Ire2kNrfIndaVuczjcix6YpSm6Pb8+3HqIdALQ+tIFnlsHu/2nrG6e2e4q1puH4CG0oUWpJN5H1Wn72f+j9axpemgxrXf/ENDu981JoO5/uZPWi9qjcmaMuZK4mLSzLzw4DGNpZMWmHHLYVaeluolWGH5/8vbtH7EpgzL1BonfmK2sBR9Gg3GXvh8GLtcWABLx7abCk8G8TbOWnA5ggwxkPz3uyNwzPtfLOYvIuVFeQ/YIGn8Wmgwv/kDhqhca5CktoHa52/qbh7M20dlS9GUQc39I7+LAuLdyXpNFHnV5TJaO/H9GEuFMo8pcECcpP5baNTlETB89qxeuQeplL8EcUfUPtCm+R/7EmUtdFNCwVUzIsvpwZLG6NZtnNzZPHRzALg/4xiT9gGwRMexO5AwOeqxhjR83Egh72gxkryBTcxGYdFs49aRoGi7gnfd2mZ9GtdqTpZoypHkN2b9lFhLdLi7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62ca58df-03ea-43e4-2898-08dc388ffa63 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:03:41.5227 (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: mj4yXfgDh6uvhc0ixtQdjnYzZiH1/mfBaOQi9QNp2UDpgeDRRL4zx96L3JNAaRLRv3awO/mVTpUdemBkc2zraw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8370 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792170573772039162 X-GMAIL-MSGID: 1792170593597993780 Split layerscape-pci.txt into two yaml files: fsl,layerscape-pcie-ep.yaml and fsl,layerscape-pcie.yaml. yaml files contain the same content as the original txt file. The subsequent commit will fix DTB_CHECK failure. Signed-off-by: Frank Li --- .../bindings/pci/fsl,layerscape-pcie-ep.yaml | 89 +++++++++++++ .../bindings/pci/fsl,layerscape-pcie.yaml | 123 ++++++++++++++++++ .../bindings/pci/layerscape-pci.txt | 79 ----------- 3 files changed, 212 insertions(+), 79 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml create mode 100644 Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml delete mode 100644 Documentation/devicetree/bindings/pci/layerscape-pci.txt diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml new file mode 100644 index 0000000000000..0af70a4bc5d91 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie-ep.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Layerscape PCIe Root Complex(RC) controller + +maintainers: + - Frank Li + +description: + This PCIe RC controller is based on the Synopsys DesignWare PCIe IP + and thus inherits all the common properties defined in snps,dw-pcie.yaml. + + This controller derives its clocks from the Reset Configuration Word (RCW) + which is used to describe the PLL settings at the time of chip-reset. + + Also as per the available Reference Manuals, there is no specific 'version' + register available in the Freescale PCIe controller register set, + which can allow determining the underlying DesignWare PCIe controller version + information. + +properties: + compatible: + items: + - enum: + - fsl,ls1028a-pcie-ep + - fsl,ls2046a-pcie-ep + - fsl,ls2088a-pcie-ep + - fsl,ls1046a-pcie-ep + - fsl,ls1043a-pcie-ep + - fsl,ls1012a-pcie-ep + - fsl,lx2160ar2-pcie-ep + - const: fsl,ls-pcie-ep + + reg: + description: base addresses and lengths of the PCIe controller register blocks. + + interrupts: + description: A list of interrupt outputs of the controller. Must contain an + entry for each entry in the interrupt-names property. + + interrupt-names: + minItems: 1 + maxItems: 3 + description: It could include the following entries. + items: + oneOf: + - description: + Used for interrupt line which reports AER events when + non MSI/MSI-X/INTx mode is used. + const: aer + - description: + Used for interrupt line which reports PME events when + non MSI/MSI-X/INTx mode is used. + const: pme + - description: + Used for SoCs(like ls2080a, lx2160a, ls2080a, ls2088a, ls1088a) + which has a single interrupt line for miscellaneous controller + events(could include AER and PME events). + const: intr + + fsl,pcie-scfg: + $ref: /schemas/types.yaml#/definitions/phandle + description: Must include two entries. + The first entry must be a link to the SCFG device node + The second entry is the physical PCIe controller index starting from '0'. + This is used to get SCFG PEXN registers + + dma-coherent: + description: Indicates that the hardware IP block can ensure the coherency + of the data transferred from/to the IP block. This can avoid the software + cache flush/invalid actions, and improve the performance significantly + + big-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: If the PEX_LUT and PF register block is in big-endian, specify + this property. + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupt-names + - fsl,pcie-scfg + - dma-coherence + diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml new file mode 100644 index 0000000000000..c37578fde8bb1 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Layerscape PCIe Root Complex(RC) controller + +maintainers: + - Frank Li + +description: + This PCIe RC controller is based on the Synopsys DesignWare PCIe IP + and thus inherits all the common properties defined in snps,dw-pcie.yaml. + + This controller derives its clocks from the Reset Configuration Word (RCW) + which is used to describe the PLL settings at the time of chip-reset. + + Also as per the available Reference Manuals, there is no specific 'version' + register available in the Freescale PCIe controller register set, + which can allow determining the underlying DesignWare PCIe controller version + information. + +properties: + compatible: + enum: + - fsl,ls1021a-pcie + - fsl,ls2080a-pcie + - fsl,ls2085a-pcie + - fsl,ls2088a-pcie + - fsl,ls1088a-pcie + - fsl,ls1046a-pcie + - fsl,ls1043a-pcie + - fsl,ls1012a-pcie + - fsl,ls1028a-pcie + - fsl,lx2160a-pcie + + reg: + description: base addresses and lengths of the PCIe controller register blocks. + + interrupts: + description: A list of interrupt outputs of the controller. Must contain an + entry for each entry in the interrupt-names property. + + interrupt-names: + minItems: 1 + maxItems: 3 + description: It could include the following entries. + items: + oneOf: + - description: + Used for interrupt line which reports AER events when + non MSI/MSI-X/INTx mode is used. + const: aer + - description: + Used for interrupt line which reports PME events when + non MSI/MSI-X/INTx mode is used. + const: pme + - description: + Used for SoCs(like ls2080a, lx2160a, ls2080a, ls2088a, ls1088a) + which has a single interrupt line for miscellaneous controller + events(could include AER and PME events). + const: intr + + fsl,pcie-scfg: + $ref: /schemas/types.yaml#/definitions/phandle + description: Must include two entries. + The first entry must be a link to the SCFG device node + The second entry is the physical PCIe controller index starting from '0'. + This is used to get SCFG PEXN registers + + dma-coherent: + description: Indicates that the hardware IP block can ensure the coherency + of the data transferred from/to the IP block. This can avoid the software + cache flush/invalid actions, and improve the performance significantly + + big-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: If the PEX_LUT and PF register block is in big-endian, specify + this property. + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupt-names + - fsl,pcie-scfg + - dma-coherence + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie@3400000 { + compatible = "fsl,ls1088a-pcie"; + reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */ + <0x20 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config"; + interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */ + interrupt-names = "aer"; + #address-cells = <3>; + #size-cells = <2>; + dma-coherent; + device_type = "pci"; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ + msi-parent = <&its>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 0 0 109 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 2 &gic 0 0 0 110 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 3 &gic 0 0 0 111 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 4 &gic 0 0 0 112 IRQ_TYPE_LEVEL_HIGH>; + iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */ + }; + }; +... diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt deleted file mode 100644 index ee8a4791a78b4..0000000000000 --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt +++ /dev/null @@ -1,79 +0,0 @@ -Freescale Layerscape PCIe controller - -This PCIe host controller is based on the Synopsys DesignWare PCIe IP -and thus inherits all the common properties defined in snps,dw-pcie.yaml. - -This controller derives its clocks from the Reset Configuration Word (RCW) -which is used to describe the PLL settings at the time of chip-reset. - -Also as per the available Reference Manuals, there is no specific 'version' -register available in the Freescale PCIe controller register set, -which can allow determining the underlying DesignWare PCIe controller version -information. - -Required properties: -- compatible: should contain the platform identifier such as: - RC mode: - "fsl,ls1021a-pcie" - "fsl,ls2080a-pcie", "fsl,ls2085a-pcie" - "fsl,ls2088a-pcie" - "fsl,ls1088a-pcie" - "fsl,ls1046a-pcie" - "fsl,ls1043a-pcie" - "fsl,ls1012a-pcie" - "fsl,ls1028a-pcie" - EP mode: - "fsl,ls1028a-pcie-ep", "fsl,ls-pcie-ep" - "fsl,ls1046a-pcie-ep", "fsl,ls-pcie-ep" - "fsl,ls1088a-pcie-ep", "fsl,ls-pcie-ep" - "fsl,ls2088a-pcie-ep", "fsl,ls-pcie-ep" - "fsl,lx2160ar2-pcie-ep", "fsl,ls-pcie-ep" -- reg: base addresses and lengths of the PCIe controller register blocks. -- interrupts: A list of interrupt outputs of the controller. Must contain an - entry for each entry in the interrupt-names property. -- interrupt-names: It could include the following entries: - "aer": Used for interrupt line which reports AER events when - non MSI/MSI-X/INTx mode is used - "pme": Used for interrupt line which reports PME events when - non MSI/MSI-X/INTx mode is used - "intr": Used for SoCs(like ls2080a, lx2160a, ls2080a, ls2088a, ls1088a) - which has a single interrupt line for miscellaneous controller - events(could include AER and PME events). -- fsl,pcie-scfg: Must include two entries. - The first entry must be a link to the SCFG device node - The second entry is the physical PCIe controller index starting from '0'. - This is used to get SCFG PEXN registers -- dma-coherent: Indicates that the hardware IP block can ensure the coherency - of the data transferred from/to the IP block. This can avoid the software - cache flush/invalid actions, and improve the performance significantly. - -Optional properties: -- big-endian: If the PEX_LUT and PF register block is in big-endian, specify - this property. - -Example: - - pcie@3400000 { - compatible = "fsl,ls1088a-pcie"; - reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */ - <0x20 0x00000000 0x0 0x00002000>; /* configuration space */ - reg-names = "regs", "config"; - interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */ - interrupt-names = "aer"; - #address-cells = <3>; - #size-cells = <2>; - device_type = "pci"; - dma-coherent; - num-viewport = <256>; - bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000 /* downstream I/O */ - 0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ - msi-parent = <&its>; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0000 0 0 1 &gic 0 0 0 109 IRQ_TYPE_LEVEL_HIGH>, - <0000 0 0 2 &gic 0 0 0 110 IRQ_TYPE_LEVEL_HIGH>, - <0000 0 0 3 &gic 0 0 0 111 IRQ_TYPE_LEVEL_HIGH>, - <0000 0 0 4 &gic 0 0 0 112 IRQ_TYPE_LEVEL_HIGH>; - iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */ - }; From patchwork Wed Feb 28 19:03:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207966 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3550575dyb; Wed, 28 Feb 2024 11:04:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqbVdXyVzh7VybuivoYXpzkjHWsfkVSCYExeAxNKTwuZnJB9Eq+CmKdzn4HcW7XSBGKpBMW6y6zPr+y1dnV7yE+srOjQ== X-Google-Smtp-Source: AGHT+IF4Mrmi7YywY9/m8EP8OuvzoSfk9h3dh4MsS45ayjcAXPOFoL65mQEWwI2ISqhU5X9oFPj/ X-Received: by 2002:a05:6871:289c:b0:21e:d8e6:cd95 with SMTP id bq28-20020a056871289c00b0021ed8e6cd95mr683870oac.37.1709147088169; Wed, 28 Feb 2024 11:04:48 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b19-20020ac85413000000b0042e7fa59ab0si53115qtq.587.2024.02.28.11.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85569-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="gweJZsZ/"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85569-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85569-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D42111C22437 for ; Wed, 28 Feb 2024 19:04:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07E7A15E5D4; Wed, 28 Feb 2024 19:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="gweJZsZ/" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2049.outbound.protection.outlook.com [40.107.8.49]) (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 763E27443A; Wed, 28 Feb 2024 19:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147029; cv=fail; b=Nf7/Vzm4J5B2x2R8hDrUSXEFPWPfOadZaCgXEZFoCG8yf9kfys7VYqt92uPhNWI/s6G/3rGCpqntLQwLRrmINxe4QYKEH3GhJhSdS/LVUFypDSxIoY6Hp3+Xpg5MYllB9+sdyusFPCWZBA2ZbEz1q0C1YzA6gHWmIJanDQNNMks= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147029; c=relaxed/simple; bh=560c7EmdwTsO5bX3r/M2gbPPlRiCPg0io6f2217yXas=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=R1ntwptylHDbUbZoTqNjTkNYpE410PfDhA5L6Vj7OeftHgUjb9D7qRmwXQc02XMNhq211o+gnerUFUzo3ZC7fpPxh8Z/wMZyk7W53XxCaj4qgtRrqnfPxJXJIeHgs7nl7Dfbmjxy88ziqCxdx9g2CL+LwNyDir9v7yviVbP8LFs= 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=gweJZsZ/; arc=fail smtp.client-ip=40.107.8.49 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=NPiYkB9/HVe7SYiBg3mjoDNQ0aBTcICsSMuTGsbJVry34/G/LrWce5w4JBCGAeloZ0dnHIKxnOJEl1GGIJCORDFYicMKa8nI9LZ02WJED1MF561olA21cytCUqTIbZKWW4qVZLYSus8iMBQj8hyQHclg9hclnZt6mN6+csYSJW/f74pGYbuQVb0Yywf/Ag4H2weYp7JOuajHPRaat9Hy6GAiJBsSdtvWTNApYKwHdfxMAszjEa3jjfLFHKeH/lGL7W9AnW2xP59/XUV5ioqGubXhuHyBxueJg5Bdk8AAlPpegohUhwPXaMiC2t8EMzeDLIfSXfULeX2JgbxLvhwBgQ== 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=CRNabK65TSJ2Du5ECQI5oK7i71xRlhciyet+BEc1aBc=; b=Q4WiTk5aloCoMC/iQObYmNLvVmBOWzblLB/IGP7c+2WzF36owFO2NIbeQr5hoNPfQjavAKGV03Xyo8t2wiZfVolzWTf9Wuek0dEucb+uckzq2tdUKrUZACWJUgamGCb1oGKRqBVCTtYrFmiKdVkSMDTWEFVLi6Ef545REYN5lXRHuq/cQcz3cBWdTbSEiiQG2miz2oUd/hn0k2+qKBn6oXBrHgFEu6fqyoN+LB9wZOaOk78/TCcWvQmH14/hi3DEewWqA7gNuJrKbWfldMs2tjwb3a1hBFvhlmcEK2gOUlcNo1IXJgX2TlJTr6kQQqeByPUNa1M3/Cr7wAc1jDONcw== 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=CRNabK65TSJ2Du5ECQI5oK7i71xRlhciyet+BEc1aBc=; b=gweJZsZ//Npmd3pN83GXpDXTmj7fgm9YukOW1dSuGKkD7ncU3l4F8upYSLIeC7SNf9HFTvy7xnfQgk/+RkhuvIUQal5XizbFSm7x8Gb0y0a2iGzFIzLyvhRqzXZwWMrjbXOTjbU0VVJRLNRCWGJEVhm3ufm9j8mRLUUsC2JG+R8= 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 AS8PR04MB8370.eurprd04.prod.outlook.com (2603:10a6:20b:3b1::22) 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 19:03:45 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:03:45 +0000 From: Frank Li To: helgaas@kernel.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, conor@kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org Subject: [PATCH v5 2/5] dt-bindings: pci: layerscape-pci: Add snps,dw-pcie.yaml reference Date: Wed, 28 Feb 2024 14:03:18 -0500 Message-Id: <20240228190321.580846-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228190321.580846-1-Frank.Li@nxp.com> References: <20240228190321.580846-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0165.namprd05.prod.outlook.com (2603:10b6:a03:339::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|AS8PR04MB8370:EE_ X-MS-Office365-Filtering-Correlation-Id: ceb4b4ad-faed-4ea1-302f-08dc388ffc91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0u5ObX0JsTV1xT50sc593CS58xdJ/OIWN9Pt5T3MeRFsMyDVwqIcBOr7FTQ5WMckgFo9LUHf6GIL4/RwW4Djr5tfFMeq/4hltP5NKDJYiMNSfJZZ/c2YfMeFsysIZTQzS4CHjuk3/e37nFgz9VW/EYykpp0clMdLlb4s/LMxDgG5h8BoAuMSoTIeLIkQ55H5QRLt4UJyYkOP1UxJPi3yH+iuW6MyJ7RSMlzzBdU7n8c+4/FjW7+KQfhX3/vCV71zKKU+Yx/HOlnUYLcrrKYejL2dYM0I5XOfFULnNu6bv5/Kj5gM4M/tnbdUKsk9G2DRxWJkKtj6V1W8O+cXbUWHNK+QB7ASxnIFHJLkAp5ZeXURVqrv0sKk6TPLrJmytw+fFjisAviw14EGExkjZ5c6GKtXGGrRR5UksV0h5Lj/AhUFSu9TGlkx3cRxFi7obkzqVqsaazJtI9QkeQaEOqkkd4pXaQ69HwVOheWxdtT06rrWuYvdflr1zryWcuUr6ww/dN2Je0kMeuyV3ALdKmqoV6YRtgQgUX5dYpjjY5cADVwLcaZtDeaJeZ3G9WnIWgRcxoFWhjt/peJfRzLqRLs8O1RxJleBHUH90Urgn2kR+RmhW6c+UdoTFHZRNhbuNrD+0DodMrhqV8kyKektXpU+Mg9ftPQIgrhMl5qfCYIEXOWql/hBkdy375nganHpUmT4p//RoXGB5/tTbFyu9wXMNQ== 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mWrYT8KgwV8RI4A3ZDRxXdmGhd4eOWPohVk4Pp4qbRAK0Gmrv8yxyZ9SJHxmY4d2vHLsc/a6zEuUB9gs8oqpthBPQQWbi9l4Gwb16CEIUZjacNnLnt9fVXHzC/Xa+NtP1E9NEDsaxZUF0nGzTMVXj9oATQkx/zpflZXIiRFS8L24XgBNWEXh8bUBGsoLZagHM1ClmopmNgMA7+PaiB4x5wI8ArdsSVnz4/rwtbjz0sUGu+UK4XKSDVACldADFzbSzRLMXkKyibMgToyJPIMktPwR+iQBQoQUY3hb23Qk7OMcDaglAErK5kOJwxdFrWhxkPWhiHBADHgBK5z49H/tsTVsemru9FQSph+tVFy6nHce2dqotj4w3VJgEx002YhA+S1CUbWM9sE0hUmD7cJWS9T/9TUEcBNRK0+7j4BI1DaH/Vwkxyl4oAdiOr1MBs4lCQikpVtYBD4XP/VUzW16MF5G6Szgi1NNu1YYdhjdsZGO0v8HHbEwFHaVo2b10j8Nbf6CzQ1spPQbcONXAms2WM4dpCyt2U+BwbvwgK/HrS0jgkSlLD1M9iOZasKziKlJs4kc6SB/LNPnIbfTunZg+KTKdzj6E2QBFcwR5mDHc56IMQOcjRE5miW9JmWsIZkm+nOAltPhMH/e/zLWNJy5UvXTrZR6ZXAZocgww6dAgiXPZ31LtYtCcZLsJmMAXncuciM59/aP5b3swkRv1etYXTOjP0ZgsENVKDHOyee0tZ0lQtFxJgpO0eeL28IUGsppgBle4KwZzSouqldNyHYBtywhVSqM1vV4KJTk6Z1IZjcX38RGwFNu4AVtMvo1lUOkOgDoS5kHcdLhUbFF5GSXThqgoxOhjBFqeyXGDo/+1Vid3hVlHVB5cFAP61o9HAhAR8SeDUV1fKTxSYBdh/pOUG0e/aBYNBgjDd9Afp5dd3T9rvTdSpKkrcTBJxk26hVVhOREJ68+6MulSszisLHBAekt6nlRVI3fj5Cz8/3d9A2lzccSJ1Ws1cjyCDMbzZP9duKErCahFcoPv1exsz1LXTbjlw4Ehriar7qqaWjX22wlr3TO1nAh9OC9wY23jWT7c+mXSjn4XaJDPiz9ipIO3zRZMQ2BBJSMEP40yGD9NU8iFF67qC4oT08nntOS0q87Xrq5AYONU2lnRT+eQMwW0o0zTiXDVP5INOFxEDBE29IkCmRnlTwVM7GMfr6a8vP0PvRTamo4YcxgAdKoM+Rk94a+2PVHCl9QLaimWxvGXkaHFlppcZzBHQdttPksyt2WCw6lOcFPLx0bGcq5x/y8W+UcspU34oAgO3YGXD0icE8yY8+lJxbiKQnmeoEiiJ1WPHbggBdb+1yAF+4zmKUqY6eQ/u7KuOb+sMCgzpkaQXkd8GjOKIS0q8O3FxiJ9WY3wxYhYPzI89Fe5x3u0IODhp2qDqNY0mvxIzsWPK6dDFHmJTEDliN7OK8zmjxGwWiJWPKdIQiNKUXlTE+s7PBCqKZc7BRAKN+iICNHGkVGpOelALDB6FLhiJb90m7H48ksOjWfhGY/NcEcfOPhiE/tjWpdi9y0zN/gMf9uQn0IvrFlKCYwEvEq/ZCKfJLCreHD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ceb4b4ad-faed-4ea1-302f-08dc388ffc91 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:03:45.0076 (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: 7YbaUhZDbU4V2PuUGHAFiO/dnPqLl0HNb+Pq8zK6WGB1EC29kC+EWdvI2wcWlZSqxrgFyQBi0JezYgEmkc66jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8370 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792170617126511055 X-GMAIL-MSGID: 1792170617126511055 Add snps,dw-pcie.yaml reference. Clean up all context that already exist in snps,dw-pcie.yaml. Update interrupt-names requirement for difference compatible string. Signed-off-by: Frank Li --- .../bindings/pci/fsl,layerscape-pcie.yaml | 102 +++++++++++++----- 1 file changed, 77 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml index c37578fde8bb1..b57b627c18e95 100644 --- a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml @@ -11,7 +11,6 @@ maintainers: description: This PCIe RC controller is based on the Synopsys DesignWare PCIe IP - and thus inherits all the common properties defined in snps,dw-pcie.yaml. This controller derives its clocks from the Reset Configuration Word (RCW) which is used to describe the PLL settings at the time of chip-reset. @@ -36,31 +35,18 @@ properties: - fsl,lx2160a-pcie reg: - description: base addresses and lengths of the PCIe controller register blocks. + maxItems: 2 + + reg-names: + maxItems: 2 interrupts: - description: A list of interrupt outputs of the controller. Must contain an - entry for each entry in the interrupt-names property. + minItems: 1 + maxItems: 3 interrupt-names: minItems: 1 maxItems: 3 - description: It could include the following entries. - items: - oneOf: - - description: - Used for interrupt line which reports AER events when - non MSI/MSI-X/INTx mode is used. - const: aer - - description: - Used for interrupt line which reports PME events when - non MSI/MSI-X/INTx mode is used. - const: pme - - description: - Used for SoCs(like ls2080a, lx2160a, ls2080a, ls2088a, ls1088a) - which has a single interrupt line for miscellaneous controller - events(could include AER and PME events). - const: intr fsl,pcie-scfg: $ref: /schemas/types.yaml#/definitions/phandle @@ -69,10 +55,11 @@ properties: The second entry is the physical PCIe controller index starting from '0'. This is used to get SCFG PEXN registers - dma-coherent: - description: Indicates that the hardware IP block can ensure the coherency - of the data transferred from/to the IP block. This can avoid the software - cache flush/invalid actions, and improve the performance significantly + dma-coherent: true + + msi-parent: true + + iommu-map: true big-endian: $ref: /schemas/types.yaml#/definitions/flag @@ -88,6 +75,70 @@ required: - fsl,pcie-scfg - dma-coherence +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/snps,dw-pcie.yaml# + - if: + properties: + compatible: + enum: + - fsl,lx2160a-pcie + then: + properties: + interrupts: + maxItems: 3 + interrupt-names: + items: + - const: pme + - const: aer + - const: intr + + - if: + properties: + compatible: + enum: + - fsl,ls1028a-pcie + - fsl,ls1046a-pcie + - fsl,ls1043a-pcie + - fsl,ls1012a-pcie + then: + properties: + interrupts: + maxItems: 2 + interrupt-names: + items: + - const: pme + - const: aer + + - if: + properties: + compatible: + enum: + - fsl,ls2080a-pcie + - fsl,ls2085a-pcie + - fsl,ls2088a-pcie + - fsl,ls1021a-pcie + then: + properties: + interrupts: + maxItems: 1 + interrupt-names: + items: + - const: intr + + - if: + properties: + compatible: + enum: + - fsl,ls1088a-pcie + then: + properties: + interrupts: + maxItems: 1 + interrupt-names: + items: + - const: aer + examples: - | #include @@ -100,7 +151,7 @@ examples: compatible = "fsl,ls1088a-pcie"; reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */ <0x20 0x00000000 0x0 0x00002000>; /* configuration space */ - reg-names = "regs", "config"; + reg-names = "dbi", "config"; interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */ interrupt-names = "aer"; #address-cells = <3>; @@ -118,6 +169,7 @@ examples: <0000 0 0 3 &gic 0 0 0 111 IRQ_TYPE_LEVEL_HIGH>, <0000 0 0 4 &gic 0 0 0 112 IRQ_TYPE_LEVEL_HIGH>; iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */ + msi-map = <0 &its 0 1>; /* Fixed-up by bootloader */ }; }; ... From patchwork Wed Feb 28 19:03:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3556356dyb; Wed, 28 Feb 2024 11:15:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVmVTHoPOQiDDF2EjCTJWvxz1BCA7L02VQiK9KvNKVG/d/JBanQwKpZ6bCb0bV+ckZQoZsAGc6rvK8BSW6HscdLJ0C3lg== X-Google-Smtp-Source: AGHT+IHBYDLr8eOaHStQFZLqhY3i7pv3UIlVTPzvKfUIoznRZAVX513AXPuTvqgtteudtGqJPPBT X-Received: by 2002:a05:6a20:c706:b0:1a0:566a:5974 with SMTP id hi6-20020a056a20c70600b001a0566a5974mr177828pzb.61.1709147714673; Wed, 28 Feb 2024 11:15:14 -0800 (PST) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f31-20020a63555f000000b0058556a636dbsi122587pgm.434.2024.02.28.11.15.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:15:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85570-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="T8PRR/qG"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85570-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85570-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4B916B229AC for ; Wed, 28 Feb 2024 19:04:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 395DB15F301; Wed, 28 Feb 2024 19:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="T8PRR/qG" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2049.outbound.protection.outlook.com [40.107.8.49]) (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 2958015B97D; Wed, 28 Feb 2024 19:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147031; cv=fail; b=t/J9dV7SatqWZuWiWCcFOfL+Oun+om11Jt8KSB5JR6S6begPEXvATMWKOjb/S7RBZSbkWJQZGO9uVq2uTcgSjatsQBKuXKxAEq9OhYHY1HEq1SCL35fsdQHtN5LrZh5k7wkKyF+5EQajcgRuNXX3bIigpZy31kaWmI+6EyEHKhw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147031; c=relaxed/simple; bh=JUW4w1Lff671/YnzSC7R58aPEooBzPuA4j8lpGuVx6w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=IqpxK2rjxr98SP/pRTWnNPOK1GDF604pVgYVLTRnXENHnkiD2B6Jv7yaGMgxVUbtXeEYvjSaHTz57r0IpG1jnI4MBPTL0r/bSYJ4ZHeFxNbaKTFUYg/nFZCPpYTEtWWm3TjITkivklHTPKbg+y2ZgJ74PlritkwMNKrhPoHItvE= 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=T8PRR/qG; arc=fail smtp.client-ip=40.107.8.49 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=KsRpV92lwGycrqQDNG3SrdoBzhVRX+0OHe/TWbpGbQ2dXb2SsgElhvDJiEOqGBXGHX5LoOqZxYOM2Y/KYXsZPewDXazt7V1FI/qHErB4ZrnCYz9zlcyURM2+gEl9R5DRqLy0dEvCXq5gvJe+vj21lbFNZ2vdnC50EgVCRry/XyIZNnfu3sYMp6jDcQtDHvyhcLkqzrDhffCjerhLJJsdgFuX6zeAlJhv32MRqHgy1mZltxXd8zX/DY+CWBJgVq1CKH5iK/5Q9CZPJAWnx+jG7vHZuzbesC+Uw7XWNxPif28xTnLcElSnDCW6L2Gnr4dOawdRBuLu/7Bape46LYP2hQ== 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=h9WzD2S6+weQbxgJJsPI+oyrRe18uHmhn2MT2wXY7VE=; b=Q8V7mCnQMQ5rS4go2Y8seG+RfO96zvMZiVt2GMlQJV04ps+De2nTP377S9eFJj2KWa5duKS7QZFhB9/8l0+7M32w3v18IcKSk671az9VNzjEbgPrvpa3PtdI4SH5VnJNf4XQ8dqefo1SNs62BVkKGGGOEfO3YGiQJ6AsiXLQcHpTvjii6RWqvNtZrPxihtZOdC7yuonq0S87wk5QZ0t/uMZqG/KBqgYBWlG9ELSf97rHhDSp8a0/JOOXOk2fRUwh/FsX7N2/Y7EYr6/HQy6HiaeLN9yv8D7n/BHuSa0ok75DlqOp5P1Py8FlzDU5PEDVgIPzsuOE1AjToysc/NKLcA== 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=h9WzD2S6+weQbxgJJsPI+oyrRe18uHmhn2MT2wXY7VE=; b=T8PRR/qGMbsX3EFUMMPXzfrRFkYMXFDB3NkgDZBokzteojjRXVd/1pioWnCklPVkCIjqOLErSJYi6iEhAGEGCMtmkrYSL7z32OAwMhOnjRR5Ap3puqHVM1an4kxyELFva4JZRwnkKPu+2J68wffweEgM6mq7RNMRjOgje6lR6Ng= 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 AS8PR04MB8370.eurprd04.prod.outlook.com (2603:10a6:20b:3b1::22) 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 19:03:48 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:03:48 +0000 From: Frank Li To: helgaas@kernel.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, conor@kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org Subject: [PATCH v5 3/5] dt-bindings: pci: layerscape-pci: Remove 'fsl,pcie-scfg' and 'dma-coherence' from required Date: Wed, 28 Feb 2024 14:03:19 -0500 Message-Id: <20240228190321.580846-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228190321.580846-1-Frank.Li@nxp.com> References: <20240228190321.580846-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0165.namprd05.prod.outlook.com (2603:10b6:a03:339::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|AS8PR04MB8370:EE_ X-MS-Office365-Filtering-Correlation-Id: e4509bab-1705-42e8-03bc-08dc388ffea7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JsW8jEnK7q9Z8k1ZHptIdWcEOC2KWaf1Q03qCkBOTbWzUnZ3hlWTs6JkoYvQdq2dDOxAuAdZNTpasLNP151BbDYRnOxSN4F+jCmisvvV9Oj7LZcYlB+QMWl08Eqpp8Vw3UKxnk/fqff/asrDhExuZ4hzYfoXqkbgaBQ71Ci+l2a7fA09Rx8FLpSLUnH+tVpECDdX5thi8ebNoBO9bLdWx+N8eqv6EuRQ+OJfZ2/Z2Ksn1ijrLlJFwrz+/lQ4y6r8WPlVbXk4gQ1SOe2Z5n/WVnFiZSWMmz6jwod5miLurI2ruOKdAmoFhRtldhbxY2nShj3TPTxXcwu8KyLRm7QXbF9FEX3yIyfan0tj61a/VuhqcBeptD+K2Z24r+SKmD/VGfEI/7GWc4U77siryvPYkzdRFVbGvT6f0m4MTbRiPyKT1uc7uxyWyZjYFY5/FYru9OxgDWnD8Dp5nHTv/ztyTON7bNijCNuXL1gzxypl24Zk3UmW1YwLtp9ZZMnrcp6QS+M2YG4VQfWoOQcOUmY+0HBcjRQZGGKRz2i65zXJHtYx/0MLrFoMKs7ivj1AMaU+qCpLDp7eGikMmw1iegXXkQl0ZmXhgJOKVemHrEELQTLFoH1hFPXuN9bXH975Wkjv6kIWGN5nj6SfMdxlRQePZcnK5ZG0MOXe1ZOFViNr/UIAuOu/4F7beg54cffEbaJR7kRQKJHOpeZWVw9cDk83DOP2kG1f/am5ItjCGNkA6v0= 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rIFhcXeQMZp6bWC4q/QvEeNgwLafIN3I+IPDaq/4CTxdzD7dvXsW6/r3oaBPQgLVTSbyy/VTu+NgQCZsjHeIrn7HpGPi5yfVqpV4Nt6mjFjIwePcCAMD6Q8KrhXiNFEUAiYzaqPCiCy1ICbwmmhp3iykkUhcalX3ziHqinz+qb1e8qg1BdS2pihIVMqltZPYTPrIqVCeAKPCbf6YypDsOHUrAC/O7kDXaCxqS8BLXOKCqJ6s4u969K6OMJOT/xSYXl7Gs15NQuxixOSim4qdLb0Uh14RgCgrBI//2ihxpyNP4u7kb5Dw+PRrx3SO+B8nexY+aX6CVUNqTuEdYpuPXXpzjIYHQWTG2D9JxxLYPSy1W7m2We6wDiBjbfhsJ4hOYDGxEBk62P97aWC+0KilhMucjjEu++5+s4Y1hu/j1QpHhezvEw0QfJiCBFyS32UNoAGJ6hBopcyt8aWbRfJMIOopZKBEsqIe944K8i45UGHHgHjc+KOeOjooyQHUqi7kfqFZX1QzEdn3ISE/vlm/WPrnRp6FPnWtN42BSaHYAcrjyQLXkYhIcU8UM7Qtqog/bO278Yw9bIHOttQCD/PzFU2yks8OMLqW2a29321nddvC0BEYDXsGFRLiokoNPDzoficbaMnnwmDSQysYlxX71JyNonq+H8e/NP18AX3iIB0+3ibLh4SGfF26ar3V6La5JGrqtv4QaZ56AnhycgCpTrrJTaeO2a1WqqCz9lt0oEtxdL6z03iecQQ66nXyY63aHZWkk4IfUWNEamEcYIHkdm0+nfgX7kus+1WPzTas8ppLUTqb1C7NsPFUvB9hYbh6kJa/cQJGEy00Axv2wdRJXIcnQdm8bYUBWhtcpLJ7zZkRCeUXihClVrPf4iF2TTtrFq5Tmtvll2u9vygpK5mblCXNYIqF6mvrIfxh5R83gd5gZbHlrNdRNp7vF4HHqKPGch7o8jcg6FkKB3bNZsyQ2ZdHAKwkgNCq+oL6JnUkHNRS3E+/8wi/txvhotGIiyrdKO37AxAMhVe/97dmg5DUTE3vpeRy5D8Py5qLpWvl7ZNnsoVYsyjRxJg52DJkDV+ILsqhRpnSEd9O4ZexA51KLbm0+kopfBq6sN0+kXJ3p5O+4gTX9b2T4ZdYAyF4Wcz72+GvxnuJeXC/H18EGW7vz2i+nh0dPNPIC4m382ZQu4d7Dy1O3yw13joqSIO8NXasdugeCzpgrdFNAQxtawA8/DL52SjjKrEpjO5MB3zQ1m/5WHevDAhI1RTFwNCb01Nv+4nkgoixFnJEg9110u5kFGFtf7wfIYuzfR1vkFuw16lvhQ601bzPy84yHFSlnJvHw5eFHgqySAdfaZWp3mBuhC6B+8qGpPSKcWY62cmJccZzCYgOiU39vmlKXd/JA36uatDbP47/fiKZkb67nafrH32L3OwRvb0gW/grcWXGhH/tcpHGoUfmG3Ihv5Y3fdjUzw8zLOZyifEjPEfUXq4OM3mHcNtPbv8kcScqJgjoxS7etUgvc3KnFnD4Fplinz1orkD3NATWpywZRZJxndSyZQSTgiyS1CFDgW+PpSaqGtQKq/AUy0S1cjEwhDmyi1/O X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4509bab-1705-42e8-03bc-08dc388ffea7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:03:48.6455 (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: 4ABu2a0d1VJQ8HjZ6js177zc7k7eh67fFTY5HsG7gLj/46a72VztyOz7ew/QTRVPSikEYydku6OBXBXzAbw0Hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8370 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792171274376103895 X-GMAIL-MSGID: 1792171274376103895 Remove 'fsl,pcie-scfg' and 'dma-coherence' properties from required because not all chips is dma coherenced and have supplement configuration unit (scfg). Signed-off-by: Frank Li --- Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml index b57b627c18e95..137cc17933a4b 100644 --- a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml @@ -72,8 +72,6 @@ required: - compatible - reg - interrupt-names - - fsl,pcie-scfg - - dma-coherence allOf: - $ref: /schemas/pci/pci-bus.yaml# From patchwork Wed Feb 28 19:03:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3551272dyb; Wed, 28 Feb 2024 11:05:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJ6KsFgt6NU5Kwzn8Vlcq9qGYHkvaZEE03dYGi0byPuTLMkDQi4OW3lboO1/JkVGY0XRvVbpH8zO4kxD5utzy4VBnzBQ== X-Google-Smtp-Source: AGHT+IHvcEvc7l3Vhi88PTjtJexFwcxnoJeT9Dfo0hmG30Eo171FiBr0mbDqNP53mmI30gSAlfgB X-Received: by 2002:a1f:4d07:0:b0:4d3:3c71:d340 with SMTP id a7-20020a1f4d07000000b004d33c71d340mr507007vkb.11.1709147149384; Wed, 28 Feb 2024 11:05:49 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l2-20020ac5cda2000000b004d152cea4f1si8035vka.226.2024.02.28.11.05.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:05:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85571-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=lVQR+kLC; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85571-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85571-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 51DC91C2249C for ; Wed, 28 Feb 2024 19:05:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6673B161B46; Wed, 28 Feb 2024 19:04:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="lVQR+kLC" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2073.outbound.protection.outlook.com [40.107.247.73]) (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 B737C15E5DE; Wed, 28 Feb 2024 19:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147036; cv=fail; b=PK/IadzGJnj+8gCsOhzAATtdFZKylCv2XhpaKr/NV1Jx8L0qhEgXUWeycCiYqvUjgkcMS4FtiqbKweGaA4ypft9Tpa7p11vv6Xn04aFGMw1CkSl05/RvMgPFt45Eeoo6ZnbBiG4fmumIN31NLgJHHV1iRohXSqbbGcUVNivG8pY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147036; c=relaxed/simple; bh=iHYtfER7OTpoB207yr8h9LY9LQnUNoZrnhZ63VpQfpM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=SijYgUK4WFIld9sFZAvmeAV3JVggrPCOKMGphJWw2OgBc0cuhwf+1hYTndxyhdnDpUGi58hCpViUq0P27SctQrplwCejgLLzr0O+lCnKsX/EFkEz00Re5fMyYB3Z/e2bYzz20J8pRQiZ36i0fvvTWURbUD1qveeZoPv18/bzOA4= 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=lVQR+kLC; arc=fail smtp.client-ip=40.107.247.73 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=oC6o5whHbS/Ifd5KcO6jQxyxrM8lmpw8fqPlovG5irWOvdMlhMYAAwoge5qQltjppv71k6zjHBg9rcdCfnWRYkmQ5vJQXzTozI1KA6vmgViNmxgOQbAix721Q0OTgV8iEomksr2FhMzwIBbYMgtCMJ/VG1cgpoy7tnMjZBT+hVLC2e0DgjT/c4mDgoJ4BLP1KNqvATlg581lMbFCLjFXAj54Om59cG39NEnxo15Motb/FvkE0VHT89/c3WwC/VwdkQba/92E4lDBRafmuzYsKSvH2abtBcdjMAAMOdpNb1SHwQbwN4RKV54L7YMRsn9yt5ZNqVu7OwjQ/48oKImppA== 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=iUpGVAxR1hk67J6CGSQjN28ODUst8NRJt27mR+B4YN8=; b=g4ysDUhGCC20Ks2igmJRIg2Zz0fPWoaOMEwofe4orJZPUiyj2u6wI76V6i+WB214QgH0dcLug82nsRV6mkyfwFYRhWYjzyFul8tcy8LI1VjWkJuAki9oPd/6bzDpNnWgcdIU+KTKKGG+ODFxxHkFOMX+GBwpw9lcqJli8WT+Ggbn8QvvNltAcalj+m7Mz12RqWXTV77FZ805HnYSbEz90kKIaKcqQL2cnyY1Qco3LLwSoC+8a235buIumb94UoUAaxWOeK1RBHNXJKpHDc9/jdOdcde5IR1PNwPDs16DLImmd2NVGfEjf0h9CCMBlqfGAlKOI976i5EHi+yYRNIM/w== 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=iUpGVAxR1hk67J6CGSQjN28ODUst8NRJt27mR+B4YN8=; b=lVQR+kLCEpZ4raApAQ0Q9phXF3xx4okkV1rTnnDQpNk13483mOT+UecUvjfpJVLLn6s0GIDHjSzl/LH54Qm6VvCSYOt3H8yMuDqP4grkFj5yWNbELxAyPfVmic8moSiregqJcmkeFH+wy8qXHt4XxZIfraUOgS3SUrmlyxXIHhU= 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 AS8PR04MB8370.eurprd04.prod.outlook.com (2603:10a6:20b:3b1::22) 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 19:03:52 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:03:52 +0000 From: Frank Li To: helgaas@kernel.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, conor@kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org Subject: [PATCH v5 4/5] dt-bindings: pci: layerscape-pci-ep: Add snps,dw-pcie-ep.yaml reference Date: Wed, 28 Feb 2024 14:03:20 -0500 Message-Id: <20240228190321.580846-5-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228190321.580846-1-Frank.Li@nxp.com> References: <20240228190321.580846-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0165.namprd05.prod.outlook.com (2603:10b6:a03:339::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|AS8PR04MB8370:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ef09673-af62-4668-2295-08dc389000ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BfTXClD0nWY+KYZtmiqL5a5R0mMMMYZQLs0mLWDAF8gnyAOMT+8ap5zxOs78rlA8/U3FhWBFTfsjphj9FWzZCCZp7Xhuu10OjL4/yV9o++EFCezqtZuopAK1amqRCV9r1R8M0B43uWG4fBxEYvut4J6MKTm2/dJKKHK2Xa3FhHCnwrWtx3w+oCxmSFy0pGGwOdJjOxYWleL6oaLx0XMljUdM9wDFZujvTkpynePb0ahjJpsK1FwZvB4ukg2mIlORS85WNZmG11tt0gW6bvBihpSJl8SDkU5bRWcLU3O6VAtgr8ag6ZOY7nsbVxJ7xytW6I7v3AAS2M6UpGz9dVEyVm8+MAQ/T+n0mHfgTXOt0MzEQgNzOqgRnejfjpqP/O4BMYsBzY64rDB1ixW6XjQuoXiNr0d35tFVZWkD2dWP5gL8d6VHQl4jXa36YrCRfrNOKdv/JkVJtOHAnGLMC7DtNAXweXRYLGWqXxy7xsWyFY2Q9g8TlnrqSSfetmQjA4+Iig3TVPBtvBKMCDQ3Mt6HhU6RheoC4MaPJWjQGMdjCr/PB8TlLIahh/YdS8xHXJUpaOPMcYZoebeV7zm0lfiGBoArrFWdLoVdPNDAILYKgd5qngb9VgJdvfRNyfdbXyv9f/GpTNU0DD/Wsf9bPcRfLlJRuAwpggZTStO6uwfYn54nXmh/tKaKI1eXElbOOqKMnm+xaMg0IsnyIwH99Fx+1w== 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +kdgwtZhVPkoQ/XdTV5sh8S3Aulr6QQbD8lnFH+MAwGRrzpubYIqOmp3StkiDPlfIPF/L0P5zBjLhL2KTfiR1ROVoj/Hs73/YE6HMQjxU7NY7RgIMkyiVqzEeSgcorKy0RYLsgmqWIGaT6M7HnN4z2/8rLTy8P57OlMYYAEH88k4BOAiQ3qgePuwaWm+7zRt72RWU7RCn9yUo9ZrNx7er/EWSzalcVyAlaDUrjClXcKEQc2dkef0XBzDmJfclhDuIFvpFWY19iyRxUuBwMZpa4DC/ZBymWpvk3oCkuLcdO7lSwO6VIuxQbSeSEMLsnE391hhO1pbhpqDtLyWNbcuPjsLaYhg+v9RRt5WRmCFI9t4xD5gA+gHNvs8Cs87DD4YVEfAL7eR/9TysywX/grSezXz1l04nor+edYHo/+i31sMYXjBtCCapL0XzXqWxcQz0Z885oA3vRQ/ANGlKI4cpAIsFIIoGbBPFtcNzcmmPWTKZRkMdzu0u6CjvtWbEOsUM9DE0217+Dnshmr/yiutGtpHzHoZlvDAv84mKJgXUV/xMJw0p2Xp/YYVim6aaV0Y1xDLCQjvFmit0dfn5yCEWvQaRkfVYi9P7ZBCc5HMYlWVAT1Jjr4FHOQxklb65ZFvHov8+AM0nuCY8D9YVqWXCZBbSI9mlHxGMCm4B4HreRi8B6Rsqu64aGMlTf/j2M4MPax8sVs7sJwAiLGpJNXaC7LP4SfpXnphHbUqwMvDVTsXUmDm9NOTm5qu/gdoBGnW/QDkIGDw06jfpdpJtgRJOIyjSVhsmLSHLAJ4/YyXbNbnO6+5OvULGQMZkjMvdR5IexKqh9THboqzwxhJ2w2dxeUrNgd5VwkH5KOzqELhLvMOUtuiI8uiCVhQ4GDd3rOqilqDOgKrjKJL0EfMFpSztGPe6nWG+UhemRVX5DFjSHz3hdrAl9NOHKCjC3cdmzeHul+PxaFrNFuQ4vdbFngYvGtJ9M1R4HVpJ9EPDJy+/XDSRpZHXia56EdGMDm8xbFJfqN53NfkxAudGbSFd3gMpGQkok1CwzW/r865SFiSdfahDsiKcbkyne1yITqDA9XFadi1OtaxwUGLAWyeO1Ezgak41o1VHXQv81d4TR3SV/OK/AtgrIBmMK5ucfTAQoPtNdKa1ebNm8NcLjbLhvNHRtBVVs3A3V/+8lP8/w7CdGSGuog/vipOAoGo3hltXan4ACbFyE4ZJU4Qtj/2ex5poxYX1HH5AyGyPGDbHLfcEOtF4tY+VfqtLTSq6QZfUK94Rf2+MkLwpNtf8KJZOBZIUXcodP8F2MbKDoj/4IGsEFJgmBdUgec5HNE2vPlAi3yLzXx8iNWCplUUb6FNx53ocbiwf3qo7xRZ286blfzZUxp5qSfm/Nf5oNpBU4oYXlugJTosEHDgVAD4n+Nik7/eq6pMRYchSiHY6rxTwVpeGyUWX1Czjx1fI60OpxoS3ykEj2dXNceDqf4KKIhKwb3PYbl0gz9YbDd6afCaUsHJGnD1SfnU1gInRSK3Aa2+C+JycERCENikb5x1ElOO99WYvs1S4vqXeVxqnwCE25zH01+2X6nGJOH0GPNodFlBojDo X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ef09673-af62-4668-2295-08dc389000ce X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:03:52.1222 (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: vFUJtkd8UCIoGsgS3JrNkNmTk7/T7qqJXTro//cdi7budKiPgM7CiLvp+vzFrXri++xHn69XW5IZot6/O6g+1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8370 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792170681595256844 X-GMAIL-MSGID: 1792170681595256844 Add snps,dw-pcie-ep.yaml. Remove context that exist in snps,dw-pcie-ep.yaml. Add an example for pcie-ep. Signed-off-by: Frank Li --- .../bindings/pci/fsl,layerscape-pcie-ep.yaml | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml index 0af70a4bc5d91..e75b8853dca8c 100644 --- a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml @@ -10,8 +10,7 @@ maintainers: - Frank Li description: - This PCIe RC controller is based on the Synopsys DesignWare PCIe IP - and thus inherits all the common properties defined in snps,dw-pcie.yaml. + This PCIe RC controller is based on the Synopsys DesignWare PCIe IP. This controller derives its clocks from the Reset Configuration Word (RCW) which is used to describe the PLL settings at the time of chip-reset. @@ -35,31 +34,18 @@ properties: - const: fsl,ls-pcie-ep reg: - description: base addresses and lengths of the PCIe controller register blocks. + maxItems: 2 + + reg-names: + maxItems: 2 interrupts: - description: A list of interrupt outputs of the controller. Must contain an - entry for each entry in the interrupt-names property. + minItems: 1 + maxItems: 3 interrupt-names: minItems: 1 maxItems: 3 - description: It could include the following entries. - items: - oneOf: - - description: - Used for interrupt line which reports AER events when - non MSI/MSI-X/INTx mode is used. - const: aer - - description: - Used for interrupt line which reports PME events when - non MSI/MSI-X/INTx mode is used. - const: pme - - description: - Used for SoCs(like ls2080a, lx2160a, ls2080a, ls2088a, ls1088a) - which has a single interrupt line for miscellaneous controller - events(could include AER and PME events). - const: intr fsl,pcie-scfg: $ref: /schemas/types.yaml#/definitions/phandle @@ -68,10 +54,7 @@ properties: The second entry is the physical PCIe controller index starting from '0'. This is used to get SCFG PEXN registers - dma-coherent: - description: Indicates that the hardware IP block can ensure the coherency - of the data transferred from/to the IP block. This can avoid the software - cache flush/invalid actions, and improve the performance significantly + dma-coherent: true big-endian: $ref: /schemas/types.yaml#/definitions/flag @@ -87,3 +70,24 @@ required: - fsl,pcie-scfg - dma-coherence +allOf: + - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie-ep@3400000 { + compatible = "fsl,ls1028a-pcie-ep", "fsl,ls-pcie-ep"; + reg = <0x00 0x03400000 0x0 0x00100000 + 0x80 0x00000000 0x8 0x00000000>; + reg-names = "dbi", "addr_space"; + interrupts = ; /* PME interrupt */ + interrupt-names = "app"; + }; + }; +... From patchwork Wed Feb 28 19:03: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: 207967 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3551041dyb; Wed, 28 Feb 2024 11:05:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU95vspTN9YLk4hT6G+lCf76c64Q6BumqPTNw+3r8SYR7wBD8Mf2O53vzBtBxsmOyIlmD1BbBeQG3z6B1CbNbqDhJblwA== X-Google-Smtp-Source: AGHT+IGpUWlMZYtS+8ThwkfzUoys3gNWlYzYZ6L0Id0G5mbqFP2ebWXJqjt9XOXKsev6Gi9YNnfO X-Received: by 2002:a05:6a20:7b09:b0:1a1:21a8:b513 with SMTP id s9-20020a056a207b0900b001a121a8b513mr118991pzh.46.1709147129799; Wed, 28 Feb 2024 11:05:29 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y66-20020a633245000000b005dc5dc82729si104669pgy.541.2024.02.28.11.05.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:05:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85572-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=IeZNflVV; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85572-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85572-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 9C57B289B60 for ; Wed, 28 Feb 2024 19:05:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E78C161B73; Wed, 28 Feb 2024 19:04:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="IeZNflVV" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2073.outbound.protection.outlook.com [40.107.247.73]) (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 ECA8315F30B; Wed, 28 Feb 2024 19:03:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147038; cv=fail; b=bgkCqF7yExAY6KKvh3h4GnfgdtK1TxeH9ijhLDGWPtnOiP8EyNvjvRp00eMMTKrz9Zf6WGI52f0hOkui3m/7je+e+TA1+ClybUD3yru1/uEUOpSqHTAMLeo32u1EKC5Mu5nRz1B29PdvH4B6WBPE/GhOUO5u8vVrlq92tUAAce0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147038; c=relaxed/simple; bh=3pwKWMOfDGZlUiqtoecsQrIEagYgVEMbV1pnhZ3PjLU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=XVkny/xsZH7faOPSwEKzFoe/0b8w3Y3FuN6FD/jiy2pmVkz7VAIGlyXAB/Ae0rQ0f8Cj6fMN3Kjq3OTVf8ZDeKIt2eE7y/onVglE7MaQzFy2V6D+NXsEnzRatVGU8n6RizQYItOhqIfkXQvVj383Xyqtuzzpjggbm+tthu4BnMo= 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=IeZNflVV; arc=fail smtp.client-ip=40.107.247.73 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=EHIpQ/VyO2T5dLwxPDz5+70LWMfX+UiOEdMTySlaRKT6HX1q9oG445OxwhqByNHcbo89TdAsBotsNQa/J8tsjkwj6QfeAzne0AX7fe9ZWja2EOO17vROzYOrqFHU0PP9A/twr4b0If5QZyVi7jHy3hSlabkAbqMllHITjCQ5/5C3URAQDRy4DevS9KEBA6ZbWYmZyXpGOwqF9ojydMZDtGH1f1TAn7xyHGwoYsasOqW3fmlUPTweHJsKxtUCGfewhpFghUmZxmPaqJbgeOw/DPLFH8wTRcaq3iX4t4vLfVdaEPfqQwUJIIX+qSNq7xQ3Eazbh6M0F84A7JmHoXIoLg== 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=kkRlpYqtJJVELc6OrHSBMJkiS6uRXhRsZfGaWicajEE=; b=LDLOc91t0LUJxol6PvMOnAfxNVJemgXKk1U60r7mUnS49+RyB+hQRlfEB4INooOD3z5UgSmUgHvhg2oZfhQ+sQiSL8sEWuhyEa983joKOtlUcu/TFrfiRwktdCpyvxGh3bjnyA4muC740PaadyFecUgI1aKYTgTRA/+2bnvMjlk7hno1qoi/Y7ShO6kMJQh0KmsVSlVmE8C/KNDc/qBJHVW0e4zWI3q/KE58Ul/R2U9f+nMAV1IEyrjoduQ1G9+gpaY8UEhDH9BfZ4wojJdmKzP6uhZ1B535O4dRGSQKl+Mzg+1i2T7d8aZ7f7mwp5D6FQDLbBbZCRKCca68zmPkbw== 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=kkRlpYqtJJVELc6OrHSBMJkiS6uRXhRsZfGaWicajEE=; b=IeZNflVVUhNOtZWLyN8Swn78x5NMVmj68iF0TGKc0Bqh+03NJ0rV5Nn6fQNA5mw7vEAT1s7Y/18gIugl1/JNFlr2ah5b9Elg0b+zJZ3OA82RSlViMcd7WM4YqBKFLlFAfPbsImtmTkVVdGvOuMyWe8Tt7bfQzrubXusabXQdtrs= 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 AS8PR04MB8370.eurprd04.prod.outlook.com (2603:10a6:20b:3b1::22) 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 19:03:56 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:03:55 +0000 From: Frank Li To: helgaas@kernel.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, conor@kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org Subject: [PATCH v5 5/5] dt-bindings: pci: layerscape-pci-ep: Remove 'fsl,pcie-scfg' and 'dma-coherence' from required Date: Wed, 28 Feb 2024 14:03:21 -0500 Message-Id: <20240228190321.580846-6-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228190321.580846-1-Frank.Li@nxp.com> References: <20240228190321.580846-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0165.namprd05.prod.outlook.com (2603:10b6:a03:339::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|AS8PR04MB8370:EE_ X-MS-Office365-Filtering-Correlation-Id: 735f7fd1-1291-4699-f64e-08dc389002f0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tu/mmcHdo9U5ZAW7qxZF7dgK3ErbTks0Y7q189CmzGcPjmbVkGvnZfpCHotq+cgbJZ1LPQq0A53mOgwqkXqsJWfYBafaAQfURu7jhocRfj5tS9Zc0bH+Ai3T7GplxGY+Is30+2X4o3MFMF4/gY/LigczvdA6ttkPshvvB4YQPxIuO9w64C/CEtMuCnw+ngUrNbVWGxNOqN62qJ+mpBzOks1ZsYAhG4M8stS7g0NaOyGOpJPvbHP5t1ACccKehAHNkzEaKg4QOIoVo1sR5ZTKJDPk0wSGw/pGg3zKt8a5WBDXoh2u2OhCnDiunLjPbaokmCgYOemyVPfZqEoeZ2Pfccvx0mfMkaXtRU7dFuLHyOSuyDEaIa/K79Ctt8oiW2uT+DzOUnnDA9Arn58HWpwGjjQ8ol3LPMafE0zV2Be3HYb+c/o9Bp7FBbnyfT5Lg8S7VWcp6InRrLIR2huxHvsH5prBc3xbrrVrc0i0nO598aMQvqdz7g5MAUyl2eGwpFS3qR3IhpxNJGK0awk3ER5bDFVQTLSqH1BhNTsghs2criHfIoJGnLjOYYFYRdZCZVqY40k//wr6XxSIST4Uo32FMwHJpkcIQyiAZiIJNsnIRb9owCc9fq/+mVK2dYxy2DyjO23Vs/A3/ETvhu+iUOt/xD7H5ehwHpMqZsIdQylNzoJXBn3erxPkLI56AkI/lbalTt27fqFB3gb88a5Cul2WKXcPUik0l1X6kM8wD0+erUQ= 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CLqhO2zT72Wmg+7snXc0sKpdyGVT54aypF6bWkskYkhI0+sCIrKZh7m+ATFxDnEM/xyEXKgS6L55Lnabh5Fs1B82Pckh2JsStvNen4+2GPAvISyPlIo9Fej612smfvOFlBQ8DGhCzEfrB4ATJzoXZgus9Icy93HeUFWb/cd4/ScgMpoQ37NPF+sJapRDb8NCi+MqitkVcOfV2TjGmuxjEQPGDcejWubzs9g/955DU5rNq/h1IG+E0MWVd0EqTKwCPguwyLdZjFc2pQDDtujEBf3oViv6phE1iFd2+xC7/xGTdb4IrpoP2R6WLxEXzZEwzUoYGSenyT4mIq2KykuISv8SHmLOLAudlP260MBNqhQJorVHlFaehBc1uRGBwfrEGo8CQXLpcOIbu8GaXFAtv0IbNmGdFKtaZisW9O4lCdDeN4/14uRHHZjJ04yUIzXkZ96ILoSjhaVuhTWv3fwOo253nCBmMMRr6NZDo3CB18gqdi+cmgXGHGl3nun+kkFv01nzKSb+mWxLslyWJovBvfs5vwuoqAw5yv454euBW1rTvHaAimOf2ZhRaYi2xNAbvCCFCigQFigFS7WqTxD5HBXMEtChPBKDS03tLsgY+jiVw3zw5i38c2x5wVPVYM22wK3TWmnOXXTb75Y7UI8EJYbEm+YsorEePX9QY4OsTW/KsyRrDoCDY5PefnpUTrJFHdYFXTdiJhPlX9vFn1Tb9ivvbXUibeFQ6lHL9knB4JU0PiU7d2BWbJLn1v9mQUPxXAegLzRNNC3VGdidzluxl3GshPHHypZR0qOIdZUvYQ+j5AM7B2vijZNbOO46E6lS9c80+BZd6Ow0L2JNQHzdNkZtbP+E9I2XH9w72m80wvO6dRUgfF4tnr3xSgfoPOAUoLCUgepKI55qtc3v5n+BASJoZDhKBJ6vHGy7HTkFzRP5pv2iAKesDdCdhvgBC5+nld5V/TCa4I8gDGdK3SrfdoklkX7m/lVZ6UWLO25Shkfd5BDBo7D6sylMP0ndLuIkDk03lc3AHLMMhelZo+Daeh6nKKIA9kpSlWP9xzz2EWU2YHuDZrqJQPkdA7LQ6yveve5g6+HhhRK7NnPPq0spITEW6bwcVOxqxTnRXP5W1vga5usKHECjrOwOb7+fxtllA++40ToYkJnbA2SsGyQy3irNN3QFRj0PbvanQ1jmmKp9bOou0dUkH+x3EO/NkGUR4m/rv+58oZWbbiAhEafVHHgippG2Rvq8IB+I9lPEw/FZBtHG12ze2NR+4ym3ItIuT1O+NbF0WvPiNsLje6n18Q+f72jduopxd7fEDwLAvnu1VYqF2Wv+8TmEFwuOFDTsM60DvUhxXezGrXeQc1nb+6SRM+ZZeBc1ovccK5Z//xsXe3wTF6Yd4dvfyNrGvR3yxzDq5tqyccp6dWOpNyO/72IaCHMSiFLBjc7MpEggDIfbfIqELyjSNxurs0chEpPjKcCz+QzRXNgljWBYTLjl38pAh6GxZzlVVICdBLP6iqVfqjjMIcaWliO1Bk4h9t0YnxAaCVP9GGp1E2+7GNjaABEybwrLkYzO/o8oFiJNsniO/HTYBKTt1NeEnfok/ozM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 735f7fd1-1291-4699-f64e-08dc389002f0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:03:55.8638 (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: uqa6AvHP9OpTElyATasx2j8YiQPQGbFn8qlJRM8QVFUbPk7UExCdToMeBR27fwBq3Zc6MhuX5aYOkjULxao6PA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8370 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792170660738439309 X-GMAIL-MSGID: 1792170660738439309 Remove 'fsl,pcie-scfg' and 'dma-coherence' properties from required because not all chips is dma coherenced and have supplement configuration unit (scfg). Signed-off-by: Frank Li --- .../devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml index e75b8853dca8c..07965683beece 100644 --- a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml @@ -67,8 +67,6 @@ required: - compatible - reg - interrupt-names - - fsl,pcie-scfg - - dma-coherence allOf: - $ref: /schemas/pci/snps,dw-pcie-ep.yaml#