brintos

brintos / linux-shallow public Read only

0
0
Text · 4.2 KiB · 9de3c09 Raw
157 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/pci/xlnx,nwl-pcie.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Xilinx NWL PCIe Root Port Bridge8 9maintainers:10  - Thippeswamy Havalige <thippeswamy.havalige@amd.com>11 12allOf:13  - $ref: /schemas/pci/pci-host-bridge.yaml#14  - $ref: /schemas/interrupt-controller/msi-controller.yaml#15 16properties:17  compatible:18    const: xlnx,nwl-pcie-2.1119 20  reg:21    items:22      - description: PCIe bridge registers location.23      - description: PCIe Controller registers location.24      - description: PCIe Configuration space region.25 26  reg-names:27    items:28      - const: breg29      - const: pcireg30      - const: cfg31 32  interrupts:33    items:34      - description: interrupt asserted when miscellaneous interrupt is received35      - description: unused interrupt(dummy)36      - description: interrupt asserted when a legacy interrupt is received37      - description: msi1 interrupt asserted when an MSI is received38      - description: msi0 interrupt asserted when an MSI is received39 40  interrupt-names:41    items:42      - const: misc43      - const: dummy44      - const: intx45      - const: msi146      - const: msi047 48  interrupt-map-mask:49    items:50      - const: 051      - const: 052      - const: 053      - const: 754 55  "#interrupt-cells":56    const: 157 58  msi-parent:59    description: MSI controller the device is capable of using.60 61  interrupt-map:62    maxItems: 463 64  phys:65    minItems: 166    maxItems: 467    description: One phy per logical lane, in order68 69  power-domains:70    maxItems: 171 72  iommus:73    maxItems: 174 75  dma-coherent:76    description: optional, only needed if DMA operations are coherent.77 78  clocks:79    maxItems: 180    description: optional, input clock specifier.81 82  legacy-interrupt-controller:83    description: Interrupt controller node for handling legacy PCI interrupts.84    type: object85    properties:86      "#address-cells":87        const: 088 89      "#interrupt-cells":90        const: 191 92      interrupt-controller: true93 94    required:95      - "#address-cells"96      - "#interrupt-cells"97      - interrupt-controller98 99    additionalProperties: false100 101required:102  - compatible103  - reg104  - reg-names105  - interrupts106  - "#interrupt-cells"107  - interrupt-map108  - interrupt-map-mask109  - msi-controller110  - power-domains111 112unevaluatedProperties: false113 114examples:115  - |116    #include <dt-bindings/interrupt-controller/arm-gic.h>117    #include <dt-bindings/interrupt-controller/irq.h>118    #include <dt-bindings/phy/phy.h>119    #include <dt-bindings/power/xlnx-zynqmp-power.h>120    soc {121        #address-cells = <2>;122        #size-cells = <2>;123        nwl_pcie: pcie@fd0e0000 {124            compatible = "xlnx,nwl-pcie-2.11";125            reg = <0x0 0xfd0e0000 0x0 0x1000>,126                  <0x0 0xfd480000 0x0 0x1000>,127                  <0x80 0x00000000 0x0 0x10000000>;128            reg-names = "breg", "pcireg", "cfg";129            ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>,130                     <0x43000000 0x00000006 0x0 0x00000006 0x0 0x00000002 0x0>;131            #address-cells = <3>;132            #size-cells = <2>;133            #interrupt-cells = <1>;134            msi-controller;135            device_type = "pci";136            interrupt-parent = <&gic>;137            interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 116 IRQ_TYPE_EDGE_RISING>,138                         <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 115 IRQ_TYPE_EDGE_RISING>,139                         <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;140            interrupt-names = "misc", "dummy", "intx", "msi1", "msi0";141            interrupt-map-mask = <0x0 0x0 0x0 0x7>;142            interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc 0x1>,143                            <0x0 0x0 0x0 0x2 &pcie_intc 0x2>,144                            <0x0 0x0 0x0 0x3 &pcie_intc 0x3>,145                            <0x0 0x0 0x0 0x4 &pcie_intc 0x4>;146            msi-parent = <&nwl_pcie>;147            phys = <&psgtr 0 PHY_TYPE_PCIE 0 0>;148            power-domains = <&zynqmp_firmware PD_PCIE>;149            iommus = <&smmu 0x4d0>;150            pcie_intc: legacy-interrupt-controller {151                interrupt-controller;152                #address-cells = <0>;153                #interrupt-cells = <1>;154            };155        };156    };157