From patchwork Wed Feb 28 05:43:05 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: 13574899 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 56613C54E41 for ; Wed, 28 Feb 2024 05:35:29 +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=hF7JVVE6JApXgJYp0fJQ6kuhzdPRb4QSYnVZiGeKBIA=; b=PHClYkBbEWDDEiwo83y9dWgD7W 6c3XoXQHjSqPg1Lpbd72Hodl2nVeXvqWeP0XKhz4Tq6tGczqbBNnhm7WMEFGOL9iwy/T5FNpleQbx rRkko0uUpy4W0xqWWZKuzCM17URUkTADm76u+3vDK+/eMbO43XY2ftZw9YovN41cXd6ruX2j1v+lF 7FOJVD/T6GjBlzgUUU3/QhhTVFC16k3ZzRHwGS++09NCcwV0QEvF2i6PMsrVSPl1sB7t2o+5ugr15 jRAiXsCOqKjH4d6Z555dvv/034X3h6duR1Mqek7yCrbvdW9eGdcQwyIalEiR83bvuoP8QrH4ll6sI 9Iu27GUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfCb8-0000000861w-3jvc; Wed, 28 Feb 2024 05:35:18 +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 1rfCav-000000085uw-055U for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 05:35:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LAbN5/QHbd4GWjmx4blEacOURqnmoNX/PieStt5mBF1vO2OXIoj3InnhEqQgwZUjwP7PNLMIvzt41bjD6l8LwTv/pPWblReiZnip8cumKdpHgfWaU6Fupnx3YvHYdMGp3U44B4lMxByKlupbrlZxcXxyf0QCpA/ViPzxtaoR62PT+6Rjj/aAeULfjSGMMBC+DEJuunl2vYVZt0uBlTUcKLuZ3s/KPt05axHuTkBto4kGUQI9mW30wzag6QQd7luFURmdZfDtNAAlEC2ylNqYynqoRM/mCes9R0KyMkx5A52f62r9U0fl26K9VJnwYd6d2lxI/Pc2YRhwhEKmK6+jkQ== 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=2x81XcX79x4a2Hn+MWwZJ/ftPFjjeLx5eIYSL/f/Dwg=; b=KzbcPWeqOQXKj7xri9WAphQXNPBNt1BPLnQDzDaA5rj3Rzijbl0UUiE0ranAV2JJp8UkhW5aln7raYn5rRozQzsEWq2PK1/H88fCwfxfLBFcpbTa2dH2NfOOunGHCUhE9e9BVjmiCXD3KEhOPfPOKQkLW5VEWlP63bWN5hCxVS2qL7pBK7/xvCa76nJPjhNkr9M43NPBojKXP0Dq+LHviBN4jeAY5WvYvizzfMJ/y/yUV0EIPaqV2i9mF59Me3iOvUvtuBXtZFjfbn3wMNRGRNT3v1De6RgRY9x7XbXUmNt3wOAQ3Oo8wMJ/6F9qdvj7txzvQU6+05u5eloGgYQR0w== 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=2x81XcX79x4a2Hn+MWwZJ/ftPFjjeLx5eIYSL/f/Dwg=; b=gSB7YasxfOQR8RYqRUs6izpTrdIEtUramUC0maLCiB94GGjpSNCH6sXVlQFnPpoUF43AML+hGrKhB8zbqZ49dIvJQA9MGx8AhdeW4p+9VMyG3MJaq/z+pNoLivJWQvBQtPb3IaHdM2g9pNM/ROElwtEisz8nWlknsXI93t1GrUg= 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 AS8PR04MB7525.eurprd04.prod.outlook.com (2603:10a6:20b:29b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Wed, 28 Feb 2024 05:34:56 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1232:ed97:118f:72fd]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1232:ed97:118f:72fd%4]) with mapi id 15.20.7316.034; Wed, 28 Feb 2024 05:34:56 +0000 From: "Peng Fan (OSS)" Date: Wed, 28 Feb 2024 13:43:05 +0800 Subject: [PATCH v2 1/2] dt-bindindgs: clock: support NXP i.MX95 BLK CTL module Message-Id: <20240228-imx95-blk-ctl-v2-1-ffb7eefb6dcd@nxp.com> References: <20240228-imx95-blk-ctl-v2-0-ffb7eefb6dcd@nxp.com> In-Reply-To: <20240228-imx95-blk-ctl-v2-0-ffb7eefb6dcd@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=1709098992; l=3472; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=lwTL7UDSac8mQFBZK5JoP0xi1Q5SdnWerxBEk85GvmI=; b=ma/8jMSztn6vUaLXt8ZG+eqOxkq12PI5guFPeTa2chsmGp5ywDV391JBJO5iSSzJnE54S5uDe ILeC4RhQ0GXCu5rLQ5R3khpzivx2Fq+nYZPm+eN3lQ40L9eR6wdaNCK X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) 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_|AS8PR04MB7525:EE_ X-MS-Office365-Filtering-Correlation-Id: 12f62755-aa07-4fc1-b6c8-08dc381eff87 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: eR1WYjyFwNrr7JuSX4kSFXRBb/43DtLZc5jNJHtMix1SVZ3gUoIktjIBeD1tYXAR/3+CNE7c91cGGKbGtZAAWaLtyub4D+FHYxrBfqNV0tqPAKpc8L/eJdj2sZYbdyuFJmfmudRxmY81kykRz4KoZXEbZZb5qYQrV3gcEw/cJHunHc/GMlp4bvWwTN6TZxsDcTbij6K8nkJZtFmn28j9JZc+NQvrF9724lvkAbAJmPxE7TIdOba9ecZjIRkSOZXGdbaosA6UiEOFiGU+8Z9OJEtluRGmI8TmZL3DSmSqC7CPCb1J0FwG72MCZDtJacjOeUhimjm7Vbd3CGoHmuMccYYD4xXgVgDORIt+mVo/DgmN5AzrhctQwR/aoPVSnsAoRNwyMm4HsZHAAtxHrYZj0DcLOegRS5qfzOGqoYjwmXRdZlpfiyP+Xz+7ji804tFCpNxXxSeiKDZIcHuTiawFyw448ZEo6VMGxqvVIKEGT7QVqo3sdyAQCDVhUEfMOoLSi8DxoPitOdsYnvTay99EKmL3t2LYDrN3gDRO0rOX33EUpkAxVix7nmJJEPfVNGjJKL6Z7reqRsDoJQNABFkjlMhEO0c0C0lSzV8BIY6Urdh9qSpOzsw/rlAzjfVUUMSG2PbBW1xbIhvoYdGeTOynHu18Q1znut1Cp5Havr0Zu5KoGKlqSsbS/zcPvP7Kw4rKFNtDUl4hGOnNDuUHndd+nW7LvpdYnwaZPwm1hwhCNoY= 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)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?g/ro3in3UVZH23IuSHhVgonoXFBB?= =?utf-8?q?ujl5YGuULI7THMz0ZllgYAQxt5tJugHiaSyx5/zRgaRXA0L/ub0hQvakywd6UCS2z?= =?utf-8?q?LIlSXvHn662njexU74cadf6WS9sIH69L5HWpbpBoNXorhZKUpJRtXHHcr32Rnj/XS?= =?utf-8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wwAgtxaeufOnTVjbFm3R8Iqw6mPMICengV85V2ap80sETdPK?= =?utf-8?q?IwB9tfuKkQWv1rdKdpb0xI0gyja6JKEMK5Fg+83v+oezUoJFGTR4av/SsMWtjvqOd?= =?utf-8?q?IAmSE7uR/XoKIEYcvbASa31YQoCv/tOdAsX8NymlrPeFlmIGfTNqUO271+TLfYHIA?= =?utf-8?q?pqx/XN5USYolHNAP7IqukRsY7MEMd/ymXYwaYWYHQfFFP1iuAEIUtODP9LgZJWC0B?= =?utf-8?q?MbVscy9/VdxsV82uoSIxEMstbpAT3Rt9kJeP8k1H2UIbKXMecE3wTBdfeyn/blsQ5?= =?utf-8?q?851w+FjCOHepQo/JgVjcasK5xo9btx1DJyviNo35sDWFmXLOxRM5yFOo0qZGpkuYF?= =?utf-8?q?wCfXHNGGzNfQWTpiGMo/N/stpzsdgGjlV7gKpzYrshE6o9rp/xCaoVmE1kGO3hP8J?= =?utf-8?q?NEXx6Dcsl98WQICo4X/LAb+1AbMncDRBPAnGmuQG/t5i/ixB7wxRVnxjnbdNlOKAm?= =?utf-8?q?SDT0V33wt+Ms?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12f62755-aa07-4fc1-b6c8-08dc381eff87 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 05:34:56.8025 (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: 6pl5vGkhPQMwD+3clI8e7CWUdncNzkqNMfIsCtKfVw8AH31VVOaGUyfXJLFmtdccqFybvYxhga01sz2YndruQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7525 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_213505_117233_A9683FC7 X-CRM114-Status: GOOD ( 12.25 ) 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 includes BLK CTL module in several MIXes, such as VPU_CSR in VPUMIX, BLK_CTRL_NETCMIX in NETCMIX, CAMERA_CSR in CAMERAMIX and etc. The BLK CTL module is used for various settings of a specific MIX, such as clock, QoS and etc. This patch is to add some BLK CTL modules that has clock features. Signed-off-by: Peng Fan --- .../devicetree/bindings/clock/imx95-blk-ctl.yaml | 61 ++++++++++++++++++++++ include/dt-bindings/clock/nxp,imx95-clock.h | 32 ++++++++++++ 2 files changed, 93 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/imx95-blk-ctl.yaml b/Documentation/devicetree/bindings/clock/imx95-blk-ctl.yaml new file mode 100644 index 000000000000..6d33601034ae --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx95-blk-ctl.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx95-blk-ctl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX95 Block Control + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - enum: + - nxp,imx95-cameramix-csr + - nxp,imx95-display-master-csr + - nxp,imx95-dispmix-lvds-csr + - nxp,imx95-dispmix-csr + - nxp,imx95-netcmix-blk-ctrl + - nxp,imx95-vpumix-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' + +additionalProperties: false + +examples: + # Clock Control Module node: + - | + #include + + syscon@4c410000 { + compatible = "fsl,imx95-vpumix-csr", "syscon"; + reg = <0x4c410000 0x10000>; + #clock-cells = <1>; + }; +... diff --git a/include/dt-bindings/clock/nxp,imx95-clock.h b/include/dt-bindings/clock/nxp,imx95-clock.h new file mode 100644 index 000000000000..09120e098a97 --- /dev/null +++ b/include/dt-bindings/clock/nxp,imx95-clock.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +/* + * Copyright 2024 NXP + */ + +#ifndef __DT_BINDINGS_CLOCK_IMX95_H +#define __DT_BINDINGS_CLOCK_IMX95_H + +#define IMX95_CLK_DISPMIX_ENG0_SEL 0 +#define IMX95_CLK_DISPMIX_ENG1_SEL 1 +#define IMX95_CLK_DISPMIX_END 2 + +#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 + +#define IMX95_CLK_VPUBLK_WAVE 0 +#define IMX95_CLK_VPUBLK_JPEG_ENC 1 +#define IMX95_CLK_VPUBLK_JPEG_DEC 2 +#define IMX95_CLK_VPUBLK_END 3 + +#define IMX95_CLK_CAMBLK_CSI2_FOR0 0 +#define IMX95_CLK_CAMBLK_CSI2_FOR1 1 +#define IMX95_CLK_CAMBLK_ISP_AXI 2 +#define IMX95_CLK_CAMBLK_ISP_PIXEL 3 +#define IMX95_CLK_CAMBLK_ISP 4 +#define IMX95_CLK_CAMBLK_END 5 + +#endif /* __DT_BINDINGS_CLOCK_IMX95_H */