From patchwork Tue Nov 28 10:09:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 170677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3807700vqx; Tue, 28 Nov 2023 02:13:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaZXNi6T7EEuf47kiGb+MVa4iUoXum+ymg/l9nlZ2Hb0e+visZqI7N3pUl0aex4TgwDj7u X-Received: by 2002:a05:6a20:7351:b0:18b:34e5:ff71 with SMTP id v17-20020a056a20735100b0018b34e5ff71mr24739371pzc.21.1701166398940; Tue, 28 Nov 2023 02:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701166398; cv=none; d=google.com; s=arc-20160816; b=G9AB2gc8jisGQpP8UDYWAYGIz3gsj64upvR7FSnpOwvSFcin8q5TnGxnXCascL4ogD EcfUrguBVHxzGiZwhv1fEwkiogIL6nAUbIRI/lnnRvrI05sq9m/OR0vdc7tKy0nwrKLD c1bkpMBhGOQllT6t+P+hDIJFSibnURjOFphoWCJv4RiyLkgxdUCNCXfxAOZYtsxuh1a/ BEttJf4god8RngHdYAgvkbkdmKJm4wk8w46NmN//CgGa0h5yvvBIz9tKRuYyousj4H5I vB78g8x0p07bWGteWApv5ZN2OZh+cFHUJcMfmueanVZ/GvLlDnZJdjKEBmWBbwyqg5kz slFg== 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 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cf2-20020a056a02084200b005c278e32054si10952080pgb.677.2023.11.28.02.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; 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 23.128.96.35 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 29BD7809C900; Tue, 28 Nov 2023 02:13:15 -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 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:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783802257754747679 X-GMAIL-MSGID: 1783802257754747679 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"; + }; };