Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3731461rdh; Tue, 28 Nov 2023 02:13:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFw6cj0TipXfza+I19MCaG3+eMng5tpZviP91jXWAS7aucmx/tjeuVy9d6+olrufDEbx4uY X-Received: by 2002:a05:6a20:9193:b0:187:dd5f:93b9 with SMTP id v19-20020a056a20919300b00187dd5f93b9mr15800079pzd.14.1701166383550; Tue, 28 Nov 2023 02:13:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701166383; cv=none; d=google.com; s=arc-20160816; b=d7TC2D5olAEozW8x0D1upbiAumxaItl5P5GFjt/e+XDXvgd4wVB5+oME/psR8//1AM Z9gdHnOgaxaYr1qTFI21LfI+B4nIeugynhJIY70Xfi+dxk1VLTJGpG0CHLSRYcq9dkZs FmuhYw2yShdhz5K76Qz7h4K3j0USfmaoVIg82iQbpGovJI4Dl4lcedDVdUJnGRuIeZxo Bphm01e3GQNl3liiRY6RLy1IDIspJ9GGTNIVL3GtAHXJQz/7e7pSSQLB72HNAo5qFLEH l5gVO1rIdT/4WvSWjfLZCFGWJ6BELVJaxdkQqXYDIitslHP6SuhBceQI5KJIZWjvkodj WQaA== 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=OaMBpWLn6Hz1ik8Q5lNr4K4EhVCWB3qXb4/sAv+Eq9aomv5e3OPSg4Tnlqkaut6LJm YLmE47wtElwbmPCQg0qfX3BhExK6HdEe66a3FxG32DDwWdSeeCnbZSq6MzYwZO6xiepw FdEAvzFv5hF0M7rCYGH1/+UgfsVRzZHVtKY9FTzm12WI/uDKl7LDGxvLULD0a+bhmbMY nS2JKiYZG3ytMQd0urF17GeEqbEDt+UW9iVNYmLqeJeEiq6UJwoo339Hbr+2XBwNm/M1 yI0dGy6lUaT1gmwvi2ZD3q2WD4197nZZ6u5epytLi2JWuKBiAmc6chApkJv+Z0Mz5IZj mSJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JwpbokYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n30-20020aa7985e000000b006cba621ba41si11158448pfq.80.2023.11.28.02.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:13:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JwpbokYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 648C2823FACE; Tue, 28 Nov 2023 02:12:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344062AbjK1KKl (ORCPT + 99 others); Tue, 28 Nov 2023 05:10:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbjK1KKe (ORCPT ); Tue, 28 Nov 2023 05:10:34 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD71E6; Tue, 28 Nov 2023 02:10:41 -0800 (PST) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 02:12:57 -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