From patchwork Tue Jul 7 10:23:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11648265 X-Patchwork-Delegate: daniel.lezcano@linaro.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 21B3214B7 for ; Tue, 7 Jul 2020 10:29:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09D9720708 for ; Tue, 7 Jul 2020 10:29:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="Isv3af9a" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbgGGK3A (ORCPT ); Tue, 7 Jul 2020 06:29:00 -0400 Received: from condef-03.nifty.com ([202.248.20.68]:34565 "EHLO condef-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgGGK3A (ORCPT ); Tue, 7 Jul 2020 06:29:00 -0400 Received: from conuserg-10.nifty.com ([10.126.8.73])by condef-03.nifty.com with ESMTP id 067AP9tJ010043 for ; Tue, 7 Jul 2020 19:25:09 +0900 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-10.nifty.com with ESMTP id 067ANfmE026850; Tue, 7 Jul 2020 19:23:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 067ANfmE026850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1594117421; bh=zq83RdcrauiJcJsiQaH1vrrVn5BqvuzN8MJjggFF8WU=; h=From:To:Cc:Subject:Date:From; b=Isv3af9anEuxoNIIgnBE00XkO0Tn7KWOw1gkoNxDJ3WkDybVoa1Vu+qkltJChiPhC gmpn0hOFPKWhQSqyfBvW/XTBQ6YuB0H6/jmVnvPJAQR68yiVmP9sD7B/6qF+/eqT4q o6QVDaXCkal/dhOuwV8jghSMEaDQa32dGRba7a/D2UYCw1aacbJvYDuYXlZSumLTO0 +gT7IF5y2J2hVFjzZdutzZnL9GssXWEVx3DU6/3BIlf9ifSeLvxUik7nz4L3jsTH83 BMhycsMTjvilRR5BEgHYPohEddCgpVSk/bU6tq0/qbl4ySJ4nenjSNCZy4mcLmM3u/ I8nNxzQulk1xw== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: Rob Herring , Frank Rowand , devicetree@vger.kernel.org Cc: Masahiro Yamada , 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: [PATCH] dt-bindings: uniphier-thermal: add minItems to socionext,tmod-calibration Date: Tue, 7 Jul 2020 19:23:38 +0900 Message-Id: <20200707102338.989660-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 maxItems: 2 description: A pair of calibrated values referred from PVT, in case that the values @@ -52,7 +53,8 @@ examples: pvtctl: thermal { compatible = "socionext,uniphier-ld20-thermal"; - interrupts = <0 3 1>; + interrupts = <0 3 4>; #thermal-sensor-cells = <0>; + socionext,tmod-calibration = <0x0f22 0x68ee>; }; };