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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: interrupt-controller: Convert arm,nvic to DT schema

Convert the Arm NVIC interrupt controller binding to schema format.
It's a straight-forward conversion of the typical interrupt controller.

Link: https://lore.kernel.org/r/20250505144553.1286730-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+61 -36
-36
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.txt
··· 1 - * ARM Nested Vector Interrupt Controller (NVIC) 2 - 3 - The NVIC provides an interrupt controller that is tightly coupled to 4 - Cortex-M based processor cores. The NVIC implemented on different SoCs 5 - vary in the number of interrupts and priority bits per interrupt. 6 - 7 - Main node required properties: 8 - 9 - - compatible : should be one of: 10 - "arm,v6m-nvic" 11 - "arm,v7m-nvic" 12 - "arm,v8m-nvic" 13 - - interrupt-controller : Identifies the node as an interrupt controller 14 - - #interrupt-cells : Specifies the number of cells needed to encode an 15 - interrupt source. The type shall be a <u32> and the value shall be 2. 16 - 17 - The 1st cell contains the interrupt number for the interrupt type. 18 - 19 - The 2nd cell is the priority of the interrupt. 20 - 21 - - reg : Specifies base physical address(s) and size of the NVIC registers. 22 - This is at a fixed address (0xe000e100) and size (0xc00). 23 - 24 - - arm,num-irq-priority-bits: The number of priority bits implemented by the 25 - given SoC 26 - 27 - Example: 28 - 29 - intc: interrupt-controller@e000e100 { 30 - compatible = "arm,v7m-nvic"; 31 - #interrupt-cells = <2>; 32 - #address-cells = <1>; 33 - interrupt-controller; 34 - reg = <0xe000e100 0xc00>; 35 - arm,num-irq-priority-bits = <4>; 36 - };
+61
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.yaml
··· 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/arm,nvic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ARM Nested Vector Interrupt Controller (NVIC) 8 + 9 + maintainers: 10 + - Rob Herring <robh@kernel.org> 11 + 12 + description: 13 + The NVIC provides an interrupt controller that is tightly coupled to Cortex-M 14 + based processor cores. The NVIC implemented on different SoCs vary in the 15 + number of interrupts and priority bits per interrupt. 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - arm,v6m-nvic 21 + - arm,v7m-nvic 22 + - arm,v8m-nvic 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + '#address-cells': 28 + const: 0 29 + 30 + interrupt-controller: true 31 + 32 + '#interrupt-cells': 33 + const: 2 34 + description: | 35 + Number of cells to encode an interrupt source: 36 + first = interrupt number, second = priority. 37 + 38 + arm,num-irq-priority-bits: 39 + description: Number of priority bits implemented by the SoC 40 + minimum: 1 41 + maximum: 8 42 + 43 + required: 44 + - compatible 45 + - reg 46 + - interrupt-controller 47 + - '#interrupt-cells' 48 + - arm,num-irq-priority-bits 49 + 50 + additionalProperties: false 51 + 52 + examples: 53 + - | 54 + interrupt-controller@e000e100 { 55 + compatible = "arm,v7m-nvic"; 56 + #interrupt-cells = <2>; 57 + #address-cells = <0>; 58 + interrupt-controller; 59 + reg = <0xe000e100 0xc00>; 60 + arm,num-irq-priority-bits = <4>; 61 + };