From patchwork Thu Apr 18 13:38:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10907325 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 55285922 for ; Thu, 18 Apr 2019 13:39:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E1A727D0C for ; Thu, 18 Apr 2019 13:39:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31D6E2888C; Thu, 18 Apr 2019 13:39:24 +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 0F27C27D0C for ; Thu, 18 Apr 2019 13:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389103AbfDRNi4 (ORCPT ); Thu, 18 Apr 2019 09:38:56 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49705 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbfDRNiz (ORCPT ); Thu, 18 Apr 2019 09:38:55 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190418133854euoutp02d1a6a1d954a691804a9bd23102c9ba1b~WlSs9yz2-0683106831euoutp02T for ; Thu, 18 Apr 2019 13:38:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190418133854euoutp02d1a6a1d954a691804a9bd23102c9ba1b~WlSs9yz2-0683106831euoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555594734; bh=7cjJVb3VI4Rewv1loqT5RQMPb21HM1f08DfLAyKWsPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=up8f4/IzGSZLTU5PoqdahTqXBDP3tI1CKMDKZPSWF6sXY9oq4FqAlRFXldfn4vNNC dU9Moml/5EMxgHZ7PeXue79NgXy6QRXkB+LdFWrQwKZx1VCOyPJNl9T8DRti2KxnyL rMqbEyLbsnz3+p+3XnY6/XRD78T49GSBh+7tv7mY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190418133852eucas1p2ebbe0543263b103a9fe4ca3a7f506204~WlSri9dlJ2704327043eucas1p2f; Thu, 18 Apr 2019 13:38:52 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 54.82.04325.CED78BC5; Thu, 18 Apr 2019 14:38:52 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db~WlSqqwBxt2247222472eucas1p14; Thu, 18 Apr 2019 13:38:51 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190418133851eusmtrp15386fa27ec50134c4c77f85c9e123355~WlSqcn-_s2480124801eusmtrp1R; Thu, 18 Apr 2019 13:38:51 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-b4-5cb87dec6abc Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8C.66.04146.BED78BC5; Thu, 18 Apr 2019 14:38:51 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418133850eusmtip21b6273cfda26c84d180b36bd1efc689c~WlSptywPB1998719987eusmtip2a; Thu, 18 Apr 2019 13:38:50 +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, willy.mh.wolff.ml@gmail.com Subject: [PATCH v2 1/4] include: dt-bindings: add Performance Monitoring Unit for Exynos Date: Thu, 18 Apr 2019 15:38:29 +0200 Message-Id: <1555594712-18341-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSfSyUcRz3u+eeex7meFwvvsnYbrWVDTVtfi0rNq2r1qp/0erKM4xT3RMi RYpSKukFNydWYU+Ec9l1oeJyVsvLshTTjIo4mbebppSn51r/ffZ5+X4+++1HE4oG0ouOSzzF ahPVCUqZi7Sx/Uenv+2sKWrTt37A9UW1JO6bGyXxPUsniW+MTBC4q6uOwm+zbBTuz/TGhpH3 JH5nLpHh2WsWhIu6WiS4xjJI4Yd9PRI8cL5KhrObLRRus10isb1jGIV6qKpLq5HqqW6QUhn4 XJmq4UGG6uX3JonqupFHqlmDzwEqwiUkmk2IS2a1gduPuMQOGPXSExXup/P1BiITTbheQc40 MFug7OM0cQW50AqmCkHhr2xCEBTMHIL5rymiMIug7l299F+ia6ZEIgqVCHI6DI74cmJp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0gxmkmVfAS2LVqiqI+XISN891gu3lFPCW+LJrHyvELi+J fTt+sExg5FvAyLCKUSS1tDg3PbfYUK84Mbe4NC9dLzk/dxMjME62Hfu5eQfjpY3BhxgFOBiV eHglMnfECLEmlhVX5h5ilOBgVhLhdUzZEiPEm5JYWZValB9fVJqTWnyI0RToponMUqLJ+cAY ziuJNzQ1NLewNDQ3Njc2s1AS5z1vUBklJJCeWJKanZpakFoE08fEwSnVwKiQfl7sw4Ztilvf 2V2/+Ez1RJHx+9t8kao5d2pn/PLw3tC1mTUl65X4xdyJyloX2DRq8r0K1vhw72rQ322wMLq4 K+NqV9GDeVlfBGV7Zrxx4Wm5ey74vLC82I8Y/sS5B1vEt0wsynOL75jF171AJ/TU/7CVl6PC ZtnVKCXoPHv3VZgrODo5Q4mlOCPRUIu5qDgRAMc+MNCpAgAA X-CMS-MailID: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db X-Msg-Generator: CA X-RootMTR: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db References: <1555594712-18341-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 This patch add support of a new feature which can be used in DT: Performance Monitoring Unit with defined event data type. In this patch the event data types are defined for Exynos PPMU. The patch also updates the MAINTAINERS file accordingly and adds the header file to devfreq event subsystem. Signed-off-by: Lukasz Luba --- MAINTAINERS | 1 + include/dt-bindings/pmu/exynos_ppmu.h | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h diff --git a/MAINTAINERS b/MAINTAINERS index 3671fde..1ba4b9b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4560,6 +4560,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git S: Supported F: drivers/devfreq/event/ F: drivers/devfreq/devfreq-event.c +F: include/dt-bindings/pmu/exynos_ppmu.h F: include/linux/devfreq-event.h F: Documentation/devicetree/bindings/devfreq/event/ diff --git a/include/dt-bindings/pmu/exynos_ppmu.h b/include/dt-bindings/pmu/exynos_ppmu.h new file mode 100644 index 0000000..08fdce9 --- /dev/null +++ b/include/dt-bindings/pmu/exynos_ppmu.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Samsung Exynos PPMU event types for counting in regs + * + * Copyright (c) 2019, Samsung + * Author: Lukasz Luba + */ + +#ifndef __DT_BINDINGS_PMU_EXYNOS_PPMU_H +#define __DT_BINDINGS_PMU_EXYNOS_PPMU_H + + +#define PPMU_RO_BUSY_CYCLE_CNT 0x0 +#define PPMU_WO_BUSY_CYCLE_CNT 0x1 +#define PPMU_RW_BUSY_CYCLE_CNT 0x2 +#define PPMU_RO_REQUEST_CNT 0x3 +#define PPMU_WO_REQUEST_CNT 0x4 +#define PPMU_RO_DATA_CNT 0x5 +#define PPMU_WO_DATA_CNT 0x6 +#define PPMU_RO_LATENCY 0x12 +#define PPMU_WO_LATENCY 0x16 +#define PPMU_V2_RO_DATA_CNT 0x4 +#define PPMU_V2_WO_DATA_CNT 0x5 +#define PPMU_V2_EVT3_RW_DATA_CNT 0x22 + +#endif