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: 234984 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp775076ilg; Tue, 7 Jul 2020 03:25:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXF6dPJzv/x6mxWz+cMfhkMq0lBGslPLPbjLHiitcYdSrfxPN6q6uc9xov5WKtYbcYNf2n X-Received: by 2002:a17:906:50a:: with SMTP id j10mr34058590eja.113.1594117510080; Tue, 07 Jul 2020 03:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594117510; cv=none; d=google.com; s=arc-20160816; b=EysRz5WpinOCq1bh7ROOCDhA4nKIwfp19QozVotVufH9U0SvqVPMCULDp+u2Bsa5eA ETAQVXMMUyehxL7Dcz7rRG5Gy56bgsc0btGoTAx0LWtBovFLNFoO5mBtpClfL73Tf3fz NLz+YU4ISc6+ewt+UAq/XqzY0708G/iSam8rOcaJO5CxalXpnDoDQcV8fNAWc6zrozcI emY/xRk7xIbSVEb4JbJfGkiEH36kpicYTKX/nvAKs4JopvrltGdt/qSFuObnhf9rzmBl /v/FOBIzfm4Wu6ntZRGcIDYHTbVgWNKzhJP5uPI+RsHw9UpC7JHG8Z4EQeiS3I0VR5Iu uBWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=zq83RdcrauiJcJsiQaH1vrrVn5BqvuzN8MJjggFF8WU=; b=SFkHS/tgrKcKb4L/MgAQ72+Z+MUm1klVn1fL04xHXErOtPNkDmZyULytRD9x8vTM94 +j1zCd2saZTWvoi1EpFNe/vDvgANMuyHLIGTbswQ3Pr6icDx7H+u/pnvcGjnbgN/NAMq Epooy/fJckzyDp80ldCF12lUh92VL323ZrutvP8UOKsa3dvjOAEld0Iytgv0VKECK3J8 LqoGlohWgRFKVpG1MwOsiqWedtpIBqWIZb5dIdcIWjHkQpIRZK+KewnmJ2WhT0YcleR9 GLdw590Grufc1yxh03Suq9biQ2bwMYp8Ey9zFV6qaJwC4wx66yh1r7r7HX2V2S0BipTu aXng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Isv3af9a; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si14472435ejb.418.2020.07.07.03.25.09; Tue, 07 Jul 2020 03:25:09 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=Isv3af9a; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725874AbgGGKZJ (ORCPT + 6 others); Tue, 7 Jul 2020 06:25:09 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:20501 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgGGKZI (ORCPT ); Tue, 7 Jul 2020 06:25:08 -0400 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.25.1 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>; }; };