summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/pci/qcom,pcie-msm8996.yaml
blob: f2081ae1593f7b97002c7f0c897c3c30264c03fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pci/qcom,pcie-msm8996.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm MSM8996 PCI Express Root Complex

maintainers:
  - Bjorn Andersson <andersson@kernel.org>
  - Manivannan Sadhasivam <mani@kernel.org>

properties:
  compatible:
    oneOf:
      - enum:
          - qcom,pcie-msm8996
      - items:
          - const: qcom,pcie-msm8998
          - const: qcom,pcie-msm8996

  reg:
    minItems: 4
    maxItems: 5

  reg-names:
    minItems: 4
    items:
      - const: parf
      - const: dbi
      - const: elbi
      - const: config
      - const: mhi

  clocks:
    maxItems: 5

  clock-names:
    items:
      - const: pipe # Pipe Clock driving internal logic
      - const: aux
      - const: cfg
      - const: bus_master # Master AXI clock
      - const: bus_slave # Slave AXI clock

  interrupts:
    minItems: 8
    maxItems: 9

  interrupt-names:
    minItems: 8
    items:
      - const: msi0
      - const: msi1
      - const: msi2
      - const: msi3
      - const: msi4
      - const: msi5
      - const: msi6
      - const: msi7
      - const: global

  vdda-supply:
    description: A phandle to the core analog power supply

  vddpe-3v3-supply:
    description: A phandle to the PCIe endpoint power supply

required:
  - power-domains

allOf:
  - $ref: qcom,pcie-common.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/qcom,gcc-msm8996.h>
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    pcie@600000 {
        compatible = "qcom,pcie-msm8996";
        reg = <0x00600000 0x2000>,
              <0x0c000000 0xf1d>,
              <0x0c000f20 0xa8>,
              <0x0c100000 0x100000>;
        reg-names = "parf", "dbi", "elbi", "config";
        ranges = <0x01000000 0x0 0x00000000 0x0c200000 0x0 0x100000>,
                 <0x02000000 0x0 0x0c300000 0x0c300000 0x0 0xd00000>;

        device_type = "pci";
        bus-range = <0x00 0xff>;
        num-lanes = <1>;
        #address-cells = <3>;
        #size-cells = <2>;
        linux,pci-domain = <0>;

        clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
                 <&gcc GCC_PCIE_0_AUX_CLK>,
                 <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
                 <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
                 <&gcc GCC_PCIE_0_SLV_AXI_CLK>;
        clock-names = "pipe",
                     "aux",
                     "cfg",
                     "bus_master",
                     "bus_slave";

        interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 407 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 408 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 409 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 410 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 411 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 412 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "msi0",
                          "msi1",
                          "msi2",
                          "msi3",
                          "msi4",
                          "msi5",
                          "msi6",
                          "msi7";
        #interrupt-cells = <1>;
        interrupt-map-mask = <0 0 0 0x7>;
        interrupt-map = <0 0 0 1 &intc GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
                        <0 0 0 2 &intc GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
                        <0 0 0 3 &intc GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
                        <0 0 0 4 &intc GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>; /* int_d */

        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&pcie0_state_on>;
        pinctrl-1 = <&pcie0_state_off>;

        phys = <&pciephy_0>;
        phy-names = "pciephy";

        power-domains = <&gcc PCIE0_GDSC>;

        perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
        vddpe-3v3-supply = <&wlan_en>;
        vdda-supply = <&vreg_l28a_0p925>;

        pcie@0 {
            device_type = "pci";
            reg = <0x0 0x0 0x0 0x0 0x0>;
            bus-range = <0x01 0xff>;

            #address-cells = <3>;
            #size-cells = <2>;
            ranges;
        };
    };