linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Havalige, Thippeswamy" <thippeswamy.havalige@amd.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Cc: "bhelgaas@google.com" <bhelgaas@google.com>,
	"michals@xilinx.com" <michals@xilinx.com>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"Yeleswarapu, Nagaradhesh" <nagaradhesh.yeleswarapu@amd.com>,
	"Gogada, Bharat Kumar" <bharat.kumar.gogada@amd.com>
Subject: RE: [PATCH v2 2/2] dt-bindings: PCI: xilinx-nwl: Convert to YAML schemas of Xilinx NWL PCIe Root Port Bridge
Date: Thu, 3 Nov 2022 08:59:13 +0000	[thread overview]
Message-ID: <CY4PR1201MB01353B0CE46F22DFF55DFFAB8B389@CY4PR1201MB0135.namprd12.prod.outlook.com> (raw)
In-Reply-To: <9f2a50db-0cfe-b9ce-11f4-be406cb9888e@linaro.org>

> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: Wednesday, November 2, 2022 8:53 PM
> To: Havalige, Thippeswamy <thippeswamy.havalige@amd.com>; linux-
> pci@vger.kernel.org; linux-kernel@vger.kernel.org;
> devicetree@vger.kernel.org
> Cc: bhelgaas@google.com; michals@xilinx.com; robh+dt@kernel.org;
> Yeleswarapu, Nagaradhesh <nagaradhesh.yeleswarapu@amd.com>;
> Gogada, Bharat Kumar <bharat.kumar.gogada@amd.com>
> Subject: Re: [PATCH v2 2/2] dt-bindings: PCI: xilinx-nwl: Convert to YAML
> schemas of Xilinx NWL PCIe Root Port Bridge
> 
> On 01/11/2022 01:20, Thippeswamy Havalige wrote:
> > Convert to YAML schemas for Xilinx NWL PCIe Root Port Bridge dt
> > binding.
> >
> > Signed-off-by: Thippeswamy Havalige <thippeswamy.havalige@amd.com>
> > ---
> >  .../bindings/pci/xilinx-nwl-pcie.txt          |  73 ----------
> >  .../bindings/pci/xlnx,nwl-pcie.yaml           | 137 ++++++++++++++++++
> >  2 files changed, 137 insertions(+), 73 deletions(-)  delete mode
> > 100644 Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt
> >  create mode 100644
> > Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt
> > b/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt
> > deleted file mode 100644
> > index f56f8c58c5d9..000000000000
> > --- a/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt
> > +++ /dev/null
> > @@ -1,73 +0,0 @@
> > -* Xilinx NWL PCIe Root Port Bridge DT description
> > -
> > -Required properties:
> > -- compatible: Should contain "xlnx,nwl-pcie-2.11"
> > -- #address-cells: Address representation for root ports, set to <3>
> > -- #size-cells: Size representation for root ports, set to <2>
> > -- #interrupt-cells: specifies the number of cells needed to encode an
> > -	interrupt source. The value must be 1.
> > -- reg: Should contain Bridge, PCIe Controller registers location,
> > -	configuration space, and length
> > -- reg-names: Must include the following entries:
> > -	"breg": bridge registers
> > -	"pcireg": PCIe controller registers
> > -	"cfg": configuration space region
> > -- device_type: must be "pci"
> > -- interrupts: Should contain NWL PCIe interrupt
> > -- interrupt-names: Must include the following entries:
> > -	"msi1, msi0": interrupt asserted when an MSI is received
> > -	"intx": interrupt asserted when a legacy interrupt is received
> > -	"misc": interrupt asserted when miscellaneous interrupt is received
> > -- interrupt-map-mask and interrupt-map: standard PCI properties to
> define the
> > -	mapping of the PCI interface to interrupt numbers.
> > -- ranges: ranges for the PCI memory regions (I/O space region is not
> > -	supported by hardware)
> > -	Please refer to the standard PCI bus binding document for a more
> > -	detailed explanation
> > -- msi-controller: indicates that this is MSI controller node
> > -- msi-parent:  MSI parent of the root complex itself
> > -- legacy-interrupt-controller: Interrupt controller device node for Legacy
> > -	interrupts
> > -	- interrupt-controller: identifies the node as an interrupt controller
> > -	- #interrupt-cells: should be set to 1
> > -	- #address-cells: specifies the number of cells needed to encode an
> > -		address. The value must be 0.
> > -
> > -Optional properties:
> > -- dma-coherent: present if DMA operations are coherent
> > -- clocks: Input clock specifier. Refer to common clock bindings
> > -
> > -Example:
> > -++++++++
> > -
> > -nwl_pcie: pcie@fd0e0000 {
> > -	#address-cells = <3>;
> > -	#size-cells = <2>;
> > -	compatible = "xlnx,nwl-pcie-2.11";
> > -	#interrupt-cells = <1>;
> > -	msi-controller;
> > -	device_type = "pci";
> > -	interrupt-parent = <&gic>;
> > -	interrupts = <0 114 4>, <0 115 4>, <0 116 4>, <0 117 4>, <0 118 4>;
> > -	interrupt-names = "msi0", "msi1", "intx", "dummy", "misc";
> > -	interrupt-map-mask = <0x0 0x0 0x0 0x7>;
> > -	interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc 0x1>,
> > -			<0x0 0x0 0x0 0x2 &pcie_intc 0x2>,
> > -			<0x0 0x0 0x0 0x3 &pcie_intc 0x3>,
> > -			<0x0 0x0 0x0 0x4 &pcie_intc 0x4>;
> > -
> > -	msi-parent = <&nwl_pcie>;
> > -	reg = <0x0 0xfd0e0000 0x0 0x1000>,
> > -	      <0x0 0xfd480000 0x0 0x1000>,
> > -	      <0x80 0x00000000 0x0 0x1000000>;
> > -	reg-names = "breg", "pcireg", "cfg";
> > -	ranges = <0x02000000 0x00000000 0xe0000000 0x00000000
> 0xe0000000 0x00000000 0x10000000  /* non-prefetchable memory */
> > -		  0x43000000 0x00000006 0x00000000 0x00000006
> 0x00000000 0x00000002 0x00000000>;/* prefetchable memory */
> > -
> > -	pcie_intc: legacy-interrupt-controller {
> > -		interrupt-controller;
> > -		#address-cells = <0>;
> > -		#interrupt-cells = <1>;
> > -	};
> > -
> > -};
> > diff --git a/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
> > b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
> > new file mode 100644
> > index 000000000000..f6634be618a2
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
> > @@ -0,0 +1,137 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/pci/xlnx,nwl-pcie.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Xilinx NWL PCIe Root Port Bridge
> > +
> > +maintainers:
> > +  - Thippeswamy Havalige <thippeswamy.havalige@amd.com>
> > +
> > +allOf:
> > +  - $ref: /schemas/pci/pci-bus.yaml#
> > +  - $ref: /schemas/interrupt-controller/msi-controller.yaml#
> > +
> > +properties:
> > +  compatible:
> > +    const: xlnx,nwl-pcie-2.11
> > +
> > +  reg:
> > +    items:
> > +      - description: PCIe bridge registers location.
> > +      - description: PCIe Controller registers location.
> > +      - description: PCIe Configuration space region.
> > +
> > +  reg-names:
> > +    items:
> > +      - const: breg
> 
> const: bridge
> 
> > +      - const: pcireg
> 
> const: pci

