Message ID | 3b2ba830d81f85130e89316dc0c4d478482cd79d.1686882123.git.zhoubinbin@loongson.cn |
---|---|
State | Changes Requested, archived |
Headers | show |
Series | LoongArch: Add built-in dtb support | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/patch-applied | success | |
robh/dtbs-check | warning | build log |
robh/dt-meta-schema | success |
On Fri, Jun 16, 2023 at 02:10:39PM +0800, Binbin Zhou wrote: > Add Loongson SoC boards binding with DT schema format using json-schema > > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> > --- > .../devicetree/bindings/loongarch/boards.yaml | 31 +++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/loongarch/boards.yaml > > diff --git a/Documentation/devicetree/bindings/loongarch/boards.yaml b/Documentation/devicetree/bindings/loongarch/boards.yaml > new file mode 100644 > index 000000000000..3ef87b732668 > --- /dev/null > +++ b/Documentation/devicetree/bindings/loongarch/boards.yaml > @@ -0,0 +1,31 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/loongarch/boards.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson SoC-based boards > + > +maintainers: > + - Binbin Zhou <zhoubinbin@loongson.cn> > + > +properties: > + $nodename: > + const: '/' > + compatible: > + oneOf: > + - description: Loongson-2K0500 processor based boards > + items: > + - const: loongson,ls2k0500 > + > + - description: Loongson-2K1000 processor based boards > + items: > + - const: loongson,ls2k1000 > + > + - description: Loongson-2K2000 processor based boards > + items: > + - const: loongson,ls2k2000 From what I do know of loongarch stuff, these are all compatibles for SoCs, not boards. The usual model would be to do something like items: - const: loongsoon,ls2k1000-dev-kit - const: loongsoon,ls2k1000 Where you have a compatible for the SoC and one for the board. Cheers, Conor.
diff --git a/Documentation/devicetree/bindings/loongarch/boards.yaml b/Documentation/devicetree/bindings/loongarch/boards.yaml new file mode 100644 index 000000000000..3ef87b732668 --- /dev/null +++ b/Documentation/devicetree/bindings/loongarch/boards.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/loongarch/boards.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson SoC-based boards + +maintainers: + - Binbin Zhou <zhoubinbin@loongson.cn> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Loongson-2K0500 processor based boards + items: + - const: loongson,ls2k0500 + + - description: Loongson-2K1000 processor based boards + items: + - const: loongson,ls2k1000 + + - description: Loongson-2K2000 processor based boards + items: + - const: loongson,ls2k2000 + +additionalProperties: true + +...
Add Loongson SoC boards binding with DT schema format using json-schema Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> --- .../devicetree/bindings/loongarch/boards.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/loongarch/boards.yaml