Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp602607yba; Thu, 18 Apr 2019 06:40:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfFmTOz0sE9UDoRm8vrs0JI8GkQj1zRS5ZhmGjdQvAmTD5tBYfNUBNPpIxZ6F6Cghj1zZz X-Received: by 2002:a17:902:b489:: with SMTP id y9mr87371348plr.17.1555594833915; Thu, 18 Apr 2019 06:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594833; cv=none; d=google.com; s=arc-20160816; b=My0QCzUVG/pmK4xslP9L6bnAEB6OM3Z/fqSh+xXpaLelOnQkGBDdTD1p2pJFVgochw lSvonPDDQcOmXIYuHZojaep4yHt1+8LijWvKoWPqJbLZ7BLN3dwVlm+EAGiA4upUNkSS 3PkwBdfxgdNYtX3+vbG9jo5Dyd2/Vrv/ZShfsVOIjJf2HISxJsL9A/9ovS+1ve7/N6pS dyc3ajKiHaNi4KvKyg+gXdD1ygkF4EAefaAQXsUcdUvL8M33TUctnkC6mKSxPgxfv4P2 ag9yqt3UN4IxSc+6nL11DEe5E123if4YUDc52uYG8qH/wQJalXRQzLvA0JxVonPmzikw 5Oyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=7cjJVb3VI4Rewv1loqT5RQMPb21HM1f08DfLAyKWsPA=; b=qAbWsNNuHBtK22UFMqJzGC1qS6jj4wNmbppQ04sVB2/D0JmYcYkwGPKmongpA/G89N b6dkLjAnQY0L//8ONQle+PAQ6q/gEo9ctCRXl0f1xRl2bWgrtAvJ+O7Eu/I/u9P3hriA p8FRqnNz0YJ9wjncJTa0JhF7P/wouqVQsAkp31aZ85BpZU2KfsWOwtf8jYC3fmF8nEUw lNKRrrSe90T7f+mAnScRy/ytX3rdawm6yJ4NoI/MNYoNECczYj9EKmw10ecdKdIc2qfu HOaEV4vvLb3T4cL0VJgQF947gk07z42no32LZ0MWvZNgp6HlDvNte1aP6ViBgxIn9LJY G/Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="up8f4/Iz"; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si1883754pgr.121.2019.04.18.06.40.18; Thu, 18 Apr 2019 06:40:33 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="up8f4/Iz"; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389113AbfDRNi5 (ORCPT + 99 others); Thu, 18 Apr 2019 09:38:57 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49706 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389093AbfDRNiz (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 20190418133854euoutp0224a6e11f0fcf44cf1d83029542349266~WlSs9tp_g0788107881euoutp02G for ; Thu, 18 Apr 2019 13:38:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190418133854euoutp0224a6e11f0fcf44cf1d83029542349266~WlSs9tp_g0788107881euoutp02G 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+ia6ZEIgqVCHI6DI74cmJpPn/Z RdMyJgBM/EkhsJK5j8DeFiF4CKZCAi0XZiSCsIKJgM9P8mQCljLrob5ggRCycmYP8HyaWOYD Hzt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C9dLzk/dxMjME62Hfu5eQfjpY3BhxgFOBiV eHglMnfECLEmlhVX5h5ilOBgVhLhdUzZEiPEm5JYWZValB9fVJqTWnyI0RToponMUqLJ+cAY ziuJNzQ1NLewNDQ3Njc2s1AS5z1vUBklJJCeWJKanZpakFoE08fEwSnVwKiQfl7sw4Ztilvf 2V2/+Ez1RJHx+9t8kao5d2pn/PLw3tC1mTUl65X4xdyJyloX2DRq8r0K1vhw72rQ322wMLq4 K+NqV9GDeVlfBGV7Zrxx4Wm5ey74vLC82I8Y/sS5B1vEt0wsynOL75jF171AJ/TU/7CVl6PC ZtnVKCXoPHv3VZgrODo5Q4mlOCPRUIu5qDgRAMc+MNCpAgAA X-CMS-MailID: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.7.4