mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
086e9074f5
Another round of 'allOf' removals that came in this cycle. json-schema versions draft7 and earlier have a weird behavior in that any keywords combined with a '$ref' are ignored (silently). The correct form was to put a '$ref' under an 'allOf'. This behavior is now changed in the 2019-09 json-schema spec and '$ref' can be mixed with other keywords. The json-schema library doesn't yet support this, but the tooling now does a fixup for this and either way works. This has been a constant source of review comments, so let's change this treewide so everyone copies the simpler syntax. Signed-off-by: Rob Herring <robh@kernel.org>
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/interrupt-controller/loongson,pch-pic.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: Loongson PCH PIC Controller
|
|
|
|
maintainers:
|
|
- Jiaxun Yang <jiaxun.yang@flygoat.com>
|
|
|
|
description:
|
|
This interrupt controller is found in the Loongson LS7A family of PCH for
|
|
transforming interrupts from on-chip devices into HyperTransport vectorized
|
|
interrupts.
|
|
|
|
properties:
|
|
compatible:
|
|
const: loongson,pch-pic-1.0
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
loongson,pic-base-vec:
|
|
description:
|
|
u32 value of the base of parent HyperTransport vector allocated
|
|
to PCH PIC.
|
|
$ref: "/schemas/types.yaml#/definitions/uint32"
|
|
minimum: 0
|
|
maximum: 192
|
|
|
|
interrupt-controller: true
|
|
|
|
'#interrupt-cells':
|
|
const: 2
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- loongson,pic-base-vec
|
|
- interrupt-controller
|
|
- '#interrupt-cells'
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
pic: interrupt-controller@10000000 {
|
|
compatible = "loongson,pch-pic-1.0";
|
|
reg = <0x10000000 0x400>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
loongson,pic-base-vec = <64>;
|
|
interrupt-parent = <&htvec>;
|
|
};
|
|
...
|