dt-bindings: interrupt-controller: Convert mti,gic to DT schema
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Tue, 14 Jul 2020 12:57:48 +0000 (15:57 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Jul 2020 08:24:30 +0000 (10:24 +0200)
commite4fd970752ec663b80495117c706368087b4e486
tree0823ebabd99c610070d81daaa85c337f6ed0d925
parent29cf195d33409b76a84cd8722967c96cc7162ca0
dt-bindings: interrupt-controller: Convert mti,gic to DT schema

Modern device tree bindings are supposed to be created as YAML-files
in accordance with DT schema. This commit replaces MIPS GIC legacy bare
text binding with YAML file. As before the binding file states that the
corresponding dts node is supposed to be compatible with MIPS Global
Interrupt Controller indicated by the "mti,gic" compatible string and
to provide a mandatory interrupt-controller and '#interrupt-cells'
properties. There might be optional registers memory range,
"mti,reserved-cpu-vectors" and "mti,reserved-ipi-vectors" properties
specified.

MIPS GIC also includes a free-running global timer, per-CPU count/compare
timers, and a watchdog. Since currently the GIC Timer is only supported the
DT schema expects an IRQ and clock-phandler charged timer sub-node with
"mti,mips-gic-timer" compatible string.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Documentation/devicetree/bindings/interrupt-controller/mips-gic.txt [deleted file]
Documentation/devicetree/bindings/interrupt-controller/mti,gic.yaml [new file with mode: 0644]