* [PATCH v2 0/2] Add support for CPM5 controller 1 @ 2024-09-16 16:31 Thippeswamy Havalige 2024-09-16 16:31 ` [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string " Thippeswamy Havalige 0 siblings, 1 reply; 5+ messages in thread From: Thippeswamy Havalige @ 2024-09-16 16:31 UTC (permalink / raw) To: manivannan.sadhasivam, robh, linux-pci, bhelgaas, linux-arm-kernel, linux-kernel, krzk+dt, conor+dt, devicetree Cc: bharat.kumar.gogada, michal.simek, lpieralisi, kw, Thippeswamy Havalige This patch series introduces support for the second Root Port controller in the Xilinx Versal Premium CPM5 block. The Versal Premium platform features two Type-A Root Port controllers operating at Gen5 speed. However, the error interrupt registers and their corresponding bits are located at different offsets for Controller 0 and Controller 1. To handle these differences, the series includes: A new compatible string for the second Root Port controller in the device tree bindings. Driver updates to manage platform-specific interrupt registers and offsets for both controllers using the new compatible string. Thippeswamy Havalige (2): dt-bindings: PCI: xilinx-cpm: Add compatible string for CPM5 host1 PCI: xilinx-cpm: Add support for Versal CPM5 Root Port controller 1 .../bindings/pci/xilinx-versal-cpm.yaml | 1 + drivers/pci/controller/pcie-xilinx-cpm.c | 45 ++++++++++++++----- 2 files changed, 36 insertions(+), 10 deletions(-) -- 2.34.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string for CPM5 controller 1 2024-09-16 16:31 [PATCH v2 0/2] Add support for CPM5 controller 1 Thippeswamy Havalige @ 2024-09-16 16:31 ` Thippeswamy Havalige 2024-09-17 10:49 ` Krzysztof Kozlowski 0 siblings, 1 reply; 5+ messages in thread From: Thippeswamy Havalige @ 2024-09-16 16:31 UTC (permalink / raw) To: manivannan.sadhasivam, robh, linux-pci, bhelgaas, linux-arm-kernel, linux-kernel, krzk+dt, conor+dt, devicetree Cc: bharat.kumar.gogada, michal.simek, lpieralisi, kw, Thippeswamy Havalige The Xilinx Versal Premium series includes the CPM5 block, which supports two Type-A Root Port controllers operating at Gen5 speed. This patch adds a compatible string to distinguish between the two CPM5 Root Port controllers. The error interrupt registers and corresponding bits for Controller 0 and Controller 1 are located at different offsets, making it necessary to differentiate them. By using the new compatible string, the driver can properly handle these platform-specific differences between the controllers. Signed-off-by: Thippeswamy Havalige <thippesw@amd.com> --- changes in v2: -------------- Modify compatible string to differentiate controller 0 and controller 1 --- Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml index 989fb0fa2577..3783075661e2 100644 --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml @@ -17,6 +17,7 @@ properties: enum: - xlnx,versal-cpm-host-1.00 - xlnx,versal-cpm5-host + - xlnx,versal-cpm5-host1-1 reg: items: -- 2.34.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string for CPM5 controller 1 2024-09-16 16:31 ` [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string " Thippeswamy Havalige @ 2024-09-17 10:49 ` Krzysztof Kozlowski 2024-09-17 12:32 ` Havalige, Thippeswamy 0 siblings, 1 reply; 5+ messages in thread From: Krzysztof Kozlowski @ 2024-09-17 10:49 UTC (permalink / raw) To: Thippeswamy Havalige Cc: manivannan.sadhasivam, robh, linux-pci, bhelgaas, linux-arm-kernel, linux-kernel, krzk+dt, conor+dt, devicetree, bharat.kumar.gogada, michal.simek, lpieralisi, kw On Mon, Sep 16, 2024 at 10:01:23PM +0530, Thippeswamy Havalige wrote: > The Xilinx Versal Premium series includes the CPM5 block, which supports > two Type-A Root Port controllers operating at Gen5 speed. > > This patch adds a compatible string to distinguish between the two CPM5 > Root Port controllers. The error interrupt registers and corresponding bits > for Controller 0 and Controller 1 are located at different offsets, making > it necessary to differentiate them. > > By using the new compatible string, the driver can properly handle these > platform-specific differences between the controllers. > > Signed-off-by: Thippeswamy Havalige <thippesw@amd.com> > --- > changes in v2: > -------------- > Modify compatible string to differentiate controller 0 and controller 1 > --- > Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > index 989fb0fa2577..3783075661e2 100644 > --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > @@ -17,6 +17,7 @@ properties: > enum: > - xlnx,versal-cpm-host-1.00 > - xlnx,versal-cpm5-host > + - xlnx,versal-cpm5-host1-1 Hm, I thought my irony was obvious, but it seems was not. Apologies. "1-1", "1-2", "1-1-1" or "1-1.00-1" are all poor choices. I was waiting for some reasonable name idea, because it is you who knows the hardware and has datasheet. I guess if I have to come up with name then "host1" was better. Or "cpm5-1-host". Dunno, all these names "5" in "cpm5" and "-1.00" in IP version are randomly constructed. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string for CPM5 controller 1 2024-09-17 10:49 ` Krzysztof Kozlowski @ 2024-09-17 12:32 ` Havalige, Thippeswamy 2024-09-17 17:50 ` Krzysztof Kozlowski 0 siblings, 1 reply; 5+ messages in thread From: Havalige, Thippeswamy @ 2024-09-17 12:32 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: manivannan.sadhasivam@linaro.org, robh@kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, Gogada, Bharat Kumar, Simek, Michal, lpieralisi@kernel.org, kw@linux.com Hi Krzysztof, > -----Original Message----- > From: Krzysztof Kozlowski <krzk@kernel.org> > Sent: Tuesday, September 17, 2024 4:20 PM > To: Havalige, Thippeswamy <thippeswamy.havalige@amd.com> > Cc: manivannan.sadhasivam@linaro.org; robh@kernel.org; linux- > pci@vger.kernel.org; bhelgaas@google.com; linux-arm-kernel@lists.infradead.org; > linux-kernel@vger.kernel.org; krzk+dt@kernel.org; conor+dt@kernel.org; > devicetree@vger.kernel.org; Gogada, Bharat Kumar > <bharat.kumar.gogada@amd.com>; Simek, Michal <michal.simek@amd.com>; > lpieralisi@kernel.org; kw@linux.com > Subject: Re: [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string for > CPM5 controller 1 > > On Mon, Sep 16, 2024 at 10:01:23PM +0530, Thippeswamy Havalige wrote: > > The Xilinx Versal Premium series includes the CPM5 block, which > > supports two Type-A Root Port controllers operating at Gen5 speed. > > > > This patch adds a compatible string to distinguish between the two > > CPM5 Root Port controllers. The error interrupt registers and > > corresponding bits for Controller 0 and Controller 1 are located at > > different offsets, making it necessary to differentiate them. > > > > By using the new compatible string, the driver can properly handle > > these platform-specific differences between the controllers. > > > > Signed-off-by: Thippeswamy Havalige <thippesw@amd.com> > > --- > > changes in v2: > > -------------- > > Modify compatible string to differentiate controller 0 and controller > > 1 > > --- > > Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git > > a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > > b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > > index 989fb0fa2577..3783075661e2 100644 > > --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > > +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > > @@ -17,6 +17,7 @@ properties: > > enum: > > - xlnx,versal-cpm-host-1.00 > > - xlnx,versal-cpm5-host > > + - xlnx,versal-cpm5-host1-1 > > Hm, I thought my irony was obvious, but it seems was not. Apologies. > "1-1", "1-2", "1-1-1" or "1-1.00-1" are all poor choices. > > I was waiting for some reasonable name idea, because it is you who knows the > hardware and has datasheet. > > I guess if I have to come up with name then "host1" was better. Or "cpm5-1-host". > Dunno, all these names "5" in "cpm5" and "-1.00" in IP version are randomly > constructed. Here, CPM5 indicates gen5 Root Port and host1 indicates controller 1. So, Let me resend patch with compatible string as "xlnx,versal-cpm5-host1" it looks fine. > > Best regards, > Krzysztof ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string for CPM5 controller 1 2024-09-17 12:32 ` Havalige, Thippeswamy @ 2024-09-17 17:50 ` Krzysztof Kozlowski 0 siblings, 0 replies; 5+ messages in thread From: Krzysztof Kozlowski @ 2024-09-17 17:50 UTC (permalink / raw) To: Havalige, Thippeswamy Cc: manivannan.sadhasivam@linaro.org, robh@kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, Gogada, Bharat Kumar, Simek, Michal, lpieralisi@kernel.org, kw@linux.com On 17/09/2024 14:32, Havalige, Thippeswamy wrote: > Hi Krzysztof, > >> -----Original Message----- >> From: Krzysztof Kozlowski <krzk@kernel.org> >> Sent: Tuesday, September 17, 2024 4:20 PM >> To: Havalige, Thippeswamy <thippeswamy.havalige@amd.com> >> Cc: manivannan.sadhasivam@linaro.org; robh@kernel.org; linux- >> pci@vger.kernel.org; bhelgaas@google.com; linux-arm-kernel@lists.infradead.org; >> linux-kernel@vger.kernel.org; krzk+dt@kernel.org; conor+dt@kernel.org; >> devicetree@vger.kernel.org; Gogada, Bharat Kumar >> <bharat.kumar.gogada@amd.com>; Simek, Michal <michal.simek@amd.com>; >> lpieralisi@kernel.org; kw@linux.com >> Subject: Re: [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string for >> CPM5 controller 1 >> >> On Mon, Sep 16, 2024 at 10:01:23PM +0530, Thippeswamy Havalige wrote: >>> The Xilinx Versal Premium series includes the CPM5 block, which >>> supports two Type-A Root Port controllers operating at Gen5 speed. >>> >>> This patch adds a compatible string to distinguish between the two >>> CPM5 Root Port controllers. The error interrupt registers and >>> corresponding bits for Controller 0 and Controller 1 are located at >>> different offsets, making it necessary to differentiate them. >>> >>> By using the new compatible string, the driver can properly handle >>> these platform-specific differences between the controllers. >>> >>> Signed-off-by: Thippeswamy Havalige <thippesw@amd.com> >>> --- >>> changes in v2: >>> -------------- >>> Modify compatible string to differentiate controller 0 and controller >>> 1 >>> --- >>> Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git >>> a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml >>> b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml >>> index 989fb0fa2577..3783075661e2 100644 >>> --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml >>> +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml >>> @@ -17,6 +17,7 @@ properties: >>> enum: >>> - xlnx,versal-cpm-host-1.00 >>> - xlnx,versal-cpm5-host >>> + - xlnx,versal-cpm5-host1-1 >> >> Hm, I thought my irony was obvious, but it seems was not. Apologies. >> "1-1", "1-2", "1-1-1" or "1-1.00-1" are all poor choices. >> >> I was waiting for some reasonable name idea, because it is you who knows the >> hardware and has datasheet. >> >> I guess if I have to come up with name then "host1" was better. Or "cpm5-1-host". >> Dunno, all these names "5" in "cpm5" and "-1.00" in IP version are randomly >> constructed. > > Here, CPM5 indicates gen5 Root Port and host1 indicates controller 1. > So, Let me resend patch with compatible string as "xlnx,versal-cpm5-host1" it looks fine. yes, thanks. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-09-17 17:50 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-09-16 16:31 [PATCH v2 0/2] Add support for CPM5 controller 1 Thippeswamy Havalige 2024-09-16 16:31 ` [PATCH v2 1/2] dt-bindings: PCI: xilinx-cpm: Add compatible string " Thippeswamy Havalige 2024-09-17 10:49 ` Krzysztof Kozlowski 2024-09-17 12:32 ` Havalige, Thippeswamy 2024-09-17 17:50 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).