Commit f698ee1f authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Stafford Horne
Browse files

dt-bindings: interrupt-controller: Convert openrisc,ompic to DT schema



Convert the OpenRISC OMPIC interrupt controller binding to schema
format. It's a straight-forward conversion of the typical interrupt
controller.

Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
parent e551ebdc
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
Open Multi-Processor Interrupt Controller

Required properties:

- compatible : This should be "openrisc,ompic"
- reg : Specifies base physical address and size of the register space. The
  size is based on the number of cores the controller has been configured
  to handle, this should be set to 8 bytes per cpu core.
- interrupt-controller : Identifies the node as an interrupt controller.
- #interrupt-cells : This should be set to 0 as this will not be an irq
  parent.
- interrupts : Specifies the interrupt line to which the ompic is wired.

Example:

ompic: interrupt-controller@98000000 {
	compatible = "openrisc,ompic";
	reg = <0x98000000 16>;
	interrupt-controller;
	#interrupt-cells = <0>;
	interrupts = <1>;
};
+45 −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/openrisc,ompic.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Open Multi-Processor Interrupt Controller

maintainers:
  - Stafford Horne <shorne@gmail.com>

properties:
  compatible:
    items:
      - const: openrisc,ompic

  reg:
    maxItems: 1

  interrupt-controller: true

  '#interrupt-cells':
    const: 0

  interrupts:
    maxItems: 1

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

additionalProperties: false

examples:
  - |
    interrupt-controller@98000000 {
        compatible = "openrisc,ompic";
        reg = <0x98000000 16>;
        interrupt-controller;
        #interrupt-cells = <0>;
        interrupts = <1>;
    };