Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5204781imm; Tue, 9 Oct 2018 11:15:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV610dRJLGsz9f1GQwckmj6hzcRBi6OAz+AIU0pFc1byUeZsD00K80FzNmactVgyRx5h3yZYr X-Received: by 2002:a63:d0e:: with SMTP id c14-v6mr26329092pgl.281.1539108904263; Tue, 09 Oct 2018 11:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539108904; cv=none; d=google.com; s=arc-20160816; b=0ILrJt1FfWmcmZtEUMHjHtJJFAjpyMOoBTvo31hHpNzyvS8e83+q4sFBWLac1eSJ2H XogynxTIon6QRtje+4AllPiUhlUB893Rwpvjoa3EotPsVX5l/2SuvLWAscK/2e0z4C1k NTqagI7u3dKx6d9N2J5XHTdittYCruTD4A9rZosDd9ABBgKb4hY7oJz2YKk0fs0XgVZR T7VHzD6OGEtEB4wWTOG6zKhssFjXRCK28v2UBcYS/hRaGuWMugMgBhbGt9ytk2z+ZOsy WBN4LEx3iSVGRqHZeKXmxQt/cxb0gUGKCrpt1lI6oOckxTKSReoNyC5BkP43J+6+eKM9 mSIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AWF4pU5LgxXNMtPVJ0/8UkAlLgir5rohDiIDDzts44Q=; b=NzgzK0mPQXVKrm9La3baIfA5uMD3Q0n8b2pQhGCkVsXixgm5yxFvhRnjR4RBkGBbYi griJCQ0cLvQ6IflmoQpHmB4jxKqOHhwqcgadZxxm02r5QtoCG7FGEN1IBZzFfn6bPS9K IKMA69hAIz10Rw+A+sEaKOKbnA0GS3YxPsrYBbNpRu1s5vNEMcmgoUxDHMZ5LlRhNt2O FodPaj1FLpDSksFAc9G41oRj/lv1OymrfNaJmkQxUEPlL+gX739RZRhk91nS5WftpPmk DKsYinxh08h8Kmwyu1w1CddOnNnHFzqMbemC6c2ZdArMX7LRf8Cw7hcUmfunuwxR7K8w +Sbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dD6YUJAr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12-v6si16971624pfl.255.2018.10.09.11.14.46; Tue, 09 Oct 2018 11:15:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b=dD6YUJAr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726503AbeJJBc3 (ORCPT + 99 others); Tue, 9 Oct 2018 21:32:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:53842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbeJJBc3 (ORCPT ); Tue, 9 Oct 2018 21:32:29 -0400 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D656C2086D; Tue, 9 Oct 2018 18:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539108856; bh=Xnz7e4MieeINIK73Bkz1Fsgawc7pp5RWEpRSK2chvLE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dD6YUJArmw6Qk+jTL5DI2B4ztWD3u/RkiN+pP56TPHoMHZCnKaRegfQ6gCeLeM5n3 +XIMoYc+NOveyOooBb3UMUzxlV0Wxy3fgjhG1kC3eg43thbBXfRoyVipgoTQqy8M7F Q1ixww/3OjpRxDXNQTxi1jk3/6oRrJmbtcbkGOIE= Received: by mail-qt1-f169.google.com with SMTP id q40-v6so2744505qte.0; Tue, 09 Oct 2018 11:14:15 -0700 (PDT) X-Gm-Message-State: ABuFfoiFRKi9qs936aNO481MrQHJjzw87VvuAK66rWUdKstoITOZOsDn qVbEP9Ib8A0KpT5aOP82CWQpO6eO953W5zoADA== X-Received: by 2002:a0c:bc03:: with SMTP id j3-v6mr24770926qvg.77.1539108855092; Tue, 09 Oct 2018 11:14:15 -0700 (PDT) MIME-Version: 1.0 References: <20181005165848.3474-1-robh@kernel.org> <20181005165848.3474-14-robh@kernel.org> <20181009115713.GE6248@arm.com> In-Reply-To: <20181009115713.GE6248@arm.com> From: Rob Herring Date: Tue, 9 Oct 2018 13:14:02 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 13/36] dt-bindings: arm: Convert PMU binding to json-schema To: Will Deacon 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Rob