From patchwork Wed Feb 28 04:31:04 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: 13574858 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 9C74DC5478C for ; Wed, 28 Feb 2024 04:23:34 +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=Slry9q1B1+rBznMwVNvJWOzEvSqQl3ePEzcl4Ae4lSE=; b=XwJjm0zuHQdMlih7Yw+6pDQlqP OnX3XUzoCXoryg0ctEVDYrnzvueJHa/7js5+PCnsvxrA7BfxLOp9TzAtNRuv8/GvYtmO4+1hiqZ99 ZpwouPot3/symZEWd2x3KuxFTVkBf+yUhEi2aQXdPq9bvQX4DgF5fK46NvNeeo2WfxV6n+sH6Px3V rd1mNUIb7gPtvCWHzrxLcBW1YR/uyy0RuGPfWabua7rad+m+WfaFZt0r7MSaKFicmyUqsl7oHeAPi VsIvJJoJrggMmIqVt4+ZkednC5hALWxuXjELi4ssVdaA9EXPtoEmo3C5F3G9IkvyZG6BzV5SsIN/p qK0nVSyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfBTW-00000007xNn-16fS; Wed, 28 Feb 2024 04:23:22 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfBTG-00000007xCS-1hPD for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 04:23:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bo52VduNkhNYc2kJ/qdKgeb4lgnMb7qm/B3bNMy3cI9xRdgWZJz4ngSz8aPJMBrGxuijs0+gicdg7lW7YcymBzvJsxrQ9yqfguEs6xwClOLF4iP3dYPL9an+tlSC6fcMUVbTNkanC2+Mcux1ac/4rHR4sosbG+VXHOibNf10TCg1eaAW0R1ax2F4us0ezZYha9cccFsKnnva79qlUT2mtZVKK3azxu2vF9PzyPrVzxrmssvW44Abeuj4x51mcOatWT4R1Vius216VLIts8Vd+0ayrBRXyd9r5TQvskGQadEkFEgrUBVLxuIvug84shVhUZhsefVZtXOiFqFfXStViA== 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=ORNNA6N6AjT7SXeItuRt8JCWRVDMfFhRORx5WAf2YcU=; b=QALe3Oe/Rvr9l4fOeDxIlIj/DCmTEfKuIRd/kFKE5iZqWpD3TiojbGaRdBa3ZPvwvkR/bbu9P6MvaZlqYo6kq8yIuB6/EDVfVY5HxQNssq20A+Tm4idueJp8I+aup4KMX8LsLuNdx9pngz7xLsI2/LMVK6KXBI89uMI5Tol/CfxsuSZSB6QyTpH5Etto8SVdPyXGrnVEmy67AsBnuOxrvTO8cFQibTjx3RVtRyCFrMrgAJgsBIDYMfOXwR61eh1Hndn7F+KdJW4m1RSbXpSMShufx0XMnQCQI7rsBDUX31z2RkwjBrgOgpgUsRDTfHF/u3FyVb6uSuB+kql1akLZ1Q== 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=ORNNA6N6AjT7SXeItuRt8JCWRVDMfFhRORx5WAf2YcU=; b=X1jP2W1SrQxSZwpG/VDj6UUyQOxeIhSL7ETRVaD+jiTg2QoXiBiY6ksUgg8QyyK/sHizaZAC8E+QPrJqpfATdKHrUUyUyf7esgq99jLB1oCK06u3Hga9AzScHBYliSQ8Q9xSKW+xbIJ+Gg26MZLQ0hvBN/mnxN82wQSXg7fDC3Q= 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 GVXPR04MB10071.eurprd04.prod.outlook.com (2603:10a6:150:11a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Wed, 28 Feb 2024 04:22:58 +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 04:22:57 +0000 From: "Peng Fan (OSS)" Date: Wed, 28 Feb 2024 12:31:04 +0800 Subject: [PATCH 1/2] dt-bindindgs: clock: support NXP i.MX95 BLK CTL module Message-Id: <20240228-imx95-blk-ctl-v1-1-9b5ae3c14d83@nxp.com> References: <20240228-imx95-blk-ctl-v1-0-9b5ae3c14d83@nxp.com> In-Reply-To: <20240228-imx95-blk-ctl-v1-0-9b5ae3c14d83@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=1709094675; l=3477; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=l8DKBMnJPihRSjEjA5EKu1UUtQxQgZicRf3XlO1U4jk=; b=yCS7aqsZGnh5va/ERTHo/c5phirQISOxMD56HWimAO+PmHc0i1tlmPQtTm9ARPL7nqzlEAcsM OJB7eaUJBl9Bh2+3rc1ZXoPNeohadKPs8UBXmM00f1pdI2fyF4t0Bl/ X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:4:191::19) 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_|GVXPR04MB10071:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d535e3d-5e1e-43b0-4616-08dc3814f143 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: UcGyvfH+3Or3SEiMz1eii844I/QfxPKZIrVFL8E78Yf4toj8m8GCSExkIh4ucLQmXUmwgGCPUE3wcGKdmJStCDzJl9PoWGS7DBEeeI8mZsDYv+WjalmfrQmuLuAdQIWu3D96zQIUc+/SEFGstagiL+9Q/x0BEZatzwhOkUjGQLorjKkl6uO7hmtUSMMFbrmhISZvBpUiYE6TnipMNvk2eVXkvCLpZqzjZ7mxsFHuxSvG6RMRYw/PzqVfT4SyRUKi8J5iUh8AA5pbgXg6ze4NFCKRFyBcTHduzsXEuGHXfdjku8nH+9Kgf/fDLfdF1hln4RpubSAlFRmV7Vkyk4a5Hh5IIbIqon2oJjZjbrNLUzwKMlKgrP60D9jgnKcN9GxtEz1xG6pIkKDdRcme3Bx/PPrYG0o8jy4y6kp/Z0qIVQntMnLGxYhfiMYzDnzI7vab9nvDdcnvd2tc8TtfMHn9SHtHNbct+XTS79gdB9ylN3Z7pMI+eYEass4ZuVUkqcqxy+jT4fXGRaIUMVSjTuPNlgbPV6hcpz4Vpgmdka/6wN8VTMY8idpQrdfiXG8huiOGp3Qgz9wpL1rOvWyQan9zzEgfHI9r1+TfJfbnrGivqszhY9TIHuqqijuZ5BkQZOk3pAsQj+PX4OyzVDbzH2gJIwk/cRhdYVxgHnpCbJLQfEvwZ/IWqog1YkQl0bg9WX07aOJrfV5IyJ+3IzChzhBTCbj79JXcXwjSDkSCC5DCx7M= 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?v6XnVzkvoQdoUZ9sTLanUGUrByR7?= =?utf-8?q?DwWyhnEWnkFEaBzC91yZf6OJcZ0XMsO7Iw66YrlHkheF8L1iL57UY2RMFWesLuyVO?= =?utf-8?q?XORw0mMluoL+pTAFwtiMFQUtaCYV1AYTfwakVP8F+BWxCO7+56zukSVfbM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?= =?utf-8?q?aZFfmqCoT2A7Fv6z0hjkYjNcVMx4ykz1lchGs3MXzqe4U1ujVW6afoZC/03Oh+z1G?= =?utf-8?q?Vg7AScrJVtgBN38kHDDO3PWgD4ijva5ooaHqKwp/OHCMWTBAYs7qUCRf7Dpl5IlQ7?= =?utf-8?q?RfoTnjTCZ3FSuyqnXC3vrd/jRkUf1tdWEuNrfg4dLKSPSMsrG0WxI3Kr/RHfXaIvH?= =?utf-8?q?kf+WPT2OczXj9SycNCR54+75fVV0VkCK/jVztGv/uMN3lNnUaWehpwJk+QAHGm3Xf?= =?utf-8?q?oESj3n/LCMr/hT3FF/rGIbmcjOgs3AzI9FQaIoiAUo6MIuOficxUDsrz88sEKx1T8?= =?utf-8?q?heGOnRSnepaJmsui18BzH2EZOTdikbZPZT72FrEzB7WJUUtnmLFVqSAgAHvrzIOW9?= =?utf-8?q?KPcZn57IuEYUhSieluiBzBwEID0Q4pPkyxTAfw3W008EXzCsj1N0Nhwn607pdGmhw?= =?utf-8?q?8Of/sqxDLRUSUaPffPrlN+gs0OVTPuFNwMtPwitY266Uef8V6cxvWk9Uk5Vh/oJKM?= =?utf-8?q?f6o13s5dl9o5?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d535e3d-5e1e-43b0-4616-08dc3814f143 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 04:22:57.9095 (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: uH2zt473zSNNeQ8HBKL4TfUAr3UBB09fLbSKXpW7fDSzim/llGYmH7+meVRg2ZyQ47YLkDXmuSUaIBfRl36D0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10071 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_202306_651126_E38B5A61 X-CRM114-Status: GOOD ( 12.06 ) 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..179bdd33504c --- /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-blk-ctrl", "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 */