Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp230583rdb; Thu, 8 Feb 2024 04:34:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXrBtNRv60K3Vt7LyYeyZ0NNJY6+SJR+gMZwRyk1ku+Ja8PCIjFDV3LVZzLGIczhVlJncpZyJBjEuteFELjh4nzDj0REknHAr6A+yAmSw== X-Google-Smtp-Source: AGHT+IHctw3ksBYCSLWR590iASdAifvmasn0Sn9o6dgQKss+IU1qV4+yv4WUZptW2Zu6K5mmuFGv X-Received: by 2002:ac8:4e91:0:b0:42c:1145:3211 with SMTP id 17-20020ac84e91000000b0042c11453211mr11789437qtp.44.1707395660741; Thu, 08 Feb 2024 04:34:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707395660; cv=pass; d=google.com; s=arc-20160816; b=th4jBBJtPLNs/LOzQUIZXMKxJjRbYJovLMCv4PVw47PeBIWjHIUWG2/HVQZtGpNxgf fBUL2k7SQrsMZM1bTHy7AAkh0OP3vXYS9U4kZN/23zHwEIjscKsEkzjSkNO5Mj56ZRrC YS0xcLSr/rUN5XsBR/C3Kr9LuDJ/E754JHPUAkp6FIhnrf3V1rpiy4AJELhNYjqAm4On SJqTp7YFAsH2eeOMLiBkhfanTLKyRahUldBK0hnqGeRy7ejVxPfW625AL55cIqBtxUOG OubQUFwgp0nQIg72o0EfunDTsvVM1hH8ANXUMxqTTMdX+6VImeMPOYAnae8R1MG80cp0 JB9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hCCOXa05ODAH1a822OcuHgt/RJjrEsz2rIxEHyk9pHc=; fh=kZ/+rGhQzZll7LcDKHYhv2brc1ybOm6sNIssuK70U6k=; b=GtSD7xU84A8KNdCQTtu2mVNm5RD7Y4isVahgDdCS93mQehvELmDrjdIK1BMCm7Zy9v PG+SJ85G//V8YfneQNGge0k3mWHqKFuIta/SDKo15bR29aL+EO1yYaHFU7R949omLFXb 1nMcjqLATMBFfRirKawt9ubEmhKUP5qYfuFPEy1IXXciVDOQPH8AiQcVWAEMoPsDbhHd dAH+2z11Y4IZH1DTXJIU+IHYRWkqpw38oQwwt8C3x0VFZOrpwDpiY5mSjFL0lA47O+AP BCd91py4XYj7IkO9UmgnkHCmUD8Dy5MLNmohU85MBlckg0kBtEMnWMBG9IGMrxMdwebM rwQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="HXx8JDz/"; 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-58060-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCUSFF2HbcrmqEZ7S7EO6OT78SSMWxV4Uoh4hkxfRwAt/6U1WCzb5afY6VUlJ/5NzRvTIhPldlsbB3tGK2aC42qoLEbqSQQ4Mq9IfbJBUQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u22-20020a05622a011600b0042c4aa84972si1256669qtw.408.2024.02.08.04.34.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:34:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58060-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="HXx8JDz/"; 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-58060-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58060-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5141A1C2268D for ; Thu, 8 Feb 2024 12:34:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 250BE762F2; Thu, 8 Feb 2024 12:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="HXx8JDz/" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 8E004763E3; Thu, 8 Feb 2024 12:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707395593; cv=none; b=QL6ZbCY+elyPFkTw2MkCFuLxOM/R1z6U+aWjvKFFjxbGZ87QFFMByxeyiTvQVmo7mjXFMGgYaSqbde9otrHK4gXGl8rAPh9mlHpQTvghqUoCLwHyeSgDVNJCY76TzT6EW9+HqfiuOQ02NCSyRRfC4FSRpxmN6+VEe3gHKMAMEk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707395593; c=relaxed/simple; bh=O5VB/1AdaK5TqXXBO/TwdKGw69+R+Xw6j2ZsiknLezU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WlibSE7i0WoooRfbZjaSVqn1d7Ojm2jG3J1NrbiEKIsZCtEA2uvytGVUA4q6g6xGfpHNSARdF3E8keNxpYOShM6VLm9nrw9J2KtE8moCMLINI1SptgzqDYoxw9P0dMbGajRgbCx333VeSKkna8yzXSxH9KJxIf1rFuBqON5Cbys= 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=HXx8JDz/; arc=none smtp.client-ip=198.47.23.249 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 418CX4KU031133; Thu, 8 Feb 2024 06:33:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707395584; bh=hCCOXa05ODAH1a822OcuHgt/RJjrEsz2rIxEHyk9pHc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HXx8JDz/NXt6cezG1zIscgcfws5oLYPtRdO8D25nJ34uOXHr30kwAEUUouW58dE/L Rd9iMR7f4pLCzFkfcHjwgE+4SnNfP/ynP7Hjh1I2RwzLzMTU9r1ArWama2kIleu+BK JEBXXJYdNFYVQz2yRoCP7SWYE8vNwzEg71ExStsc= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 418CX45r026504 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 06:33:04 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 8 Feb 2024 06:33:04 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE104.ent.ti.com (10.64.6.25) 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, 8 Feb 2024 06:33:03 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 418CWY1N074789; Thu, 8 Feb 2024 06:33:00 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v3 6/9] arm64: dts: ti: k3-j721e-main: Add CSI2RX capture nodes Date: Thu, 8 Feb 2024 18:02:30 +0530 Message-ID: <20240208123233.391115-7-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208123233.391115-1-vaishnav.a@ti.com> References: <20240208123233.391115-1-vaishnav.a@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 J721E has two CSI2RX capture subsystem featuring Cadence CSI2RX, DPHY and TI's pixel grabbing wrapper. Add nodes for the same and keep them disabled by default. J721E TRM (Section 12.7 Camera Subsystem): https://www.ti.com/lit/zip/spruil1 Signed-off-by: Vaishnav Achath --- V2->V3: Fix order of properties as per dts coding style. V1->V2: Update commit message with TRM. arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 122 ++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi index 062a6fca5a31..841752d20de1 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi @@ -572,6 +572,128 @@ main_timerio_output: pinctrl@104280 { pinctrl-single,function-mask = <0x0000001f>; }; + ti_csi2rx0: ticsi2rx@4500000 { + compatible = "ti,j721e-csi2rx-shim"; + reg = <0x0 0x4500000 0x0 0x1000>; + ranges; + #address-cells = <2>; + #size-cells = <2>; + dmas = <&main_udmap 0x4940>; + dma-names = "rx0"; + power-domains = <&k3_pds 26 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + cdns_csi2rx0: csi-bridge@4504000 { + compatible = "ti,j721e-csi2rx", "cdns,csi2rx"; + reg = <0x0 0x4504000 0x0 0x1000>; + clocks = <&k3_clks 26 2>, <&k3_clks 26 0>, <&k3_clks 26 2>, + <&k3_clks 26 2>, <&k3_clks 26 3>, <&k3_clks 26 3>; + 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"; + }; + }; + }; + }; + + ti_csi2rx1: ticsi2rx@4510000 { + compatible = "ti,j721e-csi2rx-shim"; + reg = <0x0 0x4510000 0x0 0x1000>; + ranges; + #address-cells = <2>; + #size-cells = <2>; + dmas = <&main_udmap 0x4960>; + dma-names = "rx0"; + power-domains = <&k3_pds 27 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + cdns_csi2rx1: csi-bridge@4514000 { + compatible = "ti,j721e-csi2rx", "cdns,csi2rx"; + reg = <0x0 0x4514000 0x0 0x1000>; + clocks = <&k3_clks 27 2>, <&k3_clks 27 0>, <&k3_clks 27 2>, + <&k3_clks 27 2>, <&k3_clks 27 3>, <&k3_clks 27 3>; + clock-names = "sys_clk", "p_clk", "pixel_if0_clk", + "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk"; + phys = <&dphy1>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi1_port0: port@0 { + reg = <0>; + status = "disabled"; + }; + + csi1_port1: port@1 { + reg = <1>; + status = "disabled"; + }; + + csi1_port2: port@2 { + reg = <2>; + status = "disabled"; + }; + + csi1_port3: port@3 { + reg = <3>; + status = "disabled"; + }; + + csi1_port4: port@4 { + reg = <4>; + status = "disabled"; + }; + }; + }; + }; + + dphy0: phy@4580000 { + compatible = "cdns,dphy-rx"; + reg = <0x0 0x4580000 0x0 0x1100>; + #phy-cells = <0>; + power-domains = <&k3_pds 147 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + dphy1: phy@4590000 { + compatible = "cdns,dphy-rx"; + reg = <0x0 0x4590000 0x0 0x1100>; + #phy-cells = <0>; + power-domains = <&k3_pds 148 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + serdes_wiz0: wiz@5000000 { compatible = "ti,j721e-wiz-16g"; #address-cells = <1>; -- 2.34.1