From: Rob Herring <robh@kernel.org>
To: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: Yao Zi <me@ziyao.cc>, Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Huacai Chen <chenhuacai@kernel.org>,
Xuerui Wang <kernel@xen0n.name>,
loongarch@lists.linux.dev, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/7] dt-bindings: interrupt-controller: loongson,pch-pic: Change to unevaluatedProperties
Date: Mon, 29 Dec 2025 17:49:31 -0600 [thread overview]
Message-ID: <20251229234931.GA2804566-robh@kernel.org> (raw)
In-Reply-To: <7a0df6f836e0ec7ddfe4d592c10259c87ef96e4f.1766037997.git.zhoubinbin@loongson.cn>
On Fri, Dec 19, 2025 at 04:46:49PM +0800, Binbin Zhou wrote:
> Change additionalProperties to unevaluatedProperties because it refs to
> interrupt-controller.yaml.
>
> Fix below CHECK_DTBS warnings:
> arch/loongarch/boot/dts/loongson-2k2000-ref.dtb: interrupt-controller@10000000 (loongson,pch-pic-1.0): '#address-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
> from schema $id: http://devicetree.org/schemas/interrupt-controller/loongson,pch-pic.yaml
>
> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> ---
> .../interrupt-controller/loongson,pch-pic.yaml | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml
> index b7bc5cb1dff2..cf235ca57a2f 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml
> +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml
> @@ -14,6 +14,9 @@ description:
> transforming interrupts from on-chip devices into HyperTransport vectorized
> interrupts.
>
> +allOf:
> + - $ref: /schemas/interrupt-controller.yaml#
This is not really needed because interrupt-controller.yaml is applied
to all nodes named 'interrupt-controller', but fine to add.
> +
> properties:
> compatible:
> const: loongson,pch-pic-1.0
> @@ -34,14 +37,18 @@ properties:
> '#interrupt-cells':
> const: 2
>
> + '#address-cells':
> + const: 0
> +
This part is the only change actually needed.
> required:
> - compatible
> - reg
> - loongson,pic-base-vec
> - interrupt-controller
> - '#interrupt-cells'
> + - '#address-cells'
Unless there's some guarantee that this node is *always* referenced by
an interrupt-map property, then it's not really required. After all,
presumably things worked without it.
>
> -additionalProperties: false
> +unevaluatedProperties: false
Also not needed.
>
> examples:
> - |
> @@ -50,6 +57,7 @@ examples:
> compatible = "loongson,pch-pic-1.0";
> reg = <0x10000000 0x400>;
> interrupt-controller;
> + #address-cells = <0>;
> #interrupt-cells = <2>;
> loongson,pic-base-vec = <64>;
> interrupt-parent = <&htvec>;
> --
> 2.47.3
>
next prev parent reply other threads:[~2025-12-29 23:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 8:46 [PATCH v2 0/7] LoongArch: DTS: Fix dtbs_check warnings Binbin Zhou
2025-12-19 8:46 ` [PATCH v2 1/7] dt-bindings: PCI: loongson: Document msi-parent property Binbin Zhou
2025-12-19 8:46 ` [PATCH v2 2/7] dt-bindings: interrupt-controller: loongson,pch-pic: Change to unevaluatedProperties Binbin Zhou
2025-12-27 13:06 ` Huacai Chen
2025-12-29 23:49 ` Rob Herring [this message]
2025-12-30 2:55 ` Binbin Zhou
2025-12-19 8:46 ` [PATCH v2 3/7] LoongArch: dts: Describe PCI sideband IRQ through interrupt-extended Binbin Zhou
2025-12-19 8:47 ` [PATCH v2 4/7] LoongArch: dts: loongson-2k0500: Add default Extend I/O Interrupt controller address cells Binbin Zhou
2025-12-21 12:13 ` Huacai Chen
2025-12-30 7:38 ` Binbin Zhou
2025-12-31 10:09 ` Huacai Chen
2025-12-19 8:47 ` [PATCH v2 5/7] LoongArch: dts: loongson-2k1000: Add default Local " Binbin Zhou
2025-12-19 8:47 ` [PATCH v2 6/7] LoongArch: dts: loongson-2k2000: Add default PCH PIC " Binbin Zhou
2025-12-19 8:47 ` [PATCH v2 7/7] LoongArch: dts: loongson-2k1000: Fix i2c-gpio node names 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=20251229234931.GA2804566-robh@kernel.org \
--to=robh@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@xen0n.name \
--cc=krzk+dt@kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=me@ziyao.cc \
--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