From: Rob Herring <robh@kernel.org>
To: Daire McNamara <daire.mcnamara@microchip.com>
Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/3] dt-bindings: PCI: microsemi: Add DT Bindings for Microsemi PCIe host controller
Date: Mon, 18 Feb 2019 12:42:43 -0600 [thread overview]
Message-ID: <20190218184243.GA20289@bogus> (raw)
In-Reply-To: <20190215162424.564-3-daire.mcnamara@microchip.com>
On Fri, Feb 15, 2019 at 04:24:23PM +0000, Daire McNamara wrote:
> This patch adds documentation for the DT bindings for Microsemi/Microchip
> PolarFire PCIe controller when configured in host (Root Complex) mode.
>
> Signed-off-by: Daire McNamara <daire.mcnamara@microchip.com>
> ---
> .../bindings/pci/microsemi-pcie.txt | 65 +++++++++++++++++++
> 1 file changed, 65 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pci/microsemi-pcie.txt
>
> diff --git a/Documentation/devicetree/bindings/pci/microsemi-pcie.txt b/Documentation/devicetree/bindings/pci/microsemi-pcie.txt
> new file mode 100644
> index 000000000000..a16e48806edc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pci/microsemi-pcie.txt
> @@ -0,0 +1,65 @@
> +* Microsemi AXI PCIe Root Port Bridge DT description
> +
> +Required properties:
> +- #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.
> +- compatible: Should contain "microsemi,ms-pf-axi-pcie-host"
Only 1 version?
'ms' is short for Microsemi? Which you already have once.
> +- reg: Should contain AXI PCIe registers location and length
Need to say how many regions, what each one is, and the order.
> +- device_type: must be "pci"
> +- interrupts: Should contain AXI PCIe interrupt
> +- interrupt-map-mask,
> + 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
> +
> +Optional properties for PolarFire:
> +- bus-range: PCI bus numbers covered
> +
> +Interrupt controller child node
> ++++++++++++++++++++++++++++++++
> +Required properties:
> +- interrupt-controller: identifies the node as an interrupt controller
> +- #address-cells: specifies the number of cells needed to encode an
> + address. The value must be 0.
> +- #interrupt-cells: specifies the number of cells needed to encode an
> + interrupt source. The value must be 1.
> +
> +NOTE:
> +The core provides a single interrupt for both INTx/MSI messages. So,
> +create an interrupt controller node to support 'interrupt-map' DT
> +functionality. The driver will create an IRQ domain for this map, decode
> +the four INTx interrupts in ISR and route them to this domain.
If MSI is supported, don't you need some MSI properties?
> +
> +
> +Example:
> +++++++++
> +AloeVera:
> +
> + pcie: pcie@2030000000 {
> + #address-cells = <3>;
> + #size-cells = <2>;
> + #interrupt-cells = <1>;
> + compatible = "microsemi,ms-pf-axi-pcie-host";
> + device_type = "pci";
> + bus-range = <0x01 0x7f>;
> + interrupt-map = <0 0 0 1 &pcie_intc 1>,
> + <0 0 0 2 &pcie_intc 2>,
> + <0 0 0 3 &pcie_intc 3>,
> + <0 0 0 4 &pcie_intc 4>;
> + interrupt-map-mask = <0 0 0 7>;
> + interrupt-parent = <&L4>;
> + interrupts = <32>;
> + ranges = <0x3000000 0 0x40000000 0x0 0x40000000 0x0 0x20000000>;
> + reg = <0x20 0x30000000 0x0 0x4000000 0x20 0x0 0x0 0x100000>;
> + reg-names = "control", "apb";
> + pcie_intc: interrupt-controller {
> + #address-cells = <0>;
> + #interrupt-cells = <1>;
> + interrupt-controller;
> + };
> + };
> --
> 2.17.0
>
next prev parent reply other threads:[~2019-02-18 18:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 16:24 [PATCH v3 0/3] Add Microchip/Microsemi PolarFire SoC PCIe support Daire McNamara
2019-02-15 16:24 ` [PATCH v3 1/3] PCI: Add vendor ID for Microsemi Daire McNamara
2019-02-18 18:36 ` Rob Herring
2019-02-15 16:24 ` [PATCH v3 2/3] dt-bindings: PCI: microsemi: Add DT Bindings for Microsemi PCIe host controller Daire McNamara
2019-02-18 18:42 ` Rob Herring [this message]
2019-04-02 16:24 ` Lorenzo Pieralisi
2019-02-15 16:24 ` [PATCH v3 3/3] PCI: microsemi: Add host driver for Microsemi PCIe controller Daire McNamara
2019-02-16 8:04 ` Christoph Hellwig
2019-04-02 18:23 ` Lorenzo Pieralisi
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=20190218184243.GA20289@bogus \
--to=robh@kernel.org \
--cc=daire.mcnamara@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-pci@vger.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).