Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1563176ybh; Thu, 16 Jul 2020 16:10:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMrA2Kg4lIeokciSmB5F9DD5nVJ3zDoSWq7Z1KAAx1voWBPJUk1VDorvxZ4JGRNiEnEQV5 X-Received: by 2002:aa7:d70f:: with SMTP id t15mr6354741edq.237.1594941047118; Thu, 16 Jul 2020 16:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594941047; cv=none; d=google.com; s=arc-20160816; b=w7ax0rcVMbn76CEkQp9MluMPeEXvozW94LmFU76TT28QllZKELD32l5JvC3fc5mHW5 hFJApRJxau+CtozPqhzEAQVdItmBjaJzpuTUQZKtvj7HBGD7ranQ2dcbVfuHihlJNYc9 p1vCLFe1nPsKpG2J34hNZNKO8iGeD2vGneXe5XK3xXRSZUnJkdR5DJRNH2Uf2PxQagTG FUwT3W6iyXGdnZtPGP1BqJy+vhGd2CQNsO1M3VAc/7SM66tYH6rkEm4BShSTcbtqRWcO SK7oElYl815ON5p1BWDw4EA9uhEsAGwUhkFu0hFan4S8GTlaot5SUeaBaMcu0ktLY7T6 Ittg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=eDT8ZBhNeJbznzfPJdQt1GGooj/iP+F7BcxCoXIsS98=; b=j+uMeX7Px5ZFptE2H7pk5MkbJafrFmpYs46RK+NpDh4WEfpp3KemHGUCZibSBA5zZF OGzS1pjHEo2qsdpP8qvM5e+WYsku/czm4V+gE140amviVJlM/qqjTPRUSC8EvaGZZqQX UmEH3b35cV3uFjaSHBbN4bRi9lafflrXy8GWw62JB9kcbpSdR07XoCBbzFhjAoNMj1Vh 5rUE6UCI633c0fM/KV4WmX7vvWJUV+nxBlBxxX+baYRNiOfJd/vNQ+247XjSOSnA4J+8 9I8xJxuCEsGzV2694xdbYDtfPoejv5aXUC+F1Wjgk4z5JdCLgJXEya47aeAnzHoxESN9 vYuw== ARC-Authentication-Results: i=1; mx.google.com; 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 c9si3911408ejx.552.2020.07.16.16.10.25; Thu, 16 Jul 2020 16:10:47 -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; 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 S1728099AbgGPXJh (ORCPT + 99 others); Thu, 16 Jul 2020 19:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbgGPXJW (ORCPT ); Thu, 16 Jul 2020 19:09:22 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB68EC08C5FD; Thu, 16 Jul 2020 16:04:54 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id k23so8069059iom.10; Thu, 16 Jul 2020 16:04:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=eDT8ZBhNeJbznzfPJdQt1GGooj/iP+F7BcxCoXIsS98=; b=ZO/ZUOOKENY4J7SKNW83pfoweXvjpCYUuMVcEOOM8350v42vBjpuim6/Z5Grl3HWrl LQ/0XYZ9uSE8b8c1HOjVYq/AaFSu0bd5J28AfyLx/sEs2AygquWIXma6os8cTsLUsYHN iEP6IfnxgTouvXt3p8JcIaQEFpXmdj00qamIY2IYAmcf3aoDh2EPWjMG+aJDy4VkQjUl i4hAtJVulCm9a2vW++ZItkCB1T+El/LMxpgbX5rv3fQulQQFP5Ha79+Ubamb1hWACczk /1T4YfE8r6gcfpWEcC43LNk/+siPwOrtZGoEb1wIjEAGtKI5WBKDO1eTzEgI1VyZ4fx/ OjYg== X-Gm-Message-State: AOAM530ClT62bp3RYyXQZGgW/EFfChGQDRjhvabAr2O5Dd+IDIxeXK20 po6Le+9qMXA681wW6IzjNw== X-Received: by 2002:a05:6638:223:: with SMTP id f3mr7706474jaq.144.1594940693894; Thu, 16 Jul 2020 16:04:53 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id q2sm3358270ilp.82.2020.07.16.16.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 16:04:53 -0700 (PDT) Received: (nullmailer pid 3053333 invoked by uid 1000); Thu, 16 Jul 2020 23:04:51 -0000 Date: Thu, 16 Jul 2020 17:04:51 -0600 From: Rob Herring To: Masahiro Yamada Cc: Frank Rowand , devicetree@vger.kernel.org, Amit Kucheria , Daniel Lezcano , Kunihiko Hayashi , Zhang Rui , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] dt-bindings: uniphier-thermal: add minItems to socionext,tmod-calibration Message-ID: <20200716230451.GA3041278@bogus> References: <20200707102338.989660-1-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200707102338.989660-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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