Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: PCI: dwc: rockchip: Add missing legacy-interrupt-controller

Rockchip RK356x and RK3588 handle legacy interrupts via a ganged
interrupts. The RK356x DT implements this via a sub-node named
"legacy-interrupt-controller", just like a couple of other PCIe
implementations. This adds proper documentation for this and updates
the example to avoid regressions.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230731165723.53069-5-sebastian.reichel@collabora.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Sebastian Reichel and committed by
Rob Herring
7cd8f2ab 591d3833

+30
+30
Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml
··· 93 93 - const: legacy 94 94 - const: err 95 95 96 + legacy-interrupt-controller: 97 + description: Interrupt controller node for handling legacy PCI interrupts. 98 + type: object 99 + additionalProperties: false 100 + properties: 101 + "#address-cells": 102 + const: 0 103 + 104 + "#interrupt-cells": 105 + const: 1 106 + 107 + interrupt-controller: true 108 + 109 + interrupts: 110 + items: 111 + - description: combined legacy interrupt 112 + required: 113 + - "#address-cells" 114 + - "#interrupt-cells" 115 + - interrupt-controller 116 + - interrupts 117 + 96 118 msi-map: true 97 119 98 120 num-lanes: true ··· 202 180 reset-names = "pipe"; 203 181 #address-cells = <3>; 204 182 #size-cells = <2>; 183 + 184 + legacy-interrupt-controller { 185 + interrupt-controller; 186 + #address-cells = <0>; 187 + #interrupt-cells = <1>; 188 + interrupt-parent = <&gic>; 189 + interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>; 190 + }; 205 191 }; 206 192 }; 207 193 ...