From patchwork Wed Apr 17 07:48:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10904727 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 53B1A17E6 for ; Wed, 17 Apr 2019 07:48:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43E3B289BD for ; Wed, 17 Apr 2019 07:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37E6928A0F; Wed, 17 Apr 2019 07:48:38 +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 9D49D289F2 for ; Wed, 17 Apr 2019 07:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731210AbfDQHsg (ORCPT ); Wed, 17 Apr 2019 03:48:36 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40659 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731207AbfDQHsg (ORCPT ); Wed, 17 Apr 2019 03:48:36 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190417074834euoutp0290f7f4b9d6b81f6acdc2a1ded5792de7~WM3iTv1zJ0425304253euoutp02M for ; Wed, 17 Apr 2019 07:48:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190417074834euoutp0290f7f4b9d6b81f6acdc2a1ded5792de7~WM3iTv1zJ0425304253euoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555487314; bh=yp22Q9om9PbOtWP1WnUp98117gd7aHO0YbNpzJ3oCTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XHKA/AVMKZWp04j9JgUh0E15KMPX06YdJ8yQDF5cuwyZ7X8UNlC8TWJzs1PuQfoiP wJPqPdbtxG1KOgWGuAEPIHfRd5KzVFaydpfptqlnahOwigzuAO3wQ5Sl9lR9XsMYJC dpb2aSiAEx1eIbC3y8668IzvaGgqTbZC+O105DyQ= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190417074833eucas1p19073b60a499c4e3e92e108a64c4e3ecb~WM3hYl0uZ0763207632eucas1p1c; Wed, 17 Apr 2019 07:48:33 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 91.38.04325.05AD6BC5; Wed, 17 Apr 2019 08:48:32 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190417074832eucas1p26eca3ed8bf754787b4860206ba542e1c~WM3gn3rYZ2287122871eucas1p2w; Wed, 17 Apr 2019 07:48:32 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190417074832eusmtrp2dcc74a19340d1328c0374ff56d691613~WM3gYVYAu2697726977eusmtrp2-; Wed, 17 Apr 2019 07:48:32 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-48-5cb6da508a43 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 12.57.04140.05AD6BC5; Wed, 17 Apr 2019 08:48:32 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190417074831eusmtip195768e1c2a506250e3df672170210f7b~WM3fu4ECU0059200592eusmtip1r; Wed, 17 Apr 2019 07:48:31 +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 1/3] include: dt-bindings: add Performance Monitoring Unit for Exynos Date: Wed, 17 Apr 2019 09:48:06 +0200 Message-Id: <1555487288-4777-2-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: H4sIAAAAAAAAA0VSeUhTcRzvt7e3Pa3ZcxP94RUMjOxQo4NXmaiIrcKQ6DQ7Znuo6abtqWWa F5oHHqVhas1lKa4xteaaplNTR0KiU4y8SKURptmI1MAOzcdb9N/n9znhyw9D+PWoMxYtSyDl MnGskGPL1r9ZMe0KndCH+zSX+BIvKppQYnRpFiWUxkGUKDF/QQiT6TmXGMha4BITGa6E1vwe JUbaHnGIxSIjICpMnSyiwfiBS9SNDrOIyUwVh8jpMHKJ3oVc1B8Xaao1QKRV53NEzbXpom6L gSUq1qmBaFHrHsoJs/WVkLHRSaTc2++KbdRgtgqJb7G7aX5Xh2SAtY0FwAaD+F5YPDfBLQC2 GB9XAdhdXglogY8vAVizJmOERQDHHs6i/xKGkULACPUAKi2VKPNYT2QOFa53YRgH94Kt6ut0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WMAygZFvASPDKkaR 1NLi3PTcYiO94sTc4tK8dL3k/NxNjMC42Hbs55YdjF3vgg8xCnAwKvHwrvi5NUaINbGsuDL3 EKMEB7OSCK9jypYYId6UxMqq1KL8+KLSnNTiQ4ymQEdNZJYSTc4HxmxeSbyhqaG5haWhubG5 sZmFkjjveYPKKCGB9MSS1OzU1ILUIpg+Jg5OqQZGybasyENm4of0wj8fyfwjEnn8CE93+JP6 M3EZYhyPHtvWCR72f/PlF6NOaAt7PuvfbRk3/Iy7p5c1XvUz5e61l7yb+ardy7CypFhw0V7+ me0e0qkMGdHPF85Rqvzx+2mPXqSsqbDYzLBVCzl4Vy10OiNX6JtYc08t9ZpoWsHp5sD7CmtT NJVYijMSDbWYi4oTAY8tmYyhAgAA X-CMS-MailID: 20190417074832eucas1p26eca3ed8bf754787b4860206ba542e1c X-Msg-Generator: CA X-RootMTR: 20190417074832eucas1p26eca3ed8bf754787b4860206ba542e1c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190417074832eucas1p26eca3ed8bf754787b4860206ba542e1c 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 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. Signed-off-by: Lukasz Luba --- MAINTAINERS | 5 +++++ include/dt-bindings/pmu/exynos_ppmu.h | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h diff --git a/MAINTAINERS b/MAINTAINERS index 3671fde..f4aac78 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12376,6 +12376,11 @@ L: linux-scsi@vger.kernel.org S: Supported F: drivers/scsi/pm8001/ +PMU EXYNOS DT BINDINGS +M: Lukasz Luba +S: Maintained +F: include/dt-bindings/pmu/exynos_ppmu.h + PNP SUPPORT M: "Rafael J. Wysocki" S: Maintained diff --git a/include/dt-bindings/pmu/exynos_ppmu.h b/include/dt-bindings/pmu/exynos_ppmu.h new file mode 100644 index 0000000..a6971eb --- /dev/null +++ b/include/dt-bindings/pmu/exynos_ppmu.h @@ -0,0 +1,24 @@ +/* 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_EVT3_RW_DATA_CNT 0x22 + +#endif