From patchwork Tue Nov 26 12:51:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 13885862 Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) (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 35FF11CDFBE; Tue, 26 Nov 2024 12:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.235 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732625529; cv=none; b=aElvB89JpsW/mKNeNPU941BGlgtFog16mvSTewSzpgxglxFDCKQgAXlG5Nj7HVuFZSCGQrTJzk/j1tHW/4EkJdc0rOdo77VHxCrA22yXD6vwTkqaIUdqMdiZoQfjMHYRUPiXoEX5IFyAlX/7RjXCyAn013s3qxgZJ+UuIINNWGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732625529; c=relaxed/simple; bh=9eLbBmVDRr8FiRqYc3AmWUBXlPkASUxroR/sxaycl+4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=IkR6PGv86AGXdeZ0gxg770/DOImUgaOiNu7JqNeBeAdnW2FNCv7u2r2uBlLSnq0HllKc1Cn7uJdXx2FmGrNA1dTMvwIgoMef8Lqdv/p09RVgA8Y8J2gLfMK/7Lg1q94uN6l/K+vlNQ/qaSIpjPCjzrTFc5O9zR66DaxWUxLjpYc= 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=b3O5saHG; arc=none smtp.client-ip=198.47.23.235 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="b3O5saHG" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 4AQCq3Cg836590 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Nov 2024 06:52:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1732625523; bh=9geHmMV6aN5aTzxUudRlkCnXCH0ILLe3Yy/urstaKwk=; h=From:To:CC:Subject:Date; b=b3O5saHGIP7YYBvPT2fieFEmuAoq9TOgZkvzwS87Uprx5HpHhlBndGJn559wpond5 q9s2F8H/k74GoqJ+s2ipkliODUPjSm5nE0pfHwmOlGT4uOrmG0UEgwUO4ZqpfBYIyx KVXm5OmGNJZWHzdho1UHTWwV4NcXYbzvEYDSkyeo= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4AQCq2of018836 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 Nov 2024 06:52:02 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 26 Nov 2024 06:52:02 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE112.ent.ti.com (157.170.170.23) 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, 26 Nov 2024 06:52:02 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4AQCpwjn100089; Tue, 26 Nov 2024 06:51:59 -0600 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 1/2] dt-bindings: dma: ti: k3-bcdma: Add J722S CSI BCDMA Date: Tue, 26 Nov 2024 18:21:57 +0530 Message-ID: <20241126125158.37744-1-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea J722S CSI BCDMA is similar to J721S2 CSI BCDMA and supports both RX and TX channels. Add an entry for J722S CSIRX BCDMA. Signed-off-by: Vaishnav Achath --- V1->V2: * Address review from Conor to add new J722S compatible * J722S BCDMA is more similar to J721S2 in terms of RX/TX support, add an entry alongside J721S2 instead of modifying AM62A. V1: https://lore.kernel.org/all/20241125083914.2934815-1-vaishnav.a@ti.com/ Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml index 27b8e1636560..37832c71bd8e 100644 --- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml @@ -196,7 +196,9 @@ allOf: properties: compatible: contains: - const: ti,j721s2-dmss-bcdma-csi + enum: + - ti,j721s2-dmss-bcdma-csi + - ti,j722s-dmss-bcdma-csi then: properties: ti,sci-rm-range-bchan: false From patchwork Tue Nov 26 12:51:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 13885863 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 1ECE61D45E5; Tue, 26 Nov 2024 12:52:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732625532; cv=none; b=VjBDAJuQkOCVASBZCOkVCKPa08Z5S1k1dXiLC7bdMrUaMDSULuHerG0FTKRC61vTmd4E7PY+U3ZOe+WfZ0xRm+BvhsIlG+/rn29cvbY1x6GHaaNDxnIKBbtMLOsR/qPW5xkr0eqyArzXqQkkj5vtThuAIkcEqaXADuqxbAiMrWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732625532; c=relaxed/simple; bh=/acHYtFNj06wvc7vTNE/a0R48sIgzIGssjgoP0DHf8M=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IZvdy42KrDemEYOml2bkfI0VTZJeBSz/2kFszXgDQyFOu1WQDYrQeUITLh2GcN7a8unSV+S7Sdz7hOup8Fe5nZaeELz89C75ewtfStrWZcXiu7M08ejs7eLt5+g94JEtBvewKUtltzvRRlQm4fB8SzOCzjOJmKwol2kZgaND1Hc= 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=m0DCrF2M; arc=none smtp.client-ip=198.47.23.249 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="m0DCrF2M" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4AQCq7t3107389; Tue, 26 Nov 2024 06:52:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1732625527; bh=TsG/YxY9Tn6z4GYZbT+eG4y83xYCvHonowy9SHnDCJY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=m0DCrF2M+GOC/6/GWmKRMk/UJNXxHSXTeO4EPLJEON+1CdhNNfcafXr1ypMPTFbLf v8AdWM8y5RS3g13+CNN60CDfN8ziDDBVi4OrGpbAD2L4SPhkMiK2gS+XQQTl5UpwK6 K97UPP7QtbC6iPRdAfq1GsrAZUps44+OJntxvrpQ= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4AQCq7Qo106891 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 Nov 2024 06:52:07 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 26 Nov 2024 06:52:05 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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 via Frontend Transport; Tue, 26 Nov 2024 06:52:05 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4AQCpwjo100089; Tue, 26 Nov 2024 06:52:02 -0600 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 2/2] dmaengine: ti: k3-udma: Add support for J722S CSI BCDMA Date: Tue, 26 Nov 2024 18:21:58 +0530 Message-ID: <20241126125158.37744-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241126125158.37744-1-vaishnav.a@ti.com> References: <20241126125158.37744-1-vaishnav.a@ti.com> Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea J722S CSI BCDMA is similar to J721S2 CSI BCDMA but there are slight integration differences like different PSIL thread base ID which is handled in the driver. Add an entry to support J722S CSIRX. J722S TRM (11.2 Data Movement Subsystem): https://www.ti.com/lit/zip/sprujb3 Signed-off-by: Vaishnav Achath --- V1->V2: * Add new compatible for J722S instead of modifying AM62A V1: https://lore.kernel.org/all/20241125083914.2934815-2-vaishnav.a@ti.com/ CSI2RX capture test results on J722S EVM with 4 x IMX219: https://gist.github.com/vaishnavachath/e2eaed62ee8f53428ee9b830aaa02cc3 drivers/dma/ti/k3-udma.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index b3f27b3f9209..7ed1956b4642 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -4404,6 +4404,18 @@ static struct udma_match_data j721s2_bcdma_csi_data = { .soc_data = &j721s2_bcdma_csi_soc_data, }; +static struct udma_match_data j722s_bcdma_csi_data = { + .type = DMA_TYPE_BCDMA, + .psil_base = 0x3100, + .enable_memcpy_support = false, + .burst_size = { + TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES, /* Normal Channels */ + 0, /* No H Channels */ + 0, /* No UH Channels */ + }, + .soc_data = &j721s2_bcdma_csi_soc_data, +}; + static const struct of_device_id udma_of_match[] = { { .compatible = "ti,am654-navss-main-udmap", @@ -4435,6 +4447,10 @@ static const struct of_device_id udma_of_match[] = { .compatible = "ti,j721s2-dmss-bcdma-csi", .data = &j721s2_bcdma_csi_data, }, + { + .compatible = "ti,j722s-dmss-bcdma-csi", + .data = &j722s_bcdma_csi_data, + }, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, udma_of_match);