Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1150935imm; Wed, 10 Oct 2018 09:51:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV6056uDAUGigM50dQqTB1zxuS245tdFRk9CCPplPMiDdClleU4rH/FYNroaRSasKMev/FFWT X-Received: by 2002:a63:4343:: with SMTP id q64-v6mr31252835pga.276.1539190287180; Wed, 10 Oct 2018 09:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539190287; cv=none; d=google.com; s=arc-20160816; b=yySczpZBFkmAH2dYpRnQkR5HzQ3eMLsxn80uYprLjwozBi/NSstiFmtqzp7bWuwjAV jztUsuS2inLrInbaaZ/wiVO9b8D2Li7bli4VZLC6GuA7ggEizV1SWRlISwjvs0OSbI+I geeq4ZHqkg7Pzl3kb+GEeUVt7xF1II/CClXjO9pTPzsnSSSlhvR0TjFFzWYBLdodc5ob l4dQcxBfwna7c09xD/YRHUSLOzYJhUJ7A8AjcYi97Yh5gkFiPOD4qxg5tFQxA2KwGz7q DLYx2prgwCJCy8GwCZ8T+9dNkdPYaHfcFkuvvdraYEFF9jdYFlzVATnBYk3u0VHW4TYh g74g== 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=dNyZgaM9gnnVA2QCIDrjRacgee1vwjrXpC8kly8qWWc=; b=M1u0QfdwnkI7U5Ot85bYzxDnRi0o29fqH4+GIyP9wL/Nu9qtD7Msurt6pqTYmbfthj CamEI5b/3pXuEA8FJaHH9NhZiOeuOMSVpv6PQU8jEk19bvNIbiFn37Y+eZp2dftwCvVS Yf0dtscPimPisn6nPnr5kF2DsJfR3WzO8a8KuYEvKDD/WjvFjyxn9PRxtxBLLTp/IXp3 0g3FgRdB/L/V+xBlMjR9VDvAih+VZSSLyw0X+4OyVK8yQtLcv7FHGAapNgHlX8FIVESM r4ejAZB5S6XXF/ccb77LeBBxXK9+jithJvPf6UKEIjcyFuTmEmfVM8VntxaPK3nrmYKt 3oug== 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 f63-v6si5089890pfb.0.2018.10.10.09.51.12; Wed, 10 Oct 2018 09:51:27 -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 S1726908AbeJKANt (ORCPT + 99 others); Wed, 10 Oct 2018 20:13:49 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55354 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeJKANs (ORCPT ); Wed, 10 Oct 2018 20:13:48 -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 944C9ED1; Wed, 10 Oct 2018 09:50:49 -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 6540E3F5B3; Wed, 10 Oct 2018 09:50:49 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 2685E1AE088A; Wed, 10 Oct 2018 17:50:49 +0100 (BST) Date: Wed, 10 Oct 2018 17:50:49 +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: <20181010165048.GB16512@arm.com> References: <20181005165848.3474-1-robh@kernel.org> <20181005165848.3474-14-robh@kernel.org> <20181009115713.GE6248@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 On Tue, Oct 09, 2018 at 01:14:02PM -0500, Rob Herring wrote: > On Tue, Oct 9, 2018 at 6:57 AM Will Deacon wrote: > > > > Hi Rob, > > > > On Fri, Oct 05, 2018 at 11:58:25AM -0500, Rob Herring wrote: > > > Convert ARM PMU binding to DT schema format using json-schema. > > > > > > Cc: Will Deacon > > > Cc: Mark Rutland > > > Cc: linux-arm-kernel@lists.infradead.org > > > Cc: devicetree@vger.kernel.org > > > Signed-off-by: Rob Herring > > > --- > > > Documentation/devicetree/bindings/arm/pmu.txt | 70 -------------- > > > .../devicetree/bindings/arm/pmu.yaml | 96 +++++++++++++++++++ > > > 2 files changed, 96 insertions(+), 70 deletions(-) > > > delete mode 100644 Documentation/devicetree/bindings/arm/pmu.txt > > > create mode 100644 Documentation/devicetree/bindings/arm/pmu.yaml > > > > [...] > > > > > -- interrupts : 1 combined interrupt or 1 per core. If the interrupt is a per-cpu > > > - interrupt (PPI) then 1 interrupt should be specified. > > > > [...] > > > > > + interrupts: > > > + oneOf: > > > + - maxItems: 1 > > > + - minItems: 2 > > > + maxItems: 8 > > > + description: 1 interrupt per core. > > > + > > > + interrupts-extended: > > > + $ref: '#/properties/interrupts' > > > > This seems like a semantic different between the two representations, or am > > I missing something here? Specifically, both the introduction of > > interrupts-extended and also dropping any mention of using a single per-cpu > > interrupt (the single combined case is no longer support by Linux; not sure > > if you want to keep it in the binding). > > 'interrupts-extended' was implied before as it is always supported and > outside the scope of the binding. But now it is needed to validate > bindings. There must be some use of it and that's why I added it. > However, thinking some more about this, I think it may be better to > have the tools add this in automatically whenever we have an > interrupts property. To be honest, if you'd included that in the commit message I'd have been happy :) > 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. I also don't understand why maxItems is 8. Will