From nobody Wed Dec 17 10:57:34 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 9A000C4167B for ; Tue, 28 Nov 2023 10:12:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233087AbjK1KKm (ORCPT ); Tue, 28 Nov 2023 05:10:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbjK1KKe (ORCPT ); Tue, 28 Nov 2023 05:10:34 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD71E6; Tue, 28 Nov 2023 02:10:41 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ASAAOXC120104; Tue, 28 Nov 2023 04:10:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701166224; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=JwpbokYrpj7tVWCl/B8VrlfH6Q5Q6AOb1yYPtl/A/HJOHXoNuVVgUS1gGVjmeDXCE csco/8t5y15yPvYC/070Nx53jA6jr/RuCOSSq4lcKXWwt1RWyM/b5ZSJiaYkUdu4kk qCmp8VHDfoAYcvI1RrmZyVDukNlDx0IIeXveh5bk= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ASAAO1u051376 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Nov 2023 04:10:24 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 28 Nov 2023 04:10:24 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) 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; Tue, 28 Nov 2023 04:10:24 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3ASAAM53007954; Tue, 28 Nov 2023 04:10:23 -0600 From: Jai Luthra Date: Tue, 28 Nov 2023 15:39:44 +0530 Subject: [PATCH v3 2/9] arm64: dts: ti: Enable CSI-RX on AM62 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20231128-csi_dts-v3-2-0bb11cfa9d43@ti.com> References: <20231128-csi_dts-v3-0-0bb11cfa9d43@ti.com> In-Reply-To: <20231128-csi_dts-v3-0-0bb11cfa9d43@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra 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/ZANAwAIAUPekfkkmnFFAcsmYgBlZbx/hnM/jqA0UD47m9ad4O0pQC19hpYcnTMZS TZA49F2HLeJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZWW8fwAKCRBD3pH5JJpx RUFWD/0bBAXFW5KfGxNoaeZeTtPqWJ9D9zl5GjlYnDKmlpf5hRgEn9gfDuUvdhdQnVaUts8fyqK x54VLgyWLKdejdpMLVJSV/oedZxC6w0gmsivr/hLeZhnLGz4wNm08bYHgYIIef23oQOgWbTvqVN 1G4mZ6TQD4J6VV2tsIj8a5DaT+hZjPYdTczhMKKx7spuOoanNpSMfAXwTQX9ABHAmzSAakxFMCb wcg7tFcLm8hEEkz+kknj/SfGRkkLG1/dFHUQ74MwVozyRhW7MKZZO0X2VdkKJzJITpMnl7cdGOg ETevLBu+9mUGrCdDmfFwgeKqqOq2eMa2XXxzwMna2ect8SKGYd04JVfENFourHx7RkXUYAh8S/s M9olv/sujeV9c7Qlr+ZeFksQVjs4XIFUCy7JmiVTazwmkT4D2Il7aZiG+UW+uPWGzzHM9MSWqp6 uL+dL03734ucB91QTRwrHv64NcnDRBsMCqqbA+nZL59Cv+B2ZPPuEFzITgfaK0NJsSYF0Txv6IW 0yH+XlJLydvlvtbfsU8L3Dc9H6AAeJge3K6sMDn2YqJbWcddVOoIbyU3dBbjNY+k0R/w9pKroHp AISNy3shl4GxIwaYUuIaxaPXTWC/hwLgocJDTCd3Lhuy/aevn4uMZ8JXWhQatII1o0ioE/auu4G J/9UKOjiKCRGi+A== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 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