Re: [PATCH 7/8] dmaengine: tegra: Add Tegra264 support
From: Frank Li
Date: Tue Feb 17 2026 - 14:53:48 EST
On Tue, Feb 17, 2026 at 11:04:56PM +0530, Akhil R wrote:
> Update compatible and chip data to support GPCDMA in Tegra264.
>
> Signed-off-by: Akhil R <akhilrajeev@xxxxxxxxxx>
> ---
Reviewed-by: Frank Li <Frank.Li@xxxxxxx>
> drivers/dma/tegra186-gpc-dma.c | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/drivers/dma/tegra186-gpc-dma.c b/drivers/dma/tegra186-gpc-dma.c
> index b8ca269fa3ba..11347c9f3215 100644
> --- a/drivers/dma/tegra186-gpc-dma.c
> +++ b/drivers/dma/tegra186-gpc-dma.c
> @@ -1342,6 +1342,25 @@ static const struct tegra_dma_channel_regs tegra186_reg_offsets = {
> .spare = 0x40,
> };
>
> +static const struct tegra_dma_channel_regs tegra264_reg_offsets = {
> + .csr = 0x0,
> + .status = 0x4,
> + .csre = 0x8,
> + .src = 0xc,
> + .dst = 0x10,
> + .src_high = 0x14,
> + .dst_high = 0x18,
> + .mc_seq = 0x1c,
> + .mmio_seq = 0x20,
> + .wcount = 0x24,
> + .wxfer = 0x28,
> + .wstatus = 0x2c,
> + .err_status = 0x34,
> + .fixed_pattern = 0x38,
> + .tz = 0x3c,
> + .spare = 0x44,
> +};
> +
> static const struct tegra_dma_chip_data tegra186_dma_chip_data = {
> .nr_channels = 32,
> .addr_bits = 40,
> @@ -1372,6 +1391,16 @@ static const struct tegra_dma_chip_data tegra234_dma_chip_data = {
> .terminate = tegra_dma_pause_noerr,
> };
>
> +static const struct tegra_dma_chip_data tegra264_dma_chip_data = {
> + .nr_channels = 32,
> + .addr_bits = 48,
> + .channel_reg_size = SZ_64K,
> + .max_dma_count = SZ_1G,
> + .hw_support_pause = true,
> + .channel_regs = &tegra264_reg_offsets,
> + .terminate = tegra_dma_pause_noerr,
> +};
> +
> static const struct of_device_id tegra_dma_of_match[] = {
> {
> .compatible = "nvidia,tegra186-gpcdma",
> @@ -1382,6 +1411,9 @@ static const struct of_device_id tegra_dma_of_match[] = {
> }, {
> .compatible = "nvidia,tegra234-gpcdma",
> .data = &tegra234_dma_chip_data,
> + }, {
> + .compatible = "nvidia,tegra264-gpcdma",
> + .data = &tegra264_dma_chip_data,
> }, {
> },
> };
> --
> 2.50.1
>