Skip to content

Commit

Permalink
dt-bindings: PCI: qcom,pcie-sm8450: Add 'global' interrupt
Browse files Browse the repository at this point in the history
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
identify events such as PCIe link specific events, safety events, etc...

Hence, document it in the binding along with the existing MSI interrupts.
Though adding a new interrupt will break the ABI, it is required to
accurately describe the hardware.

Link: https://lore.kernel.org/linux-pci/[email protected]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Reviewed-by: Rob Herring (Arm) <[email protected]>
  • Loading branch information
Mani-Sadhasivam authored and kwilczynski committed Sep 1, 2024
1 parent bba1251 commit 6efd853
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ properties:

interrupts:
minItems: 1
maxItems: 8
maxItems: 9

interrupt-names:
minItems: 1
maxItems: 8
maxItems: 9

iommu-map:
minItems: 1
Expand Down
10 changes: 6 additions & 4 deletions Documentation/devicetree/bindings/pci/qcom,pcie-sm8450.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ properties:
- const: aggre1 # Aggre NoC PCIe1 AXI clock

interrupts:
minItems: 8
maxItems: 8
minItems: 9
maxItems: 9

interrupt-names:
items:
Expand All @@ -68,6 +68,7 @@ properties:
- const: msi5
- const: msi6
- const: msi7
- const: global

operating-points-v2: true
opp-table:
Expand Down Expand Up @@ -149,9 +150,10 @@ examples:
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0", "msi1", "msi2", "msi3",
"msi4", "msi5", "msi6", "msi7";
"msi4", "msi5", "msi6", "msi7", "global";
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 0x7>;
interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
Expand Down

0 comments on commit 6efd853

Please sign in to comment.