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: 13592429 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2054.outbound.protection.outlook.com [40.107.8.54]) (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 C76D570CB1 for ; Thu, 14 Mar 2024 13:17:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710422277; cv=fail; b=HAEjKYBX8iBVEg7D4Qzr3De7IRCHHbKK7XJiETDE14ob07yYkl2i6OF+GtUpE1E1onqE0CCdIcvcmVReCGQqjtaMqmFOXLJmXVUOsVKD9etSmiOUjcMJr9p9vGAT2+C3jqP6ivw1Mhg/m4qdp27ScdkilWPa1GrByRu7ITCZbc8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710422277; c=relaxed/simple; bh=sSK8gjyJnvW6e4a+Q2EikU+ow972rVeEv2ldkP+6QDk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=JHKbs0u5bsPgPQkad+sw9G+uBM+HMwDqm1Dd/T4NVzfJxjDb3c7Q82k2hMsYg35JeVLprFe/kb1UaVhvw8FeLM+CDFevhdA1QndPH9OibrAmCl0iBE54v3IXLFcjaLdDe9MLYXvjNum1Hby9MuPq1edHUEiftmgQN5qZ+QFHc3w= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=YmdwgkJ5; arc=fail smtp.client-ip=40.107.8.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="YmdwgkJ5" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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+dOW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vt8YsYlBYB6CgwOjxHSgk1wo87a3Z19z0fI?= =?utf-8?q?IcsTWx5KZiNAHQYmdqMf6HGlA1r3We/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 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 */