From patchwork Thu Mar 14 13:25:13 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: 13592435 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 03A7BC54E67 for ; Thu, 14 Mar 2024 13:18:16 +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=/iqqm1+QGa3EEcq0Yt/oH2EQmkM704W6cE8cLgkImbQ=; b=gRz5QhUrBJ0d4sVgVoFTif5SGq O0BteHy3FsUi+aj2W++YegcXdwL19miM7dlfc5/5zNNGZb3vzYgEiVeA2kuGiGTTOvqGJZXGH2USt oyuUNQIR665eqxHg0HXzQP8Z2NI3qstKBCEmpD7tXt6eNWC9lGNEa7L8lkliKTSSt1oA1i1K5h2Qp j59VqazjODZZGaM8sjDngDNYfmJjPRz+6T0vTj/uCLmtsjhO+5tSazBB3b1GNqoz5aSVm6zquZ7wg W6gjpgwtSAEqEXE4Nt9A9svcpM+45bao35J1txQc0GszihLLvjTUS69sDAJ1/4VfuQLwwYeZSKWCL JlOr/epg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkky4-0000000EOZq-3iFB; Thu, 14 Mar 2024 13:17:56 +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 1rkkxz-0000000EOUT-1nFu for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 13:17:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OK4onKoObw1o1f5x+fOFrmnhgzSyQNxTUL7ALn4wPKjIKN6hzXkvRFGDcaoKFRi8WwyjnQsJmaKLPI2DyFhJ+QyRQ8dboVCpKzeszCvKFJLjB306WD48+IcnUJk10pQkFZ22jmmWZf/IXcZbCvbsBucsOanxgKRSHBW0fh9D9mm6RlogiaWudgD2CnNeAz1+fW82mjHjaDTE5JGl5QTJ1EIKaTdThU3Z3kUiSyCnm+RWsxnX6/p4dpgq/EYYjxJXOGA1OBdDcn6nXIdHq74cAF6uPNWBKtAJTr+vpA2+oxlJtDknYpH3EZqKcFgWL0130OB4M4jt7n9XeekJmaizdg== 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=qVkPVCx2uXoB1bpqiX0SUEO1xPAztNm13cFjuRACpl4=; b=dcRFUeKd/PirfOT6eFJZ+9eRERwkhduZr0c7Yrwrrfibd6d91YdlD75FsXOSdW2Y5PKdOA6zqTUXxofxuZlkZyJfvGkWd2j+O54vFFre3i5V4jpXodEgaubcyFwU0rO0mVqkavTZTcjFufDEvYmXgWh7b5UXx7Oan0Ey9/dAGJZC1nMefenGeWqKQyVjcFFavblIbrmVe+yEMkaAId4LPS35+pw6Wpmz+bymjjX6mILgeOt6CxhkYcIRv6szNvl53NynjzEWKT4O57nX0XEhtj3Rj0O2zdwQ9kkst6PGH7HkeIVAfCdyizQ9w2osxD0e0lBq2IxnDDi6KY9ImANHuw== 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=qVkPVCx2uXoB1bpqiX0SUEO1xPAztNm13cFjuRACpl4=; b=Q1P7MlvSIKxpRne5HDxjllRoa8EstSkYKaXD3pS3NL3PfTCwIldHSoXZQ0CpqQ/gaav4WnOc7sZT7vYFuf834sCSkL3PDOxLT8hgjdZxV7Umpb5rs72Ky38nUlG8SRZlGnNZ7epRE5XyOI4GKBijvmhXWNvmyZ9cqNI3Xqjm++M= 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:47 +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:47 +0000 From: "Peng Fan (OSS)" Date: Thu, 14 Mar 2024 21:25:13 +0800 Subject: [PATCH v4 4/6] dt-bindindgs: clock: nxp: support i.MX95 LVDS CSR module Message-Id: <20240314-imx95-blk-ctl-v4-4-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=2429; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=JX7CNjyl9cprSkviDE66rU7vOase6VqCPKB/81XgSX8=; b=rAcngb6LZm9q0Le4/zHwZFNoon47reDKh816q1P6eegU+kOXhwyXBctJ/64qj0OH1oousOosK ybPJsiF7DwyCpNQjukM9MJUq+gyC7s2oui8VjUYZw5EnihPAuUSAgXl 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: 037a1d5e-52d9-4c5b-deac-08dc44292414 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: VX6LBvSs138iTM28rRX/Q85rJkvBCTl0gxyZ/B+F07MoHrX1lUTv8pJIDZI+5zAh7X582WEnP+9aWAGqFUdp3FsBHlBQF+Q9oMrxgOdNI/UP2bZ8t3/1YaSSovkB13ViQYvmqKoauAKnkI6Jspzz4CghW0KAO5bt1f1ieWJLpMCfN85z1WtvrQYOZW2PJsXoAfCHAYgwkPeIOnMP91oNqqTWN+U/t5i3G0OgQN7cFon71TKCBycocbn1ByjK0YInnyAshlfqeT42VFTzWzeFACFLl39IKq5/iYgQYVG8BpZIOt3qDjrufLow/Okpa/3gH11BrETL6MAizceh1GxoBbsMPLejnJiZ3AL837pj2MQQ44HX3ixMUXUoMm1h3ZOGXopB+e/g2BfibyzM+Mew5Go5Yc6lmQzzzKKv9cBsFiFlPhPrntZYR1UumzBl99DE0Z79OoE5di6MsB5dKgfT/xuAl2spWZ4LiOi7c3th5acCoOZL7jc/hSz5QG2KtAK/wRvnNwdPJri98XDmLjGgYYOacG3JIyJoFB0+5JOCDyiXusFYz6LWL/148NMkoufIQl51/eIarE1NADuh0XZOoKchQYha5VwT61VH/Fx59VOzmgQh7iqzCnimDMnZYdePhmcg0bxszShdVxiO+wWbwiR1b38BfW8Rl1/3BS+gQntqDINZYNqZnVh5xCRuD2jw 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?2xCqfV89xeSCYoYOoG8ktzSzxLQE?= =?utf-8?q?OTu0H7Npznn/eUvbJP6x3pYp31k/lbqfYrbauNrCKd2IkQ+MDqImQlJfBcTOdOJep?= =?utf-8?q?L2ltK0g31/XSL9XXFqFd+fcgfR9TPtzMZ3xxuFoY4Qwb8I7MWffx41VMxSiAQKWTf?= =?utf-8?q?3SkcYMObjaBktJqgvdCK4zFK2YMCGPO2oVXnpHTvVIdS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mD3GPIEtNi7jQpsx?= =?utf-8?q?bjsqrK0amqPMe5EzKg0ypwUoCrIGVYFmZNCXD8NPcBrQLWTuK7uKOsdpYaUC4/SRj?= =?utf-8?q?57HCvIDZUmQrgqarHhLZfCEXskWnHetGOOWRRyrhwJS26il263eBfsWTA/LDPztcY?= =?utf-8?q?8Myc6r6j7Fiui2xco5fMRxxUgsvIVsXbcXpg6aXyEODiiMkoyGAUMMGnSABGqnJUK?= =?utf-8?q?pvmBDq2hMQJOsuyAGig5RLVgpsWLS7KVlbbnLCJvDA1ZQSckRMKOqzw0q1vwJb1lp?= =?utf-8?q?JTIiYMoIxIy342Vyj0/zFlxtgkPlQ8yCV/cxUHss4XMXVZTluZIuVnMbEcxxrvHEh?= =?utf-8?q?WPWXA3ttqjsM7796ZRzakQL8rbI2henXQ/K+UUOIb/hUXKz5FXki9yHARGVjh5t9Y?= =?utf-8?q?rQ3T1G5FGfsMujJHUY4c4Kvdlc7wjwXympZg4yQlZf7slipcIZ0g/Gla+uoAvVm20?= =?utf-8?q?BPuXAFjJGK9V?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 037a1d5e-52d9-4c5b-deac-08dc44292414 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:47.0596 (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: 97AHEhONxjIGz3apNFePEC6P9syVQgoYYBt1Cp8QoLGAhhTZ0ExSmgWvUW5K51bs/S2ynTMSW700dZMMTKEQZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8806 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_061751_626231_F58668FC X-CRM114-Status: GOOD ( 12.35 ) 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 i.MX95 LVDS_CSR provides clock gate controls for the LVDS units, LVDS PHY and Pixel Mapper blocks. Add dt-binding for it. Signed-off-by: Peng Fan --- .../bindings/clock/nxp,imx95-lvds-csr.yaml | 50 ++++++++++++++++++++++ include/dt-bindings/clock/nxp,imx95-clock.h | 7 +++ 2 files changed, 57 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-lvds-csr.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-lvds-csr.yaml new file mode 100644 index 000000000000..e04f0ca4f588 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-lvds-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-lvds-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX95 Display LVDS Block Control + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - const: nxp,imx95-lvds-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-lvds-csr", "syscon"; + reg = <0x4c410000 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 c671c4dbb4d5..e642a54c81a0 100644 --- a/include/dt-bindings/clock/nxp,imx95-clock.h +++ b/include/dt-bindings/clock/nxp,imx95-clock.h @@ -18,4 +18,11 @@ #define IMX95_CLK_CAMBLK_ISP 4 #define IMX95_CLK_CAMBLK_END 5 +#define IMX95_CLK_DISPMIX_LVDS_PHY_DIV 0 +#define IMX95_CLK_DISPMIX_LVDS_CH0_GATE 1 +#define IMX95_CLK_DISPMIX_LVDS_CH1_GATE 2 +#define IMX95_CLK_DISPMIX_PIX_DI0_GATE 3 +#define IMX95_CLK_DISPMIX_PIX_DI1_GATE 4 +#define IMX95_CLK_DISPMIX_LVDS_CSR_END 5 + #endif /* __DT_BINDINGS_CLOCK_IMX95_H */