xref: /freebsd/sys/contrib/device-tree/Bindings/pci/qcom,pcie-sa8775p.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/pci/qcom,pcie-sa8775p.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: Qualcomm SA8775p PCI Express Root Complex
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel Vadotmaintainers:
10*01950c46SEmmanuel Vadot  - Bjorn Andersson <andersson@kernel.org>
11*01950c46SEmmanuel Vadot  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
12*01950c46SEmmanuel Vadot
13*01950c46SEmmanuel Vadotdescription:
14*01950c46SEmmanuel Vadot  Qualcomm SA8775p SoC PCIe root complex controller is based on the Synopsys
15*01950c46SEmmanuel Vadot  DesignWare PCIe IP.
16*01950c46SEmmanuel Vadot
17*01950c46SEmmanuel Vadotproperties:
18*01950c46SEmmanuel Vadot  compatible:
19*01950c46SEmmanuel Vadot    const: qcom,pcie-sa8775p
20*01950c46SEmmanuel Vadot
21*01950c46SEmmanuel Vadot  reg:
22*01950c46SEmmanuel Vadot    minItems: 6
23*01950c46SEmmanuel Vadot    maxItems: 6
24*01950c46SEmmanuel Vadot
25*01950c46SEmmanuel Vadot  reg-names:
26*01950c46SEmmanuel Vadot    items:
27*01950c46SEmmanuel Vadot      - const: parf # Qualcomm specific registers
28*01950c46SEmmanuel Vadot      - const: dbi # DesignWare PCIe registers
29*01950c46SEmmanuel Vadot      - const: elbi # External local bus interface registers
30*01950c46SEmmanuel Vadot      - const: atu # ATU address space
31*01950c46SEmmanuel Vadot      - const: config # PCIe configuration space
32*01950c46SEmmanuel Vadot      - const: mhi # MHI registers
33*01950c46SEmmanuel Vadot
34*01950c46SEmmanuel Vadot  clocks:
35*01950c46SEmmanuel Vadot    minItems: 5
36*01950c46SEmmanuel Vadot    maxItems: 5
37*01950c46SEmmanuel Vadot
38*01950c46SEmmanuel Vadot  clock-names:
39*01950c46SEmmanuel Vadot    items:
40*01950c46SEmmanuel Vadot      - const: aux # Auxiliary clock
41*01950c46SEmmanuel Vadot      - const: cfg # Configuration clock
42*01950c46SEmmanuel Vadot      - const: bus_master # Master AXI clock
43*01950c46SEmmanuel Vadot      - const: bus_slave # Slave AXI clock
44*01950c46SEmmanuel Vadot      - const: slave_q2a # Slave Q2A clock
45*01950c46SEmmanuel Vadot
46*01950c46SEmmanuel Vadot  interrupts:
47*01950c46SEmmanuel Vadot    minItems: 8
48*01950c46SEmmanuel Vadot    maxItems: 8
49*01950c46SEmmanuel Vadot
50*01950c46SEmmanuel Vadot  interrupt-names:
51*01950c46SEmmanuel Vadot    items:
52*01950c46SEmmanuel Vadot      - const: msi0
53*01950c46SEmmanuel Vadot      - const: msi1
54*01950c46SEmmanuel Vadot      - const: msi2
55*01950c46SEmmanuel Vadot      - const: msi3
56*01950c46SEmmanuel Vadot      - const: msi4
57*01950c46SEmmanuel Vadot      - const: msi5
58*01950c46SEmmanuel Vadot      - const: msi6
59*01950c46SEmmanuel Vadot      - const: msi7
60*01950c46SEmmanuel Vadot
61*01950c46SEmmanuel Vadot  resets:
62*01950c46SEmmanuel Vadot    maxItems: 1
63*01950c46SEmmanuel Vadot
64*01950c46SEmmanuel Vadot  reset-names:
65*01950c46SEmmanuel Vadot    items:
66*01950c46SEmmanuel Vadot      - const: pci
67*01950c46SEmmanuel Vadot
68*01950c46SEmmanuel Vadotrequired:
69*01950c46SEmmanuel Vadot  - interconnects
70*01950c46SEmmanuel Vadot  - interconnect-names
71*01950c46SEmmanuel Vadot
72*01950c46SEmmanuel VadotallOf:
73*01950c46SEmmanuel Vadot  - $ref: qcom,pcie-common.yaml#
74*01950c46SEmmanuel Vadot
75*01950c46SEmmanuel VadotunevaluatedProperties: false
76*01950c46SEmmanuel Vadot
77*01950c46SEmmanuel Vadotexamples:
78*01950c46SEmmanuel Vadot  - |
79*01950c46SEmmanuel Vadot    #include <dt-bindings/clock/qcom,sa8775p-gcc.h>
80*01950c46SEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
81*01950c46SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
82*01950c46SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
83*01950c46SEmmanuel Vadot    #include <dt-bindings/interconnect/qcom,sa8775p-rpmh.h>
84*01950c46SEmmanuel Vadot
85*01950c46SEmmanuel Vadot    soc {
86*01950c46SEmmanuel Vadot        #address-cells = <2>;
87*01950c46SEmmanuel Vadot        #size-cells = <2>;
88*01950c46SEmmanuel Vadot
89*01950c46SEmmanuel Vadot        pcie@1c00000 {
90*01950c46SEmmanuel Vadot            compatible = "qcom,pcie-sa8775p";
91*01950c46SEmmanuel Vadot            reg = <0x0 0x01c00000 0x0 0x3000>,
92*01950c46SEmmanuel Vadot                  <0x0 0x40000000 0x0 0xf20>,
93*01950c46SEmmanuel Vadot                  <0x0 0x40000f20 0x0 0xa8>,
94*01950c46SEmmanuel Vadot                  <0x0 0x40001000 0x0 0x4000>,
95*01950c46SEmmanuel Vadot                  <0x0 0x40100000 0x0 0x100000>,
96*01950c46SEmmanuel Vadot                  <0x0 0x01c03000 0x0 0x1000>;
97*01950c46SEmmanuel Vadot            reg-names = "parf", "dbi", "elbi", "atu", "config", "mhi";
98*01950c46SEmmanuel Vadot            ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>,
99*01950c46SEmmanuel Vadot                     <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>;
100*01950c46SEmmanuel Vadot
101*01950c46SEmmanuel Vadot            bus-range = <0x00 0xff>;
102*01950c46SEmmanuel Vadot            device_type = "pci";
103*01950c46SEmmanuel Vadot            linux,pci-domain = <0>;
104*01950c46SEmmanuel Vadot            num-lanes = <2>;
105*01950c46SEmmanuel Vadot
106*01950c46SEmmanuel Vadot            #address-cells = <3>;
107*01950c46SEmmanuel Vadot            #size-cells = <2>;
108*01950c46SEmmanuel Vadot
109*01950c46SEmmanuel Vadot            assigned-clocks = <&gcc GCC_PCIE_0_AUX_CLK>;
110*01950c46SEmmanuel Vadot            assigned-clock-rates = <19200000>;
111*01950c46SEmmanuel Vadot
112*01950c46SEmmanuel Vadot            clocks = <&gcc GCC_PCIE_0_AUX_CLK>,
113*01950c46SEmmanuel Vadot                     <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
114*01950c46SEmmanuel Vadot                     <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
115*01950c46SEmmanuel Vadot                     <&gcc GCC_PCIE_0_SLV_AXI_CLK>,
116*01950c46SEmmanuel Vadot                     <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>;
117*01950c46SEmmanuel Vadot            clock-names = "aux",
118*01950c46SEmmanuel Vadot                          "cfg",
119*01950c46SEmmanuel Vadot                          "bus_master",
120*01950c46SEmmanuel Vadot                          "bus_slave",
121*01950c46SEmmanuel Vadot                          "slave_q2a";
122*01950c46SEmmanuel Vadot
123*01950c46SEmmanuel Vadot            dma-coherent;
124*01950c46SEmmanuel Vadot
125*01950c46SEmmanuel Vadot            interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>,
126*01950c46SEmmanuel Vadot                         <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>,
127*01950c46SEmmanuel Vadot                         <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>,
128*01950c46SEmmanuel Vadot                         <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>,
129*01950c46SEmmanuel Vadot                         <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
130*01950c46SEmmanuel Vadot                         <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
131*01950c46SEmmanuel Vadot                         <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>,
132*01950c46SEmmanuel Vadot                         <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>;
133*01950c46SEmmanuel Vadot            interrupt-names = "msi0",
134*01950c46SEmmanuel Vadot                              "msi1",
135*01950c46SEmmanuel Vadot                              "msi2",
136*01950c46SEmmanuel Vadot                              "msi3",
137*01950c46SEmmanuel Vadot                              "msi4",
138*01950c46SEmmanuel Vadot                              "msi5",
139*01950c46SEmmanuel Vadot                              "msi6",
140*01950c46SEmmanuel Vadot                              "msi7";
141*01950c46SEmmanuel Vadot            #interrupt-cells = <1>;
142*01950c46SEmmanuel Vadot            interrupt-map-mask = <0 0 0 0x7>;
143*01950c46SEmmanuel Vadot            interrupt-map = <0 0 0 1 &intc GIC_SPI 434 IRQ_TYPE_LEVEL_HIGH>,
144*01950c46SEmmanuel Vadot                            <0 0 0 2 &intc GIC_SPI 435 IRQ_TYPE_LEVEL_HIGH>,
145*01950c46SEmmanuel Vadot                            <0 0 0 3 &intc GIC_SPI 438 IRQ_TYPE_LEVEL_HIGH>,
146*01950c46SEmmanuel Vadot                            <0 0 0 4 &intc GIC_SPI 439 IRQ_TYPE_LEVEL_HIGH>;
147*01950c46SEmmanuel Vadot
148*01950c46SEmmanuel Vadot            interconnects = <&pcie_anoc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>,
149*01950c46SEmmanuel Vadot                            <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>;
150*01950c46SEmmanuel Vadot            interconnect-names = "pcie-mem", "cpu-pcie";
151*01950c46SEmmanuel Vadot
152*01950c46SEmmanuel Vadot            iommu-map = <0x0 &pcie_smmu 0x0000 0x1>,
153*01950c46SEmmanuel Vadot                        <0x100 &pcie_smmu 0x0001 0x1>;
154*01950c46SEmmanuel Vadot
155*01950c46SEmmanuel Vadot            phys = <&pcie0_phy>;
156*01950c46SEmmanuel Vadot            phy-names = "pciephy";
157*01950c46SEmmanuel Vadot
158*01950c46SEmmanuel Vadot            power-domains = <&gcc PCIE_0_GDSC>;
159*01950c46SEmmanuel Vadot
160*01950c46SEmmanuel Vadot            resets = <&gcc GCC_PCIE_0_BCR>;
161*01950c46SEmmanuel Vadot            reset-names = "pci";
162*01950c46SEmmanuel Vadot
163*01950c46SEmmanuel Vadot            perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
164*01950c46SEmmanuel Vadot            wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
165*01950c46SEmmanuel Vadot        };
166*01950c46SEmmanuel Vadot    };
167