Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp128250rdb; Thu, 8 Feb 2024 00:45:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTQBzYBJpBqPSPJG7wFiInLrHSISo2+ZmqJc3aLUEwBTOEjTWVWgOmHjFU3RZI6kv4KlPCgWM1rOkE3vUiRenGV+XVHh1oX6BcAT81Bg== X-Google-Smtp-Source: AGHT+IFg+bUUrsQ2qMURJrcAnaxzzdtOru/6eXts5Fz1l4HGhEGOh9ti3JVfsmEBsaeaaFBSHyCA X-Received: by 2002:a17:903:22c6:b0:1d4:cd4d:923b with SMTP id y6-20020a17090322c600b001d4cd4d923bmr10055279plg.54.1707381929170; Thu, 08 Feb 2024 00:45:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707381929; cv=pass; d=google.com; s=arc-20160816; b=zFSatT0SVDFI7I07+Ht6Ff8GOk2LjAWY9v6yL+hTfXEwOBeSLtXbQ7o+IJTpBv74FD Y7ZiuvIOomyimUPKUVPf5p9WEFbE+PR/bpjY+g0He1/iAHYsmV5rUsT661wTdKH8TBLK vbpFVmYwBp05Tr64Phr+usSHy7bu/kNJyQi8/2XE9sUUQ4KlqfoWW+IgP3RWNtv6QJzj d7Kp6cA1MQ1jdQuiVQjfeUNDpovKK2xsORanXqtKhPM0sBq9OKeQjJ4O17aFoHFpSDlt 6/5+6pCEWQLuajDKoZGiEuuxvPjIPsxbytormyXcJFX8GWGsAdYng6/ZAZ61LLVS0pic DnUQ== 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=7NqTnmRuEDsngPYCgeUqJWoO/hJRFSV+RfPuV9yubqw=; fh=1MTDMcIOIksWemkuxWP6Uewq5N5v4zzUz/cy5LUm1rk=; b=faV2p4bgydvCPWLmXpNCGxSpxkJAvQ1Z9iIHUxObAD/YmPuw7h/4GnQTrwt4dxWFX5 975k8u937grfBilYqju+rgnpdC0gLBYY1UXTMjpldWfvEwcASHnuaj+Nzw3yDmGm/JsY 0V5aQjW8aurO34ScMkn3g1b0deMH/MWfYHlq2KgwFc5POO438TPffPF1Ken4BuNdYfsh A1uBEwUDSCBu5fm+ghm19WKUoC2B2QRLTLvz/z/udjE/kxIcimTmgZONcGkJeu6XJeZD t511L6g1dzHhoV2Q0b/eFSBMrb94VN4cl8ZvE1O2kiV6Z/D2R6E4BRdfnUkATOQgKYik agwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xUC+M93Z; 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-57635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57635-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; AJvYcCWwi7A/5qJkOKiw850/0OdPnFe2Jr39UyJcfjSbfZbLDPuurD21RTkukuqZp6YsKAiwKuPrTu97x/sEqsNeI774Z2F4GtbIZVGBAeuPMw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c12-20020a170903234c00b001d8e7df68d9si3717460plh.465.2024.02.08.00.45.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 00:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xUC+M93Z; 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-57635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57635-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 4D9272876A8 for ; Thu, 8 Feb 2024 08:44:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57D9A6BFBF; Thu, 8 Feb 2024 08:43:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="xUC+M93Z" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 C50516BB3D; Thu, 8 Feb 2024 08:43:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381818; cv=none; b=NdcPPNYxAeHlxD5MnyBWPH4B17Ep7jh+9O7YdhVZmZndr4x+mQFNBMyWYM4Q93f1uYNMD22eyv2BKVaI7QvGyxlqfvb4gfoVKziBY9XlYWzILUPVJEoAlCKKkQha0kUoJFDOfWtp8PXzcO5owuBIF3QTjxcXyPgEL3hG9eI8Coo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381818; c=relaxed/simple; bh=VAzmBh9X4jfrZpIF8Qmh/RJ8gtJ19fAAHYFCU+8g058=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GgvHWNYJvO5behEgncnt+J8ABSowhMIDRjB2OYhqg9hqIhYPxWU7JXaJtSdVjTdC8D0gPwean9MZAqhB2LTeicSsXt6nBFp+EfucQS4Yc03T2SB2tT2AH3CsEGU3pkFx8fcXWAOL/sve5g7QmFVbdY5AGd8W3sDeHTil9g5+OBc= 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=xUC+M93Z; arc=none smtp.client-ip=198.47.19.141 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4188hPRB016790; Thu, 8 Feb 2024 02:43:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707381805; bh=7NqTnmRuEDsngPYCgeUqJWoO/hJRFSV+RfPuV9yubqw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xUC+M93ZGEviw0PXr+kbExntV+HAz9mkW+3RSTEjhPzjvlPU6crPup0O2c/reM/z+ ukV/ki1bEF9KRDUzFMm1a5qhVJH89W4NVZSH5dihKe8RolcRF8hl09Sh7Djf4zCNFr 8gZVDKUmxxjcd1VjDapdIp/6LEwAQzgMfJmL2i/Q= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4188hPTG018598 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 02:43:25 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE100.ent.ti.com (157.170.170.30) 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 02:43:24 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE114.ent.ti.com (157.170.170.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 02:43:24 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4188gshQ097884; Thu, 8 Feb 2024 02:43:21 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v2 6/9] arm64: dts: ti: k3-j721e-main: Add CSI2RX capture nodes Date: Thu, 8 Feb 2024 14:12:51 +0530 Message-ID: <20240208084254.295289-7-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208084254.295289-1-vaishnav.a@ti.com> References: <20240208084254.295289-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 --- 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..8df1eed80996 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"; + dmas = <&main_udmap 0x4940>; + dma-names = "rx0"; + reg = <0x0 0x4500000 0x0 0x1000>; + power-domains = <&k3_pds 26 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + 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"; + dmas = <&main_udmap 0x4960>; + dma-names = "rx0"; + reg = <0x0 0x4510000 0x0 0x1000>; + power-domains = <&k3_pds 27 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + 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