Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5010457ybl; Tue, 14 Jan 2020 01:55:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxqUGpYxzvSGbrQOMUuuuB09XTNnhZbxdx2KOgtL41vpWmiS6otPbZ+abx49Tj/xeGuDZ0o X-Received: by 2002:aca:3f54:: with SMTP id m81mr15130828oia.73.1578995721511; Tue, 14 Jan 2020 01:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578995721; cv=none; d=google.com; s=arc-20160816; b=mlVZn+hdIINc0yHu5pj17vo5Y7cErtcKGkGto79wbVOOIRCtlFza0HwfkBI0aWm50a sbknda2KGVGk604yGOEZPSvcqDrh+i/Uda5LZnGpGd7UGihzdTM1yzHFQwKPU56nCXbH TXG9qrfKeRIScuKen39qZDjL7BclpaIO97SIZlCz0/FfLusbDbbwgt89eZ9Wa53pvc/F gnP9+4NBBCW+zuVFZzkdRlx1rg1oi6VSktSlEwNiue7SQYTEKjG11I0tODtk+RNhNKSU eAF9ReV/1Y52WCSG3HORXYA9/wEfsTOQacHQNCLS4J8iAOU0sRI42xgkHHKqJXaCrAek IjLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CzpsB7YPEK9piodiiOIlz8onbzH89wZBmwCWt1IKMAM=; b=s+nryya9DOkJ/LB5tb0rW0Puu7pT1yrE+1WHAwJD+BDPto2mPr8VceXdB/VIXCdZWC i+n96MVyvRv+lpfPDBTFtbAYzbMcRq8ePDHsjrHLN6kf0NbOXlGZFs09fx7A2VQpkHO9 h322SSSsOZ4NXgirExVxRugxnHndQmNzDmjnw+2TlFBJytIE2JK0qj+FGdipTFHr8gGX lcVcfW8soXngu+cL2/gQavMC4z/V/ekSyWX7T5XDrjDS2Dig8dCQBahTvCaKdY8J9ghZ GRyjrWpoERbri2IUgtb8rrek48VF8tSf1K58/sTfAXJCBUP+z2mBG5lsUVkcshAJPq4p AuHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si8785648oti.316.2020.01.14.01.55.10; Tue, 14 Jan 2020 01:55:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729199AbgANJyE (ORCPT + 99 others); Tue, 14 Jan 2020 04:54:04 -0500 Received: from mga11.intel.com ([192.55.52.93]:45604 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgANJyD (ORCPT ); Tue, 14 Jan 2020 04:54:03 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2020 01:54:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,432,1571727600"; d="scan'208";a="372535800" Received: from linux.intel.com ([10.54.29.200]) by orsmga004.jf.intel.com with ESMTP; 14 Jan 2020 01:54:02 -0800 Received: from [10.226.39.11] (unknown [10.226.39.11]) by linux.intel.com (Postfix) with ESMTP id 90F395802B1; Tue, 14 Jan 2020 01:54:01 -0800 (PST) Subject: Re: [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema To: Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Philipp Zabel References: <20200113214515.3950-1-robh@kernel.org> From: Dilip Kota Message-ID: <6594eba7-fb23-b741-4490-da27573fe132@linux.intel.com> Date: Tue, 14 Jan 2020 17:54:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20200113214515.3950-1-robh@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/2020 5:45 AM, Rob Herring wrote: > The intel,rcu-gw binding example has an error: > > Documentation/devicetree/bindings/reset/intel,rcu-gw.example.dt.yaml: > reset-controller@e0000000: intel,global-reset: [[16, 30]] is too short > > The error isn't really correct as the problem is in how the data is > encoded and the schema is not fixed up by the tooling correctly. > However, array properties should describe the elements in the array, so > lets do that which fixes the error in the process. Sure, i will add the change describing the array properties and push as a fix patch. Regards, Dilip > > Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the Intel Reset controller") > Cc: Philipp Zabel > Cc: Dilip Kota > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml > index 246dea8a2ec9..8ac437282659 100644 > --- a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml > +++ b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml > @@ -23,7 +23,11 @@ properties: > description: Global reset register offset and bit offset. > allOf: > - $ref: /schemas/types.yaml#/definitions/uint32-array > - - maxItems: 2 > + items: > + - description: Register offset > + - description: Register bit offset > + minimum: 0 > + maximum: 31 > > "#reset-cells": > minimum: 2