From patchwork Tue Feb 20 06:18:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13563451 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0EE8C48BC3 for ; Tue, 20 Feb 2024 06:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W1n9WyXFxC7tl77CSOTMGrS+B7Ch1pvzGGb4vMjdkJU=; b=CG5V34ELwSVOcP G3LrBsZlXWd4v03ZZ1GKlJHCGhTWG7/tKcMkl9pRx04b4vnCObv375Mv8f+7xstL7HfkaswOgUbQ5 xPMNoUP3gsWnak5KXmGFA/KvF3jfFCjfuhpDQowCOrwNF6mqyBjRo6GpKJB5W/ULf5S3WMXdzTFdh 5KwIUZadk385aQf/vYT7k4HhqC0pEomUumBXbyosVqjNWGl/DmYXO1H5GKBmUhjRDzMONL2ODPVbG W9J4GLm6gNy9XpNonSpzqmMk6+wXP35/RL5msf3UUcezdx52XoiEz6GlRyMMpX1nj+kxJrEfWwuX6 313VOTSqTb+UtS4HOsFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSY-0000000DLEr-3nj9; Tue, 20 Feb 2024 06:18:30 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSS-0000000DLBU-2Ux7 for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 06:18:25 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41K6IFJo009709; Tue, 20 Feb 2024 00:18:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708409895; bh=YnQFBxtIXwo70GOhJdHlRVrZdi2bqii6xgy4xhWN+O8=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=do/N78wNL32z0bCJbhTzIkAsagYNjz+jsw5fwAPu6UtIi0UoPf82OhcMW4JNtpY/q Jp1COofg8Vt+fkHIAJTS5PGNjBaLHi57muRPINA+RprgN9EFwcqqBBbbILsnDpxD8S 9HKo7WCp8lTbw/OASq/hxSOmp0Y1D4/5H3/x8ziY= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41K6IFeq048034 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2024 00:18:15 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 20 Feb 2024 00:18:14 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE103.ent.ti.com (157.170.170.33) 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, 20 Feb 2024 00:18:14 -0600 Received: from localhost (jluthra.dhcp.ti.com [172.24.227.217]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41K6IDAQ120909; Tue, 20 Feb 2024 00:18:14 -0600 From: Jai Luthra Date: Tue, 20 Feb 2024 11:48:03 +0530 Subject: [PATCH v2 2/4] arm64: dts: ti: k3-am62p: Add DMASS1 for CSI MIME-Version: 1.0 Message-ID: <20240220-am62p_csi-v2-2-3e71d9945571@ti.com> References: <20240220-am62p_csi-v2-0-3e71d9945571@ti.com> In-Reply-To: <20240220-am62p_csi-v2-0-3e71d9945571@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Davis , Bryan Brattlof , Dhruva Gole CC: , , , Vaishnav Achath , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1920; i=j-luthra@ti.com; h=from:subject:message-id; bh=k34jv9ed9R/88I+IWEoJv6cf8XHNWFlO40gaCiKu+7U=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBl1EQfsTB4YxhZ4xsWTyiTc91RK/4HhdmqqqWqG 3TKkiJKt9OJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZdREHwAKCRBD3pH5JJpx RWNeD/9q6LcVq2eQQ9Hov38TNs99qtA/JJ0Ko/lXYdPvD9yTsN4wMobGY7LVRiy0AJzzZcLv+0i ep33QRmytuf+Z9Jw6l2mn32iBOCJHHp6FAFLR1viL5X0cpVrkrtlj9cnVU3kVFz2x5i1Fbs9Ezp GndQqaM6ZEes5fgxMbt8cgxf074o2ICS/wCYq9ocDjDj0DIcFpD66tzaixvvvvZFSzUxiNFg4UY oOPNwVlXXbgEEjWG/3vn0TNe549aIUQFE6ee7PirTorvIJoAX8530fJersIE/zWkfrpELyCdIoI EATtmA+m0263sZYNHjBf3hK3ztX8XQHdsOsdQIV+rkXOIdsqftpWqpMIFW7mLeFLaYI25v+9WVm gxRJFnboj9ikJe6IEYFm9NUW31rGCveGwUIvB8JF5VJgwp1Ax2Wj7M0fUE4/k0GpEMRBVueMAgH UQXLh92W9DkPkWxhZjbF10lv34G/APdIZ+9Q7n0Z/+qIAD5snagq/yRFQceLV0cC/CRQRLou91w MOJi4yC1y43nbmBeGdWC4CyKCthAKTOcfA761yNd4xlU+wxNA0p2tDS5/lnwnTwCxH5DHdxAhIB TQH/5BDqyX29G1O2O4gRAs1QPkq/yOefx5U5RWPJNJOMGFsure0cJHfz/aLwLQH/xtEAYClj69b PL2j0FzfP+vBP1g== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_221824_757587_F07EE839 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On AM62P, CSI-RX uses a dedicated BCDMA instance (DMASS1) for transferring captured camera frames to DDR, so enable it. Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index e43530beb79f..fb328774879c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -158,6 +158,43 @@ main_pktdma: dma-controller@485c0000 { }; }; + dmss_csi: bus@4e000000 { + compatible = "simple-bus"; + ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x408000>; + #address-cells = <2>; + #size-cells = <2>; + dma-ranges; + ti,sci-dev-id = <198>; + + inta_main_dmss_csi: interrupt-controller@4e400000 { + compatible = "ti,sci-inta"; + reg = <0x00 0x4e400000 0x00 0x8000>; + #interrupt-cells = <0>; + interrupt-controller; + interrupt-parent = <&gic500>; + msi-controller; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <200>; + ti,interrupt-ranges = <0 237 8>; + ti,unmapped-event-sources = <&main_bcdma_csi>; + }; + + 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"; + #dma-cells = <3>; + msi-parent = <&inta_main_dmss_csi>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <199>; + ti,sci-rm-range-rchan = <0x21>; + }; + }; + dmsc: system-controller@44043000 { compatible = "ti,k2g-sci"; ti,host-id = <12>;