From patchwork Thu Mar 14 13:25:12 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: 13592433 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 AE361C54E60 for ; Thu, 14 Mar 2024 13:18:09 +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=zBfxQHkbDRaH2sKRUvOm+9VX/mdxSp2u02nAwvWEvWE=; b=Xo5EOD8zMhbWKR7hp8jq/HGXty cR0nTKjFQIWCkqChnwzPpvYAaXdU6TvAFZ+GtoUHP6FVNnF6tnR8Ecdu4zRGU+eKkxD0VKGTPv8k4 WYHGWyn4Hi48l2LpnxY9sSovac/lDHX7D7JUjD72STsb62CZoN3Iin/7nXiF22O00NATFvktGTq1b 2rdLUY66sMv3aPIQcje2Ww5DRI/FltYKvAOwf577Vtnu4U6OMek6Y6W/BvC6U2IPsws7gAOXkY2bi jWkeaG8kU4p0J0NxQ4ihf7OVTCg0NEI2dayJFF0DcUzCfFYD0dYDZTvALBqba8NXtE1sEr1N9aHZf rv34RrZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkky3-0000000EOYa-2hxk; Thu, 14 Mar 2024 13:17:55 +0000 Received: from mail-vi1eur04on20600.outbound.protection.outlook.com ([2a01:111:f403:2611::600] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkkxs-0000000EOMC-1nUq for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 13:17:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m9M2PHsegJScce54OF+snn0d38Qtk7TDInK5fezeUHrdASYHan5jF7IOpTZUIHt55DP4J1zAB0D1xjLUzSFFGuz++cU8zYV9qYKSyFQTj52p8q2x8bgdXaYdAWvYQyTMlYfvmyseF61HS752G0GIn9zep8FPr5Q7JUYnCfvxwi03Q+Y08oWyYCOBQoXAeKpxmoL7kER/8eA6nGFKjADsgRZ+p5MV9YkjuGSWROLD4+ZZ4nvCTzLOdXtTeRWzTYeOD+bCvp144wovhiXwzSxLEQ63AgmHrOaygNqEZlrKnySEzqirDLZGo29cGu2Dygzr8BqSUAY6JR+wFITECxLNsA== 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=dW+4AYAvZQSkGDIj7tq5Zshnwji9hswWack48oYQjRY=; b=J2w67VKY8qE/qHNXZGGH3W9+lSTvq6PU7ASGCFm7dVUhCGGFQkJTCWLmT3I7SX6S4qpAHmtGe+nFpIPTARiLgYxJtwkEW4/WK0jN8jIiPv6CIVgCxvrNbQzEw6kEqVwgaP7cpZlBy9/9GIUuftez6crepq8M6i7BiCzBVeIVv50bMbHabAWlHYvk6YBPPZBWi6kSQfPkVktvR4ECPcB9L3/QcCXxKcirifi6qvuMQ4hKXyqkDAxUWjM8tQ4v4R/8AM/ATE/iDsrC9nL0PcjQQcddoK7siLfx31cf5P0k50j7g6+sOgrz1hzs29DVd8QFQ56lWHqqwYlJmvsxhM9CGg== 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=dW+4AYAvZQSkGDIj7tq5Zshnwji9hswWack48oYQjRY=; b=c3JrFo5eIdhtnKn9g4I3+PUzkfaHzZ2K5iGrTt/5KfXIaJfLHhuereLxJ8uHfsMPUniauoI9BTf4lzZv5kqXQfpeoHA2LO8I7bV93a8rtDILjSgodUdD7nna7akhRGFUJRlvkAdhL3ID2CgOhBfjGTM6hqat0ygBg+SCSPTZrvM= 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:42 +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:42 +0000 From: "Peng Fan (OSS)" Date: Thu, 14 Mar 2024 21:25:12 +0800 Subject: [PATCH v4 3/6] dt-bindindgs: clock: nxp: support i.MX95 Display Master CSR module Message-Id: <20240314-imx95-blk-ctl-v4-3-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=2095; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=LKYLMnnCKB4MgzS3T/KewJADSUUHZSkseLlKc8xEZLA=; b=x29dXCyItrhxXbgMwrSVYj9WeaPkASJx4Bz2t9PwjlvuYRIoHFWD0Do8ikxGbsKG6gOoX/u2r XQEHrMbbj4tCsysqWsnuZfl/gxUZ/HNPqrmOlR8H/9YKv7lX47Y9jg3 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: 7f47e5b0-f645-466c-0dc2-08dc4429210d 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: Zn8jp0gKO4v7EU7dJIOjSTKTPMIhlLopp0g2DdqaCIc+0GvaMp8b3ywxhL00L84itiwZq0jfSY0F9lal2E0kdJczV2loDBNzIoSssKTb6iWxq7uY+9axtHpPupsnIb887KZdUEF8w+7pEsnFaZYda8rpaZ+oZfenG2TacHYeWeUlsI+84K3c4I9OxY7yO3ab8pvn+30w4/eoWNs0oaEAiJXMKMbd2HLS51S/9OwIxQ5TUu7Ofniz/wrjbBuBYOls7CrMdSO61oTzqrmmlUlGWkjV9jPCQ9mdqhwfiEbWX2EHWUtA5fSxp7Tu7ZcBL0JDWUOTj3BMm+thnWBqTcdPFoWfoTlMXkx5Mwyy+z/rrKyq+qjMwa8khou63QCJpPkZ17FmmYnLrmwYib+aukkxPCfqsPF4fw4TD0pFJRu4RelU7t2Htega+2ctBIOTou/4iRSAkROwpY4rpUQmwbFU7t+v1zfBnJLPenD/GmS0B9R6BKRb1gCXCmuVEwtfwgpTHub3N9Fk8bAE1mBOgSdQK2z9jA2Ha5MeM+Qc6XyJHb9rldi4bQboQKaYfu0a5/rtRXZ+v/9GYnpCyjDHvhiiiahAzNGP4GI1f2a4MIDO8dke2cYTG2s4LfG2+53uoQXYXTC3D55zMw7n5m2igKYmysthpn65docUHE1eXLnN6HapBH3+vckacWSU443WWH7C 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?JFbGJ0zinZ5nXoSbjl/7sQx18U6O?= =?utf-8?q?bQOYcwSASArSUHc4ng5l6SOHNgzrJbaJp2isoTFBshLN23MKB2DVxfScqTeRTIn9I?= =?utf-8?q?J0P4pTmZmMUgJf8Uq9GyvzNtVS3fK9kFyQ5ayT0vy9iDoYkdrbJR8fQeZDBU72ftc?= =?utf-8?q?vWXr3be/MXoJqj2OoW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z+iUO/VtEG8/8O2uS0Q53ipnef/0iNrJEIDKGLx85Afxl12GG5OWe?= =?utf-8?q?0rnwhjpetaPzb6fn7I8D4aNhkzCnRBlouU971iu58w5PTay2bTPeRnBM7FCkyTApc?= =?utf-8?q?VMgfk6XVzPHgXYe7oliP0/GaXMRUW0AlViYitFHW1uGvynSp75JqlgfO4CIzEZZt5?= =?utf-8?q?U2+2KPtauoX1TUxVi0hcpF/8M4AC3NJGql1qL1Hv/BN4ZTCb6rdESJ+9iSgrvYfCd?= =?utf-8?q?ExgPjc0ZvC6j0WBBLGo8lXoVGwCEfTW0x9GYnvRJ6utgW1e8eq1Y/FXGydW4g/vv8?= =?utf-8?q?ZVxA8qGvb7TpIcieZrmBsP9hwyszrMpwIS1VcT/4/5Hy+s9N45u0+0QOSfDfZiiCG?= =?utf-8?q?hKfvVZRyf8EbH2fHVOiGYIeYnSEIQa/zFn5F3VfCdgoTCoWxU3Nu/3t96E4ihD5xN?= =?utf-8?q?Nfun1KR9AVDKxB1L6Qsi2DQGYsTsyEGokLO6gqkB+jEHsw5ZhdqhKZJAh+P8oY5Gd?= =?utf-8?q?GEPkOjiV96Tk?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f47e5b0-f645-466c-0dc2-08dc4429210d 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:41.9673 (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: 5Y5WsWKmEfSZBxh9xc/N63AJX8GV96uS8kICDruSk7nlUNd+99Ru9ZxV5LaCWtuQeTgCqDZQ2NXiCFrjUMnNdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8806 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_061744_541997_17B11116 X-CRM114-Status: GOOD ( 11.00 ) 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 i.MX95 DISPLAY_MASTER_CSR includes registers to control DSI clock settings, clock gating, and pixel link select. Add dt-binding for it. Signed-off-by: Peng Fan --- .../clock/nxp,imx95-display-master-csr.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml new file mode 100644 index 000000000000..ed0ec3a24d09 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/nxp,imx95-display-master-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX95 Display Master Block Control + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - const: nxp,imx95-display-master-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 + + mux-controller: + type: object + $ref: /schemas/mux/reg-mux.yaml + +required: + - compatible + - reg + - '#clock-cells' + - mux-controller + +additionalProperties: false + +examples: + - | + syscon@4c410000 { + compatible = "nxp,imx95-display-master-csr", "syscon"; + reg = <0x4c410000 0x10000>; + #clock-cells = <1>; + clocks = <&scmi_clk 62>; + power-domains = <&scmi_devpd 3>; + + mux: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x4 0x00000001>; /* Pixel_link_sel */ + idle-states = <0>; + }; + }; +...