Skip to content

Commit 66dc205

Browse files
Qiang Yukwilczynski
authored andcommitted
dt-bindings: PCI: qcom,pcie-x1e80100: Add 'global' interrupt
Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt to the host CPU. This interrupt can be used by the device driver to handle PCIe link specific events such as Link up and Link down, which give the driver a chance to start bus enumeration on its own when link is up and initiate link training if link goes to a bad state. The PCIe driver can still work without this interrupt but it will provide a nice user experience when device gets plugged and removed. Hence, document it in the binding along with the existing MSI interrupts. Global interrupt is parsed as optional in driver, so adding it in bindings will not break the ABI. Link: https://lore.kernel.org/r/20241101030902.579789-3-quic_qianyu@quicinc.com Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 39a06b5 commit 66dc205

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ properties:
4747

4848
interrupts:
4949
minItems: 8
50-
maxItems: 8
50+
maxItems: 9
5151

5252
interrupt-names:
53+
minItems: 8
5354
items:
5455
- const: msi0
5556
- const: msi1
@@ -59,6 +60,7 @@ properties:
5960
- const: msi5
6061
- const: msi6
6162
- const: msi7
63+
- const: global
6264

6365
resets:
6466
minItems: 1
@@ -130,9 +132,10 @@ examples:
130132
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
131133
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
132134
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
133-
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
135+
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
136+
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
134137
interrupt-names = "msi0", "msi1", "msi2", "msi3",
135-
"msi4", "msi5", "msi6", "msi7";
138+
"msi4", "msi5", "msi6", "msi7", "global";
136139
#interrupt-cells = <1>;
137140
interrupt-map-mask = <0 0 0 0x7>;
138141
interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */

0 commit comments

Comments
 (0)