From patchwork Thu Mar 14 13:25:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13592437 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 45697C54E60 for ; Thu, 14 Mar 2024 13:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=J9Ah03davdJvkrWdhqt9cSma+Q6yD2cs9VzMS9of7m8=; b=3MamKORIDcmVpVsqt9ZDLFbsvg N0L1M/8g7RX/ccOfYonpqLDwycoeoYgNss2wgpqTfwOEF4K2wImy3ZOOMYGz0YIw7Xv1Bekw1nftm bc18anljmfkn4zOTb75GHu4KR0awl2jkHyQ3OAI+yf08mqYbblLGFN/czCuJoG95MfGjy7h2Rb1nA Ff/tP1KkUWSekbby8W6x5Cd5om+3HveH1tzT2qGRXlKbrN0cRmgN5g8/QDgAm7Iyyqcghe4ah1ZTh GviERkMOATmZ67uWPGJHfuI8kpTDtbsBrJaRrOyQZIVVcdI/5zKS4YnqpoWEZXCxrQ99hrsTeDmfw cV0PmA0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkkyU-0000000EOp0-2jmW; Thu, 14 Mar 2024 13:18:22 +0000 Received: from mail-vi1eur04on20601.outbound.protection.outlook.com ([2a01:111:f403:2611::601] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkky6-0000000EOZv-25Fo for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 13:18:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gt2Jq+YK6/gnQWT3WPj+F0KFLMHPhawNndKOzNn6/4nTYQTofAfUQyXVb3BVpDScwuQCYDO0GCcOoX4isG6/l4bDJQvatvuWI7rIpZhlgkO7qFQ0z1UaxIwr1444dKu44zHdGG5FTGX/632iORZa6C0KtF9QnCAI4bIyzF/jMfvS9IGDfE0r8q50ylNGyQ6G67gzG1tHG8P+l2tHj8X3uw5VXkm1hQRmhFrmEJSAzmWvvzZQbVTZPlZvUgpyDgfIs93k89CXITRTdVStB74xOnwgN94Eg/88nR+5xVMxoQk0CasXLj2LLboOiz7T2nOC5yjCKEJSp+U7vIYxTzPBZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=eXMqNr2Thpwr7yrmrWKRTfbmLVbzJoH9mHa6ZiT7qIA=; b=NHbZPyLQazbnjIubmIp05QknlVoHjG5Uv3CA7w37W6g72yZRvJFoWVmaK4YyWRvToGisk4YMoY8GIqgVIs8WV4ZWxLJHJcEMyqVworvSUstsnIWqQFttsq+VI32U6SAOasKe00n6ymsY8qQOlJ/Rg0PZG30D2NCOfSl7XMGr2TaWATOBx3fcX/pTXoBPzPk0IHwJ4Uw84l325llA/6TzoPeiJAfak2ap1YTO5JXKXzVuqiN4CxWVDIhkwEpkxlJfDrphtW8SqCTz3fNEYm7JWWaM0/aEqCjYFJgqeZw60tygKxJlWEXbPV2WoTA4F41ZAIMYTlK37Pfp/4iWWwZfBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eXMqNr2Thpwr7yrmrWKRTfbmLVbzJoH9mHa6ZiT7qIA=; b=YmdwgkJ56VNdzB25DOFEnnMtiM2nBEx3tZ8mTUSPW5n5ryAp2iQz1hEQGC5krO61SvnCxJcweC3ZEW/qSVCT1vaflpStgpIg4l4YdVKV4SgS49yWCFwm1PbGpVXFRVqvmkn9lq+pnu+tV81QTjVX/B5x0fo/jqD0PG97vX0f3qU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DU2PR04MB8806.eurprd04.prod.outlook.com (2603:10a6:10:2e1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Thu, 14 Mar 2024 13:17:51 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7386.017; Thu, 14 Mar 2024 13:17:51 +0000 From: "Peng Fan (OSS)" Date: Thu, 14 Mar 2024 21:25:14 +0800 Subject: [PATCH v4 5/6] dt-bindindgs: clock: nxp: support i.MX95 Display CSR module Message-Id: <20240314-imx95-blk-ctl-v4-5-d23de23b6ff2@nxp.com> References: <20240314-imx95-blk-ctl-v4-0-d23de23b6ff2@nxp.com> In-Reply-To: <20240314-imx95-blk-ctl-v4-0-d23de23b6ff2@nxp.com> To: Abel Vesa , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710422742; l=2504; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=XqFgEepwtB/bROiSRZialKF+ubq+o/cNyZq02Ud6c/Q=; b=lP1flMguI40d7OFmUzdMDlQtNqqborZdq4jNFfBso/3t332L5dmTFibQfndG9s7tushhpEk6w ZQmFd2ZJfg2ClmGWlPcIaZHeyuvSJcrAoLmN+7gHuhcBHwqqiC9bter X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0130.apcprd01.prod.exchangelabs.com (2603:1096:4:40::34) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DU2PR04MB8806:EE_ X-MS-Office365-Filtering-Correlation-Id: 40e360b6-6ccb-457f-946d-08dc442926ed X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S1RJUzF5jpLMdgR4/+A9xDwmCfneoPBzgAUqmcVhmQbcr9sk5/Rkkk549LhpknnZEwMMDdyDxrJ4PwiDVvk7GUGMM449UqwUNSQNd9skllb5x4dhgS7qx5HaY5Emf4cVFPSX/YqovV2HT2xIyu5yF+tOh24lgLkN84pA+mwJ+mYT3LuvhaiE6mFZyJCbDhqxdMsR1kFtNjqATQs7MZuBN56j/tJDEC6lwQXv5IL4Z+vpEwk27KAsbUwZ1l/43udu0XSoEwL34tzPBpjaADM27uDHO7KkYtJA7Bl7o7R5/oDA+GEqKnapk9KElhhye/EVQD+HqxagFShfEdU9ZWG3MSFoQYx6ckWfgWbmzNrCTwyj2BB+svHyp/AVF/vMxrsuLI97tWbQgIpfJMjpZImZJcS36gqnlOifeJYKd4TgEsHfvQZGSMqtTZXx2cYGcQyWfs6vEtAz/2ueqH03TtT6uWVafRGL8GOwmLY+qkN1bL4+uQctZB8UbcsA2W6b3zAM4Vf+VLnorW/teYk539MfIGQP9XJiwvhjZtntK48G1O2yDKq3ePVu0deUT3GFhUzGAMKF3BkfI7Ruaq2ZVmHOzAeNeCn7x3TMulXmh0ob84xbeP+2mlsktSPrzvvubPRYKy1aShEqe5KwMmH0MebTyaCi3B9dOjp18q0dnwitT7gcdoaAzT1bL7fvbqQPwB6K X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(52116005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?da0KQ6bzGd3/DoFbDDj63Zb8ZJ1M?= =?utf-8?q?2JpW3Q4+lk6XEEq0GgKs5I3oomFc1dmLmFyvODcdxvMJQ4Aq+tDfNU4nv/XIvd06X?= =?utf-8?q?1aW0TY4eezZbLmkWZyPlicRaM7jLkJYEC5iXScq+dOWbQb/hDdMlcCMi/lks3H0C0?= =?utf-8?q?rU9Tc0Qdmcxkmpy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TWx5KZiNAHQYmdqMf6HGlA1r3We/Qz1MtJEPoxeAwZiw2Ipw19Bkgfy95fLoOA?= =?utf-8?q?ClmcbAjoEhvRoskmcMSQpBI1Pc5C8pS/ljcIQogJl6+vHIRtS2VzOX1YTbdWDdGFA?= =?utf-8?q?GEh19QfWGiFaoEDX6CZJiPROcEIEz8UWB/eBaqQST2vrtt+tEnfi+zkPfWSsFl+61?= =?utf-8?q?+ty3d4ndLQ6lA28Jd0DHGdOeSb9OrBVKaDSR47ADxPmhsprnQi82zxuzWHtlfuWZY?= =?utf-8?q?IlgXv4XZvS9FajP2GQYBBy+x9xN+6KpnAGbA8M7cQR0OiEaHiVYORjSxExezS5rmY?= =?utf-8?q?sNVlYv+3XjO4I7Xv0bLdRosT6QQFDxWfncRv09nVGZpHPPxCzWKYS7twsdQhsGE9n?= =?utf-8?q?LP6RZw+VT78HexpEDVyZ6W2rvWeclFUvyuUU1nDSjjIssOlpC+hSMMmq9nt1c+oGs?= =?utf-8?q?1cgh5++vHsMxRRUVYXmAtHP+XOSsrc9rSDBBJjUQIsL+Ldio+CW8KyEf1Rdbitk6Z?= =?utf-8?q?o8ttrx5j7doP?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40e360b6-6ccb-457f-946d-08dc442926ed X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 13:17:51.8375 (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: rgpmcz2ZKuPvftWU60S9oH+toJHYdAzh24CHUCDH3k3DP5Wcd1DL4LoL4sAYOnB+o+KWDigmVasmwzYqLHuBEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8806 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_061800_130089_D912B82F X-CRM114-Status: GOOD ( 13.46 ) 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 From: Peng Fan The DISPLAY_CSR provides control and status of the following: Clock selection for the Display Engines Pixel Interleaver mode selection Pixel Link enables QoS settings for the display controller ArCache and AwCache signals Display Engine plane association This patch is to add the clock features for this module Signed-off-by: Peng Fan --- .../bindings/clock/nxp,imx95-display-csr.yaml | 50 ++++++++++++++++++++++ include/dt-bindings/clock/nxp,imx95-clock.h | 4 ++ 2 files changed, 54 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-display-csr.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-display-csr.yaml new file mode 100644 index 000000000000..9a5e21346b0d --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-display-csr.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/nxp,imx95-display-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX95 Display Block Control + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - const: nxp,imx95-display-csr + - const: syscon + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 1 + + '#clock-cells': + const: 1 + description: + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. See + include/dt-bindings/clock/nxp,imx95-clock.h + +required: + - compatible + - reg + - '#clock-cells' + +additionalProperties: false + +examples: + - | + syscon@4c410000 { + compatible = "nxp,imx95-display-csr", "syscon"; + reg = <0x4b010000 0x10000>; + #clock-cells = <1>; + clocks = <&scmi_clk 75>; + power-domains = <&scmi_devpd 13>; + }; +... diff --git a/include/dt-bindings/clock/nxp,imx95-clock.h b/include/dt-bindings/clock/nxp,imx95-clock.h index e642a54c81a0..83fa3ffe78a8 100644 --- a/include/dt-bindings/clock/nxp,imx95-clock.h +++ b/include/dt-bindings/clock/nxp,imx95-clock.h @@ -25,4 +25,8 @@ #define IMX95_CLK_DISPMIX_PIX_DI1_GATE 4 #define IMX95_CLK_DISPMIX_LVDS_CSR_END 5 +#define IMX95_CLK_DISPMIX_ENG0_SEL 0 +#define IMX95_CLK_DISPMIX_ENG1_SEL 1 +#define IMX95_CLK_DISPMIX_END 2 + #endif /* __DT_BINDINGS_CLOCK_IMX95_H */