From patchwork Mon Dec 23 06:41:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13918531 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 64C0CE7718B for ; Mon, 23 Dec 2024 06:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iRGsCfyFjAsb4Q/6iQSSGKNgGxkvtLPHfSylzBOaDCw=; b=S3fnu+jHEwnnsM1VGCOblGKf2n fgukl599U6kgHq/X11FuI1qVkMiVnnOhQXk3GzaZ+yCHPKqpD10R0UeHYjSJdpzfhO27GTf+AnLmu G/8+MT7KT5sVgPootFRJ/pXcnoNRvEozWr2tWjOwoGlVqsv0MsjVf7QYvsVjJzZSdYPrg8b5rIvFZ Nu+wH5+d0o8cxPdpIDNB76ZLqhz2HI/QDIydHoC+3WRIlg+VnSL66tXgd/nzmkWrHzasuMCVIttCS pMCsJBeP6So20Mz2ugX4LLqmaT4CReJB1XeXkP565yYN89Nx6trIqqLGFLFYsJvgFrBpvCBEW2DX1 2i9JnTFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPcEf-00000009S1e-1RJI; Mon, 23 Dec 2024 06:48:13 +0000 Received: from mail-db8eur05on20627.outbound.protection.outlook.com ([2a01:111:f403:2614::627] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tPc99-00000009Qg0-1CaN; Mon, 23 Dec 2024 06:42:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=idiX0iFyJ2Bp/LzedqAf0aEXjdBcedHHYXYQGW4WhOaJW+3HaLh2/EX9caayMhRSLOlVB62bqCVRReiIIL6JLXrYRgRex5vqQLsltLF6uGsbyNbjkLa7rg0FHFPG+lzU+NTtJapP/KOE1jdCrtCNYxwhJcaV7jePR7bu9We6cA9d5maDxRsqW33lNvRX8C7wFRwIsK5MU0yqmRo1kppxAO7ptk5yRb7M6waPDiUolG9nZg3UrbpNqOIOvzmSx1Zruoj3vDRvUpYpu4G+JIxCSpihvgfGJGY+c3Dl24Ntx7HSOA/S49sqm5l6MZcd3l+VfqOH5aG6BJR5ZhjHpxXi+A== 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=iRGsCfyFjAsb4Q/6iQSSGKNgGxkvtLPHfSylzBOaDCw=; b=JRhy2a9W/6WJbi7EidN4M5hXyoobu5SjFiXipzGZt4M+GTZrzpMwuC8QcMy8eMZZ6RXCw/qFFlj/3PVZNodLJBmpRC+Q3kogbeyAGBhgjmwKBznQUVvHvdV2rwr82bXgjjK71kZoW8Qgvp1T3zsFAfDU90EAkuK6qlttmqwJ4G7xkagAUeuyNK8rzuhJ42r8dCjZboAoV4ls8QyiRQbtw1ssgEkttqPBGaV2udHQTeSOiZ1eIctBZUcrC1pFz4EGVkMNZX/p8+8LUZ+JJ8+5kChz+b3ohmI1Gm1ftN4Blc9xolAwb+xfZWTlM9akPunf1IXAza814IKRIVwKvNcMGQ== 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=iRGsCfyFjAsb4Q/6iQSSGKNgGxkvtLPHfSylzBOaDCw=; b=Bg9Dni0iTXc+pMa+5DaCQuVGcpSacoYADaA2wnFxHfP+CTE4x9wkl/lxUt+87UafZqRx+HELR4yxBMiZc4EnFVSL4cu/wNSApOjlsBZJj9Co/otPWymxt01Mk8Vv+tT5YT9cTJQLsPnCDMugXGW5HxQDTGjZl8Ni5py61QK+cRVz9Se8TTYEMh/40ykYHhFOkLWlFdz1uZVqPm9h30v3TXoHBegFswlD0Bm4dnCkKoOsGUZlmAHvZCImO2Qj/PxD4U1nVWhZevp3xvlBcD2EJD1uQajokeNyDjcUgQFaUJbNesv0LSIhnqer8ueZBxcKQu15+B0Ml1icb4V1mk/+Rg== 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 AS8PR04MB7941.eurprd04.prod.outlook.com (2603:10a6:20b:2a6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.20; Mon, 23 Dec 2024 06:42:23 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%3]) with mapi id 15.20.8272.013; Mon, 23 Dec 2024 06:42:23 +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 v7 05/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller AXI performance counter Date: Mon, 23 Dec 2024 14:41:33 +0800 Message-Id: <20241223064147.3961652-6-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241223064147.3961652-1-victor.liu@nxp.com> References: <20241223064147.3961652-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2P153CA0008.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::19) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AS8PR04MB7941:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f1143ca-ece8-4f7b-fb11-08dd231cf52f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: gCoV2/jOQyq3fPAr3hssZM6IPuM8UTSBFjA+L4SxqUi9LumcQAsgG3EBwDa451Y1mKUZVCQ5v0MHYoBULx9IMf3PUt/56A2KGXD4+1gtHGol6NhQ1WbMcDmeKwJQpJ0gDfVsfzJkR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hRdOjAsZVcB+zx6IZoNcf1OVHZu7dscXhVAT6c3GSnU/otzfkhSYByfq/k3We9eOxLplggRNhkezg8eecdC+Jp+k2vD6LQCBoQIocl4ATHJp7L4t/uu7ZRa7IsNsR++WUpK8Javd1LXZY/6p4m6Fv7hqXJrSgkzF6sPOWwvDlyMKXWN1SPJmUpMWM9AqD0moQX2IHMbg 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)(7416014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DWvXXAR4sUomZ8Qq2RTorxkaaMnKHcu2BmoDOO6Kj8qNnzqPlv9FYZRcNsTYnZ29lat7DnJsOAhYezY2KM6KYXLMc0utjcbaOG90ci7WNZHvhP2vtpVXhulvPI/C64R7rq9Lj7iAiR+4WUCt6hWeqpQn8ti4TCNOZOFgAQFG7zDcSDQervX+7vnG2kszB/xrxAzFxD4O5DUJNhU3ZFa9SHTJrhBBXemPGkiz+p/BmqHRbGatBfgot/fdRS2B1kAm29GX0DJTRyDpgaPouE38OTmb70n9T9INBe1n10/ay0YTvirfwNZNl9u3A4L63YRznhj9E6mGZhbau3IDKXfI8aUqJj8q6A1TX0Nslt1GwCXoTRtLBawEFrXlfTjtVmaQ1eU5mcVYUvPNIsrRf0UHGKO6zYoO99gi57C+WGu7GiSEcWzkkJXnd6Udf7zKhj4jdKn80/0r2tRu14hD4Z7TDKUsBQVIek8cebyJc21EJ/R3xvKSVdG8K4OlNC8AwbvDL2OFWv1A+MCg93yKxoSnbyeFQ3o2n5G3LQDjPczqfmMyai1eTEJlNkNFxipYomvjyO99cHjaUQgXMAJmHzBJAEOIQf6MoYWUgLzngiHOKbSt7grT0U7BY6u6kUK7iSuLuKm4AQ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prd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2024 06:42:23.7596 (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: r9bcUp4aLVxJuRSDXzAd43J7OpIzxFu+NiJ0f0GAtG3mh9YHm2W/F5zMY5nxNtxHb7WX0QQ051dsUjq0r90rIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7941 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241222_224231_386257_BA5AC9B0 X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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) --- 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>; + };