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

dt-bindings: interrupt-controller: Convert nxp,lpc3220-mic.txt to yaml format

Convert NXP LPC3220-MIC to DT schema.

Signed-off-by: Leonardo Felipe Takao Hirata <leo.fthirata@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250228034021.607135-1-leo.fthirata@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Leonardo Felipe Takao Hirata and committed by
Rob Herring (Arm)
39fc0269 a78f7a33

+68 -58
-58
Documentation/devicetree/bindings/interrupt-controller/nxp,lpc3220-mic.txt
··· 1 - * NXP LPC32xx MIC, SIC1 and SIC2 Interrupt Controllers 2 - 3 - Required properties: 4 - - compatible: "nxp,lpc3220-mic" or "nxp,lpc3220-sic". 5 - - reg: should contain IC registers location and length. 6 - - interrupt-controller: identifies the node as an interrupt controller. 7 - - #interrupt-cells: the number of cells to define an interrupt, should be 2. 8 - The first cell is the IRQ number, the second cell is used to specify 9 - one of the supported IRQ types: 10 - IRQ_TYPE_EDGE_RISING = low-to-high edge triggered, 11 - IRQ_TYPE_EDGE_FALLING = high-to-low edge triggered, 12 - IRQ_TYPE_LEVEL_HIGH = active high level-sensitive, 13 - IRQ_TYPE_LEVEL_LOW = active low level-sensitive. 14 - Reset value is IRQ_TYPE_LEVEL_LOW. 15 - 16 - Optional properties: 17 - - interrupts: empty for MIC interrupt controller, cascaded MIC 18 - hardware interrupts for SIC1 and SIC2 19 - 20 - Examples: 21 - 22 - /* LPC32xx MIC, SIC1 and SIC2 interrupt controllers */ 23 - mic: interrupt-controller@40008000 { 24 - compatible = "nxp,lpc3220-mic"; 25 - reg = <0x40008000 0x4000>; 26 - interrupt-controller; 27 - #interrupt-cells = <2>; 28 - }; 29 - 30 - sic1: interrupt-controller@4000c000 { 31 - compatible = "nxp,lpc3220-sic"; 32 - reg = <0x4000c000 0x4000>; 33 - interrupt-controller; 34 - #interrupt-cells = <2>; 35 - 36 - interrupt-parent = <&mic>; 37 - interrupts = <0 IRQ_TYPE_LEVEL_LOW>, 38 - <30 IRQ_TYPE_LEVEL_LOW>; 39 - }; 40 - 41 - sic2: interrupt-controller@40010000 { 42 - compatible = "nxp,lpc3220-sic"; 43 - reg = <0x40010000 0x4000>; 44 - interrupt-controller; 45 - #interrupt-cells = <2>; 46 - 47 - interrupt-parent = <&mic>; 48 - interrupts = <1 IRQ_TYPE_LEVEL_LOW>, 49 - <31 IRQ_TYPE_LEVEL_LOW>; 50 - }; 51 - 52 - /* ADC */ 53 - adc@40048000 { 54 - compatible = "nxp,lpc3220-adc"; 55 - reg = <0x40048000 0x1000>; 56 - interrupt-parent = <&sic1>; 57 - interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; 58 - };
+68
Documentation/devicetree/bindings/interrupt-controller/nxp,lpc3220-mic.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/nxp,lpc3220-mic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC32xx MIC, SIC1 and SIC2 Interrupt Controllers 8 + 9 + maintainers: 10 + - Vladimir Zapolskiy <vz@mleia.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - nxp,lpc3220-mic 16 + - nxp,lpc3220-sic 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupt-controller: true 22 + 23 + '#interrupt-cells': 24 + const: 2 25 + 26 + interrupts: 27 + items: 28 + - description: Regular interrupt request 29 + - description: Fast interrupt request 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupt-controller 35 + - '#interrupt-cells' 36 + 37 + allOf: 38 + - if: 39 + properties: 40 + compatible: 41 + contains: 42 + const: nxp,lpc3220-sic 43 + then: 44 + required: 45 + - interrupts 46 + 47 + additionalProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/interrupt-controller/irq.h> 52 + 53 + mic: interrupt-controller@40008000 { 54 + compatible = "nxp,lpc3220-mic"; 55 + reg = <0x40008000 0x4000>; 56 + interrupt-controller; 57 + #interrupt-cells = <2>; 58 + }; 59 + 60 + interrupt-controller@4000c000 { 61 + compatible = "nxp,lpc3220-sic"; 62 + reg = <0x4000c000 0x4000>; 63 + interrupt-controller; 64 + #interrupt-cells = <2>; 65 + interrupt-parent = <&mic>; 66 + interrupts = <0 IRQ_TYPE_LEVEL_LOW>, 67 + <30 IRQ_TYPE_LEVEL_LOW>; 68 + };