Debian Codegraph @

Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,pch-pic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Loongson PCH PIC Controller
8
9 maintainers:
10 - Jiaxun Yang <[email protected]>
11
12 description:
13 This interrupt controller is found in the Loongson LS7A family of PCH for
14 transforming interrupts from on-chip devices into HyperTransport vectorized
15 interrupts.
16
17 properties:
18 compatible:
19 const: loongson,pch-pic-1.0
20
21 reg:
22 maxItems: 1
23
24 loongson,pic-base-vec:
25 description:
26 u32 value of the base of parent HyperTransport vector allocated
27 to PCH PIC.
28 $ref: /schemas/types.yaml#/definitions/uint32
29 minimum: 0
30 maximum: 192
31
32 '#address-cells':
33 const: 0
34
35 interrupt-controller: true
36
37 '#interrupt-cells':
38 const: 2
39
40 required:
41 - compatible
42 - reg
43 - loongson,pic-base-vec
44 - interrupt-controller
45 - '#interrupt-cells'
46
47 additionalProperties: false
48
49 examples:
50 - |
51 #include <dt-bindings/interrupt-controller/irq.h>
52 pic: interrupt-controller@10000000 {
53 compatible = "loongson,pch-pic-1.0";
54 reg = <0x10000000 0x400>;
55 interrupt-controller;
56 #interrupt-cells = <2>;
57 loongson,pic-base-vec = <64>;
58 interrupt-parent = <&htvec>;
59 };
60 ...