From patchwork Thu Feb 1 13:07:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 195316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp135622dyb; Thu, 1 Feb 2024 05:08:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IERUgmXgs4N5wQ8hdrlzQ7eG/tdR9Sd2+pRStZBzZHYrUrhNhnxtjuH6USLJPwSl+1wyNyD X-Received: by 2002:a05:620a:400a:b0:784:5c6:94cb with SMTP id h10-20020a05620a400a00b0078405c694cbmr4131824qko.0.1706792882011; Thu, 01 Feb 2024 05:08:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706792881; cv=pass; d=google.com; s=arc-20160816; b=snEiQ7SrimFFCWI1jBUJuUOMuop0hi6PL5LjqbcTyeWsFEZAamxxB2r3mR5X9Ntz1K sFwXuoONvLv0MAKvRa7eVcxPwtfM7z3EwO41fNDLY00uFoKgbn+eqAVUfML6W06IE70X Q6mzt11jCkIxKynBfivkC0Fus4poIxTSc1y62wQRUao9K6uu3FJr6RJ34ryqhl8NICZT GZaEYY31Xdk2fFahniWlHyMEwAgnuz3qv5r7uDU4dRSZHcXOgQYbL9wWeh8AVYtRK+if pop+YAMiiThHQ58HUG1vXTSn65S4lfUJCypjVT5AIuig0t0Y4JuTXtz6WdLTKTuDxUP0 u5OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=oQoiwHa2AlMZkLmNMt3eKpIEsv47bV+WnPV6WBux3Jk=; fh=BD4Y/ycSBQd6d6hSzGQw1Lg4Z1t0LWR/ZZ63xLf4vRY=; b=mE+OcGYUNQaVPmvuzwa0bZQ3TfSg8vU+NZ95hfN17LeTcQt8I1EbpQQMk55wPB72p5 LUEKLeWIOE/Whta8a+oZprJN/hadLS8NyuRhl2PaX0HlZgG9sy33hoevXCMdSGcHLlkf k2+XUj2gKGOFHsJSL8hfahcWHbJmmiir5DeyZN9FKsGufEfCeOzxMfrtPByWGgwCUJ/f KLKSjDE7EJMVLh14haMfu1j2Hn0iLn1HaNLO3Ye9R8AYnubb91BwT35jibPMIV9Ah/AB lw/U+5hG6j9YRsVXlqFn3zwS9pKOZrouwjfv47Z1W79jeXH/u7JxFuTB9/AUp7j7l/u3 evkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nhnkWPG8; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48192-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48192-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCXz84QAe4Q9krUGuhOpRFg4Y8xjh1IsZxlCTrLHCXAocwNExNAZYw5JFtJKz+DI0oRUrYP5SikcJuHhlS/L+WikVQIHbw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g9-20020a05620a218900b00783ff7daffcsi8429425qka.439.2024.02.01.05.08.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:08:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48192-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nhnkWPG8; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48192-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48192-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CA5961C23402 for ; Thu, 1 Feb 2024 13:08:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3AC25CDD8; Thu, 1 Feb 2024 13:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="nhnkWPG8" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 846F64D9E9; Thu, 1 Feb 2024 13:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706792839; cv=none; b=ETHRRlw9kbNdaBBVXz1VqVDX0zXkscpfLJYqnkSreePs4PpNl2H90rlvKSNyPyCt+298+mUjeDVBzViO2+uoyZukaLDVieqJVhSvlAhwHQujtsd6Y0n1cf6yE+a556S5LMuxB+zqngP3+Y/E4pQTz2Bdt27PWRWHI14sS+gIyH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706792839; c=relaxed/simple; bh=wga3no5yHB1i1ri478UBzBLBeyiLJJjEqq1Q06COIl8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=TFUFOJQUYYZxlP8JvLnucx7yg04673rdVUydIPmyypKSpAzTPML928P5Fq3u6hv1lmPgekW2P/jQxcBxjNyIo+3rwW8YehOtEmrDXBcBrw5ll+P2ntc2rAAbkpmiNUb+bUQFC7jxb0RN+DxHLjs0gjV3uMMJ+/FmaSw4QEEzzb8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=nhnkWPG8; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 411D7B7T111379; Thu, 1 Feb 2024 07:07:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706792831; bh=oQoiwHa2AlMZkLmNMt3eKpIEsv47bV+WnPV6WBux3Jk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=nhnkWPG8sezM44+vAKv2/Hhk0puVQ0NbbxGjjtNsdQTcgz+hl325jPSlNuGimjGy/ biKf0cKdMaHEmlx91lKIBlBM1jefXv5WNxZA41JgapiCIFZctgr9rzinBj0VY/mYQ8 Fx0bEiKDN4+C0+xCu6VQpbo8KPUDKgDZcVuFGp9A= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 411D7BaK107452 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2024 07:07:11 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) 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; Thu, 1 Feb 2024 07:07:10 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE114.ent.ti.com (157.170.170.25) 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; Thu, 1 Feb 2024 07:07:10 -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 411D7A5L012842; Thu, 1 Feb 2024 07:07:10 -0600 From: Jai Luthra Date: Thu, 1 Feb 2024 18:37:01 +0530 Subject: [PATCH 2/4] arm64: dts: ti: k3-am62p: Add DMASS1 for CSI Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240201-am62p_csi-v1-2-c83bb9eaeb49@ti.com> References: <20240201-am62p_csi-v1-0-c83bb9eaeb49@ti.com> In-Reply-To: <20240201-am62p_csi-v1-0-c83bb9eaeb49@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=1870; i=j-luthra@ti.com; h=from:subject:message-id; bh=wga3no5yHB1i1ri478UBzBLBeyiLJJjEqq1Q06COIl8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlu5d3UzGZI6YxZ0RpP34ApAG9iZABT3QHe4loq xrLB5vXE6WJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZbuXdwAKCRBD3pH5JJpx RQmWD/4zC0k6WPHx8BWC0BSGOGXECIOmBvgFNWKRwwineHuFevumwYrcrajNZm9MXQNELnxmHIP Ee7p99LtuxyQ5BaWQG4U6Q+OtRy/8wPmqS6Oxe7gwCV+7UNbXltCBftFtlaDn9xLte/EcgVsn01 W+eIq7vD4xHdiywXkWv9YKYKPMMeDoL96S3wI0On1hQ2Aix3B6CJiHVipxnkMZTpeb9VMJGZdgo /6Y9p8KCSlwfgR9SRIsP21SJ1Ms5BAuUQWZaAW0J3VZNnwNwBczYnq8hHKQA0EpF7P8ncbE+p4k GpEiuYab2lTRCvBeXkivCaZGEUiuaRGZD+DuZK0LOflcuUy2tB/5ImdUefaMo+uHIrQvWVaSPFO j6Z880nxEqcAC6GoOr0wy9K8MLmq/gHH82yhdG1czC66k7S5MpAfkXXi7F2SJuK+mMzkkpAMJvJ ZAOXt2y+kxFHTGI0cXOMv3E1JPtF0RHTxsHCiF9uqXUsl8U6o6bpQNzh6Hw3AgJkBDs3AU+Bx9G V170r+4IrQSLNtnF3C3NfcJ/LdPxuY9xm4WE8+j8Qs0L9VQyzfksNwn4QP2uk5l1z95vLGPtSEU /61EvcbWtwvpi9iYmvTa3SuMEMJeRRwgWs1nMaXlqg3U3jiY2yEPLAtllfV7UoYO7HvQIepwEE4 sPro7hCuIGEXu4Q== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789702052782140155 X-GMAIL-MSGID: 1789702052782140155 On AM62P, CSI-RX uses a dedicated BCDMA instance (DMASS1) for transferring captured camera frames to DDR, so enable it. Signed-off-by: Jai Luthra Reviewed-by: Vaishnav Achath --- 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 4c51bae06b57..57ec4ef334e4 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>;