From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D10F7C43219 for ; Tue, 30 Apr 2019 22:36:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A60421743 for ; Tue, 30 Apr 2019 22:36:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zm7krKr+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A60421743 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jfVN+69eVzP7N8YT/alzNt0VqKHuMAkff4jRYdUcrUQ=; b=Zm7krKr+WOyKWR rhuNT0pt82O037yrLkUEoZWnHZqbvuOVOxcYvobSASv731jShy8Q81ZvhWREYkZO4WWnsj75AwU8K TfRr5YSSgurQdNXT49LY57rbfCK9MjLNKZo0aBlz0ub/9OOHki7xIzQqo2rfHLE6ujlhyuBugJgum ALTHUqB8MuyJSLiPrh7oT+tK2Uuo1BjMTgin5nGZSjveUUUkjGFaRR8NM9UJZkx4hs5na2BAM9POh 9h4bjSoOWAotey23e5O9QST7f7uJsEfc8C1XXnHJ79aMp/NjMpp0IId219uSbPCUWH4NtBGdq34QI r+tQ/sHZmUfJCdNjvaIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLbMZ-00058t-2q; Tue, 30 Apr 2019 22:36:35 +0000 Received: from mail-oi1-f193.google.com ([209.85.167.193]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLbMW-00058Y-LB for linux-arm-kernel@lists.infradead.org; Tue, 30 Apr 2019 22:36:33 +0000 Received: by mail-oi1-f193.google.com with SMTP id l203so12671419oia.3 for ; Tue, 30 Apr 2019 15:36:32 -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=cMJ2H2t4a55p+gFzmLTuyuz2DxXrksUdD5PNFhgwy1oUtNzlftCcTw3WkZo7B2U/uS wv4RfPsYduUPVd0lX1g+yjkwdC8bhll1efvTnwN5MKCV4R5Qyl+Y4hc2kNtg5xXipRTo x8qvAo9+OG19ijkNMi9b8dDMpyNH+ym9BRk/ftrAn0WQoqHjNv2Cid/qC8VkeoGol7Qp pq4wN3Jrz1vS0D8iks6eMIUVwsojPH/Pcj83HQs+qE+giq9nAbayzT8xpU8leFXxn5Bl Fo92Qc7Z+Gg9UvSy9w8YzGv6+sV7+dYD2RH9BcsADLR5AA4I4B9N8vkaeUzhEr3cC5t0 BEwQ== X-Gm-Message-State: APjAAAUE69WsDh9O4CgVwWhli6dF0vw1ht5WqeBMIIhsjxzewbzOlg3l KShTJNsOxZS/k4Tu+wwGPg== X-Google-Smtp-Source: APXvYqwWpWTkDLi/5cn+5ZNlMzpXt22goFTzWSrZmnH77oxGSI9CYCDloavg5F/4ChkQG7MOO7VPjA== 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 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-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) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190430_153632_696359_9E853065 X-CRM114-Status: GOOD ( 15.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, willy.mh.wolff.ml@gmail.com, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, krzk@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com, kgene@kernel.org, s.nawrocki@samsung.com, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel