From patchwork Tue Apr 8 21:52:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 879239 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2075.outbound.protection.outlook.com [40.107.247.75]) (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 5FA402550AD; Tue, 8 Apr 2025 21:53:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744149241; cv=fail; b=BbznRZxrB/ZT58xCFUVmOnqpKz1fnChi48O4D4raahr5jDThonkkLnpnHa8pjku+YSMmvc5GptstEC/IOOYbbXnO3zCQwc+eVHAo1h5VUgKpn5v28hbgw4I5mEj1BYrinebcMaGNwpmHitSyiuZtoMx42//UQw5a0JxUcPgDJZU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744149241; c=relaxed/simple; bh=z3gQbG0/BrJcget2ANEIY6eVCVMxZEBt3sBKmejs3RA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fqBN+Ai3a/XssSjXxJMwwlNmypPV+xx0v+qX0NHIryxdNanPfJWe46bCBj97wyP8dif8bjRkPFyjp7R/ax7n6oxouaEXMWD9BM3a5+xkutakFRq+K2dAS2572BNSOL3/8BtcVXv4soitpgYTkXASmIlUEXEIe0Of+FZysdd9ROA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=jwDasu3G; arc=fail smtp.client-ip=40.107.247.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="jwDasu3G" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ma2ErLqaHgieM24mxAn95OBjZ2X6YubyNyFPo7OI18Qq2cHB/Z88M4i0eAqE1ZbM49LecCOUGo0LIsI/RJ/L7dwYLHMogVy0s1v4bDWj9vRjvgM1M+Kt4NfILvJeld6v0UEmqKJ9E49lOMlAWHRez0ByqSQ/pT5qk4nVONes9EK6pWp6bvD/Jv3GVgHxhSTiimYxt0izirji3PErjuLvds+h2QNmz/Ri2B8eCOAYuNBTHtuvCI18RenMfBGA7w8JiOyRR32HF/3h9ejtGRWf7Nw4u94EzJE+zmUDcAIxGnUkP99mf957t5fKtzD4IFdOEaSlJr1iM01KTnj9KPOsJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0Yhkdp20aOZOX3AoEgvuSdI/148ioIfxDQbW/0DtkqA=; b=TYRAIr6VP28V49yyPSV90R1i5ezgbGW02tuvDWyYpCaQ/4d35mMcqCreyI/+j3ooWKQSV1x3j5zbSaSt9D//YPGG0/S+69asgCff7uLxiXkUAb9wZL/fPLv2h+kP9XP58N9vy8T42kNrIRcftAriH64Arf9oXkr4iMkt/giACXGjJGgOZkw4d0s+5fLVf/aZafmw5wmxyBDBNWnW+uTA3DrgDhoUHliiAWi9C0GabWZo4qQmjHvSyMXNB/0/f9RRl4t386EnMzgIa+Q98ljy+GevxniHN+C7XuvLjs9YYPCqdN7O6TQuzzamoPt84QZmItJNRHVoQ32vrcaC3ED+sA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0Yhkdp20aOZOX3AoEgvuSdI/148ioIfxDQbW/0DtkqA=; b=jwDasu3GqGnOxH8tLusK4OBaOaeId15BX3MkDqGiPaqN7EtRGJC34zUY4IciKlwAMYx8PubEHpvieczq6BJBM/NabW7Ir5K4OQOcZ5y2kuCYIL1ikiyNgDmwcAR94/zibDT4XDMP4WLl/fwgv+X/JYh/UZ4a0ZC//8RQ9ZYVeI5DfGhOyzGf2vCzgDYONfKdnB+82OC03SS15wE0JzjgTfwKksnWeEaR0vuFlg6qVazm2AXLwqVFYEC99KziRd9gOiNk9B4H5yK3MjjbHV74SM/mlE/6Yd86xDCURRo0IMLm1g9ErfYXZ2AVbwGQakWx90BZy2abE3uxSdlVqH6j8Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AM0PR04MB6993.eurprd04.prod.outlook.com (2603:10a6:208:17d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8606.34; Tue, 8 Apr 2025 21:53:57 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.8606.029; Tue, 8 Apr 2025 21:53:57 +0000 From: Frank Li Date: Tue, 08 Apr 2025 17:52:59 -0400 Subject: [PATCH v4 01/13] media: dt-bindings: Add binding doc for i.MX8QXP and i.MX8QM ISI Message-Id: <20250408-8qxp_camera-v4-1-ef695f1b47c4@nxp.com> References: <20250408-8qxp_camera-v4-0-ef695f1b47c4@nxp.com> In-Reply-To: <20250408-8qxp_camera-v4-0-ef695f1b47c4@nxp.com> To: Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Frank Li , Rui Miguel Silva , Martin Kepplinger , Purism Kernel Team Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Chiras , "Guoniu.zhou" X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1744149229; l=8826; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=z3gQbG0/BrJcget2ANEIY6eVCVMxZEBt3sBKmejs3RA=; b=dhBx4Ui8FWTWLWDsAP8pxl3XOdt8fGbZhYsUekrcUSMO1dZoKreMrMwkyYkS1J/6J/4xP3pqd KoJtsHfhDhMDp9pHtLBRCsHec6kJYQ+yQXOxEJc8TXcYgnDh5WHpSK2 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: PH8PR02CA0047.namprd02.prod.outlook.com (2603:10b6:510:2da::8) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM0PR04MB6993:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b4c211c-8258-4779-5d6a-08dd76e7dd25 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|921020|38350700014|13003099007; X-Microsoft-Antispam-Message-Info: =?utf-8?q?WHBRP5Jp1AnjtoMTOiTeg7pXcKT9ti8?= =?utf-8?q?reyxENhlC/ItggrF7+pCNHqy0xXnk24SXkR42KxWBfvDYE1zO6p2hfDFknGDrVX+y?= =?utf-8?q?kWNy7JOL3p2+nBA08tBPZ+TrWPjd/rWeOuBVKMhoP+covTdbVXXaGaZxsQeZ8fXaq?= =?utf-8?q?neEc2xZzvcyAdMm4FKUVkCq01SEvDX+4amvdXRwxrQN/n1OLSXqqgmEgWJniur60D?= =?utf-8?q?UDkabFui6xyWxu6a6vBz7nAj6WK7cCtgGBBYSUdmj3B1LKsnOpoIS0qI9DUIAic3b?= =?utf-8?q?IHqZrsgl97tIj5OE8EvofksGflHCEnzd43mvGxLpRvkm1ztxV7/bbkdIaEjHRy/yH?= =?utf-8?q?UQmwCykfWFR2jsVjx/FoGPBPsY8SBIpCD5emb6f9X8SE4wHWBXyIBwV2Mhcdr/fzj?= =?utf-8?q?72SwwltJ1TDVRsVp3cFDDhNqsUmiqRc2rTAWM8GjNrvYGk8mupeIGKz4fUrI4NCxK?= =?utf-8?q?XcsTKeMRG7dha0p/evkXxj0X77S9Q1FIiIf9tC2j8L+l1byqpE8It9zdan/1MGUpH?= =?utf-8?q?v2ciuq/nMOefs+1p+Wz7bFlNV/lXEzm1DfkqSVNA8oWtql4KRBSQ7xXLJl6nuuzf0?= =?utf-8?q?C4dWEP9WEuhuxtNSA/adzu5/kbmXRZuHQuGaTCk37JhLm6PK9aQfHmoq01aTmj6aj?= =?utf-8?q?tY6yn+2JCUidJ1XP/PewRv2KoHW3wnHB8QLiFQrpUQBmDIwXLhtPmsYyIMvKldYsE?= =?utf-8?q?uwWSfVqb3DVn0ldulp4jbYO8zGpUaHkXcXgvY1wcjDgj4b2nwXMq2oRArgbx9o4E8?= =?utf-8?q?65aTv+E04clry6xmGho4krvFLijPHf5ICUiGs/pFpkMdZFh/8eQFvAaSqbxYV6V84?= =?utf-8?q?4I6SDwWLqa/IgZCFf6rfK+gWWvY0eCEzc4orFkYTbpWjGQjrtyXp+af/F6fUwILSD?= =?utf-8?q?B6ryRg1xOBu8erqRz5XmWCb5RozSb2Rb8SS04AAAt8Fx93a1HmYsgQu2onXK+3JrZ?= =?utf-8?q?oSE6IRF2mD1h/bHVGusoEg3qPqT9rQAQBDRJt88OuyJvBPotN6xzqfV5awBXiZKam?= =?utf-8?q?zzYa11jPdz/MqjsQiBxdqjSAoF8/R8juBQSFLR/q/or2mUzKN//Xr7rKaDPgAFwOU?= =?utf-8?q?RWJVRKW+IPjTCe+8o/n3YsqLq3UWmU/Ksqk69w8h4hu8WcVv1Avf/ihEXcp/LUU06?= =?utf-8?q?CQDmg4m7Dzy++62vwYtiRnUS+pZy2X+xEzgkznDSpUxLlLZII/oOCW9vqc7yreWnR?= =?utf-8?q?u5ItLk191Q5SDo+wAYc/16zE74WBWpVI/VEIohA1OzZgx0gIVyueEd2HGLysOOSsU?= =?utf-8?q?txwbvrZXkQhpZnT63U6ItoXa26HS4StYlymtBreY5aehE3n+sqfW2IbyUjaO40KCj?= =?utf-8?q?QpKRfS4KMkAXXz93YXdDT35kxzh7rH09nQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(7416014)(52116014)(376014)(366016)(1800799024)(921020)(38350700014)(13003099007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LIW0qG9yUx+h87PMhhK2e/7DfQAi?= =?utf-8?q?ZuVkagmiwPWvHPL37GytRWV/IKvCT7xJLRBj/SSyVuF8c6BJMqrAatXuut0Z7rnMn?= =?utf-8?q?yDvgjPBlEI49YKDz6Zlkqzm1f8+6XA258d4/ROdLjqFqqmuhvwbh9NhXARrwwkp1I?= =?utf-8?q?MvG5DfkSnMSyZkol4mBQ/2FAaqUOpXEzNXZ349Xuee3aUr8ujUoSCmizhU12Biuxi?= =?utf-8?q?LMGkHK8/wKd/1UXxTWfZHbIxkjOX2heyngkaGGyIiXQxeTX3OH5hVGC/L/fruKm5P?= =?utf-8?q?4kmgXOWC0WceLsiX8Pf3CaJF6Zt7RbDuiTALTCBLMmiSJk39IjIxvh5eVFo0hDzFM?= =?utf-8?q?4XJcB4qutedcTbSOTNa4bzG127vfFSscrWFSUZ8cH8ZMv5hlmkkyF7jeW5XCXj/5R?= =?utf-8?q?MJO4k+QktIoQtccoM5MZDqNn/7vWQywUdLRHJyAgyiO65xaLA1B7+LULmgOGU0qUa?= =?utf-8?q?GJZPAktOp57jToWJICbiPdw51GVU9k/bOCxUEqwEL75ScBHkRaFCpZ8o40ZKYdmhM?= =?utf-8?q?Hfej4DuXkU9jrjWdybqzCvHlxDG4VhTUt0qfIt9uwZr1gUTyMY84qVj+20lte9nCe?= =?utf-8?q?Sk9IdPM9+RfnwfJvEf6dQZ2xLM4Bvo29kxgCXkvid5C1IUewUeqaYDUjvDgNkgVfP?= =?utf-8?q?6xEjuzjhwlrO5jJCVAFLVtF6sxhtMYv1/1PrPICcBHo6RhG9t+vpdYv321l1Qb3DK?= =?utf-8?q?/Tqeve36PMx0+J3qCDXVwm5yhz+oXjBe4XSEBDIINHtp7SLbv+d7pEfv1Ani9Aldz?= =?utf-8?q?iL+Ap8aBhkJVyBFD68/6SRgB7eFJ+p2GYA1662f5P4AjWlCvnOmYuBgO/TZhdmHX0?= =?utf-8?q?1nSvxe6Lg35m9GrrDESwzBe2mJHZavqb6Xogay4j558Vyra+Ihrxa+KS0WoDPtcQE?= =?utf-8?q?DsUE1VamnVgt75JhEhVEaX7VplaUAKVewlg42oB/5HyOWOiPcdBjiyTJ0MrsZldav?= =?utf-8?q?43CU08NWsbID6J0vBznHSYCyCo7ktUzT4RpAJUZLKhA2T0lfDBhi5S82rh+/8V69E?= =?utf-8?q?otpT42beBQggmq/Uv72KCZ4+UartEvODn9YBeOIJZErF3QWV0ihmIPxWF6bLWjkzs?= =?utf-8?q?20zyLIizB83qgv53FDZS8yB82V6ABfTQsjEm/RTWx3UZ9sIcz8SYYn7QquBdTbZUU?= =?utf-8?q?5LlDl/pA1TvD50yEMygyDHkzXZnQLKoFT13ObHBfr/go0zK9SdP32M5vTmH//xXve?= =?utf-8?q?5bLJH7pFIifXlITyt9QIVKJehSeaAZOz3XfFBXgSxdzQt69XE+8rWwPolmzBFpfzg?= =?utf-8?q?eBT8qT2e3I6Pr6BMjjvHCygzwV7Fs1jCdfrW3ShW8I7MnbPrUONPamUGo+l+ESE5A?= =?utf-8?q?lQZm1+aZ4Bj7ZJsHfGMgCVPmH8/Wfvf9t08gCZ6VecttPnrCNzbnRvbi4Y/Yz9fb0?= =?utf-8?q?lPpzKYAj5Rw+45G4Wn+thDVbBjzBYfpSTpzxwed9wDRTqyHOTZ69x+PjyV3eYO9da?= =?utf-8?q?AWW1pT+uh8cVj9CZ+Ko49idwAFAx7p3CL1odqiB+JZpcQONBhnq7mAu8=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b4c211c-8258-4779-5d6a-08dd76e7dd25 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2025 21:53:57.8496 (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: XaxOfFAf/IjtRcwlx3wG6uk+keqh+sIO3TFDyGI+LT9f/2TJuF+B0Z+xhZHqKVujlkJLuNAwPIWc921YI2VqbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6993 Add binding documentation for i.MX8QXP and i.MX8QM ISI. The clock-names, power-domains, and ports differ significantly from the existing nxp,imx8-isi.yaml. Create a new file to avoid complex if-else branches. Add new file to MAINTAINERS. Reviewed-by: Rob Herring (Arm) Signed-off-by: Frank Li --- change from v3 to v4 - Add Rob's R-o-b - change qxp clock/irq/power-domain to 6. (QXP C0 change 0, previous chip have not production). - fix register size to 0x80000 for qm, 0x60000 for qxp. - fix qxp's irq number and clock change from v2 to v3 - none change from v1 to v2 - create new file for 8qm and 8qxp accroding rob's suggestion. --- .../devicetree/bindings/media/fsl,imx8qm-isi.yaml | 117 +++++++++++++++++++++ .../devicetree/bindings/media/fsl,imx8qxp-isi.yaml | 106 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 224 insertions(+) diff --git a/Documentation/devicetree/bindings/media/fsl,imx8qm-isi.yaml b/Documentation/devicetree/bindings/media/fsl,imx8qm-isi.yaml new file mode 100644 index 0000000000000..93f527e223aff --- /dev/null +++ b/Documentation/devicetree/bindings/media/fsl,imx8qm-isi.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/fsl,imx8qm-isi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX8QM Image Sensing Interface + +maintainers: + - Frank Li + +description: + The Image Sensing Interface (ISI) combines image processing pipelines with + DMA engines to process and capture frames originating from a variety of + sources. The inputs to the ISI go through Pixel Link interfaces, and their + number and nature is SoC-dependent. They cover both capture interfaces (MIPI + CSI-2 RX, HDMI RX, ...) and display engine outputs for writeback support. + +properties: + compatible: + enum: + - fsl,imx8qm-isi + + reg: + maxItems: 1 + + clocks: + maxItems: 8 + + clock-names: + items: + - const: per0 + - const: per1 + - const: per2 + - const: per3 + - const: per4 + - const: per5 + - const: per6 + - const: per7 + + interrupts: + maxItems: 8 + + power-domains: + maxItems: 8 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: MIPI CSI-2 RX 0 + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: MIPI CSI-2 RX 1 + port@4: + $ref: /schemas/graph.yaml#/properties/port + description: HDMI RX + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - power-domains + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + image-controller@58100000 { + compatible = "fsl,imx8qm-isi"; + reg = <0x58100000 0x80000>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&pdma0_lpcg IMX_LPCG_CLK_0>, + <&pdma1_lpcg IMX_LPCG_CLK_0>, + <&pdma2_lpcg IMX_LPCG_CLK_0>, + <&pdma3_lpcg IMX_LPCG_CLK_0>, + <&pdma4_lpcg IMX_LPCG_CLK_0>, + <&pdma5_lpcg IMX_LPCG_CLK_0>, + <&pdma6_lpcg IMX_LPCG_CLK_0>, + <&pdma7_lpcg IMX_LPCG_CLK_0>; + clock-names = "per0", "per1", "per2", "per3", + "per4", "per5", "per6", "per7"; + power-domains = <&pd IMX_SC_R_ISI_CH0>, <&pd IMX_SC_R_ISI_CH1>, + <&pd IMX_SC_R_ISI_CH2>, <&pd IMX_SC_R_ISI_CH3>, + <&pd IMX_SC_R_ISI_CH4>, <&pd IMX_SC_R_ISI_CH5>, + <&pd IMX_SC_R_ISI_CH6>, <&pd IMX_SC_R_ISI_CH7>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@2 { + reg = <2>; + endpoint { + remote-endpoint = <&mipi_csi0_out>; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/media/fsl,imx8qxp-isi.yaml b/Documentation/devicetree/bindings/media/fsl,imx8qxp-isi.yaml new file mode 100644 index 0000000000000..bb41996bd2e36 --- /dev/null +++ b/Documentation/devicetree/bindings/media/fsl,imx8qxp-isi.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/fsl,imx8qxp-isi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX8QXP Image Sensing Interface + +maintainers: + - Frank Li + +description: + The Image Sensing Interface (ISI) combines image processing pipelines with + DMA engines to process and capture frames originating from a variety of + sources. The inputs to the ISI go through Pixel Link interfaces, and their + number and nature is SoC-dependent. They cover both capture interfaces (MIPI + CSI-2 RX, HDMI RX, ...) and display engine outputs for writeback support. + +properties: + compatible: + enum: + - fsl,imx8qxp-isi + + reg: + maxItems: 1 + + clocks: + maxItems: 6 + + clock-names: + items: + - const: per0 + - const: per1 + - const: per2 + - const: per3 + - const: per4 + - const: per5 + + interrupts: + maxItems: 6 + + power-domains: + maxItems: 6 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: MIPI CSI-2 RX 0 + port@6: + $ref: /schemas/graph.yaml#/properties/port + description: CSI-2 Parallel RX + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - power-domains + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + image-controller@58100000 { + compatible = "fsl,imx8qxp-isi"; + reg = <0x58100000 0x60000>; + interrupts = , + , + , + , + , + ; + clocks = <&pdma0_lpcg IMX_LPCG_CLK_0>, + <&pdma1_lpcg IMX_LPCG_CLK_0>, + <&pdma2_lpcg IMX_LPCG_CLK_0>, + <&pdma3_lpcg IMX_LPCG_CLK_0>, + <&pdma4_lpcg IMX_LPCG_CLK_0>, + <&pdma5_lpcg IMX_LPCG_CLK_0>; + clock-names = "per0", "per1", "per2", "per3", "per4", "per5"; + power-domains = <&pd IMX_SC_R_ISI_CH0>, <&pd IMX_SC_R_ISI_CH1>, + <&pd IMX_SC_R_ISI_CH2>, <&pd IMX_SC_R_ISI_CH3>, + <&pd IMX_SC_R_ISI_CH4>, <&pd IMX_SC_R_ISI_CH5>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@2 { + reg = <2>; + endpoint { + remote-endpoint = <&mipi_csi0_out>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 78467ad7a8fef..977f338bec04c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17428,6 +17428,7 @@ NXP i.MX 8M ISI DRIVER M: Laurent Pinchart L: linux-media@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/media/fsl,imx8*-isi.yaml F: Documentation/devicetree/bindings/media/nxp,imx8-isi.yaml F: drivers/media/platform/nxp/imx8-isi/