From patchwork Tue Nov 28 10:09:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13470782 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 540D5C4167B for ; Tue, 28 Nov 2023 10:11:17 +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=bZ4mfgM8DorAeUki7ZFfnyZ2659A/kFWdan3vGsEtn8=; b=MGHfb0AQx3CLZ9 YhPatxisK+6tM7uEWj8xopPJ2LPJzt42phmQ110fGiG4ey2GqFSQwqI9m744UQ5EGrI34F+LK+vzY Nero1ScmFEYWYTxwphuSDnKFNZwgwhvDI22BTQ5EOMjGWNQxEFaZkyNhP1jCaTDziO9AWyvM7SFIx uveRLqaUwS4ajeKCBR/FfRWZZ6D5fxCZ4j4/3JPynBX1Vo1UGgAhQ1Vw6n0v6iG/7LS/HJcq45xbN PjBYpu41wltsZ2dHZbAQY4QIEsg/PxtmAQtV4JJ3VyzX5W7bv5PH5jzo/CqjazQ0UhiBBsHA5a8dh HYW7nzpcGSYDaOpOLvxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7v3I-004p3o-2f; Tue, 28 Nov 2023 10:10:48 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7v39-004oyx-14 for linux-arm-kernel@lists.infradead.org; Tue, 28 Nov 2023 10:10:40 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231128_021039_446820_1DA7F030 X-CRM114-Status: GOOD ( 11.01 ) 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 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 = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status = "disabled"; }; + + ti_csi2rx0: ticsi2rx@30102000 { + compatible = "ti,j721e-csi2rx-shim"; + dmas = <&main_bcdma 0 0x4700 0>; + dma-names = "rx0"; + reg = <0x00 0x30102000 0x00 0x1000>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + 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"; + }; + };