From patchwork Fri May 5 14:39:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90466 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp458849vqo; Fri, 5 May 2023 07:42:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bEqFIzMFkyFAiuQEt42m4AOIG+VAWFc29c+emXdyj0TwXbSIoER6RyzsHvp9lT/IuKApE X-Received: by 2002:a05:6a00:896:b0:62a:4503:53b8 with SMTP id q22-20020a056a00089600b0062a450353b8mr2826770pfj.1.1683297773477; Fri, 05 May 2023 07:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683297773; cv=none; d=google.com; s=arc-20160816; b=fikXEh5qwcCJ7jvHM1X69bHZcKgfDn7moSor7LdMwItKAHWtx0M1fdznSwgtgOkbYv Ru4l2oIVOrgVfMVn3Pn60jVwuTJQj0Zo4o9i43EzXRqwftdoINUCeL1jiouh/NCnls8r sDJRQN2Tq+DAeHmlpFhJqQ6d1/mUKW5xpDR0zyPjsAMnAOYappYUXI1tFDp4HGHd3nBE wF7z0GAKXrKVzE2LMACqViaunict7VmoXEC1fR54o5d28c8QgM86f1qONYFbjZ0CRQWW xCMZM/lL3UpbZEWv2jfZgdo4S7rtivpX+ggCZDAsgvJr3SczUfcBOP6/i9vPcgnDQ46F onLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dDL1Ix5ed3FpBkik2TeAdp7w4F8HGFiJXQbTgcTMItg=; b=xiWZ3rbcDjeGL6SrJqg9ZrY99WD8f9JcktbWscqubg/6FZc0XThXVPvoQqeNiW+gr5 ysaYy3vRqEX6Vxs6EQdsVxaFOkpc+cBFnIr8ftbBWfvntGgT+sdbEu6/0xpuCVlZez21 /k6Hid8nw5njj7wBp6Hnklwj0rN3MTiPJ0Pzlku0Ipt1vA0e1tmZD1O/TfVdT55BZH1Q Yd8sLMm35d2HGuExPRm2RDdctxsetdRkwhtsJyFwXujdHj8zx0GX6esSxPKziAxs9c9M OaYgYWYJLk82PEtfFXT2wr4I1cxj8muA1WSLskxN4zGBibR7k33FeWvrfWzirTJ/5Rcl ehFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ipxeQOzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020aa79a0f000000b0063b5e9c3c28si2218090pfj.35.2023.05.05.07.42.41; Fri, 05 May 2023 07:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ipxeQOzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232909AbjEEOjl (ORCPT + 99 others); Fri, 5 May 2023 10:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232758AbjEEOjj (ORCPT ); Fri, 5 May 2023 10:39:39 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3543C38; Fri, 5 May 2023 07:39:38 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 345EdY3k083468; Fri, 5 May 2023 09:39:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683297574; bh=dDL1Ix5ed3FpBkik2TeAdp7w4F8HGFiJXQbTgcTMItg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ipxeQOzq47k4DVknxcdtEMQNqnfx4hU2QZEd/WE/1xiSQkFfHPdZ1GCWQ20r6TRrT YesYYxluA9CxeeCxJ5tB0VtBksCaVkgmwiYb6mXtyEFhGdv6mV9Ca2By3xFwWrSVEo SZn1dz2Awb7gXwTgROhP7uAa/NHqsvXdoCjywhgU= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 345EdYo6015164 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 09:39:34 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 5 May 2023 09:39:34 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.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; Fri, 5 May 2023 09:39:34 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 345EdX61113551; Fri, 5 May 2023 09:39:34 -0500 From: Vaishnav Achath To: , , , , CC: , , , , , Subject: [PATCH v3 2/2] dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance Date: Fri, 5 May 2023 20:09:29 +0530 Message-ID: <20230505143929.28131-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230505143929.28131-1-vaishnav.a@ti.com> References: <20230505143929.28131-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765065645914249307?= X-GMAIL-MSGID: =?utf-8?q?1765065645914249307?= 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 --- drivers/dma/ti/k3-udma.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index fc3a2a05ab7b..16c5c333808b 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -4308,6 +4308,15 @@ static struct udma_soc_data am62a_dmss_csi_soc_data = { }, }; +static struct udma_soc_data j721s2_bcdma_csi_soc_data = { + .oes = { + .bcdma_tchan_data = 0x800, + .bcdma_tchan_ring = 0xa00, + .bcdma_rchan_data = 0xe00, + .bcdma_rchan_ring = 0x1000, + }, +}; + static struct udma_match_data am62a_bcdma_csirx_data = { .type = DMA_TYPE_BCDMA, .psil_base = 0x3100, @@ -4346,6 +4355,18 @@ static struct udma_match_data am64_pktdma_data = { }, }; +static struct udma_match_data j721s2_bcdma_csi_data = { + .type = DMA_TYPE_BCDMA, + .psil_base = 0x2000, + .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", @@ -4373,6 +4394,10 @@ static const struct of_device_id udma_of_match[] = { .compatible = "ti,am62a-dmss-bcdma-csirx", .data = &am62a_bcdma_csirx_data, }, + { + .compatible = "ti,j721s2-dmss-bcdma-csi", + .data = &j721s2_bcdma_csi_data, + }, { /* Sentinel */ }, };