Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5471301yba; Tue, 30 Apr 2019 15:37:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvp5JUm8mtodqi7WzJmzH5V3IiMkOmlKnBdEUpm/ygPLyYpzGBwWfta+d+jE9aZ80+L5HB X-Received: by 2002:a17:902:1024:: with SMTP id b33mr71009297pla.46.1556663861516; Tue, 30 Apr 2019 15:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556663861; cv=none; d=google.com; s=arc-20160816; b=fye+iEg+60YtrLF74DNmV7tVqAj+t0BoLWVZRt7JHhn9VmsAlbw5Aq/oGsIZU2N2uy HhLpVmBREtrKyjnAH3J2BaMjtnFM0on+frPtl65ZRaqLEQGcbpMHMNpXAONjs/7bUIOE M70zxSucI+C8eGlhIkGmKgF7WWXEdB4QDmW0c+AXbDyiojWHKaRMXtJGUe5HZ/MV+j4m 8YNLMu4Y9Tbot5kGpbhjBuNNJYWF4BGJtTqYadPheuj982AyuJq06u6ymbU4RqDJKV/+ Ps0Wjtj6NzD4VpNjdJKgGcBmFOPVwK0K/zDS5ECeA34i8iYNXVE3psPKuVXjJwD2V1wS r30g== 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=/mJXhoJojCpUvedjSobrKy+qo2rbTnzoSCiZ/p9K6Ps=; b=vZYFtDdLlX4qewdtogK3mf1oHOkkWLGCY4at4jPEMa5RgQ1e/saqHkQJe3SxTvSCM4 jhG5+LjSbNFnR6DkU7cqlLSFINTrAoXYboYaLZKtIUlpRpMwjDyWy1AKVyzT9j0M6mtS 7J9SNjHLnN4i0/KOalSt3RzzPs6lUEEDPVuXbHTmq/eWOxkToUETIPvkvyELr+PWf+a/ MyCIkBpDfyGE3kUe11dOUd7MuZRaYQeuepU8Bo5WWuXE8J6CB/ZmnLdyVBmtjrwEqcfk eZT5UuN7c4LKGJGYXAw/odZB2jbaS3fU25NZfoRVpq9G4gVE8aJDxKIv/D9WffWKFNOM cjxQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si36368932pgp.185.2019.04.30.15.37.24; Tue, 30 Apr 2019 15:37:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbfD3Wgc (ORCPT + 99 others); Tue, 30 Apr 2019 18:36:32 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:42633 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfD3Wgc (ORCPT ); Tue, 30 Apr 2019 18:36:32 -0400 Received: by mail-oi1-f194.google.com with SMTP id k9so9626535oig.9; Tue, 30 Apr 2019 15:36:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/mJXhoJojCpUvedjSobrKy+qo2rbTnzoSCiZ/p9K6Ps=; b=HS3qWGlhAnoIUv5Z8F9TepKxybv9lUZk3N85N5Vy18uHAUvtbjQFHo2KS1pfXTznEP cHDJIBm+Am5c5EzgCXgn5S9llXdoJogmzFF4yPxcWQmnm8MCOvg6+R32ao40zpg56mnh uVK98vbzkcUvQ/PojvXrPx8HZW27S2/0Gz4bTXVbNDHTRGQ4yhpi3ksdIo1uMWUkDo61 9GvHLEOx0VECzMCmcw6llntpWb0zMvtLFOVYahIzt5/9oQfczKXqPIgGz602UBfAh5VP dNpbqBosdv8ck/MM03hEB4TzWho3I4CmrZhqweTSCSF5J8QEa6K4UMNGHOKtwZoif8nw Yw/Q== X-Gm-Message-State: APjAAAVHd0UFLg+rdtYHqvC74+wQ441dTwtWwRjg4IlcdakZL/xrsJW/ l0oPty8xevLni9DXgQBXrjeqN8Y= X-Received: by 2002:aca:b505:: with SMTP id e5mr4667584oif.136.1556663791364; Tue, 30 Apr 2019 15:36:31 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id e21sm3956588otr.38.2019.04.30.15.36.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Apr 2019 15:36:30 -0700 (PDT) Date: Tue, 30 Apr 2019 17:36:29 -0500 From: Rob Herring To: Lukasz Luba Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, b.zolnierkie@samsung.com, krzk@kernel.org, mark.rutland@arm.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, kgene@kernel.org, willy.mh.wolff.ml@gmail.com Subject: Re: [PATCH v3 3/4] Documentation: devicetree: add PPMU events description Message-ID: <20190430223629.GA22317@bogus> References: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> <1555681688-19643-4-git-send-email-l.luba@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1555681688-19643-4-git-send-email-l.luba@partner.samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 19, 2019 at 03:48:07PM +0200, Lukasz Luba wrote: > Extend the documenation by events description with new 'event-data-type' > field. Add example how the event might be defined in DT. Why do we need event types in DT? We don't do this for other h/w such as ARM PMU. > > Signed-off-by: Lukasz Luba > --- > .../devicetree/bindings/devfreq/event/exynos-ppmu.txt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt b/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt > index 3e36c1d..47feb5f 100644 > --- a/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt > +++ b/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt > @@ -145,3 +145,21 @@ Example3 : PPMUv2 nodes in exynos5433.dtsi are listed below. > reg = <0x104d0000 0x2000>; > status = "disabled"; > }; > + > +The 'event' type specified in the PPMU node defines 'event-name' > +which also contains 'id' number and optionally 'event-data-type'. > + > +Example: > + > + events { > + ppmu_leftbus_0: ppmu-event0-leftbus { > + event-name = "ppmu-event0-leftbus"; > + event-data-type = ; > + }; > + }; > + > +The 'event-data-type' defines the type of data which shell be counted > +by the counter. You can check include/dt-bindings/pmu/exynos_ppmu.h for > +all possible type, i.e. count read requests, count write data in bytes, > +etc. This field is optional and when it is missing, the driver code will > +use default data type. > -- > 2.7.4 >