Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp792080lqe; Sun, 7 Apr 2024 04:20:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX701DTW19cajWJxxWsXTAjACoWBezsBKZ+jPREsopgDqvvDN39hxAkaspC7+3YMlwLmFuu8K1za09pqXiHZpMY1r4au2Xq5pWaK+cPUg== X-Google-Smtp-Source: AGHT+IHX/M/RWfkjNLdA3BH5lvMK8E7Pho6Dw/3YsVTPmjGU22JnPfUpBscR8jw5yLdsguROmzYu X-Received: by 2002:a50:99d3:0:b0:56e:2c34:cfec with SMTP id n19-20020a5099d3000000b0056e2c34cfecmr4643102edb.7.1712488854791; Sun, 07 Apr 2024 04:20:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712488854; cv=pass; d=google.com; s=arc-20160816; b=XBtcqzLgmn+M8W/AE282TwBzxHcQepg0F5De6hOFmFaLyQdp9Xoztf5Z9zfCxas4vX ueiTjdFXz7tJm8UlYf0o4Hz9wzyayhrv9MNrnH/x9EmX8a7vdvqEGX3uu/Y9pHnrqeZ3 TBTzQbJ9h1EM2xEGfav9Qp9RP53mDafKtzynd+e/G50P2lvw+KYbHrNz8sKrvWZ+8Tl0 6NpO5x+HsqQDAFSBQulpuGEzTCabAS4GDc/rxbIuKqhTceWJsh+FKf+Yl1FKDrWMRFtY TlJhqOmUfCcAAg+Oxq6sJoc8S80lb+rIJ3uEo+qg7L+YJ/xJBo7n2XFT+RPw7BQrHJdR sz5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+B7wJv4hjosTpjHPGU0ePbLXz1a2BapEWV3Aeghfq8M=; fh=JH763t9DDg4BpKIjDj8h/iQDsjfkn6wjiGsmh0y9HXI=; b=aP2LAIzyRncLLr90d9d4ePheESzhD4A12bJrLrRNqNy0cLtRLfQ03koIQApnf45c7x b35jOO5XJTTucRXBOrdp0eKBh0JNUy7HRo4r6V+4Y9O/IvKOmAhw38JDVGmcM1INlS4d L0vUYhkiMkocGjSBXDtMkwy4VtdBWjHiMAprhy/4SRCYaHzpdzOheooE5K24sRNGqqHM LeCxObj0xhnpEH0yGd3JlfKZj10o1nUn5x5YBp3AWyO1p7D7Y8Azm5WnjTtBZlritKxv EVi2NPKPtXVPmSWlm3riOm5WHUiwn8CE2Ovy7UuMYlbG7guNekB8EFr1UzO71tnpvFNQ 8EqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RrFuU9bA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u26-20020a50951a000000b0056df9749489si2585249eda.651.2024.04.07.04.20.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 04:20:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RrFuU9bA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 384D71F21B7A for ; Sun, 7 Apr 2024 11:20:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C101B21103; Sun, 7 Apr 2024 11:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RrFuU9bA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D91344C74; Sun, 7 Apr 2024 11:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712488844; cv=none; b=NxkrNnyfwlwDeQKT0sDWzZDGZR94ERb2bB9jW8nAEcBEVYO85BRF1BM69hatm5L3Nh+sHI8lL16DHGlz2s0mBnkASeSEXiRUGpcWsYb9+iLU6IMGau18GX07OscMN1S90qjvu7wfwAb6+uhxW1C+6v4krkbid5NPOMuLCVJEJlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712488844; c=relaxed/simple; bh=B8qP/5qR0tCYxniedXWZSEKIbjIGnreM1D7dmEkoxQM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L2icW3QknwJWWldfXuCkwGJljRwuXtfAxudiu0ecsIEF9Kp4/w29CAUd1v1NB87I5zObCxD6l9NODbQnrUMxMHug0eplu3j0yRV0/0lMzvrE91UkkpUZrtTY+R9BLAKL5VKoMa+p4JrvR9W/if4R5htN/cEQuU2fpN1+G8PkjGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RrFuU9bA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82E0EC433F1; Sun, 7 Apr 2024 11:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712488843; bh=B8qP/5qR0tCYxniedXWZSEKIbjIGnreM1D7dmEkoxQM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RrFuU9bA/ly7QQL6Z4zjQ76Q+behnyXwOKFXBlJhtL9erAnOO73B8Dsn7krUtdb4K URCYy2SPBMfkwDZdJRrQxcArmZBQC1qxNE785MUIYYadRPcd/Z208VE7+9Ks2qi3bG Bgb6hrx6VkYFNDTgpqJLltJIBMkQFT3amheMrboIfu8BgXiyoZnpxfnvborIYJYFAk LZ8VzMiMKmUZSchC3pAw9DsjyNa4nuLtrecUfzBzXWPdr1DVGVxAHSxZxCHDcq4RG/ 5n0KGumriCC8m6O1MH9scj3Q5MfSzY3pUhK9xkr4Gu8Z6t4TghdTaBxNTpzLD53vS4 sxsQDiby4psWw== Date: Sun, 7 Apr 2024 16:50:38 +0530 From: Vinod Koul To: Frank Li Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joy Zou , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, Robin Gong , Clark Wang , Daniel Baluta Subject: Re: [PATCH v4 5/5] dmaengine: imx-sdma: Add i2c dma support Message-ID: References: <20240329-sdma_upstream-v4-0-daeb3067dea7@nxp.com> <20240329-sdma_upstream-v4-5-daeb3067dea7@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240329-sdma_upstream-v4-5-daeb3067dea7@nxp.com> On 29-03-24, 10:34, Frank Li wrote: > From: Robin Gong > > New sdma script (sdma-6q: v3.6, sdma-7d: v4.6) support i2c at imx8mp and > imx6ull. So add I2C dma support. > > Signed-off-by: Robin Gong > Acked-by: Clark Wang > Reviewed-by: Joy Zou > Reviewed-by: Daniel Baluta > Signed-off-by: Frank Li > --- > drivers/dma/imx-sdma.c | 7 +++++++ > include/linux/dma/imx-dma.h | 1 + > 2 files changed, 8 insertions(+) > > diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c > index f68ab34a3c880..1ab8a7d3a50dc 100644 > --- a/drivers/dma/imx-sdma.c > +++ b/drivers/dma/imx-sdma.c > @@ -251,6 +251,8 @@ struct sdma_script_start_addrs { > s32 sai_2_mcu_addr; > s32 uart_2_mcu_rom_addr; > s32 uartsh_2_mcu_rom_addr; > + s32 i2c_2_mcu_addr; > + s32 mcu_2_i2c_addr; > /* End of v3 array */ > s32 mcu_2_zqspi_addr; > /* End of v4 array */ > @@ -1081,6 +1083,11 @@ static int sdma_get_pc(struct sdma_channel *sdmac, > per_2_emi = sdma->script_addrs->sai_2_mcu_addr; > emi_2_per = sdma->script_addrs->mcu_2_sai_addr; > break; > + case IMX_DMATYPE_I2C: > + per_2_emi = sdma->script_addrs->i2c_2_mcu_addr; > + emi_2_per = sdma->script_addrs->mcu_2_i2c_addr; > + sdmac->is_ram_script = true; > + break; > case IMX_DMATYPE_HDMI: > emi_2_per = sdma->script_addrs->hdmi_dma_addr; > sdmac->is_ram_script = true; > diff --git a/include/linux/dma/imx-dma.h b/include/linux/dma/imx-dma.h > index cfec5f946e237..76a8de9ae1517 100644 > --- a/include/linux/dma/imx-dma.h > +++ b/include/linux/dma/imx-dma.h > @@ -41,6 +41,7 @@ enum sdma_peripheral_type { > IMX_DMATYPE_SAI, /* SAI */ > IMX_DMATYPE_MULTI_SAI, /* MULTI FIFOs For Audio */ > IMX_DMATYPE_HDMI, /* HDMI Audio */ > + IMX_DMATYPE_I2C, /* I2C */ I have HDMI Audio: 26 already? -- ~Vinod