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/YYVim6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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"; + }; + }; +...