xref: /openbmc/linux/Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
143cea116SGreentime Hu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
243cea116SGreentime Hu%YAML 1.2
343cea116SGreentime Hu---
443cea116SGreentime Hu$id: http://devicetree.org/schemas/pci/sifive,fu740-pcie.yaml#
543cea116SGreentime Hu$schema: http://devicetree.org/meta-schemas/core.yaml#
643cea116SGreentime Hu
743cea116SGreentime Hutitle: SiFive FU740 PCIe host controller
843cea116SGreentime Hu
943cea116SGreentime Hudescription: |+
1043cea116SGreentime Hu  SiFive FU740 PCIe host controller is based on the Synopsys DesignWare
1143cea116SGreentime Hu  PCI core. It shares common features with the PCIe DesignWare core and
1243cea116SGreentime Hu  inherits common properties defined in
13320e1098SMauro Carvalho Chehab  Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml.
1443cea116SGreentime Hu
1543cea116SGreentime Humaintainers:
1643cea116SGreentime Hu  - Paul Walmsley <paul.walmsley@sifive.com>
1743cea116SGreentime Hu  - Greentime Hu <greentime.hu@sifive.com>
1843cea116SGreentime Hu
1943cea116SGreentime HuallOf:
20320e1098SMauro Carvalho Chehab  - $ref: /schemas/pci/snps,dw-pcie.yaml#
2143cea116SGreentime Hu
2243cea116SGreentime Huproperties:
2343cea116SGreentime Hu  compatible:
2443cea116SGreentime Hu    const: sifive,fu740-pcie
2543cea116SGreentime Hu
2643cea116SGreentime Hu  reg:
2743cea116SGreentime Hu    maxItems: 3
2843cea116SGreentime Hu
2943cea116SGreentime Hu  reg-names:
3043cea116SGreentime Hu    items:
3143cea116SGreentime Hu      - const: dbi
3243cea116SGreentime Hu      - const: config
3343cea116SGreentime Hu      - const: mgmt
3443cea116SGreentime Hu
35b92225b0SRob Herring  dma-coherent: true
36b92225b0SRob Herring
3743cea116SGreentime Hu  num-lanes:
3843cea116SGreentime Hu    const: 8
3943cea116SGreentime Hu
4043cea116SGreentime Hu  msi-parent: true
4143cea116SGreentime Hu
4243cea116SGreentime Hu  interrupt-names:
4343cea116SGreentime Hu    items:
4443cea116SGreentime Hu      - const: msi
4543cea116SGreentime Hu      - const: inta
4643cea116SGreentime Hu      - const: intb
4743cea116SGreentime Hu      - const: intc
4843cea116SGreentime Hu      - const: intd
4943cea116SGreentime Hu
5043cea116SGreentime Hu  resets:
5143cea116SGreentime Hu    description: A phandle to the PCIe power up reset line.
5243cea116SGreentime Hu    maxItems: 1
5343cea116SGreentime Hu
54*b408fad6SConor Dooley  clocks:
55*b408fad6SConor Dooley    maxItems: 1
56*b408fad6SConor Dooley
57*b408fad6SConor Dooley  clock-names:
58*b408fad6SConor Dooley    const: pcie_aux
59*b408fad6SConor Dooley
6043cea116SGreentime Hu  pwren-gpios:
6143cea116SGreentime Hu    description: Should specify the GPIO for controlling the PCI bus device power on.
6243cea116SGreentime Hu    maxItems: 1
6343cea116SGreentime Hu
6443cea116SGreentime Hu  reset-gpios:
6543cea116SGreentime Hu    maxItems: 1
6643cea116SGreentime Hu
6743cea116SGreentime Hurequired:
6843cea116SGreentime Hu  - dma-coherent
6943cea116SGreentime Hu  - num-lanes
7043cea116SGreentime Hu  - interrupts
7143cea116SGreentime Hu  - interrupt-names
7243cea116SGreentime Hu  - interrupt-map-mask
7343cea116SGreentime Hu  - interrupt-map
7443cea116SGreentime Hu  - clocks
75*b408fad6SConor Dooley  - clock-names
7643cea116SGreentime Hu  - resets
7743cea116SGreentime Hu  - pwren-gpios
7843cea116SGreentime Hu  - reset-gpios
7943cea116SGreentime Hu
8043cea116SGreentime HuunevaluatedProperties: false
8143cea116SGreentime Hu
8243cea116SGreentime Huexamples:
8343cea116SGreentime Hu  - |
8443cea116SGreentime Hu    bus {
8543cea116SGreentime Hu        #address-cells = <2>;
8643cea116SGreentime Hu        #size-cells = <2>;
8743cea116SGreentime Hu        #include <dt-bindings/clock/sifive-fu740-prci.h>
8843cea116SGreentime Hu
8943cea116SGreentime Hu        pcie@e00000000 {
9043cea116SGreentime Hu            compatible = "sifive,fu740-pcie";
9143cea116SGreentime Hu            #address-cells = <3>;
9243cea116SGreentime Hu            #size-cells = <2>;
9343cea116SGreentime Hu            #interrupt-cells = <1>;
9443cea116SGreentime Hu            reg = <0xe 0x00000000 0x0 0x80000000>,
9543cea116SGreentime Hu                  <0xd 0xf0000000 0x0 0x10000000>,
9643cea116SGreentime Hu                  <0x0 0x100d0000 0x0 0x1000>;
9743cea116SGreentime Hu            reg-names = "dbi", "config", "mgmt";
9843cea116SGreentime Hu            device_type = "pci";
9943cea116SGreentime Hu            dma-coherent;
10043cea116SGreentime Hu            bus-range = <0x0 0xff>;
10143cea116SGreentime Hu            ranges = <0x81000000  0x0 0x60080000  0x0 0x60080000 0x0 0x10000>,      /* I/O */
10243cea116SGreentime Hu                     <0x82000000  0x0 0x60090000  0x0 0x60090000 0x0 0xff70000>,    /* mem */
10343cea116SGreentime Hu                     <0x82000000  0x0 0x70000000  0x0 0x70000000 0x0 0x1000000>,    /* mem */
10443cea116SGreentime Hu                     <0xc3000000 0x20 0x00000000 0x20 0x00000000 0x20 0x00000000>;  /* mem prefetchable */
10543cea116SGreentime Hu            num-lanes = <0x8>;
10643cea116SGreentime Hu            interrupts = <56>, <57>, <58>, <59>, <60>, <61>, <62>, <63>, <64>;
10743cea116SGreentime Hu            interrupt-names = "msi", "inta", "intb", "intc", "intd";
10843cea116SGreentime Hu            interrupt-parent = <&plic0>;
10943cea116SGreentime Hu            interrupt-map-mask = <0x0 0x0 0x0 0x7>;
11043cea116SGreentime Hu            interrupt-map = <0x0 0x0 0x0 0x1 &plic0 57>,
11143cea116SGreentime Hu                            <0x0 0x0 0x0 0x2 &plic0 58>,
11243cea116SGreentime Hu                            <0x0 0x0 0x0 0x3 &plic0 59>,
11343cea116SGreentime Hu                            <0x0 0x0 0x0 0x4 &plic0 60>;
114*b408fad6SConor Dooley            clock-names = "pcie_aux";
1150493692bSZong Li            clocks = <&prci FU740_PRCI_CLK_PCIE_AUX>;
11643cea116SGreentime Hu            resets = <&prci 4>;
11743cea116SGreentime Hu            pwren-gpios = <&gpio 5 0>;
11843cea116SGreentime Hu            reset-gpios = <&gpio 8 0>;
11943cea116SGreentime Hu        };
12043cea116SGreentime Hu    };
121