Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2304880pja; Fri, 19 Apr 2019 11:38:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/CClUkmNe3KGFoPBT+ZKT+HQ3G3LzRVqwn8LxvQkhwpUVh64mWTppYHzqOio9ZmV+/wuz X-Received: by 2002:aa7:8e04:: with SMTP id c4mr5497206pfr.48.1555699138807; Fri, 19 Apr 2019 11:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555699138; cv=none; d=google.com; s=arc-20160816; b=kwCZ6MaWMmsomhHNfFC1nh3UBgdZHx8ShrYZZOoVdcYlnCNzyNf5muDSzjgY7N62di LEjJQ9SAYBRgENJdgQYhmaU7/MiAw5a77N0B5CsH7EVpd7grlPMccrR+vtRxrVXshSMC bl/N/k5Q+juu9PkBMqm0EH2C3IFZfhKcAGAmh+kQ0UVKz9jK15RLVn0jsOcg9EqNQTl8 s+AZJL0CURKDO95gLAbMDmI4ejxNs+oqMNjwlgLl2Z9qQKw5wR+9nv6OV17YciN4x9Cd jQ7Wo2NFNEOm5p4bLdtFxpFFkETTTHMQLbsLFKzAlxJZ5biLQCe9sbz22/Lr/0FMThvX VNtg== 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=iGDpEqXH6B/9jdSnYXhexW93F/lTt3AHbDa2kzFtJblOCoGBC5zTDL5z6cQzCYkxIR GvnAOslx4QDx9vWmptCtKHEWB8K68UatYlpdrlfRAXUHPYNGHzIH2ud9V6dLvovIzqy4 L7aGPjk5c+fowCz8ddLJNWI02IuhubTeNNAEIU/GyqXGt4dWReryFdDFJzNW+I89dnRl 5siSPjiRo7UoY+R8uuMaScuOb2uu/9dYAKLOuZyWpmUAWr5STmq7Fkbpxq5LI4zKGCng TAtqpeU4w9zc6+TBv7LKah8Az5QZYAufvUfesSErgIrT+V2Gu5E2OrQvSDWjtg4TAnic 194g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ceg8JjVW; 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 p2si5774284plr.69.2019.04.19.11.38.44; Fri, 19 Apr 2019 11:38:58 -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=ceg8JjVW; 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 S1728146AbfDSSh6 (ORCPT + 99 others); Fri, 19 Apr 2019 14:37:58 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52271 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728381AbfDSShy (ORCPT ); Fri, 19 Apr 2019 14:37:54 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190419134822euoutp027bb184517efc014a9073b7cb7945d4f1~W5EP-yk9-0662906629euoutp02- for ; Fri, 19 Apr 2019 13:48:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190419134822euoutp027bb184517efc014a9073b7cb7945d4f1~W5EP-yk9-0662906629euoutp02- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555681702; bh=7cjJVb3VI4Rewv1loqT5RQMPb21HM1f08DfLAyKWsPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ceg8JjVWJ/rQKpfVe5um+ZCBRJJ0Xh+02u+hfCfZXaSwO/Iu//iv5fs9CFHXIiDTw xvLNufTRnjZrzlHl1UUABVOJqkZbR1bQq1L+WKd8TXLmyREeF70VbbUN2akiANOmnP nG1A36gFT0WuEliPS4ME7dnT4DFcFCs1/kYIJB1Y= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190419134821eucas1p1a89011acc93eb3522f545d80b5238b99~W5EPTA9Cv1720317203eucas1p1p; Fri, 19 Apr 2019 13:48:21 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CC.59.04377.4A1D9BC5; Fri, 19 Apr 2019 14:48:20 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93~W5EOaIG7V0556405564eucas1p1H; Fri, 19 Apr 2019 13:48:20 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190419134820eusmtrp14e775b1765e6a96b2cffeed5e381837d~W5EOMHdiC2847828478eusmtrp1E; Fri, 19 Apr 2019 13:48:20 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-68-5cb9d1a44d2a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 69.BE.04140.3A1D9BC5; Fri, 19 Apr 2019 14:48:20 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190419134819eusmtip27326f751da252e269e886d113ec5ae5d~W5ENghLaL0928709287eusmtip2I; Fri, 19 Apr 2019 13:48:19 +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 v3 1/4] include: dt-bindings: add Performance Monitoring Unit for Exynos Date: Fri, 19 Apr 2019 15:48:05 +0200 Message-Id: <1555681688-19643-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUhTYRTHfe7ddu/U5XWaPi0zmAUapCVGTxSl6IdZX4L6UGtkMy8quWm7 alpB00hTNEWxzJzL9xc013UtlZSarym6pFDTjHKR+RaYZgkVebtW337nf/7nfx4OD4lLWaGM jNUm0jqtOk4uchRYetdsu6tG2lR7Ku8dQA+Lm4VobGVGiIzdw0KUZ5/Hkc1mItBQ+gKBJvRe iLWPCtHL9lIRWs7tBqjY1omhpu4pAlWPjWBoMq1OhG50dBOoayFTiFb7p0Gwq6KxrBEo2kqm CAXbkCVStFRdUzz7/ART3DI3AMUy632cUDoeiqLjYpNpXcDhc44xk2aDIKHGJSXfwOJ6MO+c DUgSUkEwZ0KWDRxJKVUHYFFaoYgvVgA0ZfRgfLEMYMFUBcgG4j8TM316nG/UAjhjuCv4N7L0 wUhwuSLKH7Y2XOQG3KlKAFe7lJwHp2ow2Hn9C8Y13CglHP9ZSHAsoHZCW0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mRmCkbDv2c8sOxq53wYcYBTgYlXh4 D0zaGSPEmlhWXJl7iFGCg1lJhNcxZUuMEG9KYmVValF+fFFpTmrxIUZToJsmMkuJJucDoziv JN7Q1NDcwtLQ3Njc2MxCSZz3vEFllJBAemJJanZqakFqEUwfEwenVAPj6lUeQcwLr9oX5Cw+ PZ1xlXDeKqsnu3l8vYTc36fYr3tvObPd9sKCXun/v9X36D5gPnfcVkpR4tGkv79sHM8cFS9l vntv3v1X3oXnXIP0a+JDfxWfPN6z+q/tst/vCtjPJvmV/LsrJf2mc/nms2rvZO78W3Jttm+f 2T4TMYb9IucMZri/9RA4psRSnJFoqMVcVJwIAG3f1QOqAgAA X-CMS-MailID: 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93 References: <1555681688-19643-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