Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance

J721S2 has dedicated BCDMA instance for Camera Serial Interface RX
and TX. The BCDMA instance supports RX and TX channels but block copy
channels are not present, add support for the same.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Link: https://lore.kernel.org/r/20230505143929.28131-3-vaishnav.a@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Vaishnav Achath and committed by
Vinod Koul
ceb434d5 6de80a0c

+25
+25
drivers/dma/ti/k3-udma.c
··· 4308 4308 }, 4309 4309 }; 4310 4310 4311 + static struct udma_soc_data j721s2_bcdma_csi_soc_data = { 4312 + .oes = { 4313 + .bcdma_tchan_data = 0x800, 4314 + .bcdma_tchan_ring = 0xa00, 4315 + .bcdma_rchan_data = 0xe00, 4316 + .bcdma_rchan_ring = 0x1000, 4317 + }, 4318 + }; 4319 + 4311 4320 static struct udma_match_data am62a_bcdma_csirx_data = { 4312 4321 .type = DMA_TYPE_BCDMA, 4313 4322 .psil_base = 0x3100, ··· 4355 4346 }, 4356 4347 }; 4357 4348 4349 + static struct udma_match_data j721s2_bcdma_csi_data = { 4350 + .type = DMA_TYPE_BCDMA, 4351 + .psil_base = 0x2000, 4352 + .enable_memcpy_support = false, 4353 + .burst_size = { 4354 + TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES, /* Normal Channels */ 4355 + 0, /* No H Channels */ 4356 + 0, /* No UH Channels */ 4357 + }, 4358 + .soc_data = &j721s2_bcdma_csi_soc_data, 4359 + }; 4360 + 4358 4361 static const struct of_device_id udma_of_match[] = { 4359 4362 { 4360 4363 .compatible = "ti,am654-navss-main-udmap", ··· 4393 4372 { 4394 4373 .compatible = "ti,am62a-dmss-bcdma-csirx", 4395 4374 .data = &am62a_bcdma_csirx_data, 4375 + }, 4376 + { 4377 + .compatible = "ti,j721s2-dmss-bcdma-csi", 4378 + .data = &j721s2_bcdma_csi_data, 4396 4379 }, 4397 4380 { /* Sentinel */ }, 4398 4381 };