From patchwork Wed Apr 17 07:48:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10904731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B3A917E6 for ; Wed, 17 Apr 2019 07:48:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B36F289BD for ; Wed, 17 Apr 2019 07:48:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F325289F7; Wed, 17 Apr 2019 07:48:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE924289BD for ; Wed, 17 Apr 2019 07:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731171AbfDQHsj (ORCPT ); Wed, 17 Apr 2019 03:48:39 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40695 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731228AbfDQHsj (ORCPT ); Wed, 17 Apr 2019 03:48:39 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190417074837euoutp0297887a116b3c821ece198b0cefebfec4~WM3lSg0Jc0434204342euoutp02- for ; Wed, 17 Apr 2019 07:48:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190417074837euoutp0297887a116b3c821ece198b0cefebfec4~WM3lSg0Jc0434204342euoutp02- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555487317; bh=DYDvjBZVL6sxzkf5UpTzzrSynrTk6h2kigPuEB7raUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FJ3gOqAcU8bcdCbkL06wHOIkeFLjmZ/ikF/CoUi8LsnT0A0uwu1AIn9afVB96SMrm JMJB8dNdgxA5v+FRT+kWSSg+WUetMb+PrEvi32tn8z0KxT1aJiVj9prMmDWX79u2U/ T3JY9WxeXwFSX7WD/cV8l5jvlK+rRhJROGjdEu+E= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190417074836eucas1p187361f4b6d6a961c8464cf6e05e8f13e~WM3kjIWYZ0763207632eucas1p1h; Wed, 17 Apr 2019 07:48:36 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5A.C8.04298.45AD6BC5; Wed, 17 Apr 2019 08:48:36 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190417074835eucas1p19319bedd176d55e10b272881b7c68919~WM3jbKOoy0044400444eucas1p1E; Wed, 17 Apr 2019 07:48:35 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190417074835eusmtrp2fe677ab59dfdb696b0d58c58ff1d9e3d~WM3jLFMyO2697626976eusmtrp2K; Wed, 17 Apr 2019 07:48:35 +0000 (GMT) X-AuditID: cbfec7f2-f13ff700000010ca-6a-5cb6da54505f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 60.69.04146.35AD6BC5; Wed, 17 Apr 2019 08:48:35 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190417074834eusmtip16c1ff37602f19f9e71ff0754d669177a~WM3ihm0t13147631476eusmtip1v; Wed, 17 Apr 2019 07:48:34 +0000 (GMT) From: Lukasz Luba To: 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 Cc: b.zolnierkie@samsung.com, krzk@kernel.org, robh+dt@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, l.luba@partner.samsung.com Subject: [PATCH 3/3] Documentation: devicetree: add PPMU events description Date: Wed, 17 Apr 2019 09:48:08 +0200 Message-Id: <1555487288-4777-4-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555487288-4777-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSfSyUcRzvd8899zzo9DiW3xDbNVtqkantt2WNlu3oj6wXM2k6eUJxdI+X 0LjIa4kQt8odvaDD1HVJJhUnS3mLiNiMhuWl5VwxG3l6rvXfZ5/X7bsviYmqcDsyUhZHy2XS KLHAnN/4brV378nRxuB9Gb9t0VNlA46Gl2dwpNb34Khgag5Dvb1PCNSdPk+gUYUD0k4N4Wig +Z4AGfL1ACl7W3moXj9OoEfD/Tz09WqNAGW+0hOofT4b96Ikdao6INFqcgWSZw/TJG8XW3iS mzoNkBi0jv6CIHPPMDoqMoGWux06ax6x0jIHYkssLpdV3icUQGuWB8xISO2HRl0XkQfMSRFV A+BqRzGPFUTUMoBV84gTDAB+zF4S/EuotCrACdUAzpaOm+Kbibtaw6ZCkgLKFTZpLrEBG+oB gL/ag1gPRuXy4GJxy98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1gZFjF KJJaWpybnltsqFecmFtcmpeul5yfu4kRGBXbjv3cvIPx0sbgQ4wCHIxKPLwrfm6NEWJNLCuu zD3EKMHBrCTC65iyJUaINyWxsiq1KD++qDQntfgQoynQTROZpUST84ERm1cSb2hqaG5haWhu bG5sZqEkznveoDJKSCA9sSQ1OzW1ILUIpo+Jg1OqgVG8+9Ph3YEVCYbxX3kia0KlXhgG/5tg 5bhQml2svsRj//mlt6V/KrD+jku/x36cYX23yYtDqyannJ9SXTbh84N1V02KzTtE35wM9fk9 Q9rbbcvmbC3R/FvhK/Sy3NZtuMt5N9eNjVlMN2A26yz9vjPyGboXixU5FnGWBFRna8w3vfVf v9+xU4mlOCPRUIu5qDgRACZuz/ygAgAA X-CMS-MailID: 20190417074835eucas1p19319bedd176d55e10b272881b7c68919 X-Msg-Generator: CA X-RootMTR: 20190417074835eucas1p19319bedd176d55e10b272881b7c68919 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190417074835eucas1p19319bedd176d55e10b272881b7c68919 References: <1555487288-4777-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Extend the documenation by events description with new 'event-data-type' field. Add example how the event might be defined in DT. 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.