From patchwork Mon Nov 25 09:33:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13884632 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2061.outbound.protection.outlook.com [40.107.249.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C95E4191F9C for ; Mon, 25 Nov 2024 09:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732527228; cv=fail; b=INd5kL3g1Gw3V+Xm9M/4e9mV21MBPQ5MRVm88eGnbqtJqrPEiHb9fpmmNn37i9MMjIyuucs7q8kEjBEmz3bsoQH0pwBE7AhPt5E1Mhug1fAo2TzxrAwg9OSdFQ3cEwkUeI5kGelNZGkKPqpOBv6PyJPP/SnJW8pv9zm2XDstjio= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732527228; c=relaxed/simple; bh=Fnb88MOXSdGs60yk+aueq7iqXjD6r/b62L/xKeLY9r0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=F5/cdI4xPTYY8z97BGWOiV9igR+DQ7vLxAzm96/0Hbmxww3RpRqfi/ZIJJNoFjOTHN9N69P3CPwGI/ttEct9s/6B2uWpVZvrUsyt5IibTbwMewz80hJUcnjDq1JgdWkDlAaXz4fqPZ870LCCvaxoQ9qciA0rZ7lPLC7z5KKH0DY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=JnYxOfkH; arc=fail smtp.client-ip=40.107.249.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="JnYxOfkH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HBvZ4rVzvv2WFCBb+aufUSU8diMsfixHw+3k6Q2Ji3qmmhG90proOPNbo2bi8H8wXf/G11uSk72bi1Kv6eVnVFu5RMFnIyaUfsXStK7JhfoiAPr/bC9rbVaVzjTjSNuPqgQ643gL/RljvRW4ZCozSzstL0BpNEq+/wMwbFbhd0n++ppXujCJ9zVa7gjwnOX2JNdW7al7YxLq2qBIQWc42L+ni7wZ5M07DGU8gk3pcjcxMsf5QzVdeupzwIgv+S1XganxUCj4lunY6NhU2fNYYU+N3meXY5N52H02WJziHuUd5mA85JkDE/tdLWzhMrnhhSavaa9kwjYsIwMCGMyp/g== 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=HWG03yrViWf4FsOOXxx6SxJsBkutdcLvr3s2QyQx8Kc=; b=ohBxZ/38+IeufoHDbMQ1j831dOg+EHqDk+etE+6wPGNsanhH5ZmUqyeGWA8u0XloIQjjyDJZZjp5sfb4HwcLmZhPLDGW7rB8djChAKNObtOeK1AxOF3T5kFza87HZq6Paod85H2gk7zMSoA7FcqaH/osY9svmtKYNrHTf23osekFZSgLyQbERgh4RM9UsZkqoG/SeYJtChKzUi8b5HNzHHfqwVFD8uwpQ+uQyD4wiqUCUFOdMpyUPmo7E3j+ZCKuuMhJO/54cRQ7I+dyAuS2m0icQSxEH5iEmPaS40ZHxmFu6z1ifJHEkCTh61D/9t9LYHj+YlgZ7WPjTHWKDqHoWQ== 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=HWG03yrViWf4FsOOXxx6SxJsBkutdcLvr3s2QyQx8Kc=; b=JnYxOfkHpcejeRgRGDntM8H+qW8IJjFCIMgPL1W1FAyg/AGi5OOuoVVsWrHO6EhKQsVoCCaPF6B0UZ7SFlaCFiWekl4bjx13de+UDHUlNjvX834d0CRWkFd9e4NiY9AIAz9/9SAqYrUAumhy/rUVB93DmtO7uPfBd8+9E3VLFv2N8izWla7sUX8MwiWr0vm67NlMqXK3TM838rhtyqUu7F0xPU0r4Oi3BoZI2qWfxxUqgkIfxZzlviCvHC9WoKl2v26SW4B8LwjJ9t8y44JGSYXogjw3Gm2T9ckuf9EywrLa+ZfIF8YHc1r2SCxuQ+5UR+QOPJvOWAcV7J87FHCvaQ== 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 DB8PR04MB6825.eurprd04.prod.outlook.com (2603:10a6:10:112::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Mon, 25 Nov 2024 09:33:43 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%6]) with mapi id 15.20.8182.019; Mon, 25 Nov 2024 09:33:43 +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, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, glx@linutronix.de, vkoul@kernel.org, kishon@kernel.org, aisheng.dong@nxp.com, agx@sigxcpu.org, francesco@dolcini.it, frank.li@nxp.com, dmitry.baryshkov@linaro.org Subject: [PATCH v4 05/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller AXI performance counter Date: Mon, 25 Nov 2024 17:33:02 +0800 Message-Id: <20241125093316.2357162-6-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241125093316.2357162-1-victor.liu@nxp.com> References: <20241125093316.2357162-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR01CA0131.apcprd01.prod.exchangelabs.com (2603:1096:4:40::35) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DB8PR04MB6825:EE_ X-MS-Office365-Filtering-Correlation-Id: 54b585d1-1b3e-4d9f-8c2f-08dd0d3440fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: niRtE8H++1s2NX/gWFdbRu/ervj4GCudAeHQrOIwdvZDYW2bOihD+5hYXxlKtYuPtlckxWTUzAJW+BPVRshUc6YD8rm688AZRtcegVzgoXOy0Kk7uw9KpiJzvOgR/A6WElgwPcsfaU02md5bRMOUiB+1Z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tbwtFOrf0vsAXcwi3hcqpbJBezvW4JcC9sku/sD0VwtnjDbZmJuQqS0YwcVFoVlCmgerOujgwowp9GfuWBrhpxBVEJ020ZXwdFRONwCBSoixltwPJpQ5RlJZ4rmPgVWow== 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)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: azN0Sr2IsIIARdlu055yBr4HN0ALL6oy89ECQFYP9x4Q9UOW6gZwp0pS7s0FYQUbu58vhSLikSsy8cKgpAhNVoj5a2zUnjfhFZrCo0y+l7VZlfmT4JMB+MCfC6l15hguzE+Cc0mOZFqmowasifzAmE5hfS0WtybjxDXEnJs/sPs79nhv2H12nWggMJ34xJiSMuvOshwXPVNNwk5Aw06qFbgxqai8rP7GVDXV3bOwiA8v8buBED7O5+mNq7+Y/v46+yT6SCvn9KHDRROm9KEIUFsyQl/XGMBsr9dj0aBrSBUv1ALNaB7mYm+Jy9RL44zH22iVivVmk7rdFlfeRbhCRQJ2vJTfnB+Mw0fSwMLLK8/DThKZXMu5AE8QtbFtvL6CJmm9qzvah7OaS215VSBChODVgMQb4LzOU1tTBtCAud54eopFs8SpLQj9j4EWAT5jQ4LsDKMven0OV/WIPFsV95fX2QIsQMmnfwua7sXgQ++PQ9NdJRS1Pqx18NQBcFGujsPLvgAi2bXpGI2o7x6dPNYn3J2EcCVbVjCnIUFiGCVO/aeaqUsLp6WuzLmkSZiWdTm/3U+wIKLBkRKdkxYs1TKuv2uaT3r1BBX2o0C3LTCrm1w9k1ovWWHfqfckjY47224Ko8uCTba0zMb6j8IpDtCKOTVM2ptZGnEWTuxA5zNyr8fhteBYIerQZGbr9ZMKB9uKWw0ODpcxvjpZtlXqYJ7m0E6oQgYTfglykYOjOxhSdSojB4wdFYwX11w+c9i1/kAejTahIpvaufI0TwWr/sDqNU0ropVoLJrTzXL4KYD7kw1g3Y4Q08RXpB5UMaRfxscFOjiECuXnYTMblzySqFm6QQlhlXnq8msF/DLrmJNo5hzjEyPfoAH5Q5FK4zwOL/MAwu9YCXnRkft2Dr+7SzhqhwL9BoFCHOVoGpnNomncyrfLoAc1P1Hb4qsZ3sh8mDZDwjMA50ys6Q0hpo9nwqckvFnVks5LqeSgSReZUnPxSnNzlNQQtn5qQqrgzv5kBhNAwAxbV0lTcuSBTRstRsYCYd4kjEoyKZkzdU3mYoQhnHrN9mHIB7zUX7K2KjyWH+Ua21i8SuRM6pIuIWAVYi/hlMdOlmeAp/rJegvHw8+NdhZ0Ja5GowxzqVYanN4F7bpu1x2BguPpq0gtMnSMq79wOeess7pZ2IBIVTguEkMhZqbeo7D58fkhQv0QcKrrWh8ccIkJOKOhoPW7ulgVO4Jxp7K22YTIiarTlutIch3bugGsxlcPw7/DSZfR9Dg5PG8GPxTvtrI/NzIpwzs2cqcR9rcbHqPp5f7z2FlyrBRgZjY5pPUfep/jjuXbiTpo03mSZSc/gQ3szEw64B/B5pmQeFWttywMQ4sUMWIEQ2S2GwLNZZJ3Yry56w8FAeaww5UlX9Shvi7vwH/Bp8GS9+LTAuwvYI25ncMde7nXUX1aArIxf9occcO4dzdGLEfFHKfrzGeYvBB23groCb9uUCVN5xYhEqLZYH+uEhGE1DaazZz5elLMmtvoz47W7ZY5VccZHLkimi8VZpYABQEef9t7Lwx34ubdDADecbTRF0KpK+hqI3hFLFz+P1zwjh7u X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54b585d1-1b3e-4d9f-8c2f-08dd0d3440fe X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 09:33:43.8272 (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: LjIFNXkjQ4mUCMSJvZs0cGoyB/W5XQJPQHvtDZS0Trx05SRPQKN3IGeU6kB3GlQXUpD0+NSO0z3FmYinIhVNuQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6825 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) --- 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>; + };