brintos

brintos / linux-shallow public Read only

0
0
Text · 3.2 KiB · 844fc71 Raw
121 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/sifive,fu740-pcie.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: SiFive FU740 PCIe host controller8 9description: |+10  SiFive FU740 PCIe host controller is based on the Synopsys DesignWare11  PCI core. It shares common features with the PCIe DesignWare core and12  inherits common properties defined in13  Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml.14 15maintainers:16  - Paul Walmsley <paul.walmsley@sifive.com>17  - Greentime Hu <greentime.hu@sifive.com>18 19allOf:20  - $ref: /schemas/pci/snps,dw-pcie.yaml#21 22properties:23  compatible:24    const: sifive,fu740-pcie25 26  reg:27    maxItems: 328 29  reg-names:30    items:31      - const: dbi32      - const: config33      - const: mgmt34 35  dma-coherent: true36 37  num-lanes:38    const: 839 40  msi-parent: true41 42  interrupt-names:43    items:44      - const: msi45      - const: inta46      - const: intb47      - const: intc48      - const: intd49 50  resets:51    description: A phandle to the PCIe power up reset line.52    maxItems: 153 54  clocks:55    maxItems: 156 57  clock-names:58    const: pcie_aux59 60  pwren-gpios:61    description: Should specify the GPIO for controlling the PCI bus device power on.62    maxItems: 163 64  reset-gpios:65    maxItems: 166 67required:68  - dma-coherent69  - num-lanes70  - interrupts71  - interrupt-names72  - interrupt-map-mask73  - interrupt-map74  - clocks75  - clock-names76  - resets77  - pwren-gpios78  - reset-gpios79 80unevaluatedProperties: false81 82examples:83  - |84    bus {85        #address-cells = <2>;86        #size-cells = <2>;87        #include <dt-bindings/clock/sifive-fu740-prci.h>88 89        pcie@e00000000 {90            compatible = "sifive,fu740-pcie";91            #address-cells = <3>;92            #size-cells = <2>;93            #interrupt-cells = <1>;94            reg = <0xe 0x00000000 0x0 0x80000000>,95                  <0xd 0xf0000000 0x0 0x10000000>,96                  <0x0 0x100d0000 0x0 0x1000>;97            reg-names = "dbi", "config", "mgmt";98            device_type = "pci";99            dma-coherent;100            bus-range = <0x0 0xff>;101            ranges = <0x81000000  0x0 0x60080000  0x0 0x60080000 0x0 0x10000>,      /* I/O */102                     <0x82000000  0x0 0x60090000  0x0 0x60090000 0x0 0xff70000>,    /* mem */103                     <0x82000000  0x0 0x70000000  0x0 0x70000000 0x0 0x1000000>,    /* mem */104                     <0xc3000000 0x20 0x00000000 0x20 0x00000000 0x20 0x00000000>;  /* mem prefetchable */105            num-lanes = <0x8>;106            interrupts = <56>, <57>, <58>, <59>, <60>, <61>, <62>, <63>, <64>;107            interrupt-names = "msi", "inta", "intb", "intc", "intd";108            interrupt-parent = <&plic0>;109            interrupt-map-mask = <0x0 0x0 0x0 0x7>;110            interrupt-map = <0x0 0x0 0x0 0x1 &plic0 57>,111                            <0x0 0x0 0x0 0x2 &plic0 58>,112                            <0x0 0x0 0x0 0x3 &plic0 59>,113                            <0x0 0x0 0x0 0x4 &plic0 60>;114            clock-names = "pcie_aux";115            clocks = <&prci FU740_PRCI_CLK_PCIE_AUX>;116            resets = <&prci 4>;117            pwren-gpios = <&gpio 5 0>;118            reset-gpios = <&gpio 8 0>;119        };120    };121