From nobody Wed Dec 17 10:58:41 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70995C4167B for ; Fri, 1 Dec 2023 05:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235186AbjLAFKC (ORCPT ); Fri, 1 Dec 2023 00:10:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377343AbjLAFJx (ORCPT ); Fri, 1 Dec 2023 00:09:53 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 124BD10FD; Thu, 30 Nov 2023 21:09:59 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B159j6X049907; Thu, 30 Nov 2023 23:09:45 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701407385; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XMVpgTUpD7X8Xas0UpIPQDpn9bG7JO5exXfDT3r8mP38raWhirlP8HUelb+x2Fi8Q AJJmKR/HHBtaujXmwCjpazlTMWCusoNelJMZBLCbPr9qABQb6thE/konIqXF8sElmP K5BJAGn7UidVTrRgVy/lsojbPGxOE+zefGvopzas= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B159jeN031236 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Nov 2023 23:09:45 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 30 Nov 2023 23:09:45 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 30 Nov 2023 23:09:45 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B159iAV076144; Thu, 30 Nov 2023 23:09:45 -0600 From: Jai Luthra To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Jai Luthra , , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer Subject: [PATCH RESEND v3 2/9] arm64: dts: ti: Enable CSI-RX on AM62 Date: Fri, 1 Dec 2023 10:39:17 +0530 Message-ID: <20231201-csi_dts-v3-2-9f06f31080fe@ti.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231201-csi_dts-v3-0-9f06f31080fe@ti.com> References: <20231201-csi_dts-v3-0-9f06f31080fe@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2229; i=j-luthra@ti.com; h=from:subject:message-id; bh=kqPUeOQSnHjljHs1KFWbF01F+dO4ppTwew4BygHBqvc=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlaWXobbb3eBUCOchNjKqjU+x+v60BvFj8r1KC7 42piP8URWaJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZWll6AAKCRBD3pH5JJpx RXKVD/93C1IWwBRxmp9hpxBxNxhDqh3CWflOlnOVa5flisBL0QgKvdGPTE8klr/frvyrhG61SPC /zmaCzeabF5LdkSyqLZdGozKMyKNZ5YK7FYHWZE2lbUZNxU0kQToSkBLkbP4hMLv9BjbqYiIaH4 uEd+wxz8yM2iGisyCnIlXZW3ZvlCK2aZGOdHx2YduQ271kja6Qw7KPEGK/2r8VYpQfwL1L6pR6n GNWdBBX9YVSOUc/IVey9OkfxORuQFhITPi9jUJrMOv7M7VGVxw6RtXUppHA5hKarjZYel/0nqZG ldPi0RBlQdKfvVN5gd65U8M0cT4w1oW7noLyo/Fm810pBky4t6agLBIRok0/pluOTa90aM6pIll Z6YxS+3TkDGeLD4Obo4JLXMVTzFb4Uihs/sBPKtSXJfaGX8AuL9w2/y9iJogJRNEyUcJLkQCcgN 39W2ZawOXAp+y6yO2pF7msrHd3Zdj08KhAyUGPiZyb0NNRAsLsuuSPRqWs5dp8Y//uaPpbCJ1no ketLdffRw3rZ9GVbTXq+A6NdB/3abiH05nlGeAhJALxHqfHPjaxJva4xNhk25II8fmKkI/rf4s9 4MEDnhXSuyYvpFlhXveY9dVE5aec+w9txrAdwhwHFu9sAwcdJZasW3TMuk9t1pk/Q73BNfUXG3Q tnyuNLy//VzhZng== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The CSI2RX subsystem can be used to capture video frames from CSI-2 cameras. Add nodes for the CSI core, SHIM layer, and the DPHY. Tested-by: Martyn Welch Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 62 ++++++++++++++++++++++++++++= ++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts= /ti/k3-am62-main.dtsi index e5c64c86d1d5..c0a95f6aff5e 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -965,4 +965,66 @@ mcasp2: audio-controller@2b20000 { power-domains =3D <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status =3D "disabled"; }; + + ti_csi2rx0: ticsi2rx@30102000 { + compatible =3D "ti,j721e-csi2rx-shim"; + dmas =3D <&main_bcdma 0 0x4700 0>; + dma-names =3D "rx0"; + reg =3D <0x00 0x30102000 0x00 0x1000>; + power-domains =3D <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + status =3D "disabled"; + + cdns_csi2rx0: csi-bridge@30101000 { + compatible =3D "ti,j721e-csi2rx", "cdns,csi2rx"; + reg =3D <0x00 0x30101000 0x00 0x1000>; + clocks =3D <&k3_clks 182 0>, <&k3_clks 182 3>, <&k3_clks 182 0>, + <&k3_clks 182 0>, <&k3_clks 182 4>, <&k3_clks 182 4>; + clock-names =3D "sys_clk", "p_clk", "pixel_if0_clk", + "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk"; + phys =3D <&dphy0>; + phy-names =3D "dphy"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + csi0_port0: port@0 { + reg =3D <0>; + status =3D "disabled"; + }; + + csi0_port1: port@1 { + reg =3D <1>; + status =3D "disabled"; + }; + + csi0_port2: port@2 { + reg =3D <2>; + status =3D "disabled"; + }; + + csi0_port3: port@3 { + reg =3D <3>; + status =3D "disabled"; + }; + + csi0_port4: port@4 { + reg =3D <4>; + status =3D "disabled"; + }; + }; + }; + }; + + dphy0: phy@30110000 { + compatible =3D "cdns,dphy-rx"; + reg =3D <0x00 0x30110000 0x00 0x1100>; + #phy-cells =3D <0>; + power-domains =3D <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>; + status =3D "disabled"; + }; + }; --=20 2.42.1