Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp389532rdb; Fri, 17 Nov 2023 01:31:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHV6HXHTJOg2lAclpnWFoK2131irFMpl6upu2QVBWqnHyNgB+1OfORtWuYtbQxqqjy8uZQk X-Received: by 2002:a05:6a00:2d95:b0:6be:e54e:a540 with SMTP id fb21-20020a056a002d9500b006bee54ea540mr21600186pfb.30.1700213497901; Fri, 17 Nov 2023 01:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213497; cv=none; d=google.com; s=arc-20160816; b=JUoiWy2o4WvTzClhPNo/AZ4iKWGYdEFWybNIpjZsQKqo2f3t0hP0i4CM2Td5itP86G jqmpB7+RmuEWN15L+aR+o31T8jYFbxt0Rtt5P8ySJO1NYtNbyXXtr1j1KcSJTKO0gH66 /BJEfxQpy1VOuucaU066uXaVwQULdoclwI01qdzAx9EEgB+ZjFN9J0/oj2qiMtV8RJX4 TRfj4jRLrM3suEdhK6MTyrfJN6BeDFgn8hcRbtAZiw+ZgZkQjQu52nxFbqQmM9+RjAve 856Zfhy2J6kVj6Tt/jJDP33d/bByGLkVCFagWPtvWdTciK75Hgxmq0lN0rSh+ODjEbGj OvgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=CmteUdCtQDbBDpzso1kuxbQHchTQf6KP1ZmCJOVHgyFPMZSdR3voZhx3/OLLYkWTm5 0NE0b+F8dgWtLf3upvhJYyTCYe096gwX/hfI3ZL3GjZTQ/KLXoiILq91eSNkSrDL88g/ ejM3HDM9uSbHR0gpLkJ/Xc27ePQwz7jPktiF5uTLnH7XOEG9e/r8SwUkLd4dc772MrP9 5t4Ra/1f+m76c86HPTYEY2AK+pcMnkRg7vJTtfDcLaM4QRehGJQHoV5DZFATA+HiPQ6P 7Iu0041zZjMSloJVQ3wuYHcO71KQ96bv+9FxRM2ZqtKDVRngHicUfwIhyqJl6DVlcGWo 1JjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=R7ZzeWnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y187-20020a6364c4000000b005b9b68add85si1542039pgb.254.2023.11.17.01.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=R7ZzeWnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 689B3806A10C; Fri, 17 Nov 2023 01:30:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345786AbjKQJaO (ORCPT + 99 others); Fri, 17 Nov 2023 04:30:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345764AbjKQJaE (ORCPT ); Fri, 17 Nov 2023 04:30:04 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C5FD6D; Fri, 17 Nov 2023 01:29:59 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TZia071048; Fri, 17 Nov 2023 03:29:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213375; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=R7ZzeWnOoATd14IFmL4x2Ftv3pvlE3QvrZYhkHfCY/q53Uo1khJ7uy0GJcIJhsa1L 5UK+WuTTUReYfTaYApcVHAhIKeCx5+xAiPwRZkx1+e5Z9HF8/g6wYmw0IVzDd7O19v i8n7Zyut8x2as8WW8swVqTV1Z/V0Y3FSeOe+wPbo= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TZ5n023835 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:35 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:35 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE115.ent.ti.com (10.64.6.36) 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; Fri, 17 Nov 2023 03:29:35 -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 3AH9TYcj105746; Fri, 17 Nov 2023 03:29:34 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:10 +0530 Subject: [PATCH v2 2/9] arm64: dts: ti: Enable CSI-RX on AM62 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20231117-csi_dts-v2-2-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@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/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJt0DfH+zXwBK4dGaeNu22y4EW7Hcqmn+gmn uO3GwA1PoGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcybQAKCRBD3pH5JJpx RX5JEAChITq4bueV82r7M9nWdos1s520pHWw8IkIh2aX+QSlYnwbJOO/jCX0mykuEiVNUaOZhbZ DtXdgB/5xHeJHza5xaISlGjbsYfnMwRzkBSOvPWIqXvzpMn3UlwczPfeFKvM/hiz3oIZMx9ZKaI NmFRoCydgVBjMDEe4t2ibw0zGGNnAHCZpMaGnGRAnIaUsSCMjLgkQS0jAI5LCA1Mw/mny13XzNJ 3NQfXPhXI81VAf0ubD7mIWifxoJpXP4CoXnK2NXBWvIdbNT+tzgnm5MYvQ86m0B+Afr2GeWVnv/ aQILwGm46WLnjrQvWhacGhk1tP9U67K+RL8LhncmM38xzgnuhw2lYWQaFXOq3R1kE8ZMO7LSMnG f2IH4k+hkxRfDOGL0fmQ5ebaj3yRhJXxDWtdOrmGxzEll/5kdbTpoxnSKBWKqBiT9y8+g+M/I9u JYnPDuWdiYwKuLe3Di7T9BXfScjp8iT0K5agjnhV58MjCD9D/8bc3wnxUGDy6JRSur9leS/t8F/ quBcq8ZQPH1MNDg2OWoxRaBeG4AVpsEIwwTX0s4YA6L7xQXsa5tmSLb3SCQvyPVq8hJoVid+RTR 86yzqUx3Qo/0vbFdYnruJAvT7oj8/klo/oCgJVRBSNjrWH2tZFa3JdeI1UF5S9HaaB42Oa0VGuf qgDYmPhpEj8pvNw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:30:27 -0800 (PST) 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"; + }; + }; -- 2.42.1