Maxime Ripard | a45ddda | 2019-08-21 10:21:38 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Allwinner A20 Non-Maskable Interrupt Controller Device Tree Bindings |
| 8 | |
| 9 | maintainers: |
| 10 | - Chen-Yu Tsai <wens@csie.org> |
Maxime Ripard | 5c7404b | 2019-12-09 10:32:48 +0100 | [diff] [blame] | 11 | - Maxime Ripard <mripard@kernel.org> |
Maxime Ripard | a45ddda | 2019-08-21 10:21:38 +0200 | [diff] [blame] | 12 | |
| 13 | allOf: |
| 14 | - $ref: /schemas/interrupt-controller.yaml# |
| 15 | |
| 16 | properties: |
| 17 | "#interrupt-cells": |
| 18 | const: 2 |
| 19 | description: |
| 20 | The first cell is the IRQ number, the second cell the trigger |
| 21 | type as defined in interrupt.txt in this directory. |
| 22 | |
| 23 | compatible: |
| 24 | oneOf: |
| 25 | - const: allwinner,sun6i-a31-r-intc |
| 26 | - const: allwinner,sun6i-a31-sc-nmi |
| 27 | deprecated: true |
| 28 | - const: allwinner,sun7i-a20-sc-nmi |
| 29 | - items: |
| 30 | - const: allwinner,sun8i-a83t-r-intc |
| 31 | - const: allwinner,sun6i-a31-r-intc |
| 32 | - const: allwinner,sun9i-a80-sc-nmi |
| 33 | - items: |
| 34 | - const: allwinner,sun50i-a64-r-intc |
| 35 | - const: allwinner,sun6i-a31-r-intc |
| 36 | - items: |
| 37 | - const: allwinner,sun50i-h6-r-intc |
| 38 | - const: allwinner,sun6i-a31-r-intc |
| 39 | |
| 40 | reg: |
| 41 | maxItems: 1 |
| 42 | |
| 43 | interrupts: |
| 44 | maxItems: 1 |
| 45 | |
| 46 | interrupt-controller: true |
| 47 | |
| 48 | required: |
| 49 | - "#interrupt-cells" |
| 50 | - compatible |
| 51 | - reg |
| 52 | - interrupts |
| 53 | - interrupt-controller |
| 54 | |
Maxime Ripard | 454f5d9 | 2019-11-01 14:58:08 +0100 | [diff] [blame] | 55 | unevaluatedProperties: false |
Maxime Ripard | a45ddda | 2019-08-21 10:21:38 +0200 | [diff] [blame] | 56 | |
| 57 | examples: |
| 58 | - | |
| 59 | interrupt-controller@1c00030 { |
| 60 | compatible = "allwinner,sun7i-a20-sc-nmi"; |
| 61 | interrupt-controller; |
| 62 | #interrupt-cells = <2>; |
| 63 | reg = <0x01c00030 0x0c>; |
| 64 | interrupt-parent = <&gic>; |
| 65 | interrupts = <0 0 4>; |
| 66 | }; |
| 67 | |
| 68 | ... |