Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp626154rdb; Tue, 31 Oct 2023 18:42:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXdE77zjE8mO1i60mutk3RiOV7gcl+8WlZpBrUXrQDv3G3Xc30VG8O6Ng68z2lty2CfVXi X-Received: by 2002:a17:902:e549:b0:1cc:5aef:f2c3 with SMTP id n9-20020a170902e54900b001cc5aeff2c3mr1969708plf.22.1698802957260; Tue, 31 Oct 2023 18:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698802957; cv=none; d=google.com; s=arc-20160816; b=AOzSx2NaGPrTdnrpmDnrG//7I3ky4t8zMs7wGBAI4f7R+rF2QxsJf/2uiEmTlOZC0B qZV3vYkH3JgyZYqC0lqruxW4WOvQ0DZY+Pf4L5L62RZ9PX2TS8HppMJt5keGzZAwFqr8 mkIbZtdZ7I99mGm/HkFU7p43f/i0JmyeRq8moH9M0JHQenLTFnWLlh1sIFnroOaZ0T80 xrRobk+gKbtnum4fcGdxGPf92FwTsWVFQSHAxF0eobkqOAaNPe/XMkI+7MnYbWXLgJs4 Y9bAf5q/YBKRlcMkSsgK254FhiWWrlarc3ggx9KjL1F/ATMlkcd2JGEIKAkbaLm4NbEk 53sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EqP28swEoFqFBpOsPvURB6Dcv19Cyas9Sj5n5k9cRsM=; fh=lRL35i2L8r2lN/cavA7LrLrFBby2YSRny3sk1f3m2vY=; b=YBBPgdR+ZJ8Ta9IaznCs5lYU7me8QMF5/dAgawgi43wCLDbX1q19wiKR5rtlWLXjIn 0PqCLAwwHmcRpOaa209+TZ0TORWdozxJ0U3AWb3BZCtRgQGVxQhh298Nm9Voj+ljmcPS QhUDXSAjUpfIn2ozNQKCZ5jo3uXEbR5RzQoHKPrXdinjsO+rqzlUsdwMfYgkbteSeae0 CVph4d4+1nDSTTcuKVTXWN/pPn9Z7BCYsDF+FhTSwj8sLEhaD15VUQbSGEw8m5Qed3Vt hWvZ7E3CT1mGCxxjMfSg6IIEmRCy4zk/SXH88xi33d5MKIAv1mZLvaEM/ggVlacpzf12 N1DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NrmGem36; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id kx15-20020a170902f94f00b001b222cd9826si1879395plb.349.2023.10.31.18.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 18:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NrmGem36; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E5D9680BB237; Tue, 31 Oct 2023 18:42:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377025AbjKABm2 (ORCPT + 99 others); Tue, 31 Oct 2023 21:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345060AbjKABm1 (ORCPT ); Tue, 31 Oct 2023 21:42:27 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA09D119; Tue, 31 Oct 2023 18:42:23 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-da0359751dbso411245276.1; Tue, 31 Oct 2023 18:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698802943; x=1699407743; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EqP28swEoFqFBpOsPvURB6Dcv19Cyas9Sj5n5k9cRsM=; b=NrmGem361rCdWpysmkJeD7d2pRTvDa//3MbgBE99zw/y7kH+4NNFlz0B9ykGqZ8AGE fI90sAxBfDL1N98NCYkscRvl0miTjLfW63WTHfYSlJ5cOGKW91+b+k0/6DfLVIK6v8VM im4amIZxsOiS95bNs9+65FVkD1z+GWK5cqsFxbD0lJvQu4+tsm7ckY2iLixCVpKCk1yT Lr7K2s7P7mp7UQyumYw0advBWnwzqIIcr0goJjoNK0MG8IGu7cXFcfjRUouLrSi/5Ph7 EJI8P7h8eOWCly3Uy417xrlrR8N9p3g9mfG3oroigd9UmxTpDwcCoV2umGYaEyx7Q3Eg lp5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698802943; x=1699407743; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EqP28swEoFqFBpOsPvURB6Dcv19Cyas9Sj5n5k9cRsM=; b=vU9K4Sbw0aREZ7J8tPwpCY7D6U9+0LUD07+slkVRHj9Wlv59LJEFtNrjyiui3trKJ1 4E0GtJDP4d/ZRmU1m1+p5Dqgql5+U6fzDAdVO2get632wlu2vhmUNRgU0jdcEFZLsTGS 5X2sUwRokAInPenFxzGg811N6KJt11jvosW4dtJJl+kIbrjEYIxW42XOyeRLXnL+vf3M Zi7zmQhBbRS4EjyHvJ4ffX70kMltZtzqKQvYqcChJEx1s8kD2U7O6O6fTfJDb71PEJo1 EnKEeOqj2kElUSWOl3BHIuUb9zbNMv7VMoeOagleRStaTASll8DmtdyruchPGT6WqlUH XdxQ== X-Gm-Message-State: AOJu0YxuQA5+uWPEuQEB2o4dhzDbpBp1nhKfup3xZP89mbM6wrbv9lf5 scxu0T0T5yXBMWWz27/S5t05fH81YXgoAeyoC4s= X-Received: by 2002:a25:9307:0:b0:da0:7fe0:dc6 with SMTP id f7-20020a259307000000b00da07fe00dc6mr3496481ybo.14.1698802942978; Tue, 31 Oct 2023 18:42:22 -0700 (PDT) MIME-Version: 1.0 References: <20231031175205.GA1803813-robh@kernel.org> In-Reply-To: <20231031175205.GA1803813-robh@kernel.org> From: Binbin Zhou Date: Wed, 1 Nov 2023 07:42:11 +0600 Message-ID: Subject: Re: [PATCH v3 2/5] dt-bindings: interrupt-controller: loongson,liointc: Fix dtbs_check warning for reg-names To: Rob Herring Cc: Binbin Zhou , Huacai Chen , Thomas Gleixner , Krzysztof Kozlowski , Conor Dooley , Huacai Chen , loongson-kernel@lists.loongnix.cn, devicetree@vger.kernel.org, Thomas Bogendoerfer , Jiaxun Yang , linux-mips@vger.kernel.org, lvjianmin@loongson.cn, WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 18:42:33 -0700 (PDT) On Tue, Oct 31, 2023 at 11:52=E2=80=AFPM Rob Herring wrot= e: > > On Tue, Oct 31, 2023 at 10:36:37AM +0800, Binbin Zhou wrote: > > As we know, the Loongson-2K0500 is a single-core CPU, and the > > core1-related register (isr1) does not exist, and we need a separate > > declaration. > > > > This fixes dtbs_check warning: > > > > DTC_CHK arch/loongarch/boot/dts/loongson-2k0500-ref.dtb > > arch/loongarch/boot/dts/loongson-2k0500-ref.dtb: interrupt-controller@1= fe11400: reg-names: ['main', 'isr0'] is too short > > From schema: Documentation/devicetree/bindings/interrupt-contro= ller/loongson,liointc.yaml > > arch/loongarch/boot/dts/loongson-2k0500-ref.dtb: interrupt-controller@1= fe11400: Unevaluated properties are not allowed ('reg-names' was unexpected= ) > > From schema: Documentation/devicetree/bindings/interrupt-contro= ller/loongson,liointc.yaml > > arch/loongarch/boot/dts/loongson-2k0500-ref.dtb: interrupt-controller@1= fe11400: reg: [[0, 534844416, 0, 64], [0, 534843456, 0, 8]] is too short > > From schema: Documentation/devicetree/bindings/interrupt-contro= ller/loongson,liointc.yaml > > arch/loongarch/boot/dts/loongson-2k0500-ref.dtb: interrupt-controller@1= fe11440: reg-names: ['main', 'isr0'] is too short > > From schema: Documentation/devicetree/bindings/interrupt-contro= ller/loongson,liointc.yaml > > > > Signed-off-by: Binbin Zhou > > --- > > .../loongson,liointc.yaml | 22 ++++++++++++++----- > > 1 file changed, 16 insertions(+), 6 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/loo= ngson,liointc.yaml b/Documentation/devicetree/bindings/interrupt-controller= /loongson,liointc.yaml > > index 0d9511b8a792..7393d7dfbe82 100644 > > --- a/Documentation/devicetree/bindings/interrupt-controller/loongson,l= iointc.yaml > > +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,l= iointc.yaml > > @@ -11,8 +11,13 @@ maintainers: > > > > description: | > > This interrupt controller is found in the Loongson-3 family of chips= and > > - Loongson-2K1000 chip, as the primary package interrupt controller wh= ich > > + Loongson-2K series chips, as the primary package interrupt controlle= r which > > can route local I/O interrupt to interrupt lines of cores. > > + Be aware of the following points. > > + 1.The Loongson-2K0500 is a single core CPU, the isr1 register could = not be defined; > > + 2.The Loongson-2K0500/2K1000 has 64 device interrupt sources as inpu= ts, so we > > + need to define two nodes in dts{i} to describe the "0-31" and "32-= 61" interrupt > > + sources respectively. > > > > allOf: > > - $ref: /schemas/interrupt-controller.yaml# > > @@ -29,10 +34,14 @@ properties: > > maxItems: 3 > > > > reg-names: > > - items: > > - - const: main > > - - const: isr0 > > - - const: isr1 > > + oneOf: > > + - items: > > + - const: main > > + - const: isr0 > > + - items: > > + - const: main > > + - const: isr0 > > + - const: isr1 > > Just adding 'minItems: 2' accomplishes the same thing without > duplicating the list. OK, I will do it. Thanks. Binbin > > > > > interrupt-controller: true > > > > @@ -94,7 +103,8 @@ if: > > then: > > properties: > > reg: > > - minItems: 3 > > + minItems: 2 > > + maxItems: 3 > > > > required: > > - reg-names > > -- > > 2.39.3 > >