Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp155980rdb; Thu, 1 Feb 2024 05:09:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IE91EH4rvTHV493iuLsaF6L+KUdWnQp02g+r0PAC6W1jgHO3J+dRZ72VgYqYP1jEmw1bJBb X-Received: by 2002:a17:90b:4398:b0:290:3be1:9c1 with SMTP id in24-20020a17090b439800b002903be109c1mr4715882pjb.26.1706792984225; Thu, 01 Feb 2024 05:09:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706792984; cv=pass; d=google.com; s=arc-20160816; b=ajr3HHPbv9xCpEMnUkaHT/XPkMgu45shChSqUse9EiAZA69zZur5nfUmFdfp6HguLl 7sRvlUSwcxUcP551MavYASgsUS3M7UWcuNfeisz7NR6I8FKuZJhadsRepnVPocnGaZY3 Omma8VDbjJT/zFZpSyf8xTZK8MmhXi+U7rAHaQ+LnF6cnW1e6LSpAzNoWqCUDpbnWbuc keYL9AaRW3E3Gcb+agB8cbBHGaQiv2UZuDeNhTT6dSxoCdh4uAC0vcIlM7o9EPB02aae fEKHv7aSXuM/h/4Jepl+AmgX8JR69+8Lb470B8VvOH0KMAHvJA21Uid9BUBdnXqb6r9d Sx2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=vbpfH3xzkJyVZB9YSWkN/xzm8Bq9Yd74LY2NszD7sNU=; fh=Vxk3YJrDL1+9dlwyBu6arldX5lqE4btyZOS6gFumz8w=; b=YOtnF+nf6aFfon75sO3cFH9q4Tob/bQ3Ciz2I8+z2ZUN+JQ6EnIkZt2Nw3GR+6kH8B mImMSsq6bPdWGeTBuGpJls6jyrYOu+d1EU0y34O65WrocYbfquhRzrfyQlmerWXw957K 5GDNe5DYr6Zn/mK7nev9sIOZdXWz1El2mRIWPAxOiZPgTcQ3mB44vFTRJehDB5QFpMG6 2BlBCUa6pGiHY2RmGDFrGfNVFjRxAkGSQdoDYToulZRWEIEJ7eLjbOSu6t4tgEuUQ/IV CczBJV8oTqyAqT3YLCG0VPV2ZdvF9XGNmMLxaarU8JQTSY8R0Cn+DLsAPiz9ubt5WtyH xi5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xGbukezs; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48194-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCWQFQdcDC2SvI85PC033pjbYsTrd98b5UTmu64b+d2rdh9xxzQ8NOpYZR4xCakurqxce09MTXXqwDBnru7mPF2qHpGjKy+Q9MI54nqTAQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id pf16-20020a17090b1d9000b0029610b61646si1683061pjb.105.2024.02.01.05.09.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:09:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48194-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xGbukezs; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48194-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0427D28E4F0 for ; Thu, 1 Feb 2024 13:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EBF85CDF2; Thu, 1 Feb 2024 13:07:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="xGbukezs" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 004145B67F; Thu, 1 Feb 2024 13:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706792842; cv=none; b=SDV4wduDRq1b+y8CXq9tn15HluGUgKpEbWS3qm+GOBeMMyPLIlt0W43wJg6vEC6L6xxqXg+67Dl2MfU8CQhqzX4Z0yVchSkUfWDuv4TFA2/EkXvcX3ofkQyx71Cr+WqLEcXDCxDkt/4KnpPIICqHCUDqHgvAff2fGt9s/KvvC5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706792842; c=relaxed/simple; bh=5ghTK3wJlbTR8AXSwps2iXRCuqJEWnnANC2exXFGf0I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=LwCYXYgUSek7KRhpgDENvkfUJmTV/mxgPkmIygNPV8BcBg/Womnv/YANwGmVhZhki+7L9izW0h9dqDz88eTUDWG6kVHczMmJlfPjLVY+WUC02kqIrliUh2EiB5/8p89Zjb4uXhaiHyKEp3Nz7NklAVPb/NsK8p7Lej4ViKzQG3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=xGbukezs; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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 --- 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"; + }; }; -- 2.43.0