Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp349510ybl; Thu, 5 Dec 2019 21:48:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxyymaTxMfSGCM51r5coITbsw6yKb1+pZi/x9hxqUUAEPubpLbzSeqaZUxSNayxNX4C9aGQ X-Received: by 2002:aca:cdd5:: with SMTP id d204mr10900346oig.134.1575611287757; Thu, 05 Dec 2019 21:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575611287; cv=none; d=google.com; s=arc-20160816; b=AE7an/BdO775P04VqnIXNFKH/cI3Mt82TCps70v0U9/twj8Ah1VXUv1oW0IcdQijSw Q/as6ybCHw0Wrsat6JUIilcveMqMQKfsRQd3GLXgPqCLPGK/5D0Qd8RlMPkJmyGCf7dK 5/mrQ0AmFGtYVJSG2QIKxbjkLIj/C6Zli1W4Pzjlox9w0rLncqE5aNfCeI1fzaBugdPk sf2c4y9d/fh/EqzF4XnWAhT2JtcEuuh5J4KkPnjSjwipSx1cqyNE8Qe9nmMJHsQw7QS6 1Fe3lMt3wYBGrJHtgslLuVCgqN6zhIH95gYmTlQn0wDaWwjE47q2V2ONJ/SoIsGQcUPJ XdVw== 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=jG4VeHKyYrwbwzbvzBFt4Gx2edRiCsdmF+I1yIWaGOQ=; b=SfZq2M527GFTDS77aI37XrcPs9E82Wbgk6/waxgOZzCyA4QBBqj6LiFCVGoIgOCGPS Z3BW+mVN7v/FENUM9rrFKqghoykBiq2quhVqoMOdfOPWvfMDdbAQ9wb4Gc0s1VUuEVby 2chWtm9L3JKM+GynncaXrlkSahtTyjyAHr713omf1vtGcFCq8Rcq/o3NOkR2lGqSbvDx 4soowqpo7casyBXcvDezIFLm2bi2qk8bK/3LO8wnbMNag7uDQWzWoju3nND6TKbW2WdZ oZkTFHY7w22vkxBmKMk9t44UiPfTOspdSHa89djKoMK3AIKJ9elUSc5On5GL93RqkYX6 ZMnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hwk8aQjr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si531248otk.290.2019.12.05.21.47.40; Thu, 05 Dec 2019 21:48:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hwk8aQjr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726178AbfLFFoh (ORCPT + 99 others); Fri, 6 Dec 2019 00:44:37 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:41339 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbfLFFoh (ORCPT ); Fri, 6 Dec 2019 00:44:37 -0500 Received: by mail-ed1-f66.google.com with SMTP id c26so4794710eds.8; Thu, 05 Dec 2019 21:44:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jG4VeHKyYrwbwzbvzBFt4Gx2edRiCsdmF+I1yIWaGOQ=; b=hwk8aQjrxoq7/cMpTn3R/vI7AwL8vcmF8odckxSgFkQ7S5l8xjksnJ8GXpTauf6VxW FbIV50+Finemz9inqv8p8j41pxeEKHNNiTaBbub+pgk7JxY5lpgS3hYLG8ATCX7ZFVUJ uwcoARmbktnQSOrOAabeGjejFiovi03QBCyaK5qjJgTgfHABaIwl6sLey6iCxrHLGHc2 s6D4pmKTdaB48kvXcyRq90VKOHsjA4vR4zDhHYOKpEn9UfjSjHsv60cvhXqF5r0DK0p1 0hkd08vUqnTd6gqZMDG6fgBSNT1VzMrWRhfLztWMZtiOdx5zqQ+SaGXPRwBQMCWdQdDB Gpwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jG4VeHKyYrwbwzbvzBFt4Gx2edRiCsdmF+I1yIWaGOQ=; b=sR7N41nbiQGsPPkUeaImK66VFXttJq4w3Be24/ZQlBh574GnDSa7NTECidJ4O8ZM5q m8G7TVC1WB+gUhmlT/KGS4D0HIoOztc++V8pMoNzyH0cUZbdGxLQG1OlSeVJ4hZcX9+L Phing4XrS0HvfJNfEOs/1mFIeMpsx6jOj7bEzDOcB+v25JU3cz4RSSlS4A5ts+OUKXWU Lnw6LI9hqrgYu8027eA3FQ4aJmraVKAQjak8MujzRJ6iO/AlGNHGIM5sFMzo/hsL04yc EVY7rhshxPcRFQXoWaTcufTTYFv35/qSzxQVpHjZ4v+mZmVARteJagmJosxHBFGQqshL tMsw== X-Gm-Message-State: APjAAAUUhaxIBVXqpa2xCS8/k+Tq2X6U1cSYD06djeL80nuwciIzi9Dw QODySDSlTN2IQRsecaZO+bqgbQu1+BlPVrNeCBU= X-Received: by 2002:a05:6402:12d1:: with SMTP id k17mr14585333edx.291.1575611074979; Thu, 05 Dec 2019 21:44:34 -0800 (PST) MIME-Version: 1.0 References: <1574679352-2989-1-git-send-email-shubhrajyoti.datta@gmail.com> <20191205181740.GA26684@bogus> In-Reply-To: <20191205181740.GA26684@bogus> From: Shubhrajyoti Datta Date: Fri, 6 Dec 2019 11:14:23 +0530 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: Add dt bindings for flex noc Performance Monitor To: Rob Herring Cc: linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-doc@vger.kernel.org, corbet@lwn.net, Greg Kroah-Hartman , Arnd Bergmann , Shubhrajyoti Datta 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 Thu, Dec 5, 2019 at 11:47 PM Rob Herring wrote: > > On Mon, Nov 25, 2019 at 04:25:50PM +0530, shubhrajyoti.datta@gmail.com wrote: > > From: Shubhrajyoti Datta > > > > Add dt bindings for flexnoc Performance Monitor. > > The flexnoc counters for read and write response and requests are > > supported. > > > > Signed-off-by: Shubhrajyoti Datta > > --- > > changes from RFC: > > moved to schema / yaml > > > > .../devicetree/bindings/perf/xlnx-flexnoc-pm.yaml | 45 ++++++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/perf/xlnx-flexnoc-pm.yaml > > > > diff --git a/Documentation/devicetree/bindings/perf/xlnx-flexnoc-pm.yaml b/Documentation/devicetree/bindings/perf/xlnx-flexnoc-pm.yaml > > new file mode 100644 > > index 0000000..bd0f345 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/perf/xlnx-flexnoc-pm.yaml > > @@ -0,0 +1,45 @@ > > +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause > > () around the licenses. > > Are you good with GPL v10? Make it 'GPL-2.0-only' instead. fixed in v2 > > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/perf/xlnx-flexnoc-pm.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Xilinx flexnoc Performance Monitor device tree bindings > > + > > +maintainers: > > + - Arnd Bergmann > > + - Greg Kroah-Hartman > > This should be someone familar with this h/w (you). > fixed in v2 > > + > > +properties: > > + compatible: > > + # Versal SoC based boards > > + items: > > + - enum: > > + - xlnx,flexnoc-pm-2.7 > > + > > + reg: > > + items: > > + - description: funnel registers > > + - description: baselpd registers > > + - description: basefpd registers > > + > > + reg-names: > > + # The core schema enforces this is a string array > > + items: > > + - const: funnel > > + - const: baselpd > > + - const: basefpd > > + > > +required: > > + - compatible > > + - reg > > No point having 'reg-names' if not required. this I am using to get the addresses. > > > Add: > > additionalProperties: false updated in v2. > > > + > > +examples: > > + - | > > + performance-monitor@f0920000 { > > + compatible = "xlnx,flexnoc-pm-2.7"; > > + reg-names = "funnel", "baselpd", "basefpd"; > > + reg = <0x0 0xf0920000 0x0 0x1000>, > > + <0x0 0xf0980000 0x0 0x9000>, > > + <0x0 0xf0b80000 0x0 0x9000>; > > + }; > > -- > > 2.1.1 > >