These reg-names are used in driver and existing customers are using these reg-names. 
Please let me know why reg-names need to be changed ?
 
> > +      - const: cfg
> > +
> > +  interrupts:
> > +    items:
> > +      - description: msi0 interrupt asserted when an MSI is received
> > +      - description: msi1 interrupt asserted when an MSI is received
> > +      - description: interrupt asserted when a legacy interrupt is received
> > +      - description: unused interrupt(dummy)
> > +      - description: interrupt asserted when miscellaneous interrupt
> > + is received
> > +
> > +  interrupt-names:
> > +    maxItems: 5
> 
> I didn't notice last time - what are the names? They need to be defined.
> 
> > +
> > +  interrupt-map-mask:
> > +    items:
> > +      - const: 0
> > +      - const: 0
> > +      - const: 0
> > +      - const: 7
> > +
> 
> Best regards,
> Krzysztof


  reply	other threads:[~2022-11-03  8:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-01  5:20 [PATCH v2 1/2] dt-bindings: PCI: xilinx-pcie: Convert to YAML schemas of Xilinx AXI PCIe Root Port Bridge Thippeswamy Havalige
2022-11-01  5:20 ` [PATCH v2 2/2] dt-bindings: PCI: xilinx-nwl: Convert to YAML schemas of Xilinx NWL " Thippeswamy Havalige
2022-11-01 11:55   ` Rob Herring
2022-11-02 10:11     ` Havalige, Thippeswamy
2022-11-02 15:22   ` Krzysztof Kozlowski
2022-11-03  8:59     ` Havalige, Thippeswamy [this message]
2022-11-03 12:36       ` Krzysztof Kozlowski
2022-11-02 16:49 ` [PATCH v2 1/2] dt-bindings: PCI: xilinx-pcie: Convert to YAML schemas of Xilinx AXI " Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CY4PR1201MB01353B0CE46F22DFF55DFFAB8B389@CY4PR1201MB0135.namprd12.prod.outlook.com \
    --to=thippeswamy.havalige@amd.com \
    --cc=bharat.kumar.gogada@amd.com \
    --cc=bhelgaas@google.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=michals@xilinx.com \
    --cc=nagaradhesh.yeleswarapu@amd.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).