From patchwork Wed Feb 28 07:48:22 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: 13574950 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 85C7BC47DD9 for ; Wed, 28 Feb 2024 07:40:53 +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=pLWDQeIOzLNZbQKuH1O0pr8O7Y3tyPKVMjOFnoXdbi4=; b=keuriuNNVvf4U7/ZNrOOh58NuB qIjEU5CVmlOaHRqRMR8KLTeBCkFhJI50pN4MgGZNhbNEt09fjAkdy7kCb3bmDqQc3vnkHiYFLiq22 lnV+hzlKYLfwI1xG/gcpS5qon1N035xDCw7U9qg0yG7AB88pJ7uD6m850YnAozijYJxnCkAtWabMY SqWe88V7+6ML0l2PJLI/taLAXAV4v1mFyUveDXMhm8jX6D+AgOO5VxMHZ1bKVyBJSX+DpAmQiPD9L HK2tG6Qo7K5PfjRIdmQ6RUIAu8gDDx7v+xQn+PLjuYYI4pnmDP19Ud6xtQb8VVsgU7+uQ2A7mQUQ8 7n3qr58g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfEYV-00000008Kvz-13Ot; Wed, 28 Feb 2024 07:40:43 +0000 Received: from mail-db3eur04on0622.outbound.protection.outlook.com ([2a01:111:f400:fe0c::622] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfEYK-00000008KqW-35ir for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 07:40:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kFuow54R4h6bEGE1gfMNXwPr+IqV8KODADbcdlY8TTIERR2w/SSSaVyyWC0F4oDk+UpsHtf5y0LRGtm23NcXwkPULJVdv3/kKJMbgZg7ypzMedL5CJNAfIxdlL7EQdfH9/PxC9ETPF4S0BbjUw3Xkb27d3x75g3WfYoRw2C+vwpv+eYSMcqBlpfZjtlCEdQAJjYZIAsFJBBpitRjA12/iBOG2vD6IEBMmb50l8HyemLbLRWc07s9/YS0CCZQfwBcKWKrc6tO4QGBdLC0WKx0Peimjz3d8om2pmruw2QqhXaRqBJzOLg+LqrejhH0j32j4b1PnJSLmzqiqxKDH3gHIw== 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=vQc0GVce4gyfScQ0+2/NaBFXb/RM7XrxzLkMBjf6AsQ=; b=hphpGr79V+esGsRcVjEkoRNWvm5VFReTomjDVxXaHzHFKatpaOQOQBSVxeymnICNplqf21H4iMwZohkUFsd9Z0dH/GEn7UmjB/K+7u6fMFl9+LYSyY5iB9XeKFH6OKCo8VsE7rm9CrABehMhGk4k7Kj1M6ntJhwVluA3HRnNq5P1AvvyOHfPRAznyupsjQprF4bJYOT8MnrpeHa5jk8FLGcfFQjUaGH2kODOiGgg9dc8YMcsGbTpV+zBwRKEvgMr+mgbx94texltnLSlCq+WUUvruRmvMUnINcs4k17P0r5+jEvQ1QRjGKdccwNT+YVhqp3hUkPdMxEJbV4F2Dendw== 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=vQc0GVce4gyfScQ0+2/NaBFXb/RM7XrxzLkMBjf6AsQ=; b=izG0CWXAU1pZweR9aF5m4HIOXjQQMowQ74KmM9VDO3SJAEPWBWxawpmDhdoe7bH11PqmgwwHVoP+HAPbKeDO7m84HGEefwe573uyXvDu9L3O6V2p0yPyReXhf7i1Kh/0CpT2DnojHk/81GFvSFrJLcT+xQi0pD0EH9+NUCBGvQQ= 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 AM9PR04MB9015.eurprd04.prod.outlook.com (2603:10a6:20b:40b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 07:40:18 +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 07:40:18 +0000 From: "Peng Fan (OSS)" Date: Wed, 28 Feb 2024 15:48:22 +0800 Subject: [PATCH v3 1/2] dt-bindindgs: clock: support NXP i.MX95 BLK CTL module Message-Id: <20240228-imx95-blk-ctl-v3-1-40ceba01a211@nxp.com> References: <20240228-imx95-blk-ctl-v3-0-40ceba01a211@nxp.com> In-Reply-To: <20240228-imx95-blk-ctl-v3-0-40ceba01a211@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=1709106512; l=3472; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=JfHNDvv+LPGya/rrOIhnl+dRILQQPy4kzO230r884iA=; b=KdR3D4sYUsKM8Tl6fmjX9HJ279JCiNUr7srdHSFOuzfdsnWq6or6QwvtaWQHV6SyQpuQeRZHV 041st4q9MGMBW755hCHlHV+jT3gRfChcsjGinCrUsYSFGC9qL6mUU1A X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG3P274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::22) 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_|AM9PR04MB9015:EE_ X-MS-Office365-Filtering-Correlation-Id: 59fcb97e-bdf7-420d-c9db-08dc383082e1 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: NpgdY7bNvYdpuXhfGM7NoZkeWgRUyI3C2ZbNzYfoHWk8ksJY63sf2sLZ9y2GeFEgFW/am2XOcFU0+n2z/vTlZilpe1jycD2hMLiOUEArpI5gXSEepYpqWM8tKPuyJw/UDj7iTUJpgnMoFdhHsg72Fa3KvHnd0Up5xCyGcvVryKSvJPgRROtyCPsK/3nL/QeqlrqRI4eXnHGNfngF5bNxnDv2GhkBOQRlCFW61buy3juMBKRzOhYwHZKgWxQr5LHZlYM/JPs4aiPEybcJ9MO0rbtalUkRieWXba0pINU9x9spB59bCThet/f1T7yDY0pZBHnfekWkmtQ2RXM1/w36vtwTojcCho0pRLelqeSSAeNcwjOT/SLAUakKJOjEExARQEH/1HYQjVX4Lu4qS0rr95ryUFjCuFjV6dUSAXOP12MEdqaqAxzyS2AVezNbuFQoWpMQSqW9XimBFvqN11euOjBofNt466Zg1Z1k7UGsLHcdl5W4o293/oaQexIU6ERQgakrmXoOgA+RrmBHAz3wi+7Wko6WNrR2vHaqMcQ/2sm127KJ+joMylavJgez6WspmQoEQHRdKJbhOWsm6nE3GmiSbKymsdI/WKuIVbZO0AFidvWSzftPae8TwfB4UmKSr/Mf5RTU6zLwhNv+tYHsGL1jlAmkMw36MwfsYZDCNMc0jcoHAx5fb97aTfjCB216aaw6nv3Sk79r+WEqfpARounUrNEOmn24o3xW4ppfHoU= 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?ym+BDPSp8VZiN/ZN3C2F8ZkbW/cJ?= =?utf-8?q?16QKIfTNCyeBri+zZkM0CRVINxkPygxNc7TqjBdxt3/ipK2XYeibfFs2v0feC0x7u?= =?utf-8?q?BsarpSY8uqEvfxGhl0u21+kIw6LSnbyg/oRJAXf3RXdQnPcyREpMyR2G9bbUYlntH?= =?utf-8?q?Fi3ogIGWt/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IQYirK9jG7jDzMtr9SxOL3FZ+9QsnDiIqHPNpq61cqNrt7Qh?= =?utf-8?q?vRoe6UIGaP0eAKT2c7Dc6+c1iStUoN2o5+q9Z473tNAcXSMA+XUeIxdUl6Tj8GXB9?= =?utf-8?q?6r0RgogDMN7egbAkVkVO5VTEspVoesdILRpMgnSvfD1g+cjDnoPggEO+9dTLCp9vm?= =?utf-8?q?ib0Fqvc/n1fntKYgfMZQjar94WH2gUvGSRIEIas/9Ea9eLpH1wq/UiRD6YF9hQIvy?= =?utf-8?q?XL+bcdOTj1x7cM2rHWdTQRfp2P1s/bV3ZMSojtR8iKVGiV+zzKw2aW2+e45KtiNzF?= =?utf-8?q?o1fiCmaq2wAFyNSz0J1ds3UWPZKwHXbmw6x6pM6zdKSqUW81YtlBo3JEM17kCU4t/?= =?utf-8?q?3mDTPINEK1czO12t/Gph28kr7lj2UCYf+3O4zhRrWpPYTII4OveddCbsfY/53gKU5?= =?utf-8?q?duu72z0Z/yYSHgdDK8qdlW48rZPF73P9t8UXsj8DW5qpXcr3GsnTcdpKdT8U60p/V?= =?utf-8?q?gfQPMXpQBaVY?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59fcb97e-bdf7-420d-c9db-08dc383082e1 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 07:40:18.6619 (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: XekR2B8bxeu1OCItAeEuj+M5M7UYcq5WVA6T1b5fwYnUvccdD1I3sGdeyY0pUF9yN5/hvD49iqcd//8MuIyBWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB9015 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_234032_825797_30C092D2 X-CRM114-Status: GOOD ( 12.16 ) 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..c8974b927bee --- /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 = "nxp,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 */