From patchwork Fri May 5 08:26:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90343 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp239023vqo; Fri, 5 May 2023 01:31:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dW7bkC2wDb0LOtrxSZMR8K/CRS3hnv3I644uR3OlbZz5yL3vy+Gijs1AACd99qs2uC9ND X-Received: by 2002:a05:6a20:258a:b0:f0:65fb:6cec with SMTP id k10-20020a056a20258a00b000f065fb6cecmr2166969pzd.8.1683275465087; Fri, 05 May 2023 01:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683275465; cv=none; d=google.com; s=arc-20160816; b=yb6dmCY/1zlaGJX9D1+qijkKENO8LWEyzWbgzqovNRELa2JDmg6raR+HCKRWTBuHL6 66poQMaMBBM01p5CoRTbwtqhZZIZHFLqPuEXOgyAo0U+xhiSByRsVyWhcH2F3t/cgPL3 J8aW6qR5RSGlVayPYbNYVokIGOGDdAZQuHwEKG4DGEK3uVjtvPRkeeIYL4Vh442+hKSR hCsdXBkjDxkz6Vfs/dHWjGacsQ6Rj9ebXBfH92TBcD9Y1iyJe9jvkYB+7ZRD51nnDgvw 4GGDJEP1cAz7c5+zaprjAgmf1hGPm1Atms8ea6KjnOpEqLBEVJ1MjDu37GhDgf4g2axo 9ldg== 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=ndzYIrI1HM92lImCXz5u8cPZKuA7dwFABDx9ODiwSODcy5ZHxUNAuj64FB7JaOjfkp imTDn1DO2Px9I/R+cFMV2biJSXMyrMOy9AR4T8Te9x/q8tWzLunoiVbWTDUl3z3Hsj1n XslAHT256rOEg43fLI4q43bAYClay+5gd3FiXs0KVNaIKV1aFZbxCasA+sWDtRCBwsVA fz7iKsqtoaOeB7NdfgH6yulknNW8kgd8GpAIuKXKCgt+rj7aj6HpcAC8KF9uOiotW1op aet0/RaVfV3RXLYjZ9mO1eijk2GO6VeQRsaianHS0iBcg1RG5lPPhrPDUwd5NX+TQmit 4PFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mD5O5x5d; 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 f28-20020a63755c000000b0050bede17e7bsi1522856pgn.347.2023.05.05.01.30.50; Fri, 05 May 2023 01:31:05 -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=mD5O5x5d; 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 S231519AbjEEI3A (ORCPT + 99 others); Fri, 5 May 2023 04:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbjEEI2T (ORCPT ); Fri, 5 May 2023 04:28:19 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0800B18927; Fri, 5 May 2023 01:27:07 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3458Q819003857; Fri, 5 May 2023 03:26:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683275168; bh=dDL1Ix5ed3FpBkik2TeAdp7w4F8HGFiJXQbTgcTMItg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mD5O5x5drXSMEGikaubI8ZijpDUdjYwNgSi1FDfuahvxzryN4xJxKHQR0BaXmKgmM PtVyGYAalrXyFV/IiX5CeMXc8umGhPmE7TwaoqD+lj4EdyoVqk73wXW1kj2e3pHIML wSzUpgAWFi5tQe8mGp5pQI7fwqbg9bzSeLbHqknY= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3458Q84k035321 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 03:26:08 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) 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; Fri, 5 May 2023 03:26:07 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE105.ent.ti.com (157.170.170.35) 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 03:26:08 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3458Q6Yo120576; Fri, 5 May 2023 03:26:07 -0500 From: Vaishnav Achath To: , , , CC: , , , , , , Subject: [PATCH v2 2/2] dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance Date: Fri, 5 May 2023 13:56:02 +0530 Message-ID: <20230505082602.31783-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230505082602.31783-1-vaishnav.a@ti.com> References: <20230505082602.31783-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?1765042253787659707?= X-GMAIL-MSGID: =?utf-8?q?1765042253787659707?= 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 */ }, };