From patchwork Mon Dec 30 02:11:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13922951 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21EB7E7718F for ; Mon, 30 Dec 2024 02:12:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A1D0E10E44C; Mon, 30 Dec 2024 02:12:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="ladIXU5r"; dkim-atps=neutral Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2059.outbound.protection.outlook.com [40.107.241.59]) by gabe.freedesktop.org (Postfix) with ESMTPS id 094B410E44C for ; Mon, 30 Dec 2024 02:12:48 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ht4/BBxyCiwdseMg5uhUIIJAJtfNXVn/jOXx1QeP7vyJklSZdm4SGg2pMCRFlplnAqx/1oJCu9sy4IuYetwHU95UVb2v1kXll7HUjWDHhuGXBQv3q8yC/cvgPDwbUo2n0eLOFATcNi9Djc5mDqre0pWn3u/lZjI6vj/PPb75MaoW0DTUTGEVtd86GLMAytEblPam7O3b0KYZPT7QPVs55HtVplzg9upzSpomMXfjBkZUJlI1QzZqSUu8dKdauiixdqqd/IJFlF1VFWiFoX61Xeq7UL4P2YWypCxC8u/q2TxaR/PGxBa4NkKbJLJPkcwGmugI/eay8f0TNnN9g41fDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GpTfpkDr44PgXAMiNe7D2DmBpDq4kFdDtA23EOR0d8I=; b=iSbVKcw+n4yeHwIblRPJGG7tle/L0OeqWsuQxh320L2V4okCEhsPMkbvgDtWnBBKrszcjeanViwRasJ9/PuENaJSRNW7sefZErbGEy3aB7PsdpbNkVj7TLFKsaCP4VcYtS6jU4m0uWhiDLkMxEG5w2JvktJ8+twuRuv+QDsvhLA1K/gdd7mg30lYjVWPcvxsBYBfpbjV8U8eVUzj8AarEfZNxuzcGCS5Ltlal+5WmAE/D2ui7gv58UlrKNUO4aYPDIJtZCw5zpR+jN3cviwtgY8dyDePpE0N+XpXqn/I4/o+dL4iD1wyqZVuKtcGtQ4iisDVNIGs6Qqq2UA1Aj96cQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GpTfpkDr44PgXAMiNe7D2DmBpDq4kFdDtA23EOR0d8I=; b=ladIXU5rXhA3ydfR8Unp2rmfiD9bkUDI7a7mCXvSStjr/ILIv2nuaArpm9nJ4pOirXiFHiOnz9gPwoMUtaPHgCH+evQsWjGYqPGYETVK4+5jbmSnarNIUnpkNa4DwKgUDqdwWIrSeTiD8pfYsdGL6LHp2sTz/ndWA6bZQf1MHUcCvLx55F4Puvz/Ykv1CYzdFKsPTTUi1EzDMlHvXIYgLsbgCrUwTT64PYqLepIqHYZNfCNm9+3LkKb4tuqfrOM4+Z/VDybBv8Z14j1Yoh4pee1VtKmvuSvqlCq2udMLA6HQ4bWCyhCo8DY3vgZpGKA25R8jA7/8Bj8Zx4IRuGVHlA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by DUZPR04MB9821.eurprd04.prod.outlook.com (2603:10a6:10:4b1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.19; Mon, 30 Dec 2024 02:12:42 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8293.000; Mon, 30 Dec 2024 02:12:42 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, tglx@linutronix.de, vkoul@kernel.org, kishon@kernel.org, aisheng.dong@nxp.com, agx@sigxcpu.org, u.kleine-koenig@baylibre.com, francesco@dolcini.it, frank.li@nxp.com, dmitry.baryshkov@linaro.org Subject: [PATCH v8 05/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller AXI performance counter Date: Mon, 30 Dec 2024 10:11:53 +0800 Message-Id: <20241230021207.220144-6-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241230021207.220144-1-victor.liu@nxp.com> References: <20241230021207.220144-1-victor.liu@nxp.com> X-ClientProxiedBy: JH0PR01CA0066.apcprd01.prod.exchangelabs.com (2603:1096:990:57::10) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DUZPR04MB9821:EE_ X-MS-Office365-Filtering-Correlation-Id: 89ca1328-1db0-4bb3-5363-08dd2877716b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|7416014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: BYu2fuMu7HEevoygesVocAc3kAE+Y/vqbDBCVFbSihCwVQvYMyplPKVMDf7oz3wLppnvgjF+goSDEcDSkrVVCkN9EQnJA0Lm/cFRKDTvR97UEuFEYVne7hGBC6HsVyg6ToUPkdmTI/0IDKEgVrQhX7XphF9vpLe/OEXokgkUoLZHaZRYj6mifnzxvUqx9pJCSyxC3ajxOeSHkG+70xvAJKqKtDX2dI8Oxqb+vwVlm4ylgPF52ag0d7CiMMYewjwlt1v2MqhwamrVcmC5pWeAoElT2HG0+Nn+R7cHyXScdjDSf9K4XJ/9cJqx7mWFFyNn/pLtZmtQIMD9AtVSJmB96Cfp5EmHpskwWTZuBmasIoslXU1QsdFYSXvK2xqZsNSTC9Xy36A4DMOi8E3ZFwu7GWvM46XMkfOLOQ6xD+5qRtPzaFp0S9k3YTgTnngTZ6D0ufKGqYC8C7uSi9ZsEqO49bmeHMKQBs3S5b8/Fd+on2IY78c9NDzxbgZBKXop/6EVmiOLuygwM9/78cNrjwWOK2jmRENJg+hFa4e5zNG4g6VhCmkT/9GZGd2G86S6MyFsF0m6C6EoPqqHpDhAgd77oMs+RV8/0+8Ta50tZ1yp1j6zeyVqXwMt7wVteX0u7UZXqwXMUK0ze8IQiPuFT0ZgQAzpSo9dcLz+n4mImYedFgPl8K8NURC0MkaYLVq+w3vaBKmfItmaULz+yp4yOSg06gD4AzxuVqjaPHTnPbDMUnW0Ez0pZTRzl46Gn2fECRo75Fm4dmCSeUay0kCcgpVUhapDEtOHKe5enXwT9+rvPjABNQ8KlqtSUWoDJtObOPdVHLePyqk3yy6zWRNVMzlPDcCi9AOpZl85A/KJ8RlVwSn/c2eP7ZKeTxiegI2hks09sO8tlNj/8fXLMMFfawWoho7NsdjJI9DTv9GjTU+4RiXTi+xKvbtof2M9fTNffbcMEwR3xTp+CkOPjy+Xs4IPCMIuofHYreKSRjd6fcxjg4WTSxeoWk6WgNWW9jFOIzzRrXPTXP3EukAIkxjRy4EwkzU2FuHj8J9LCReUhdZY4MkfpLFsB+nnh9Gf3WueSASgfnSQPRJ1Oka+0Y+p/bEoJhzKTi1I//qlIGY0RnrYE6TIcuHVOols4sAd6bwT2D9r7+yY54Too+9Kn78s0w8m2EipVZnB/si7GRFU6KHRuwtBufUGq1Cz3defiNJ4HpyeAW9YLhn/zl3KuWNjK+Se1U/Aa0zNaA6IBt0iHM3ir+XB+ClI9aZu1yHtO7B9X346BuvK4XOX+QesTPxfN2JRjZomsQ1GyikuhCKaY/iFSC89wH1hLAr0WcqKC7tyaYWoY8GniRGceJVSoLFhs3cQmpr8N0Xcb3ANnIozLk2qj8yK9PsI9lAovsCwCejAS+YO X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(52116014)(7416014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nPM46EKhMqD64PMANrjwvxG/oj2iEBbQ7loCCgfpmcC/ulCfhEnqlY1H5yVrUYgL1xl3lMjzgMvfNM8Pfz9iKqgxClLlMVjdr0TeDCFquHU1vA+UJF7mwGt3W2eFKypf0vfBuzyqSjNxoZIA6evtIajqq+BoHprNw0bZ7AxsWYeN4NDfZVg5MZYghFu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7Hq+t+k1ghFtvrzd34vUSYmshZrMdhHC6igZsttNCqi1Sjy/sTG9fA+Z4VtRbPdZFEgNn9+wIqQAn9DLLuMH574M5lSD1lvUoGvCaz+NKSD1hSlKa+cSymhJUyPIWc7u2vaPFwf8nv7IzAwQGhHcggT3zj+HHYSRXQy5bUAhJxyhZaXRop46attpJ4e3H2GyDsQJRI3Yf0MOBM3WTfpDUiZXjdwPBC1RAAgqg6rIackzKOKI7y8LLkIvrrighn0DdXhqlIJYzHStnoRLVJDYImOLNh8xprKvr/yWE3p65VdIY56D9cvCukuP+Hu8KXZYtLv83R9fVfUo7FsM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89ca1328-1db0-4bb3-5363-08dd2877716b X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2024 02:12:42.7237 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8L32Sf5lN6k1OvvP1KzUfCAEgpI5XRHZvgsZ0onO1fsPlh18InT3/hcvd7htzNZuCKLjxB/KPq3x+5XRizymbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR04MB9821 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" i.MX8qxp Display Controller contains a AXI performance counter which allows measurement of average bandwidth and latency during operation. Signed-off-by: Liu Ying Reviewed-by: Rob Herring (Arm) --- v8: * No change. v7: * No change. v6: * No change. v5: * No change. v4: * Collect Rob's R-b tag. v3: * New patch. (Rob) ...sl,imx8qxp-dc-axi-performance-counter.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-axi-performance-counter.yaml diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-axi-performance-counter.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-axi-performance-counter.yaml new file mode 100644 index 000000000000..1d6501afc7f2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-axi-performance-counter.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-axi-performance-counter.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qxp Display Controller AXI Performance Counter + +description: | + Performance counters are provided to allow measurement of average bandwidth + and latency during operation. The following features are supported: + + * Manual and timer controlled measurement mode. + + * Measurement counters: + - GLOBAL_COUNTER for overall measurement time + - BUSY_COUNTER for number of data bus busy cycles + - DATA_COUNTER for number of data transfer cycles + - TRANSFER_COUNTER for number of transfers + - ADDRBUSY_COUNTER for number of address bus busy cycles + - LATENCY_COUNTER for average latency + + * Counter overflow detection. + + * Outstanding Transfer Counters (OTC) which are used for latency measurement + have to run immediately after reset, but can be disabled by software when + there is no need for latency measurement. + +maintainers: + - Liu Ying + +properties: + compatible: + const: fsl,imx8qxp-dc-axi-performance-counter + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include + + pmu@5618f000 { + compatible = "fsl,imx8qxp-dc-axi-performance-counter"; + reg = <0x5618f000 0x90>; + clocks = <&dc0_lpcg IMX_LPCG_CLK_5>; + };