From patchwork Tue Feb 20 06:18:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13563449 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 A214CC48BC3 for ; Tue, 20 Feb 2024 06:18:39 +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=plcsFeSx3XIvf7jPwN02aWu9YT9WAflkhWjedXyPN98=; b=xm6Tz4ZXOXA20M Nt0wRscVSMue9V9z0arLva0mo11I4jDcr+yc/RQLgoZuUNcQNWGSZLB3S2LiKrwIQ07TtRL9sGk7n l6s86HWOSFSUI/y6Ol0UCpiN3uaxGPNRsyFJOZB6GtQnfdFr+HjXjNxIHTNfj93KshVgS9TJJbYoE FVp6e9/0kzcRyftHV2U1TeEX2BnEO8rjs/DfRqEOJU5pT5FzgCgsKnNxMEi+RkryPg6hcfuqXd++5 vmW/ZCbdZmZKb7cRUkn4zDoznG8BBuzLocy9Fj/Xir8hqQyIU/dpLD/HUleWm7xbtFbNuXGAxBSkN LKAqfv8upzqjkWjADlkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSY-0000000DLEP-0z2A; Tue, 20 Feb 2024 06:18:30 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSR-0000000DLB9-2Mgy for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 06:18:24 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41K6IDqO128521; Tue, 20 Feb 2024 00:18:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708409893; bh=wjIFXi26a8elJBZ1+oTQlZXDKgmfrz906nvtBMqRczE=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=clRpCC4yj257w4WI6mVvTtY+Rl3jkmfXH4ITmjuZpn0a/FBr2GVjlH2gCOKxki7ot +wcsb9NhXmX0MzFFaIApndmgD49xa0VDdCIuwSREsj/tJh4bgNCUD8R6gLmDYwtBws geU+MTKzlpph2AlXv8XWBeqGiq9zRDpTFRS2Rvf8= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41K6ID7n048009 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2024 00:18:13 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE100.ent.ti.com (10.64.6.21) 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:13 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE105.ent.ti.com (10.64.6.26) 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:13 -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 41K6ICk7120873; Tue, 20 Feb 2024 00:18:12 -0600 From: Jai Luthra Date: Tue, 20 Feb 2024 11:48:02 +0530 Subject: [PATCH v2 1/4] arm64: dts: ti: k3-am62p: Fix memory ranges for DMSS MIME-Version: 1.0 Message-ID: <20240220-am62p_csi-v2-1-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=1338; i=j-luthra@ti.com; h=from:subject:message-id; bh=KAReUPQx9gvzzba47vWWOb5Oekj/PePm9BhH+eG3XlQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBl1EQe/ATjXPVYP4orc1Clk5F32f+sFPV2jgia0 Tcj9gDbT5OJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZdREHgAKCRBD3pH5JJpx Rf64EADLqMiQyJqkDRSyqQnnu9j0mVc9kq1MLa7jJCtJqo5fMPjsb9Uh9E9iGj3niqaA1OMZGJQ HY82Ts4C39y+9qmW7ktWjs44NduqQEjpNgIl+8qOolFboOlmChh1H7ibHgdo7nCNfE52BSsuhT2 c2cbcLATqWp9rLmrgd6NxgD1n+F9GodVuzmHCXaYJMVDikiCcFCuu6ZkBABsmIDMUPj+/3cf5jU Ot3lAB8zJCeE6JE0gbkxqFHfweEJX52luMXCxWpvZSwPTs3Dy4/sUY01lKKjh32K2s9sruXGhNm gCNXKRUod/xmKa4AurGPwX+Mk+blfoVjP1uwNxgV1IhduHZ4gjvZVi+3DWevG+4/zjP2UmOkZvD 7WKRMID5pLSlVeIaNnQ0OsjG65cBVLtgeQiltoRStavUXtWOnDjXLyOFsqfKNPixfus4t2EcXE0 TI5YWXW5zcp/3JN7hlFkPPRkSLgGVPX57YZ+qfccJq7bFIrJfDIw5u136szYJUaC6PI9UuNdsoo oP24PAVcGr1+UhVF5hmauDNebOyDNQ0FBZHgpO0UU2P83+BoEbVtxuhgjrafsGPpJU18q8gYu6m ycOh5oN+kCa1CwA/z3fIDFM5zNuH5nazw4rcg6tzkyOk0w8w4KZEmVl23hGUKd7kOrz+RlI2Kl3 x8GD+UI5nDNhFiQ== 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_221823_755317_CA621537 X-CRM114-Status: GOOD ( 10.84 ) 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 The INTR module for DMASS1 (CSI specific DMASS) is outside the currently available ranges, as it starts at 0x4e400000. So fix the ranges property to enable programming the interrupts correctly. Fixes: 29075cc09f43 ("arm64: dts: ti: Introduce AM62P5 family of SoCs") Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62p.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62p.dtsi b/arch/arm64/boot/dts/ti/k3-am62p.dtsi index d111e044bfdf..94babc412575 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p.dtsi @@ -71,7 +71,7 @@ cbass_main: bus@f0000 { <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */ <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */ - <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMSS */ + <0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */ <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ <0x00 0x70000000 0x00 0x70000000 0x00 0x00010000>, /* OCSRAM */ <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ 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>; From patchwork Tue Feb 20 06:18:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13563450 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 326D7C48BC4 for ; Tue, 20 Feb 2024 06:18:41 +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=otPn8KtCXmvO1Jp/CQYJOreOSSIrI8/Ehtqv2ZCDQts=; b=yOG651+RomVRu9 zWoLOP9lBPSyycBzmFvnBkgO59y3QdxANVtKN+4Mtb7yOuuLxIF69dxHBobkMCYXHgFfxaz4PXRkd knbIbaabK2SWo3ktC4cl2fsuuxyjtf2pO1Hz8/JnhoGshitAl8RW69g1YzhzzwfvHOJvNaWN2ryM1 4hShUclzxNZ60BO3IIAJo/e1vGRTUq+5n8aq3nYIMcAPgRLHepqr8bwUPYXwCNJJ5OLX2bMeYunfb TfoDlA0N2+4Dn/XX3ATmvWRDP3BJzgakcpbAC3++jVAfqHgPZs7/ykrHazDCAx3A3I+YW5+DcVg/9 uqY3611p9bSDrRdLrfmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSZ-0000000DLFH-2oR4; Tue, 20 Feb 2024 06:18:31 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJST-0000000DLBY-0CCx for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 06:18:26 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41K6IGpB128547; Tue, 20 Feb 2024 00:18:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708409896; bh=zFnxQI7K8zbZ4WLsQct1k4LhVjlP+SEye5vpCjICWCo=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=YGuZLU474p128o7GNQ7t6JhU7X3bPkJC8mJbQIsjTJZpiIFjxFTJPKSv96eLhzprZ 94WFB09xZkAwKtSxb7R6gumNtW9anOs1lde+5jbeaefqrjO+SxCU7R/wou5EYg/loU tSv3HzBcgoADlMTpdTKfb/rcFXC4Et9tQUykuHxY= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41K6IGbY017855 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2024 00:18:16 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE111.ent.ti.com (157.170.170.22) 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:16 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE113.ent.ti.com (157.170.170.24) 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:15 -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 41K6IFUc120947; Tue, 20 Feb 2024 00:18:15 -0600 From: Jai Luthra Date: Tue, 20 Feb 2024 11:48:04 +0530 Subject: [PATCH v2 3/4] arm64: dts: ti: k3-am62p: Add nodes for CSI-RX MIME-Version: 1.0 Message-ID: <20240220-am62p_csi-v2-3-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=2382; i=j-luthra@ti.com; h=from:subject:message-id; bh=1otlUFNCIJX/oyo61dusJEUzo2/iZlp/BV1ClIrSGtU=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBl1EQgWM7k6jHq/OCXh2YEyP0xfe+tWoZGqoU1O qdRn3hZvCGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZdREIAAKCRBD3pH5JJpx RTNPEAC4jt7KaRvu1Eco0kd+95uazDnj2iuaa1ywvPIaAaAsbfoejFtIqQwjA25xrUz2dv1NMZ7 oC3M+jZlqovOulLAPeYcSfkn1knhgPVjL+OVmMnzmyr1gGNklUpLbz34dzSIt/pNVclL9kV7sYS d5xblbxV7ZbySZmd7VCsu0DRw5JJim6wm8EhFxc4f+vcKt3OAMFHN68aKgDOEjB+yTJkvafn2Eb ouVPLJyzXPUb2Rtf6GxxoQMcJQEOZri3uIs+N7Un+JJdMY2NMGvHLg1gzDEJVTgEUx9zLrIKZji mYipcaKbsxI1ThqMprlzOGA5gA4YjPt6UT5zL7cyBLBD+rc6Pk8Skfl3aR6yVpfngiy7qr/B9ne dgQDjNTELndMgbDHgoEFb1/22q4aVoxPlIWlfi4uEYb4Mz8+anE0QaT2yROVE62VoVoPQg5bPfG AGK28FOpLbLBGD7tqBSopnCkO+xgnwhxeADDWHlpe6UgofBbPavgS4wuRuKRrrY114wGtMe4JkO l1h5A/rGwz2WxZJ8hwxBS8fg2AoqSdg3QQgOsCmC1Pxxtc5sd/ZMzVFuiTUeWVmMfu6MRoxozbE lzjCv80IjSleZwhpPlL7NfLbTbbF1h59mCX8g16rjMHnRdn3w+CsWMVziwV3i9VASahDlgsVQ34 rtjUpC3rlBpydqg== 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_221825_282174_9BD5F7C3 X-CRM114-Status: GOOD ( 10.32 ) 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 AM62P supports image capture via the MIPI CSI-2 protocol, it uses three IPs to achieve this: Cadence DPHY, Cadence CSI-RX, and TI's pixelgrabber wrapper on top. Add nodes for these IPs in the devicetree, and keep them disabled here, so these may be enabled by the sensor overlays. Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index fb328774879c..3f271e7710d8 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -966,4 +966,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"; + reg = <0x00 0x30102000 0x00 0x1000>; + ranges; + #address-cells = <2>; + #size-cells = <2>; + dmas = <&main_bcdma_csi 0 0x5000 0>; + dma-names = "rx0"; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + 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"; + }; }; From patchwork Tue Feb 20 06:18:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13563452 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 F0730C5475B for ; Tue, 20 Feb 2024 06:18:43 +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=JjTf6vIdAmPfvJSiZ+i/ZASBGiMyR9dacdSO/TmyPJk=; b=PVt43etFGCjbam 1E+/GvlPmWsVg8/h5F+a+6mY4ENgy4PYK+0WQqnSUrKibZNFjME5KGs4nc1qexx2ww00/bfgBN21C nspkWNFKfB1BbXdrJxAlvV2QX19NkQR9dPna2LqZsz1ddoSkXKpqoTPzwmMoCWK/+W6DSE71r0w3J YZtr9p+kwjuR+eMke5KKb8Pb8Icq/Dlr4//EOUjFhfLSwV+KKzqU7+CsjjWEqrE/qw0VC6vEwqESf iqIvun4jo8LMi+Fq55XxCAUGFUNsvAGI1kP5Ba0Bu4o/astkyH377QEpxN00KK9NyOhbsd5fqNaMZ t3ryxaxOS7t4vtN5H3Pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSa-0000000DLFj-1fIl; Tue, 20 Feb 2024 06:18:32 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJST-0000000DLCI-3xm0 for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 06:18:27 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41K6IHZa128561; Tue, 20 Feb 2024 00:18:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708409897; bh=1Ww2tKra2g8SI/rOHyEKtVJHw2cqSJMM6b5DyVtND4U=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=FHmyR6iBSX45l9QEjIRzpFp6FQb4CRqC8krWUuc7x/gC+j36rc2/qxB4FujLhGOAi EonVUsO/W6oAz/pBMCnH+OGoc0lHGiFMMhLNufHU8Kkpo/fdlqL3MJyxHQhQMv/VPp 9SSAnwoYl6w3Stt3HHE90ok3iNXcG9Gj0XsYWPxg= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41K6IHXg017884 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2024 00:18:17 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE110.ent.ti.com (157.170.170.21) 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:17 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE102.ent.ti.com (157.170.170.32) 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:17 -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 41K6IGql120967; Tue, 20 Feb 2024 00:18:17 -0600 From: Jai Luthra Date: Tue, 20 Feb 2024 11:48:05 +0530 Subject: [PATCH v2 4/4] arm64: dts: ti: Enable overlays for SK-AM62P MIME-Version: 1.0 Message-ID: <20240220-am62p_csi-v2-4-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=1928; i=j-luthra@ti.com; h=from:subject:message-id; bh=mOxmtY9st1BCh5hTsuJ9O39rltM8En2NwBJnC+c2x4g=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBl1EQhPPxTSTZCUdaFG3RfCLyvSt17Tz6qj9Q9m etSQMA5YWSJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZdREIQAKCRBD3pH5JJpx Rb7uEADFjRww152PNobZpfle3BZoqucli51S+f4tir2m0U+ybPgiZvGD2vtIUkMNMarJGUdJanQ 7rebIGOo6w20p8H/XnMo5j543RSjpLxDGl254/bL6BnEM0ySiGhXprRLyE/HxabsDgRhVaaModc 2czNW4QeLBgVD1/DPeDB/6A9LVClBLJl5ELE+wVF0AP5w3o/kWbxqWgY4YYCVglUNkdrCv06Zu9 T7RMGlwqiYFQFdwrlOa+gKs431z/aFbdqit6jC0/04gmfAxlaMZ2seG2QFmA05rskXeMZjCAkQ+ fLLvI+njY7O/A6atovwVMxELg3+iWdWqYPOMaIZvbptiZ+O0pcY0Qn9kkW7caJJ7YOvPWcUvxYN 6uXHOmJJS1/uXPtMbbWHLQEzHACPMNxak5Dz0EmDtBe7/MKxyPEctZMjiZ2XBR6ny1oqUH18g6K K5vltWjGeFiCv8wbZdopg7nbNfcwROlgvLUgmk0WbmX9H9VKAyiLxz+nAtVvl4aGS4z5753GyRY +rdW732qwFaMXapONFI66TUOd7p+DEfu7O/1mjoNNYwEyS+lj2eRgAuuEvRalQUkSmWs1fHEZtI lpcrMcV057YFRCxlyoxFX9TNG/fbNn0VzczOwjYCWdQEaKvPO8ymcA3ZFMfqu9b1o8O9Hk/cSrM VHM0w9bV4vLxfnA== 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_221826_142543_FB4B8322 X-CRM114-Status: UNSURE ( 8.65 ) 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 Enable symbols so that overlays can be applied on the base DTB for SK-AM62P. Also compile-test known-to-work camera sensor overlays for OV5640 and IMX219. Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index d601c52ab181..9843b7656725 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -116,6 +116,12 @@ k3-am62a7-sk-csi2-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62a7-sk-csi2-tevi-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo k3-am62a7-sk-hdmi-audio-dtbs := k3-am62a7-sk.dtb k3-am62x-sk-hdmi-audio.dtbo +k3-am62p5-sk-csi2-imx219-dtbs := k3-am62p5-sk.dtb \ + k3-am62x-sk-csi2-imx219.dtbo +k3-am62p5-sk-csi2-ov5640-dtbs := k3-am62p5-sk.dtb \ + k3-am62x-sk-csi2-ov5640.dtbo +k3-am62p5-sk-csi2-tevi-ov5640-dtbs := k3-am62p5-sk.dtb \ + k3-am62x-sk-csi2-tevi-ov5640.dtbo k3-am642-evm-icssg1-dualemac-dtbs := \ k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac.dtbo k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ @@ -142,6 +148,9 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am62a7-sk-csi2-imx219.dtb \ k3-am62a7-sk-csi2-ov5640.dtb \ k3-am62a7-sk-hdmi-audio.dtb \ + k3-am62p5-sk-csi2-imx219.dtb \ + k3-am62p5-sk-csi2-ov5640.dtb \ + k3-am62p5-sk-csi2-tevi-ov5640.dtb \ k3-am642-evm-icssg1-dualemac.dtb \ k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb \ k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \ @@ -156,6 +165,7 @@ DTC_FLAGS_k3-am625-beagleplay += -@ DTC_FLAGS_k3-am625-sk += -@ DTC_FLAGS_k3-am62-lp-sk += -@ DTC_FLAGS_k3-am62a7-sk += -@ +DTC_FLAGS_k3-am62p5-sk += -@ DTC_FLAGS_k3-am642-evm += -@ DTC_FLAGS_k3-am642-tqma64xxl-mbax4xxl += -@ DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@