| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
# Copyright 2025 Max Filippov <[email protected]> |
| 3 |
|
| 4 |
%YAML 1.2 |
| 5 |
--- |
| 6 |
$id: http://devicetree.org/schemas/interrupt-controller/cdns,xtensa-pic.yaml# |
| 7 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 8 |
|
| 9 |
title: Xtensa Interrupt Controllers |
| 10 |
|
| 11 |
maintainers: |
| 12 |
- Max Filippov <[email protected]> |
| 13 |
|
| 14 |
description: |
| 15 |
Xtensa Interrupt Distributor and Programmable Interrupt Controller (MX) and |
| 16 |
Xtensa built-in Programmable Interrupt Controller (PIC) |
| 17 |
|
| 18 |
properties: |
| 19 |
compatible: |
| 20 |
enum: |
| 21 |
- cdns,xtensa-mx |
| 22 |
- cdns,xtensa-pic |
| 23 |
|
| 24 |
'#interrupt-cells': |
| 25 |
enum: [ 1, 2 ] |
| 26 |
description: |
| 27 |
Number of cells to define the interrupts. When 1, the first cell is the |
| 28 |
internal IRQ number; when 2, the second cell specifies internal (0) or |
| 29 |
external (1). |
| 30 |
|
| 31 |
interrupt-controller: true |
| 32 |
|
| 33 |
required: |
| 34 |
- compatible |
| 35 |
- '#interrupt-cells' |
| 36 |
- interrupt-controller |
| 37 |
|
| 38 |
additionalProperties: false |
| 39 |
|
| 40 |
examples: |
| 41 |
- | |
| 42 |
interrupt-controller { |
| 43 |
compatible = "cdns,xtensa-pic"; |
| 44 |
/* one cell: internal irq number, |
| 45 |
* two cells: second cell == 0: internal irq number |
| 46 |
* second cell == 1: external irq number |
| 47 |
*/ |
| 48 |
#interrupt-cells = <2>; |
| 49 |
interrupt-controller; |
| 50 |
}; |