From patchwork Thu Feb 1 13:07:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13541088 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 501D3C4828C for ; Thu, 1 Feb 2024 13:38:25 +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:CC:To:In-Reply-To:References:Message-ID :MIME-Version: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=6lCO8QOn7f+x9qYO0wKDq5vdadp8ZKW12JLy9p6YwYc=; b=K0u2z3/cG1dwgv 0gwwkfXZ96JG6zwCMMXgJ21092+Lt5wQcrcC5/hN+SAOpoGG3LMHche82PItZ3z18+zUf1Up9t4RI udXpgNmsxmZB4k65WFusMmjCguo0vsib6CYysDHizBXQJoDAbPhfynOChH6czQ08crpsgzRzIWs4m c4HdlHvl2mCw6OLGnNN+KteiO895sqrVejufw4DQVHOaLH1Gg9v+MK7qo/R5Tvp1XJYDM4ab96E1N wiFxKlwQa/erJTQZ3eQXXfpTxbx20sWHHIBp8mme02YRFtNlfCXKIcwb8VgGXaFb66zk2H+TTP2fX eu9e8RxEd3UrU+VMFCcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVXGf-000000087CX-2kJs; Thu, 01 Feb 2024 13:38:13 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVWmk-00000007uOW-3Pnu for linux-arm-kernel@lists.infradead.org; Thu, 01 Feb 2024 13:07:20 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 411D7CRF104580; Thu, 1 Feb 2024 07:07:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706792832; bh=vbpfH3xzkJyVZB9YSWkN/xzm8Bq9Yd74LY2NszD7sNU=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=xGbukezs6P0MRWmru8PQGqhrAWEqG/Mgs4mucJgDSWO/VTIBPgYmJ30ZhwBVp1kKH xKepApviDJArEHcjUCx8l6STvjOe4N2QKdbBz/lErldm7A/sYvsSQFXgzsnZs6Cq1U fl7x6PlWI/zt8kSQb+YD8YXQIqYUKs00/GITiMOA= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 411D7CVm031182 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2024 07:07:12 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 1 Feb 2024 07:07:12 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE109.ent.ti.com (10.64.6.30) 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, 1 Feb 2024 07:07:12 -0600 Received: from localhost (jluthra.dhcp.ti.com [172.24.227.217]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 411D7Bff083003; Thu, 1 Feb 2024 07:07:12 -0600 From: Jai Luthra Date: Thu, 1 Feb 2024 18:37:02 +0530 Subject: [PATCH 3/4] arm64: dts: ti: k3-am62p: Add nodes for CSI-RX MIME-Version: 1.0 Message-ID: <20240201-am62p_csi-v1-3-c83bb9eaeb49@ti.com> References: <20240201-am62p_csi-v1-0-c83bb9eaeb49@ti.com> In-Reply-To: <20240201-am62p_csi-v1-0-c83bb9eaeb49@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Davis , Bryan Brattlof , Dhruva Gole CC: , , , Vaishnav Achath , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2254; i=j-luthra@ti.com; h=from:subject:message-id; bh=5ghTK3wJlbTR8AXSwps2iXRCuqJEWnnANC2exXFGf0I=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlu5d48mmOGzRlUpK7Pm3DwOBiwK5TL2cQ3YTM2 KoLLVrg/jyJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZbuXeAAKCRBD3pH5JJpx Rbx1D/0bnymt14c5io0bDOTDTr/4Dt78knbq3oA+vOMKclGclw3sn8rqFlVLAodPxJT0iycMnta 6a/EXx3mMVSASyfoA1dwg4f/c+YAg3V2MK3emuxzTF5BuOxwXsgeuw12GSVOwLTrvo7w0SDssCc 8lk6U4Ok2Fe4UOE45+LkzTVulLFteLhcjrWAAFuO9ULZA5c8C0rfdwsOldszA8dssSpmeQM/NaH lwI4XgLX/RVyh8Sjovlpfr7ehUP/Iz3cz2kR56AJTrYsm+zSs1msDyBfcUaax9QnGgvbtwn+OdG 4PYD0L38yei96bHwOb3QhDnrdJtNq4AyI3mfceRrwkK07kDjM2W2HG/oob9l2tCTH2vfnvYPtiN yx0FgH1gxvGdcTyhMUvwnPE4+4b7kQ3uWH76wZVTyeYnPB0S7kt4FKf5Y+fydnfiWRMw8QQ6Cxd FiRhrgZcStkkhL92jUMRtc+qwcn4qBRYOfuhX6GAaEHWpB5b/ies93+3YirQwjv7ZXMHt4ZOC5L powTOzGf1stABjJdcwg34uQ2TrrISgdAua+9PPt7hjQO8wa61R+U7odUqQtlE8ivuAnx26I8WH6 0tVEuSx3EqgkPfDnAUFJhN9gGfTjQcDe6oc0U0TkCUY+okbg2DJky5SaDUgRUCsmCH9Hbv5o6BV 7A4aHga31+erlaQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240201_050718_996399_894AB696 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. 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 AM62P supports image capture via the MIPI CSI-2 protocol, it uses three IPs to achieve this: Cadence DPHY, Cadence CSI-RX, and TI's pixelgrabber wrapper on top. Enable all of these IPs in the devicetree. Signed-off-by: Jai Luthra Reviewed-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 57ec4ef334e4..fdd835a04327 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -928,4 +928,65 @@ mcasp2: audio-controller@2b20000 { power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status = "disabled"; }; + + ti_csi2rx0: ticsi2rx@30102000 { + compatible = "ti,j721e-csi2rx-shim"; + reg = <0x00 0x30102000 0x00 0x1000>; + ranges; + #address-cells = <2>; + #size-cells = <2>; + dmas = <&main_bcdma_csi 0 0x5000 0>; + dma-names = "rx0"; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + cdns_csi2rx0: csi-bridge@30101000 { + compatible = "ti,j721e-csi2rx", "cdns,csi2rx"; + reg = <0x00 0x30101000 0x00 0x1000>; + clocks = <&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 = "sys_clk", "p_clk", "pixel_if0_clk", + "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk"; + phys = <&dphy0>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "disabled"; + }; + + csi0_port1: port@1 { + reg = <1>; + status = "disabled"; + }; + + csi0_port2: port@2 { + reg = <2>; + status = "disabled"; + }; + + csi0_port3: port@3 { + reg = <3>; + status = "disabled"; + }; + + csi0_port4: port@4 { + reg = <4>; + status = "disabled"; + }; + }; + }; + }; + + dphy0: phy@30110000 { + compatible = "cdns,dphy-rx"; + reg = <0x00 0x30110000 0x00 0x1100>; + #phy-cells = <0>; + power-domains = <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; };