Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1715790ybh; Thu, 16 Jul 2020 21:57:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHcJDLO++4h0p2xlFl2qR+JlTKFdkLMJ08Eq5jfi6Vfikd5va0fmQl2ng5tORR0UDPhvx8 X-Received: by 2002:a17:906:f49:: with SMTP id h9mr4886285ejj.155.1594961837036; Thu, 16 Jul 2020 21:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594961837; cv=none; d=google.com; s=arc-20160816; b=aeOH+DUrLmJGD/gkE+w+EoWemA8U6YbchusTbj1ZksMagGxXyXpyEtKEpKvmRiokTC Kcxss3FV65rOcModl/iBgdRsuHTuOlIBoYfo2yJWJpZsTQBTkFQDGt5jnDbCC9XOivAP sSDcw/H4lPp+Mke2jcfuG7GspIQCyHHd+FEXqg+hBwSWmmjWmue58/X2GqsR3zZKS92b Kh/0QJcSrT3oAgHz92tl6//wjVlcEbi+NzmVT+I8L4vJpBudqibUg0NG7SIznHkxE9pi XqxSUjzIzpaeu6cFIrK6q5TYBCFe3CNZrO/JII4zZVBYhjR+uc8Qih6MxhfoSMSnO1JS 8v9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=sviaHrnMJZujQ/kfSzVdyLTKRQoxe3KftF0ksGJHZt0=; b=sUbw6te1kF7l8XXHiE6QJjhnRlRjbL8HNCVANz6fyhs9XslK1nt6IgAtMSYxMtL7Xd xxfsWSJTt8ObBZPk8obGjG0r5+YfZYivYAVQ1V4Y4qcv4bafn4WeGIvrwNoJHrk3JfoF PtKdAH3AsljU8g5D8wobFR0t7mzy5t/SCaDBuPkrp8OAbWsxnd8KtiRLPmqw+RB0+8NO Ckxinj8oDHLhsQSuEyqDKSOPwKMevGLnLmYUmgOQS3UOm/IEC/Bhyo5pzOR7KejL8RhP bgAgq2fH+W8tZidFKydL+9osowQOg6mzE6qO/9FdTki0eFUOGeArSkprcrYY0T2T4X9K MVAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sEdbXhZ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si5805819edj.223.2020.07.16.21.56.53; Thu, 16 Jul 2020 21:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sEdbXhZ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbgGQEyp (ORCPT + 99 others); Fri, 17 Jul 2020 00:54:45 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:47446 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgGQEyo (ORCPT ); Fri, 17 Jul 2020 00:54:44 -0400 Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 06H4sIHU031108; Fri, 17 Jul 2020 13:54:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 06H4sIHU031108 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1594961659; bh=sviaHrnMJZujQ/kfSzVdyLTKRQoxe3KftF0ksGJHZt0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sEdbXhZ4rXqBlMoeE+YoAkoj9rNKhW56osfU1/fkgOUzj40HDe2oCN3I4FdzwX7nX vSY9+Ycd29xngkdcrgYXCShqg725WYwrGtSmrCUXpp0PxHYK4olic6aVP2OFnHVl5/ i5mGFfVxUPINVktnU9CyirkF7NPxyGDwFxPyHcMHOeoIeRKt0UhixohbkcawRh5Ulb HNKfo2bXbu3yYHNU8C2oLZ8fkDRQ11aOfhrt0oSN5sRpFQt+TJ+oOBJIy/fZo0qvSI 4H8fCVlvH5WooExGNixwia9phCIsCYcsQkpf/pfd15zm0z50Z99RUckEWlj8jtpUUV stX4e8osGOpkg== X-Nifty-SrcIP: [209.85.222.50] Received: by mail-ua1-f50.google.com with SMTP id j21so2492814ual.11; Thu, 16 Jul 2020 21:54:18 -0700 (PDT) X-Gm-Message-State: AOAM531CSrm2RwmUXPJJrtNVfPFuSJQChNowzuUR199h+HVcceifc0Z8 05DrPF+HAE3DZG7BiQYi1c8xmy/7l+EAH0wWFuA= X-Received: by 2002:ab0:71d3:: with SMTP id n19mr6086967uao.25.1594961657690; Thu, 16 Jul 2020 21:54:17 -0700 (PDT) MIME-Version: 1.0 References: <20200707102338.989660-1-yamada.masahiro@socionext.com> <20200716230451.GA3041278@bogus> In-Reply-To: <20200716230451.GA3041278@bogus> From: Masahiro Yamada Date: Fri, 17 Jul 2020 13:53:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: uniphier-thermal: add minItems to socionext,tmod-calibration To: Rob Herring Cc: Frank Rowand , DTML , Amit Kucheria , Daniel Lezcano , Kunihiko Hayashi , Zhang Rui , linux-arm-kernel , Linux Kernel Mailing List , Linux PM mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 8:09 AM Rob Herring wrote: > > On Tue, Jul 07, 2020 at 07:23:38PM +0900, Masahiro Yamada wrote: > > As the description says, this property contains a pair of calibration > > values. The number of items must be exactly 2. > > > > Add minItems to check a too short property. > > > > While I was here, I also added this property to the example because > > this is the case in the real DT file, > > arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi > > > > Also, fix the interrupt type (edge -> level) to align with the > > real DT. > > > > Signed-off-by: Masahiro Yamada > > --- > > > > .../bindings/thermal/socionext,uniphier-thermal.yaml | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.yaml b/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.yaml > > index 553c9dcdaeeb..57ffd0c4c474 100644 > > --- a/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.yaml > > +++ b/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.yaml > > @@ -29,6 +29,7 @@ properties: > > > > socionext,tmod-calibration: > > $ref: /schemas/types.yaml#/definitions/uint32-array > > + minItems: 2 > > The intent was if minItems is not defined, then the default is the same > as maxItems. This is not the default for json-schema, so the tooling is > supposed to add it. This implication is unclear. maxItems should literally only define the max, and we should stick to json-schema as much as possible, IMHO. It would be nice if json-schema had something like: numItems: 2 as a shorthand for minItems: 2 maxItems: 2 Masahiro Yamada > But looking at processed-schema.yaml, it doesn't > seem to be happening for one case here. I'm working on a fix in the > tools. > > Rob -- Best Regards Masahiro Yamada