Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3006588imm; Fri, 19 Oct 2018 03:35:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV63PEFOqwNdPt7y3ccpo+wex4rtUSG7ZN4IHBlOxfpgZsCAjy3GJYR7DeNWmCIDTXCvpmtte X-Received: by 2002:a63:680a:: with SMTP id d10-v6mr31687887pgc.7.1539945333582; Fri, 19 Oct 2018 03:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539945333; cv=none; d=google.com; s=arc-20160816; b=JeZ9MX+0jMHjgCAazz0y+9D4Z3JPzw13ui8M+O1FCXD5s1I2EGBKdPJ5jOQzqqMKCe kWE5htPlYb9q44G6n7sea0k3tNOWZEiqEBQ0IbKdEY33KkZtmKaBjuqdgbb6Mwy2sSG5 WOktxU+JBWHGNnYwJkMKnXxele3voLBybTwKkGb0KCQMyxTdgDJuwFoxhRxsRn8KPWu1 DhCDV7P9U6aCEbZ6I1YQWeFQi2RVjsHcib66VinlcVAfWh6Np+2E1XmrdfyJ4NDis2zb FOSYcblkm7A2pSVxc4OrNXuuUyxu4wTss8tODxTd398Nb5cAm5de15M9FuzJjEqvY7Cu Mwjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C9vuI2moBcTnclQIGY5K/TmDAFBLgK36860H78jyiCI=; b=n0xGFnwOC1ldcnaNjQBKM4vu3WLRcK/BrJg1MF5a7WmmhNN4a3sGYgjU+apL/Ot4bG yEHHFN0nyiDN8mMMruqbAwK8H3mkZ+Ga7ZUpXKJkLQLnKN9wvDrPJuqI5VUQgKkNVerr aqhy72KSB45GZnM08teTCyoKdQkrA9FO5IzslicmXoBTFHpx7OY0kfiN9i0WlpASIH9G zbXI926fahw+SAt+agYpLapNDDIfjbgf7wnJ4e7kBS8THyOEy395zBsdVXM/ZZyiYb0K Xin+W0JRhjkH5KQ39w7J1a66u/71KC6GE+ajgLX0OMqFQecpxpC7aICvEwQla6tPC6Tq ORTQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r29-v6si26619205pff.262.2018.10.19.03.35.18; Fri, 19 Oct 2018 03:35:33 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbeJSSkS (ORCPT + 99 others); Fri, 19 Oct 2018 14:40:18 -0400 Received: from foss.arm.com ([217.140.101.70]:50234 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbeJSSkS (ORCPT ); Fri, 19 Oct 2018 14:40:18 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B11B180D; Fri, 19 Oct 2018 03:34:48 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 805603F71D; Fri, 19 Oct 2018 03:34:48 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 8599C1AE06EF; Fri, 19 Oct 2018 11:34:51 +0100 (BST) Date: Fri, 19 Oct 2018 11:34:51 +0100 From: Will Deacon To: Rob Herring Cc: "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linuxppc-dev , Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson Subject: Re: [PATCH 13/36] dt-bindings: arm: Convert PMU binding to json-schema Message-ID: <20181019103451.GB14246@arm.com> References: <20181005165848.3474-1-robh@kernel.org> <20181005165848.3474-14-robh@kernel.org> <20181009115713.GE6248@arm.com> <20181010165048.GB16512@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Wed, Oct 10, 2018 at 01:51:24PM -0500, Rob Herring wrote: > On Wed, Oct 10, 2018 at 11:50 AM Will Deacon wrote: > > On Tue, Oct 09, 2018 at 01:14:02PM -0500, Rob Herring wrote: > > > I guess the single interrupt case is less obvious now with no > > > description (it's the first list item of 'oneOf'). The schema If the > > > single interrupt is not supported, then we can drop it here. > > > > Well the description says "1 interrupt per core" which is incorrect. > > You are reading the schema wrong. There are 2 cases supported as > defined by each '-'. The 2nd case is all the keywords until the > indentation decreases. So 'description' is just description of the 2nd > case. The first case is just "maxItems: 1". I probably didn't put a > description because why write in free form text what the schema says > (other than of course no one knows json-schema...). Apologies, I've not read one of these things before and looks like I completely misread it. > YAML combines the best of Makefiles and python. You can't have tabs > and Indentation is significant. :) Oh wow, I'm in way over my head here! > > I also > > don't understand why maxItems is 8. > > Humm, I probably just made that up based on GICv2 limitations. What > should it be? If there's not any inherit maximum, can we put something > reasonable? There's not really any way to express that it should match > the number of cores in the system. What's the largest number you can think of? Will