From patchwork Sun Mar 24 07:52:00 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: 13600765 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2081.outbound.protection.outlook.com [40.107.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8E6814F68 for ; Sun, 24 Mar 2024 07:43:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711266241; cv=fail; b=GMtRok+BZt10dKeY32gICDKIFjCQ0578EYH/6Vde6u+jnB6BygQ+eYrYUmQIfkuMaDk3vFiKWs8ko6r/R86ygc5o1EW9+wCp5m0YW0aSeZqSEmMudi4PnTAMbng2D3tkixHs+gn7c+toelljyJ5EsB0bZ/5FwhF1DL73Ll1SPaU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711266241; c=relaxed/simple; bh=m+r5SUBL4v9ntlfw34ONh+x4EEDqaBnMWcDfcBb020c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=hTJs4pWysgo6rU0pcWL8C5RNJBHTp+0jBvS+UN5XDCU9wc/yzXWQOYvvM80DqSlFVbV1GRHrPqkp0ZGPAO8qocw7vnzaTsAUgk1bwSMWgVTkuyXZvUKzauAI+fD2i6m/uDmz1BY7P3DPJMoRPx8a3sVNxmwnqiKs/fZ1TGScZLM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=klkBJ7LK; arc=fail smtp.client-ip=40.107.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="klkBJ7LK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IdXLQ/J0TSycLLH1l8Nlwu8XpEmE4oqcf9kWBwZrcb+OiDYhp9oKXtK0ytHhcSdNiTwsJfrHtCzStuvI5il1yCmn6d8WTXCKzdHmIwXdNlb4vzXXwT2zbNdrtvS8WY3OvlaQhhslFkhpzuVUuxPgnx0plRuCFFRA2lkM6XvQpcA4tGHW8pB7WEkXM+uO/BQ+yj2WjCAOH8TOC+ADGiNbJ5aD8wGBD+X87It8wd5r5Nc+/f/gaAUKLgSDBUqhI705UZZmm4FfXIrVRD9PCOswuEKziePBBjN7QM/edLh0XlcHcMQaPzSaxqQ/lzSBSH92Dns1emS4ksPWaHxMIq++JQ== 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=8vJG7nyYLtXQbNZL4JHRaQLlGcrEr801+/wSHUrIZWc=; b=Xfg+aebyDtUsI82OeRc/pI00roM3pmSPF1QrisDpU3wRX/tOMEyVWfO41Dfr0OZW7JcqhYK38ZwmI6iLIwgVQqYN/z8bJsL88l+m2zn5xfYLEniUqwhMpcizpvQcDVg7KVKLpMqyzDj7KMGYuRwSIkE+2qrKVUxR8Wb8EPRYteJ0rhCWxNzIAMwtQTwmNNmfnIVP2vAYr0JduLpUailp4nDStYZMaU9el2UR+SdYLl+x8szSX5Hdlv/xNV3ZZKcphKuU28d55gj84GoP5LCuGk5vUJ3yUkKvtxS6ioe4nOT+Bpbiu/+GRWG6rXqJllbiAC2Fmk4wmeqsTfv4xxVfDQ== 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=8vJG7nyYLtXQbNZL4JHRaQLlGcrEr801+/wSHUrIZWc=; b=klkBJ7LKyDY3A/RYQfI2j6y4uoVTrSSLZXomPR3xCZem03+aiweMzabvRAfWfnnXZ0ovoOZzr1Gxbfxf5nNuwfmCd73xlJ95Y9KTNaJpyAcq+WfM2feCkCHvj24H1g7+sofiMROdP6UJok4v2sCOTbNYGg5QtvTiGtxSrjU9xM4= 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 PAXPR04MB8573.eurprd04.prod.outlook.com (2603:10a6:102:214::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Sun, 24 Mar 2024 07:43:56 +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.037; Sun, 24 Mar 2024 07:43:56 +0000 From: "Peng Fan (OSS)" Date: Sun, 24 Mar 2024 15:52:00 +0800 Subject: [PATCH v5 1/4] dt-bindings: clock: support i.MX95 BLK CTL module Message-Id: <20240324-imx95-blk-ctl-v5-1-7a706174078a@nxp.com> References: <20240324-imx95-blk-ctl-v5-0-7a706174078a@nxp.com> In-Reply-To: <20240324-imx95-blk-ctl-v5-0-7a706174078a@nxp.com> To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Abel Vesa Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, 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=1711266729; l=1998; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Y4/LUiMlKLBfTGVdss+IGPH4VFaA9w7WVQalTBlF5Dw=; b=pwlm4dp0O9uVJj7nwzYvv+lQvtU/DgujDfy257RmZtQOvRKRUtXq7Z0ShvOrNoemUwRU702h3 n/b1PA/1q+HC39XmvGs5Z/AXfb5VhNH/jxT8yCjh3TIhzUiq9+7UTNX X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0110.apcprd03.prod.outlook.com (2603:1096:4:91::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB8573:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a522348-19c8-403e-af14-08dc4bd62947 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: 4fMMYCsTl5pHnzO7PaPfPQwy64uaSeBVHO64qLQPXc3+ojbAHG2HWytBQW+nYjgcR2vjmYnOnnXjoHaG5Xw+ZPs57CkQm5RBa435wBFmZZyDBE7lhxDc8nb2Bn0oArpLloo1x0PV4Pyd2CbCVIHhTKPfvyUDEf648IMZQlIT4wJnNE0YDL6tEvzDa+GPv8pkBOdZ8M9o/blopvJVG4jAFcgeY07cJOj/rs2vhHD2aC5RM1DsXjL6UeE9YfLWfmyQWACnCTbt53wq2NdnUDaZ3YbeEZd+U1Yz7RreFUf9huIjbDjPS8w+B1+BZLCCA/ivwkvS8tfY0Uo68A9RBSupmHvGtnSMcL9tSlfXHWcZq/AoQ66Y6YQ/VJ6p7zz8pcqx0Ax/M7tLVqEo56bfPMeqayilgi7bqvVRtZb1Ajj3i3lLXHrNnBW+ljkSvIJkjIw0Z8uelWlp7y1OHcHvOx9pX38JH8sfa9bvSRsk2PX9w1vw+Afn0NVA4LSvfY2ZakhbOwcoqlPAv61ZwEyvUdZvuMrGXPgEvguASBs1Sq8FkQcodmcDR/T4iCuuEtBppRMNt+Mde9i+8Zq4ImmAhgm0XfUaeEoZJJiLW1UaFFxu+cHWbWLNbF13TSHCx5877zG1ARXQQoIbt+1HK3njelLkdxacFM5pJ0nFdC7PrQXdvjkEvf3sNW4EniUqGocqvMU/ 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)(7416005)(376005)(1800799015)(52116005)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ykVixhI7nQz72K1JsiseDepm57U5?= =?utf-8?q?4U5IRXGxrP9UXHiQ0ZroyS4kPkdKI/W8uoF119U+nqCL8odRlnaTgfOQlMZE3rkuV?= =?utf-8?q?cjHZsvxjEbyfJz2mniZn4e+Q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OqfwnbaLR/QaOdyy62x6a6DwOl?= =?utf-8?q?mzwVqBuW3KYr989M4EnsB9ZtdudbIY250fglr7iZKprJN6++jRTsFBz5xF+jC6Kqo?= =?utf-8?q?lpHuRcFEm6jZUX3Yw0MAW/8pqzZtZBY5kA/3e5RzMklqFGGhQvjCNRgqRU94QaRqG?= =?utf-8?q?T3BEGBhYA6IzI+WzpIOvpENGmXFaoyjp2ZyJuK+tq0GMg1wPFvSuUboqaL/vkZqfk?= =?utf-8?q?sH2goy3dFWOlEtZ58IBGyrpsiUHKtoZP+V0oOeJVtmZn42VmeeUVHCPfeY4NbmltE?= =?utf-8?q?PKVxyKd4crqi1f+VSyxgNhWfBNFcgIjlEItB+dLuOKLB7UvwCXTtNuB2MW2pz1/CO?= =?utf-8?q?IuX6LuTnCAYUn1fzpEG7isZPukG0twU8qjT2RcUeRcBw2VGN6TDVzopQy41M3xlEP?= =?utf-8?q?m5OTRPSVHHzpZe/O3TnDPYsj5ONOSNl4BgPNGoYcr4SGCaAsG6lQ48r9XcCMMNdXD?= =?utf-8?q?Lc0OSvsN5Thg/+9LBfkN/H0g6gDzBZsqzdw9AQRadom2j+UUGEBu7r2jf7lh/dv4+?= =?utf-8?q?sM/49RizeNkL?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a522348-19c8-403e-af14-08dc4bd62947 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2024 07:43:56.8529 (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: CkqbM7jlXl1zTx4lOmEMmSI9n7Sv6njt680DjZF0Hz7NMdsBLrmoCFtfzSfTjkDv8KYlsi+/KaWSAyyH03PFFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8573 From: Peng Fan i.MX95 includes BLK CTL module in several MIXes, such as VPU_CSR in VPUMIX, 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 Reviewed-by: Krzysztof Kozlowski --- .../bindings/clock/nxp,imx95-blk-ctl.yaml | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml new file mode 100644 index 000000000000..2dffc02dcd8b --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/nxp,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-lvds-csr + - nxp,imx95-display-csr + - nxp,imx95-camera-csr + - nxp,imx95-vpu-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' + - power-domains + - clocks + +additionalProperties: false + +examples: + - | + syscon@4c410000 { + compatible = "nxp,imx95-vpu-csr", "syscon"; + reg = <0x4c410000 0x10000>; + #clock-cells = <1>; + clocks = <&scmi_clk 114>; + power-domains = <&scmi_devpd 21>; + }; +...