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

dt-bindings: interrupt-controller: Convert csky,apb-intc to DT schema

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

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

+54 -62
-62
Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt
··· 1 - ============================== 2 - C-SKY APB Interrupt Controller 3 - ============================== 4 - 5 - C-SKY APB Interrupt Controller is a simple soc interrupt controller 6 - on the apb bus and we only use it as root irq controller. 7 - 8 - - csky,apb-intc is used in a lot of csky fpgas and socs, it support 64 irq nums. 9 - - csky,dual-apb-intc consists of 2 apb-intc and 128 irq nums supported. 10 - - csky,gx6605s-intc is gx6605s soc internal irq interrupt controller, 64 irq nums. 11 - 12 - ============================= 13 - intc node bindings definition 14 - ============================= 15 - 16 - Description: Describes APB interrupt controller 17 - 18 - PROPERTIES 19 - 20 - - compatible 21 - Usage: required 22 - Value type: <string> 23 - Definition: must be "csky,apb-intc" 24 - "csky,dual-apb-intc" 25 - "csky,gx6605s-intc" 26 - - #interrupt-cells 27 - Usage: required 28 - Value type: <u32> 29 - Definition: must be <1> 30 - - reg 31 - Usage: required 32 - Value type: <u32 u32> 33 - Definition: <phyaddr size> in soc from cpu view 34 - - interrupt-controller: 35 - Usage: required 36 - - csky,support-pulse-signal: 37 - Usage: select 38 - Description: to support pulse signal flag 39 - 40 - Examples: 41 - --------- 42 - 43 - intc: interrupt-controller@500000 { 44 - compatible = "csky,apb-intc"; 45 - #interrupt-cells = <1>; 46 - reg = <0x00500000 0x400>; 47 - interrupt-controller; 48 - }; 49 - 50 - intc: interrupt-controller@500000 { 51 - compatible = "csky,dual-apb-intc"; 52 - #interrupt-cells = <1>; 53 - reg = <0x00500000 0x400>; 54 - interrupt-controller; 55 - }; 56 - 57 - intc: interrupt-controller@500000 { 58 - compatible = "csky,gx6605s-intc"; 59 - #interrupt-cells = <1>; 60 - reg = <0x00500000 0x400>; 61 - interrupt-controller; 62 - };
+54
Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/csky,apb-intc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: C-SKY APB Interrupt Controller 8 + 9 + maintainers: 10 + - Guo Ren <guoren@kernel.org> 11 + 12 + description: > 13 + C-SKY APB Interrupt Controller is a simple soc interrupt controller on the apb 14 + bus and we only use it as root irq controller. 15 + 16 + - csky,apb-intc is used in a lot of csky fpgas and socs, it support 64 irq nums. 17 + - csky,dual-apb-intc consists of 2 apb-intc and 128 irq nums supported. 18 + - csky,gx6605s-intc is gx6605s soc internal irq interrupt controller, 64 irq nums. 19 + 20 + properties: 21 + compatible: 22 + enum: 23 + - csky,apb-intc 24 + - csky,dual-apb-intc 25 + - csky,gx6605s-intc 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + '#interrupt-cells': 31 + const: 1 32 + 33 + interrupt-controller: true 34 + 35 + csky,support-pulse-signal: 36 + type: boolean 37 + description: Support for pulse signal flag. 38 + 39 + additionalProperties: false 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - '#interrupt-cells' 45 + - interrupt-controller 46 + 47 + examples: 48 + - | 49 + intc: interrupt-controller@500000 { 50 + compatible = "csky,apb-intc"; 51 + #interrupt-cells = <1>; 52 + reg = <0x00500000 0x400>; 53 + interrupt-controller; 54 + };