dt-bindings: interrupt-controller: Convert ti,cp-intc to DT schema

Convert the TI Common Platform interrupt controller binding to schema
format. It's a straight-forward conversion of the typical interrupt
controller.

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20250505144903.1293558-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
This commit is contained in:
Rob Herring (Arm) 2025-05-05 09:49:00 -05:00
parent 29c29b1361
commit 1276962ebc
2 changed files with 50 additions and 27 deletions

View File

@ -1,27 +0,0 @@
* TI Common Platform Interrupt Controller
Common Platform Interrupt Controller (cp_intc) is used on
OMAP-L1x SoCs and can support several configurable number
of interrupts.
Main node required properties:
- compatible : should be:
"ti,cp-intc"
- interrupt-controller : Identifies the node as an interrupt controller
- #interrupt-cells : Specifies the number of cells needed to encode an
interrupt source. The type shall be a <u32> and the value shall be 1.
The cell contains the interrupt number in the range [0-128].
- ti,intc-size: Number of interrupts handled by the interrupt controller.
- reg: physical base address and size of the intc registers map.
Example:
intc: interrupt-controller@1 {
compatible = "ti,cp-intc";
interrupt-controller;
#interrupt-cells = <1>;
ti,intc-size = <101>;
reg = <0xfffee000 0x2000>;
};

View File

@ -0,0 +1,50 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/ti,cp-intc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: TI Common Platform Interrupt Controller
maintainers:
- Bartosz Golaszewski <brgl@bgdev.pl>
description:
Common Platform Interrupt Controller (cp_intc) is used on OMAP-L1x SoCs and
can support several configurable number of interrupts.
properties:
compatible:
const: ti,cp-intc
reg:
maxItems: 1
interrupt-controller: true
'#interrupt-cells':
const: 1
description: Encodes an interrupt number in the range 0128.
ti,intc-size:
description: Number of interrupts handled by the interrupt controller.
$ref: /schemas/types.yaml#/definitions/uint32
required:
- compatible
- reg
- interrupt-controller
- '#interrupt-cells'
- ti,intc-size
additionalProperties: false
examples:
- |
interrupt-controller@fffee000 {
compatible = "ti,cp-intc";
reg = <0xfffee000 0x2000>;
interrupt-controller;
#interrupt-cells = <1>;
ti,intc-size = <101>;
};