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: 11648267 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 4C42D14B7 for ; Tue, 7 Jul 2020 10:29:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24C6D20708 for ; Tue, 7 Jul 2020 10:29:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mYFFCRok"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="Isv3af9a" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24C6D20708 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=JaAKrzoJKVi9o7Pj1Gqy4d8jsVQLsBXmWiXjmcq84gQ=; b=mYFFCRokuXVxhOGfLmPiKlQol/ w/RXS9l+UIFMF1Cz4AIzW/HY3Sqk3c42bXwosAjcSM6N+bOqv1wZ8Oc/iYQFA1JEVNibYEQswS+WH Re2gKk032PT4PRmWW+xksbGHT7ffC4J7lH7B+RzE7O8Zz9yWZghpNR3sEmjzcmrcBXfM86vSg3jpc F4Dl25ll8EnvQG2Cx+rvGwANmkbvD2bZtTyzmc0W/k4dAk1QhBSPmgfO0/HbtpyU4ShJK2nBiJSZi 0BhFoCi66agzInvo9K3xsK9enSXITVlPOpUHUyGMhPS98N2y+ERXlmduCmzZjaKU/BSsU6ZVZxW/+ 1z5tmlKw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jskp0-0001Xs-1T; Tue, 07 Jul 2020 10:27:30 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jskmC-00005H-Q7 for linux-arm-kernel@lists.infradead.org; Tue, 07 Jul 2020 10:24:51 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_062437_429018_5D625F7C X-CRM114-Status: GOOD ( 12.30 ) X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amit Kucheria , Kunihiko Hayashi , linux-pm@vger.kernel.org, Daniel Lezcano , linux-kernel@vger.kernel.org, Masahiro Yamada , Zhang Rui , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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>; }; };