Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3731608rdh; Tue, 28 Nov 2023 02:13:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpdb1pgzATzosYy/P4QQu7pwKcZz8v7gf2HWJmG9At32xGmy9NzFNSxY3fVzPe7vkUVCVg X-Received: by 2002:a17:903:41cf:b0:1cf:cece:e96d with SMTP id u15-20020a17090341cf00b001cfcecee96dmr9408088ple.0.1701166403137; Tue, 28 Nov 2023 02:13:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701166403; cv=none; d=google.com; s=arc-20160816; b=NwHNF4HevWZAkfaMMGZjhTmatau3OD2kNz5egVcvw1uIAu/3yegNWxtqP8VzwWTzL/ 9xvvbL8ffltXD5htXYdlDKBQppQfmCMWKmNeldUXv9Fq5DvGcHtOGz3CISvIafNnI+70 TRqYVaZHw0VmjeSc5cG1CJ5TOlpY3Gv07gHsjofeYso4gMfc74w6fSPcPhRXClNNGk0t y3k+IqSGMh0caBNO8tDtrTXZVJYwxk/qIrHd/irgrLcYKNfhFntLlLLGKHU8YbiVNVaK 1nWDYFNqFM99i9WhGj/35xw1nRJU+CCXKnjTVw/mZVJSKf5iIgi9oicdvs0dEwPcOI1U rm0A== 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=6ItgAaMkCxt60XJc1WHuFhFNITAxxpb0vOwKj0LoWdI=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=R+pLShs0eb85gsFlKLuqEx8qLkHAMrxfmZx8SdmX8RiFfX3Xg/aQVCK6yh+YqyZ1K6 mSJSUzIJQ2Eb1aoCr84/o5tY5zbcQQi0g07oVH5C3VWdxhcWGXMDaVVpg9lBRl9GVCQa tgnOczmVKGXCv1aSqJVost4HkzyMRZTF01N19sjkli8urAflWnDrHuy9EBX/FFyb3LA/ 2RWtv0YdUq6zCPqszNzQ0FutgvFrZAKGEHhQ/TpK08hIv8bAtwBtlUx3WS/tzwhOJxcl I8Cfa3F3N8vnjAjkwGavJJt3FeU6bo8RsRZ1WD5PbCYKIyyQwUFaFCGKkh1hXoYfe5n8 8jrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JfAoiOKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n18-20020a634d52000000b0055fd1bfb109si11351917pgl.679.2023.11.28.02.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:13:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JfAoiOKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 80E8A8069F88; Tue, 28 Nov 2023 02:13:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344006AbjK1KMq (ORCPT + 99 others); Tue, 28 Nov 2023 05:12:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234675AbjK1KKj (ORCPT ); Tue, 28 Nov 2023 05:10:39 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20C8FDC; Tue, 28 Nov 2023 02:10:45 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ASAARGA079812; Tue, 28 Nov 2023 04:10:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701166227; bh=6ItgAaMkCxt60XJc1WHuFhFNITAxxpb0vOwKj0LoWdI=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=JfAoiOKqT8dIBwGe8vU9GrMeny0mNTItl1c/BRVpJ6p37OX3UJCc9yfPi+fiJ95uv WgcTlZgMVpY/o/IpW4lgZVPub2/tIqBv49IOrEIK8qgtoZTxr9KhmMeeaqWf7mKufn 1VHtoUi0IZzWMTnea3/TDruManckNT/VYYc12UR0= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ASAARv9017596 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Nov 2023 04:10:27 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE102.ent.ti.com (10.64.6.23) 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:26 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) 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:26 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3ASAAOgi070532; Tue, 28 Nov 2023 04:10:25 -0600 From: Jai Luthra Date: Tue, 28 Nov 2023 15:39:45 +0530 Subject: [PATCH v3 3/9] arm64: dts: ti: Enable CSI-RX on AM62A MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20231128-csi_dts-v3-3-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=3544; i=j-luthra@ti.com; h=from:subject:message-id; bh=UdyZV1rZtSB6XPR1HDnodj8ZtnvMZqzU69UiUMbOr4Y=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlZbyAMBYQDcQaz2CCepFfixzsHs51nVJrzFXAL iet0bmy7W2JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZWW8gAAKCRBD3pH5JJpx RQgzEACw6k8CPuYw/SCLyU19+y4zG2GjUiQ8T8TNl0tyluAkQp/0kPnSLE6/wKis9Jx0y+J6f2n cy9IkTNMehIWBMbs6yMcDpUe37q7yepFBbSFU25j2Hi5aJXU0kPpsnePO4W8bazhBqeSAEyXZ2c ab5P4mx6zL+tsbFKXFTR1XvlznubmwHhekZFX+chDE/AHAC0nWpnPmHWIF7Xay/Vhkr1RTtLy/0 A1WrvxzcNuKt2YbfHGkvzAJVK0XFA44ctfuX+b/uup8YFEAbEVkMA4TRzKrnS5ulOdzrmqWZNKt pCBTX92Pk+daBTcvz8XAch7dddb6ReN86aLiWEv7PTlDnClntblYzPtqv6iRLXI5wsHqvu+b40+ urhzUwqEGM/aMeWmpYHtTdya1hOoK+QPoyndc/Lkk03mhiZ5OoeUYgC9+zLbNMXPhWjiuDlKV7+ H3463hvQlNpkibH5nMfvw8pzsPpk5MwThP61ctJ3RN/zlyYbgEq+jaDx0ykeRFfpqI0ohCV1X8X 2kppPTYAEM6ipP5+TGq9MFbAaTUVv5tWoEm7ovd7zo2l4hOaYjVjifVMLf6gbEu5EweHLn8ze82 lvfWuCHJ0t2RvydXXzLH4sz0AmdLMjFtFBQoVcxqt3YtV0WKb4nT6TOKqjiL1wrmbXW/h3faT04 rP2xWf1Iu4/v9iA== 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 02:13:20 -0800 (PST) Add nodes for Cadence DPHY, CSI2RX and TI's pixel-grabbing wrapper. AM62A uses a dedicated BCDMA instance for CSI-RX traffic, so enable that as well. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 99 +++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 4ae7fdc5221b..ea70d78eb132 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -144,6 +144,44 @@ main_pktdma: dma-controller@485c0000 { }; }; + dmss_csi: bus@4e000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + dma-ranges; + ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x300000>; + + ti,sci-dev-id = <198>; + + inta_main_dmss_csi: interrupt-controller@4e0a0000 { + compatible = "ti,sci-inta"; + reg = <0x00 0x4e0a0000 0x00 0x8000>; + #interrupt-cells = <0>; + interrupt-controller; + interrupt-parent = <&gic500>; + msi-controller; + ti,sci = <&dmsc>; + ti,sci-dev-id = <200>; + ti,interrupt-ranges = <0 237 8>; + ti,unmapped-event-sources = <&main_bcdma_csi>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + }; + + main_bcdma_csi: dma-controller@4e230000 { + compatible = "ti,am62a-dmss-bcdma-csirx"; + reg = <0x00 0x4e230000 0x00 0x100>, + <0x00 0x4e180000 0x00 0x8000>, + <0x00 0x4e100000 0x00 0x10000>; + reg-names = "gcfg", "rchanrt", "ringrt"; + msi-parent = <&inta_main_dmss_csi>; + #dma-cells = <3>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <199>; + ti,sci-rm-range-rchan = <0x21>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + }; + }; + dmsc: system-controller@44043000 { compatible = "ti,k2g-sci"; reg = <0x00 0x44043000 0x00 0xfe0>; @@ -876,4 +914,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"; + dmas = <&main_bcdma_csi 0 0x5000 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