From patchwork Thu Mar 14 13:25:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13592434 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 89BB1C54E67 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=h8LrATNwrFgZ+77DXH8GVClRgh5pGxHdUF/2GzjPCqs=; b=tBx3pMge96wVaQDA1AlpZmBmhd iiXWwkp8Qnq90tZXIwfsOZ+S16Tf4aA+pTYz15/IhISlW78PY0LJidPArO0sABXfCAm4TXKnFCliw 8bLo5yoXjfomPZP2cibc4Ef3BzEMEHf1K8AWZ5pPbvDyX9qShIAHFPtQ556W688FRyG7yqVNx88JP doZFVZoA3jvMW+LWycBr+7xYPYWCJ1T5IjjIP0QLkBRlwNAqRqhvonmIvR7rAWUURR4gzWcklpeFa PyVx+q/3b99uNyfxHa4Py/kRF+yYwwN04l5CYMFpUT3SsBc6yWsAKLSH8X+2JpirOzDGdoS2c64L7 AALp7NQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkky2-0000000EOXv-3EUz; Thu, 14 Mar 2024 13:17:54 +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 1rkkxq-0000000EOMC-0z9Z for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 13:17:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gN+PTq0BDFNL5lvOUX925mwf0u+n3+bL6gv0CDyZZkR9b4+w0+uCZmxV8J3P+VsSrM+YYMw1xprNrva6oVnwL5yoZGWtGa9kQdBGCxvqXVp2e4ozL04NPEiBoUvFbLrxFGbbIuciA6JbU0zQgg7zV46EKhBnW4rnK1EMOsNxUasj/WxJdYXLC6QCMQ2ZnKbWh62OBHyAgNvBOmDuVykA0vgF04p1Jl1egl2HB9L6saXhkm3LzkfcKsT/z5fESPLFG0z8msTKkipG70097Jedo+n5wh5Xi+k67NIaiq0KANs9KugZMCfc5vMjxin8RjWrkrg3gLOw5q+WFjed6Dns2g== 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=rpzqs7+B5NwK2KjUj+ZG2uQtOANI6TEgdtbh0cbT1nc=; b=L5Gc+/on1fkkc01UKJ9acGSCCzLrpYyFAnUVXnamwAMVa7+72w1pK4lMGZGtdPhP+gj/h/C/yPzLvTYitlPmI6FRgc7Aid9nuTXENwMvVT7cY+Um9/wJkO32V8vDSWBj7mzHCtB/mxyvoVLJNKkWmnjtzQ+qc6/Ghm+394BOaLOZ8hGU2B3BV/rY8CLRqiuNzAGliCSaE88/2HAYk5rNfcb2rY4ihuxJAyfxshMXbX8QrCVZkyee9X26gnYkU37EKK7Eb3qw2EVtFd0+Yh3cA2IreKVTTPccYrkcczMZkdjQIM0xQQyTU2zwtgnZLe9Fgqf+dKEbd5kf3xEGx52Aog== 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=rpzqs7+B5NwK2KjUj+ZG2uQtOANI6TEgdtbh0cbT1nc=; b=foMwpdKVfJ3SU6jVedgn+bMLlx2MbG0Ign2TmnCxyJJCy+kDQW8ZW2ZgYW+b+2BThDD78RVXtadJ+knevmzBvIljpk3lFSIk9/3A8JpLugqVqJpUXNbj/3bcNaS6T9h20zYCR2MvNmbCxGom+GWeVHb/rBIIGd0mEolvbsrevMw= 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:36 +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:36 +0000 From: "Peng Fan (OSS)" Date: Thu, 14 Mar 2024 21:25:11 +0800 Subject: [PATCH v4 2/6] dt-bindindgs: clock: nxp: support i.MX95 Camera CSR module Message-Id: <20240314-imx95-blk-ctl-v4-2-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=2772; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=P7z0swJT7PRGt/RAmx6moPJ3qMxKqwVy0GrmLcELtcw=; b=5u7Yb9YrFBzedC1TznEgaM0eVWCsRQDuxosTAGj7Bw/saNz7EMUD1LM7GIUm1R+s2zdyvnhgs 8UrdFAG831dDqgoJyheT9fBVtvrDk69JW9CQL0rr2iIvGB8y1BwieGR 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: 82be0c0c-f619-421a-2717-08dc44291deb 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: c+tDPplS1pa6ZIPJyLvIChxw5cfp+TgswJWCTx2VFsorE681M37To1zry2wTyEUlkguwvtIgEKNs1P8KyI43mxImqoQbLBhNq/Ho6fDwk+jyHpyOeFrlP7dH/czs0TaS5cJ2QeukKeObCuPOAIZb6WZLy4p67QyO1WYrla3hat5FUnwH0YRTMXiIkSK2/golNf1M0nS5LsnHV4mWMvRwlfMHnosm4EBl7Fnp3z65pRVKe3jlGVtMyNgUJ6af/wrV4qFKROfxoqmMZpVkM7up1tAoesqCpa/rZ56MuxOfNLKWakJv8GiMtJjRnKAFeI2xSqvEkI/aI11EDs2zQnkpRMomInOVaBRkJ0zhEgIiL/0OdHbdE599wCRUHNKaxKfBYkrBk95S4driLshwK1xk2g/BrGeSX36b5MJBfODUzZcd73ZADZoHQRPYDzdteLvullpfF7LghcEtGl1RNZ6QOquD/nxFHUJv6V92f8b+X8PDzndo9l6xvOGTyB9AOpFZ9g5/7E73lPyIihB3hrXAD7BzMIgKpNRETS9EoijBxGz6921QpRbvLpOWCghh2YzsoQV5+KLos4SdkBkiIT9GprDaekH2ZASnNlhpVGrjusS+FGKMM+u2iNTtkRKKcFnldNwXK2iNWI6tjo7idlCHmw2U6fPqQk7u+9hcC31PE/RIPumaKsj70f5R8oXabUg9 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?Ow7r5lJ//vFfYPY3rpDE8HU+GaWX?= =?utf-8?q?gCWDfnR/u9K2MM94Ed1RQrI9Uq5p08j+9UN3gKxd4EeRHAi6HXu7Ekzn7uBpnqEhH?= =?utf-8?q?MvayMsRcMmAhyWc4OewjpMUlpkeRIAJ7SNnVrBe6+bL2xS8BuyAVZekIIv9yu8gQX?= =?utf-8?q?Fw2cO61+NYqxN4XQejWFtpGZX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H7PxXOYWCoiCg4cVzIpi/Wt5TX7dXruslOTC1GNs/f2btnhgElKWof?= =?utf-8?q?GPLxnqUrA2nfzBGhIcWl9HxoSLxlSPzBk7fyXD7fIwafJHQCug2gigMWRXTCKEpyj?= =?utf-8?q?55eNCTebE1M0fxmSaC+5Mn8rk6+B82tAnxE7+Liog3WVRcg1C8kEt8I8Pu4PBD0LI?= =?utf-8?q?Fy28leqjj5OyX/7dcMLqaE+GM6/mu2w6azRykHqiccWbHLe2Ys/Tv/Ddnqznck0Ty?= =?utf-8?q?3r1lBF5aBEOfi9jQ3l9MRsGye/DBxkGCe8MWvgrfGqAyBoFAAXQLHayucPhe24CTS?= =?utf-8?q?bZnSFs5sYK0lfOql3cXDQ5UEfyi7LhE9OG7uk4c/R1j4mHPBLd7bPGCoGP8WJxD8P?= =?utf-8?q?fxgigpXM1XtsrIXbOOh8m61ZnVi7tC8/mDqd9h4u9OVE/Xuivx4zF9SQyPmHLQUJD?= =?utf-8?q?A6MSSNgyWUBrRLbdH9LuGYhYSj+HMDgrqnH7JM2h+9wtTEGCC/5JgHJCZoVRrOC0L?= =?utf-8?q?owRTtXfkwdPm?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82be0c0c-f619-421a-2717-08dc44291deb 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:36.7241 (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: uR4QpvTvjokPyDySxkkFyoct6WRqFmo0S4ZWuZq2vZwA2kMymmJ+aacirDruLTtnJdD4XmJiySQGt79BtECJJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8806 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_061742_305633_08AE297B X-CRM114-Status: GOOD ( 13.08 ) 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 Camera CSR is a set of registers that provides various configuration and status of the Camera modules’ operations. Registers are available to enable clock gating to the ISP and CSI-2 pixel formatters, enable transport of various pixel data and non-pixel data types, control their routing, and other functions. Status registers provide pixel data type error information and pending transaction from Camera NoC initiators. This patch is to add clock features for Camera CSR. Signed-off-by: Peng Fan Reviewed-by: Rob Herring --- .../bindings/clock/nxp,imx95-camera-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-camera-csr.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-camera-csr.yaml new file mode 100644 index 000000000000..e62494e3a8b1 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-camera-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-camera-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX95 Camera MIX Block Control + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - const: nxp,imx95-camera-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-camera-csr", "syscon"; + reg = <0x4ac10000 0x10000>; + #clock-cells = <1>; + clocks = <&scmi_clk 62>; + power-domains = <&scmi_devpd 3>; + }; +... diff --git a/include/dt-bindings/clock/nxp,imx95-clock.h b/include/dt-bindings/clock/nxp,imx95-clock.h index 9d8f0a6d12d0..c671c4dbb4d5 100644 --- a/include/dt-bindings/clock/nxp,imx95-clock.h +++ b/include/dt-bindings/clock/nxp,imx95-clock.h @@ -11,4 +11,11 @@ #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 */