Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6523279ybi; Wed, 5 Jun 2019 02:14:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3wJLGlOjDj8AplUK/uBQGMUhZ1LpkLf5cks2fG+8M1VkWCSXcEPO5haAtI2GqJ2MjYO+G X-Received: by 2002:a63:f64e:: with SMTP id u14mr3010957pgj.107.1559726074304; Wed, 05 Jun 2019 02:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559726074; cv=none; d=google.com; s=arc-20160816; b=VhRNR4ZZxSv3uKsiACT8BGlfmcmHfHK3vxsTL5+z88fW5q1XEWxnhq6/S/vHoqXlbI 3PyizdpYAEbcZS3tcaGL+0Gkw0ebgK92edS5o8jh+VUSiQcLpVF3t3csjIaqs+dck1oN Oyl/JFMlLYTbNEu9efuGzhLVPDLOMpqrzuhDktH7PsCWHsOVuWnsSWCn9OXSvIAXl7I9 hvfwdvZeWdPltzM7UmL+XDpF6UsKGudaalpEEj0RxlC11dcvgosJfkk1oZ/CVZvK2pLO RpGIzZHtu83Zhi7/ETIcgd0ejbkftD+HcZTmYvG7EnPHJPC8VUG1bHlrhm5RRX8vMLiE Pocg== 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=moPbzwJGZjDeUL78+WXBY6oRMANpdEliVHgKr7HSSV4=; b=G1JP8z9E6zjqqv/cQ2B7g97QP+TuGDa9RE3PpyxqDhGZgsigijvjEqfvDQmoDVPD8/ MU7bePAv1KCETxZnmE3+kZ2sp48Q5YmRvLLtBX67Ga2xySbSqtIfBpL10BhXtjGRoSgQ pCiOclptqIAWx/hXMIbBdvULQgtqYiu3Fbe+xDNzxXn5tc9onQqywRwXL3PToRmrjhR8 QIj3GhTVGfKts24uSVh1cWgXQ3dDX7seJ9bugGfSIE2topH0kQX0J2P38XnTYKzXQDxN ljJkk9ZA1iQj6TDxD37Uyd0NBFWJ2A3IybPpI9e2J5/gWSL620EMxm4acNuqNSBclP64 AzRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CIoEMMzr; 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 m4si25146506pgv.487.2019.06.05.02.14.17; Wed, 05 Jun 2019 02:14:34 -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=CIoEMMzr; 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 S1727057AbfFEJNH (ORCPT + 99 others); Wed, 5 Jun 2019 05:13:07 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59882 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbfFEJNF (ORCPT ); Wed, 5 Jun 2019 05:13:05 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190605091304euoutp02afc552b7fc24dbf91712206d4a07b736~lQoTJkxy_2393623936euoutp02b for ; Wed, 5 Jun 2019 09:13:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190605091304euoutp02afc552b7fc24dbf91712206d4a07b736~lQoTJkxy_2393623936euoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1559725984; bh=moPbzwJGZjDeUL78+WXBY6oRMANpdEliVHgKr7HSSV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CIoEMMzrOAeio0YaOQ7LnP+8lyVRwtFsJN+xqK1Xtb+ofgpllCLJrX54M7EA9RsNy bzUGjy6Fjj7WrmQMkNiQK5aM7TLY98cK03JWyS8t+Wl+ZRl678z6jSglJfBkMvY1mu crjQU49W8Ps6n7+nQFgl+xIIzhxwy7dH2BsYHFEc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190605091303eucas1p2ae50eb4b0a6c63cd41c695257bae3a37~lQoSOyWuF2525525255eucas1p23; Wed, 5 Jun 2019 09:13:03 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 4D.64.04325.E9787FC5; Wed, 5 Jun 2019 10:13:02 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190605091301eucas1p2f360a867c8df8ba542942d425289f355~lQoRQDULl3238632386eucas1p2e; Wed, 5 Jun 2019 09:13:01 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190605091301eusmtrp25c171d486c84fd7cef814a608c905e25~lQoRALSC_2473824738eusmtrp2Q; Wed, 5 Jun 2019 09:13:01 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-34-5cf7879e3d31 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 53.30.04146.D9787FC5; Wed, 5 Jun 2019 10:13:01 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190605091300eusmtip1ab89943fe9c0f5b7a92ebfe38b58fa2e~lQoQTwNmE2955929559eusmtip1k; Wed, 5 Jun 2019 09:13:00 +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 v4 1/5] include: dt-bindings: add Performance Monitoring Unit for Exynos Date: Wed, 5 Jun 2019 11:12:32 +0200 Message-Id: <20190605091236.24263-2-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190605091236.24263-1-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEKsWRmVeSWpSXmKPExsWy7djPc7rz2r/HGLx/pGexccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzmrx7cQjRgdBjzXz1jB67Jx1l91j06pONo/NS+o9Dr7bw+TR t2UVo8fnTXIB7FFcNimpOZllqUX6dglcGVNvPmQvmC9Q8fntBvYGxtu8XYycHBICJhJ71j1n 6mLk4hASWMEocaptIxuE84VRouHqaVYI5zOjxLxFO4AcDrCWs/1VEPHljBIbulezwnWsOzOX EaSITUBPYseqQpAVIgKLGSW+HY4CqWEWWMYksa/5ExNIjbBAlMTPS9EgNSwCqhKvpv1hAbF5 BewlLm44wwZxnrzE6g0HmEHKOQUcJDbPsAcZIyFwil3iw/ppUDUuErtPXGSGsIUlXh3fwg5h y0j83zmfC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B6MS D++M+G8xQqyJZcWVuYcYJTiYlUR4E29/iRHiTUmsrEotyo8vKs1JLT7EaAp000RmKdHkfGAM 55XEG5oamltYGpobmxubWSiJ83YIHIwREkhPLEnNTk0tSC2C6WPi4JRqYJyVtfzKlvdRkg1i f5fMrUifmBv3ZNmlHXE/04x/XUhotDPlP+j1SetEWP06IyO35cGT/CQ0D37VqFu4OOxr1LsN Py3CU9N3tQhy1l/7fkr9lkaxwd1N7OXSlY8LZs6aXDtR/ezahM37RRhX+17k8xN6y3C04IJe VbVh5b2u4H5vM+NpudIdH5RYijMSDbWYi4oTAdoRibCpAgAA X-CMS-MailID: 20190605091301eucas1p2f360a867c8df8ba542942d425289f355 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190605091301eucas1p2f360a867c8df8ba542942d425289f355 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190605091301eucas1p2f360a867c8df8ba542942d425289f355 References: <20190605091236.24263-1-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. Acked-by: Chanwoo Choi Reviewed-by: Rob Herring Signed-off-by: Lukasz Luba --- MAINTAINERS | 1 + include/dt-bindings/pmu/exynos_ppmu.h | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h diff --git a/MAINTAINERS b/MAINTAINERS index a6954776a37e..4c1bab87ff4f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4653,6 +4653,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 000000000000..8724abe130f3 --- /dev/null +++ b/include/dt-bindings/pmu/exynos_ppmu.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Samsung Exynos PPMU event types for counting in regs + * + * Copyright (c) 2019, Samsung Electronics + * 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.17.1