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 csky,mpintc to DT schema

Convert the C-SKY Multi-processor interrupt controller binding to schema
format. It's a straight-forward conversion of the typical interrupt
controller.

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

+43 -52
-52
Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt
··· 1 - =========================================== 2 - C-SKY Multi-processors Interrupt Controller 3 - =========================================== 4 - 5 - C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 6 - SMP soc, and it also could be used in non-SMP system. 7 - 8 - Interrupt number definition: 9 - 0-15 : software irq, and we use 15 as our IPI_IRQ. 10 - 16-31 : private irq, and we use 16 as the co-processor timer. 11 - 31-1024: common irq for soc ip. 12 - 13 - Interrupt trigger mode: (Defined in dt-bindings/interrupt-controller/irq.h) 14 - IRQ_TYPE_LEVEL_HIGH (default) 15 - IRQ_TYPE_LEVEL_LOW 16 - IRQ_TYPE_EDGE_RISING 17 - IRQ_TYPE_EDGE_FALLING 18 - 19 - ============================= 20 - intc node bindings definition 21 - ============================= 22 - 23 - Description: Describes SMP interrupt controller 24 - 25 - PROPERTIES 26 - 27 - - compatible 28 - Usage: required 29 - Value type: <string> 30 - Definition: must be "csky,mpintc" 31 - - #interrupt-cells 32 - Usage: required 33 - Value type: <u32> 34 - Definition: <2> 35 - - interrupt-controller: 36 - Usage: required 37 - 38 - Examples: ("interrupts = <irq_num IRQ_TYPE_XXX>") 39 - --------- 40 - #include <dt-bindings/interrupt-controller/irq.h> 41 - 42 - intc: interrupt-controller { 43 - compatible = "csky,mpintc"; 44 - #interrupt-cells = <2>; 45 - interrupt-controller; 46 - }; 47 - 48 - device: device-example { 49 - ... 50 - interrupts = <34 IRQ_TYPE_EDGE_RISING>; 51 - interrupt-parent = <&intc>; 52 - };
+43
Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.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/csky,mpintc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: C-SKY Multi-processors Interrupt Controller 8 + 9 + maintainers: 10 + - Guo Ren <guoren@kernel.org> 11 + 12 + description: > 13 + C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 14 + SMP soc, and it also could be used in non-SMP system. 15 + 16 + Interrupt number definition: 17 + 0-15 : software irq, and we use 15 as our IPI_IRQ. 18 + 16-31 : private irq, and we use 16 as the co-processor timer. 19 + 31-1024: common irq for soc ip. 20 + 21 + properties: 22 + compatible: 23 + const: csky,mpintc 24 + 25 + '#interrupt-cells': 26 + const: 2 27 + 28 + interrupt-controller: true 29 + 30 + required: 31 + - compatible 32 + - "#interrupt-cells" 33 + - interrupt-controller 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + interrupt-controller { 40 + compatible = "csky,mpintc"; 41 + #interrupt-cells = <2>; 42 + interrupt-controller; 43 + };