Message ID | 20231224183242.1675372-16-Frank.Li@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-10800-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp75101dyb; Sun, 24 Dec 2023 10:37:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNPn/TCWfnKx1iUnof055O0xKgKonLsbKFC8nXlTGL0ZDyLAv731klLxAUKT7zlBYqg6qf X-Received: by 2002:a05:6870:d202:b0:204:e5a:2b5a with SMTP id g2-20020a056870d20200b002040e5a2b5amr5373081oac.111.1703443064980; Sun, 24 Dec 2023 10:37:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703443064; cv=pass; d=google.com; s=arc-20160816; b=jF7jUSc4RuwcPca8uKmp5/R6vsgnxQzUW5cTSvx5E7DHT9s/DQQLgLfmo0I2SeR7uC tmzLPUNevxv2ebzGKEteGcssrFqerTF/QQwAgW9wbanLjKUVNmAOLiz1VdUhku2pyzh2 dcyci1MODai3uDnXGcUduskSIps9fO8EJdre7GHKF+I9FWJNiPqfkxwvxucefxARTwT8 gct6uTDEk+n53mktSFMBM3Hcw1I0uZg/kSP4QZ/mf+xyNowTC/Bs/cJoxvOBYrAg61Jw uppXoyw/giPFBpOmcOsR7UQbpQGXni18HsBuowAwH13ep4gD6fyIQ6tdwFUZ2a1MRgAw TDOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=KqwMa6eMbLnQJ2/DnJpJInA1vRcpd1Bx4zYAn3HEDQw=; fh=492Ek0Vpabbqz4y1lk9p/Id6JH5wlBXcD/z8VK8wbWM=; b=BABEF8VZZJm2q+HmpFA0rVbDJAIZglpdobQVX4L21X38Ff52PO16A0nsZuLuzHhNJU TZwwj6a+vkpQlMeVeB3j0MHa4G2g0YmsRG8LRCUmUm7RaqMBQLOdAJ9ORHLKZ7zv/6jN SKMvI6JLC/53YHiziBO7rBpbgD6v3SuNSg+ckTqr2uOaZ5OmDOb/EZBtWP403tfwR1L/ XOB9p+SQPj7ygisBPvTHkWn1sjphnr6vNgItOLR+OE7RJkRGYVVeHPzwdz9h/9AVIJZn 9ZpCKErtifN5yW27TizD8M7j9oDWAs1E0sxO3DhK4EseZ1RzK4DB/ROEuYR3vV45iAz4 7A4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=afnenlQr; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-10800-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10800-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bo13-20020a17090b090d00b0028bfce45881si5557135pjb.101.2023.12.24.10.37.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 10:37:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10800-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=afnenlQr; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-10800-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10800-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 BF64BB212DD for <ouuuleilei@gmail.com>; Sun, 24 Dec 2023 18:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 980D019441; Sun, 24 Dec 2023 18:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="afnenlQr" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2061.outbound.protection.outlook.com [40.107.22.61]) (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 79ACE18EB9; Sun, 24 Dec 2023 18:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MMBrhloQfU4HCnJ7Mc/Qlgo1x7tueOpKUSK26VlwZI/fczBnLBXAY0GDmFxioo0p9nQ7Vmva+Bmng92bGgKbOjnQtU3PWxMLMNMMx2Aby4h2MDmGlpvcEXuELmB0dvY9EDlRVd3Tb7bU1uPnf1IybRxmAb2HKgvmndrb8nWeTcLj936nI9WQdkFoSPtCMIND0zida8jfptE8TSN0Uscjn8SdYKaqeTvuRqcJuHwZhs+SJUS1roCvq1zMo6rfu+ZZs+vnQzk9E3hc7WLVmvhCjwbxv5a+6FP5bsJYJoIx3lqvMcDLnlkZA+2IfPQ2d3o6zhsnHDtsVFvd7+ioBFX9oA== 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=KqwMa6eMbLnQJ2/DnJpJInA1vRcpd1Bx4zYAn3HEDQw=; b=Dp4r80aCrLr2RJcJFvvb3bQzx3PgFxNC+6uJkkYrSTPd04kkS2wgejSNUkXam9hHgD9jkGbRaksub7hNgflQcQEyIV5rFa3yRLrWZEDHlhszj9Fnb74Pi0LxY3rhgpIhAL4e/KnttwvkFznqMtF9cM20tPkVQ5cex7NmXV3vhBkMNR6r6rwNV6wrYMnQfnAhZPmPBbap75MCTtibBVT5gtJTmPVoVA4RHRwAf/N6aFdDahiGc51v3Szm/GLaF/ALaTU7/q9yKn07KABJDSlcMVPzaqBFOl5/2l76VHC9lG0C6JK5fMy8a1gOAc+Y9Ao1bSQuY2M2MxYu+GYUbNuXog== 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=KqwMa6eMbLnQJ2/DnJpJInA1vRcpd1Bx4zYAn3HEDQw=; b=afnenlQrnPWRgibC6erFzYcN4qBIj/LP0IUy4x/E1aFsHAe+89G1K7xZI+ZfRQtzB6CVDdsxqSMEhk/OiPD4L5npfKtNAl2KNje2wUoFhYcw+v3uGb8MgsxK2P6CCmqaxlkbV+WY4NEfg1Xn2Ng9KMQid1ewDz/nWl1DjjDIzbU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS5PR04MB10020.eurprd04.prod.outlook.com (2603:10a6:20b:682::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Sun, 24 Dec 2023 18:34:22 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%7]) with mapi id 15.20.7113.026; Sun, 24 Dec 2023 18:34:22 +0000 From: Frank Li <Frank.Li@nxp.com> To: krzysztof.kozlowski@linaro.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, helgaas@kernel.org, hongxing.zhu@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, manivannan.sadhasivam@linaro.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v6 15/16] dt-bindings: imx6q-pcie: Add iMX95 pcie endpoint compatible string Date: Sun, 24 Dec 2023 13:32:41 -0500 Message-Id: <20231224183242.1675372-16-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231224183242.1675372-1-Frank.Li@nxp.com> References: <20231224183242.1675372-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0169.namprd03.prod.outlook.com (2603:10b6:a03:338::24) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB10020:EE_ X-MS-Office365-Filtering-Correlation-Id: 020576e3-213e-4456-11e6-08dc04aef281 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eOVAPqEk0BzFAm0w+lhAHrLyGygXCNaH0t4eTt4jmtu7nQNHul7L6jiQzKf3v3dXUxqeyj/rC3o+NI4N5Dem6rPokqXtWNu+A+/AsUQHMhlCLVrD3/y7lG/VWkrf9I8+q/sLfRuEK+9L9S6r0gNb5s6DZTbNTsjI3BhJtTdFmys14O9aGkPUM6iN64m1Sr8BQ6Df17IUJoy9LrQ1KAVRvpf0WzqaMOo4pEy3ZMxqb65vVxdUwD0qfaDObtbnf7lWVcEg+eu+uUBi2vpy4sxnOCVXTBrFgtUv8iDCDCQY8WwCYqRlHuqPzcJnTBCAscsUlT2u1VJmyWejE7c1w+8C4XZxbVlCCUcPLd8s3DwuQdS9uHKiWR+u0vZ5TcjzYcjtpn2CFjsAHzIWdkchPrMaIp6geB6K0WF0zHlovI81ZUBYqVU2f4dylmGiLQjsubxNW5FEd8Epuu/ec1j7xckJ+HuLBl2RjK6zSubBlS6zmjDq1t4AhW/lRkU0/f/JFW8JGEVxwmYtNQBJk0ntekPq3Fom9ZL83woQRp9To9UQhgearlkz/d7bPotA1ddQ2cKc5K2XAj2Ax2nZ07wubCIU8r48M57n3ZFn4szJtlJ2LQp0Bxp5OqBTa+TM5kSm7dIbnaSNiag3+21XZAshmcg7BQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(39860400002)(366004)(346002)(376002)(136003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(38350700005)(41300700001)(86362001)(26005)(36756003)(2616005)(1076003)(83380400001)(38100700002)(52116002)(478600001)(6916009)(316002)(66476007)(6666004)(66946007)(66556008)(6512007)(6506007)(8676002)(8936002)(7416002)(5660300002)(2906002)(4326008)(6486002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZClNXLJpOH+EwW/sSd3IB3IWHRyeM6vfGHhIvyjkFiz0EVXqprEC1fDmUCJ0/yv9NVvvkvmfUNer5QxTy2vtRnK/gkaobpdZpAcXVshg2F+io+2eS8QiYArkNeeA/wK4FPuDWnTIT+1oqibHbKeF1XK7QbadtymxtOx1NTK4DB6DBpE+/hV5Q4i4Hw3dlpJNLTGESq1dXYf4NLq2Dc25G3B6fFQ3HseYgRS+Fu/Aj8ILPz+ulj2ajZt/sQFJ6ZvAyZLRZhbBDnnK5E9WJjZ7GsXWc+nDJHIrbrHfwevgVpQm6UoVPflseW/MEBSR42A9QQTDOuqOtdYpb8tDAB/dbezGmG84kCCyLyhwsX8AC0fhEoilpTuFUYGp0J2uVmE86DYYaJsfZ0Ceqat7gDape8xTgDP4EhQzl5rvFWOwLh8j93KtuKR1tsknNJqD4fiZ1CNar74OjXIRVHXKxXDmn4STRJ91zjtN8al8VaexjxFyL9a6+1BnsUNKBlveK1K1q1Fah3cBqGLEY+YBiKLKp3YSAY6c/y34bU2gp6frYkqJFkXzw5UKQRQ3qziquT2aFVVZ1H9zbed2iyE1MiBQuCFQteqSRFQTrwevtOooos8HA+os1HwFU/Ay/4BukpIa61fQ3eyLWAw8KJ+n8dkZt0qSUzjGrw5bfZbwNJYE4q6Du2UPCJtixI02j/VBzeBFPTYnkB8bySkya9pmZw1+aaC+Jcee7riXdEHB0penoA/uFjcWsQRqezFJV+I8QiJkNcCd6yrhbfV2ORdGYktycclG/A2ToCpXgUrhW/Vwf1ttimg1CgDgNadtDrx3VBkj2FLwj7Gm3tyblD/LUo64qsoHV0hIKCfBBgBYP84PdWR+z5CEO1YFZNxJW/G6EDa1Vd95ymYyKUZ9ltDQNuaxnhlqAY4SQp3xHc2ThASrym4AvttUswmmZ1hT3hyc/whDh8rfyrNP+SHd5Cb5uNBT5wqWy6rk2ykpzaSyBMYY9OcRigbOgNjGuy7q1lLqZJYa17fycYutuVpA20OQLAbPS+w2ahMw+4xFaH1Vxb0d4NXfpMZO5VGIqTLc8n2FotfQUThExqyIY/mjIppjezeSSfHW2pg2lgYivlxJl+yaJvuFyNdk7u+fxGgpa7CQeGgj91nROfd0QsMTOVVqTizSmzRJksbT3CPTeBBX5QAge+qa5JdeCN+jaUDtTIWZVRPMhctg3mlzUS1TOy4+n8HLk/w4kM+kKZOF4/6j/ltyhj/ia2HerAAQg/WukNPBy19Z71wDv1tXcrmm9miRvRVrIqW3cEpVLGUT1stLkrDsI3PT+lHc4KMNF/iRVI04rV81CPeRCv54f91xwDqnFVAjvyeZQVALpexYHnMVmC1VrFYoO0zZnnAk4EktYag4ZyVVoZLScQ4pvm2ZcXCdz0gF2Yj+8jadSJ4r6idcrXUNsipFGzmzoYKQnQAVcgLClj2CxP1ev+7JOuFCP/QpZyHSuXxib4tB3VzQ0oGMtuaJiGiQ7e6YGzJSp0oNWOe0jlCqcPOjhkMMH9MXyHClxC1L4NfuT9bsKftYgC0iTD4Cno0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 020576e3-213e-4456-11e6-08dc04aef281 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2023 18:34:22.0801 (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: 9hy08R4JNseBDA7EX2Z7bLIBwsuFRXtyv3ZpBVYh8hB3b2s5hD08AdyK+I3wZyfssLyi8K72WZVDFE0+so6TtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10020 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786189515372981541 X-GMAIL-MSGID: 1786189515372981541 |
Series |
PCI: imx6: Clean up and add imx95 pci support
|
|
Commit Message
Frank Li
Dec. 24, 2023, 6:32 p.m. UTC
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.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Notes:
Change from v1 to v3
- new patches at v3
.../bindings/pci/fsl,imx6q-pcie-ep.yaml | 57 ++++++++++++++++---
1 file changed, 49 insertions(+), 8 deletions(-)
Comments
On 24/12/2023 19:32, Frank Li wrote: > 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. > > Signed-off-by: Frank Li <Frank.Li@nxp.com> > --- > ... > +# reuse PCI linux,pci-domain as controller id at Endpoint > + - if: > + properties: > + compatible: > + enum: > + - fsl,imx95-pcie-ep > + then: > + properties: > + linux,pci-domain: true Same comment: why do you need? Don't ignore my feedback. You responded you will fix it, but it is still here... Best regards, Krzysztof
On Mon, Dec 25, 2023 at 08:16:17PM +0100, Krzysztof Kozlowski wrote: > On 24/12/2023 19:32, Frank Li wrote: > > 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. > > > > Signed-off-by: Frank Li <Frank.Li@nxp.com> > > --- > > > > ... > > > +# reuse PCI linux,pci-domain as controller id at Endpoint > > + - if: > > + properties: > > + compatible: > > + enum: > > + - fsl,imx95-pcie-ep > > + then: > > + properties: > > + linux,pci-domain: true > > Same comment: why do you need? Don't ignore my feedback. You responded > you will fix it, but it is still here... DTB_CHECK report error after I remove it. linux,pci-domain is only define in pci, not pci-ep. So I add comments about this. linux,pci-domain was resued ad controller id. If include pci.yaml, there are too much other properties was involved, but not used by pci-ep. Frank > > Best regards, > Krzysztof >
On 26/12/2023 17:12, Frank Li wrote: > On Mon, Dec 25, 2023 at 08:16:17PM +0100, Krzysztof Kozlowski wrote: >> On 24/12/2023 19:32, Frank Li wrote: >>> 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. >>> >>> Signed-off-by: Frank Li <Frank.Li@nxp.com> >>> --- >>> >> >> ... >> >>> +# reuse PCI linux,pci-domain as controller id at Endpoint >>> + - if: >>> + properties: >>> + compatible: >>> + enum: >>> + - fsl,imx95-pcie-ep >>> + then: >>> + properties: >>> + linux,pci-domain: true >> >> Same comment: why do you need? Don't ignore my feedback. You responded >> you will fix it, but it is still here... > > DTB_CHECK report error after I remove it. linux,pci-domain is only define > in pci, not pci-ep. Ah, thank you, indeed. > > So I add comments about this. linux,pci-domain was resued ad controller id. However maybe there is reason why it is not for endpoints. The description is saying it is valid only for host bridge, so maybe it should not be used for endpoint case? > > If include pci.yaml, there are too much other properties was involved, but > not used by pci-ep. Best regards, Krzysztof
On Tue, Dec 26, 2023 at 08:01:53PM +0100, Krzysztof Kozlowski wrote: > On 26/12/2023 17:12, Frank Li wrote: > > On Mon, Dec 25, 2023 at 08:16:17PM +0100, Krzysztof Kozlowski wrote: > >> On 24/12/2023 19:32, Frank Li wrote: > >>> 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. > >>> > >>> Signed-off-by: Frank Li <Frank.Li@nxp.com> > >>> --- > >>> > >> > >> ... > >> > >>> +# reuse PCI linux,pci-domain as controller id at Endpoint > >>> + - if: > >>> + properties: > >>> + compatible: > >>> + enum: > >>> + - fsl,imx95-pcie-ep > >>> + then: > >>> + properties: > >>> + linux,pci-domain: true > >> > >> Same comment: why do you need? Don't ignore my feedback. You responded > >> you will fix it, but it is still here... > > > > DTB_CHECK report error after I remove it. linux,pci-domain is only define > > in pci, not pci-ep. > > Ah, thank you, indeed. > > > > > So I add comments about this. linux,pci-domain was resued ad controller id. > > However maybe there is reason why it is not for endpoints. The > description is saying it is valid only for host bridge, so maybe it > should not be used for endpoint case? EP side, it is not PCI bus. So it is reasonable that linux,pci-doamin not in EP side. iMX6 host driver(and other some host controller drivers) already use it as "controller id". EP driver is mostly reused with host bridge drivers. I think needn't create new property such as "controller_id" for EP only. A comments should be enough for this case. Frank > > > > If include pci.yaml, there are too much other properties was involved, but > > not used by pci-ep. > > Best regards, > Krzysztof >
On 26/12/2023 22:53, Frank Li wrote: >>> DTB_CHECK report error after I remove it. linux,pci-domain is only define >>> in pci, not pci-ep. >> >> Ah, thank you, indeed. >> >>> >>> So I add comments about this. linux,pci-domain was resued ad controller id. >> >> However maybe there is reason why it is not for endpoints. The >> description is saying it is valid only for host bridge, so maybe it >> should not be used for endpoint case? > > EP side, it is not PCI bus. So it is reasonable that linux,pci-doamin not > in EP side. > > iMX6 host driver(and other some host controller drivers) already use it as > "controller id". EP driver is mostly reused with host bridge drivers. I > think needn't create new property such as "controller_id" for EP only. > > A comments should be enough for this case. Hm, ok, seems fine for me. I don't know PCI good enough to judge, so unless Rob or Conor say something else, it looks good. Best regards, Krzysztof
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