File: altr%2Cmsi-controller.yaml

package info (click to toggle)
linux 6.18.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,742,212 kB
  • sloc: ansic: 26,783,651; asm: 272,129; sh: 148,799; python: 79,242; makefile: 57,742; perl: 36,527; xml: 19,542; cpp: 5,911; yacc: 4,939; lex: 2,950; awk: 1,607; sed: 30; ruby: 25
file content (65 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download | duplicates (9)
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
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
# Copyright (C) 2015, 2024, Intel Corporation
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/altr,msi-controller.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Altera PCIe MSI controller

maintainers:
  - Matthew Gerlach <matthew.gerlach@linux.intel.com>

properties:
  compatible:
    enum:
      - altr,msi-1.0

  reg:
    items:
      - description: CSR registers
      - description: Vectors slave port region

  reg-names:
    items:
      - const: csr
      - const: vector_slave

  interrupts:
    maxItems: 1

  msi-controller: true

  num-vectors:
    description: number of vectors
    $ref: /schemas/types.yaml#/definitions/uint32
    minimum: 1
    maximum: 32

required:
  - compatible
  - reg
  - reg-names
  - interrupts
  - msi-controller
  - num-vectors

allOf:
  - $ref: /schemas/interrupt-controller/msi-controller.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/interrupt-controller/irq.h>
    msi@ff200000 {
        compatible = "altr,msi-1.0";
        reg = <0xff200000 0x00000010>,
              <0xff200010 0x00000080>;
        reg-names = "csr", "vector_slave";
        interrupt-parent = <&hps_0_arm_gic_0>;
        interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
        msi-controller;
        num-vectors = <32>;
    };