From: Conor Dooley <conor.dooley@microchip.com>
To: Binbin Zhou <zhoubb.aaron@gmail.com>
Cc: Conor Dooley <conor@kernel.org>,
Binbin Zhou <zhoubinbin@loongson.cn>,
Huacai Chen <chenhuacai@loongson.cn>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>, <devicetree@vger.kernel.org>,
Huacai Chen <chenhuacai@kernel.org>,
<loongson-kernel@lists.loongnix.cn>,
Xuerui Wang <kernel@xen0n.name>, <loongarch@lists.linux.dev>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Hongliang Wang <wanghongliang@loongson.cn>
Subject: Re: [PATCH v2 1/7] dt-bindings: loongarch: Add CPU bindings for LoongArch
Date: Wed, 16 Aug 2023 07:50:16 +0100 [thread overview]
Message-ID: <20230816-battery-subarctic-266765b510bc@wendy> (raw)
In-Reply-To: <CAMpQs4+aeD-3oh9qNbGjOTiMc6zE6N6LPzv+5tZyrLNgH06jtQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2343 bytes --]
On Wed, Aug 16, 2023 at 02:37:43PM +0800, Binbin Zhou wrote:
> Hi Conor:
>
> Thanks for the reply.
>
> On Tue, Aug 15, 2023 at 10:07 PM Conor Dooley <conor@kernel.org> wrote:
> >
> > On Tue, Aug 15, 2023 at 04:50:46PM +0800, Binbin Zhou wrote:
> > > Add the available CPUs in LoongArch binding with DT schema format using
> > > json-schema.
> > >
> > > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> > > ---
> > > .../devicetree/bindings/loongarch/cpus.yaml | 60 +++++++++++++++++++
> > > 1 file changed, 60 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/loongarch/cpus.yaml
> > >
> > > diff --git a/Documentation/devicetree/bindings/loongarch/cpus.yaml b/Documentation/devicetree/bindings/loongarch/cpus.yaml
> > > new file mode 100644
> > > index 000000000000..ee3fe09e53dc
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/loongarch/cpus.yaml
> > > @@ -0,0 +1,60 @@
> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/loongarch/cpus.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: LoongArch CPUs
> > > +
> > > +maintainers:
> > > + - Binbin Zhou <zhoubinbin@loongson.cn>
> > > +
> > > +description:
> > > + This document describes the list of LoongArch CPU cores that support FDT,
> > > + it describe the layout of CPUs in a system through the "cpus" node.
> > > +
> > > +properties:
> > > + compatible:
> > > + enum:
> > > + - loongson,la264
> > > + - loongson,la364
> > > +
> > > + reg:
> > > + maxItems: 1
> > > +
> > > + clocks:
> > > + maxItems: 1
> > > +
> > > + device_type: true
> > > +
> > > +required:
> > > + - compatible
> > > + - reg
> > > + - clocks
> > > +
> > > +additionalProperties: false
> >
> > How come you didn't add the reference to the common cpu schema?
>
> Do you mean:
> allOf:
> - $ref: /schemas/cpu.yaml#
Yes.
> Sorry, the file started out as a copy of mips/arm and then the related
> content, really didn't notice that part.
> I will check again.
>
> Also, shouldn't "additionalProperties: false" be changed to
> "unevaluatedProperties: false" synchronously?
To actually make use of the properties from there, yeah.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-08-16 6:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 8:50 [PATCH v2 0/7] LoongArch: Add built-in dtb support Binbin Zhou
2023-08-15 8:50 ` [PATCH v2 1/7] dt-bindings: loongarch: Add CPU bindings for LoongArch Binbin Zhou
2023-08-15 14:07 ` Conor Dooley
2023-08-16 6:37 ` Binbin Zhou
2023-08-16 6:50 ` Conor Dooley [this message]
2023-08-15 8:50 ` [PATCH v2 2/7] dt-bindings: loongarch: Add Loongson SoC boards compatibles Binbin Zhou
2023-08-15 14:13 ` Conor Dooley
2023-08-17 6:16 ` Binbin Zhou
2023-08-17 8:44 ` Conor Dooley
2023-08-17 8:46 ` Conor Dooley
2023-08-15 14:49 ` Krzysztof Kozlowski
2023-08-17 6:24 ` Binbin Zhou
2023-08-15 8:50 ` [PATCH v2 3/7] LoongArch: Allow device trees to be built into the kernel Binbin Zhou
2023-08-15 8:51 ` [PATCH v2 4/7] LoongArch: dts: DeviceTree for Loongson-2K0500 Binbin Zhou
2023-08-15 14:09 ` Conor Dooley
2023-08-17 3:15 ` Binbin Zhou
2023-08-15 14:48 ` Krzysztof Kozlowski
2023-08-17 5:36 ` Binbin Zhou
2023-08-15 8:51 ` [PATCH v2 5/7] LoongArch: dts: DeviceTree for Loongson-2K1000 Binbin Zhou
2023-08-15 14:56 ` Krzysztof Kozlowski
2023-08-17 6:41 ` Binbin Zhou
2023-08-15 8:51 ` [PATCH v2 6/7] LoongArch: dts: DeviceTree for Loongson-2K2000 Binbin Zhou
2023-08-15 8:51 ` [PATCH v2 7/7] LoongArch: Parsing CPU-related information from DTS Binbin Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230816-battery-subarctic-266765b510bc@wendy \
--to=conor.dooley@microchip.com \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=kernel@xen0n.name \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=loongarch@lists.linux.dev \
--cc=loongson-kernel@lists.loongnix.cn \
--cc=robh+dt@kernel.org \
--cc=wanghongliang@loongson.cn \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox