Commit 0305c98c authored by Keguang Zhang's avatar Keguang Zhang Committed by Rob Herring
Browse files

dt-bindings: interrupt-controller: convert loongson,ls1x-intc.txt to json-schema



Convert the Loongson1 interrupt controller dt-bindings to json-schema.

Signed-off-by: default avatarKeguang Zhang <keguang.zhang@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230221102545.2103632-1-keguang.zhang@gmail.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 65f81bbd
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
Loongson ls1x Interrupt Controller

Required properties:

- compatible : should be "loongson,ls1x-intc". Valid strings are:

- reg : Specifies base physical address and size of the registers.
- interrupt-controller : Identifies the node as an interrupt controller
- #interrupt-cells : Specifies the number of cells needed to encode an
  interrupt source. The value shall be 2.
- interrupts : Specifies the CPU interrupt the controller is connected to.

Example:

intc: interrupt-controller@1fd01040 {
	compatible = "loongson,ls1x-intc";
	reg = <0x1fd01040 0x18>;

	interrupt-controller;
	#interrupt-cells = <2>;

	interrupt-parent = <&cpu_intc>;
	interrupts = <2>;
};
+51 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Loongson-1 Interrupt Controller

maintainers:
  - Keguang Zhang <keguang.zhang@gmail.com>

description:
  Loongson-1 interrupt controller is connected to the MIPS core interrupt
  controller, which controls several groups of interrupts.

properties:
  compatible:
    const: loongson,ls1x-intc

  reg:
    maxItems: 1

  interrupt-controller: true

  '#interrupt-cells':
    const: 2

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupt-controller
  - '#interrupt-cells'
  - interrupts

additionalProperties: false

examples:
  - |
    intc0: interrupt-controller@1fd01040 {
        compatible = "loongson,ls1x-intc";
        reg = <0x1fd01040 0x18>;

        interrupt-controller;
        #interrupt-cells = <2>;

        interrupt-parent = <&cpu_intc>;
        interrupts = <2>;
    };