From patchwork Wed May 3 06:53: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: 89579 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1127634vqo; Wed, 3 May 2023 00:05:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HLjbiDKezbc6yqyD0h9tC4qun9MTGpvcxP3Do4aWtGHgOHkGpcGdBZ8V50ipRQWgDyS3T X-Received: by 2002:a17:90a:5802:b0:24e:1ca6:2206 with SMTP id h2-20020a17090a580200b0024e1ca62206mr1442882pji.8.1683097503975; Wed, 03 May 2023 00:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683097503; cv=none; d=google.com; s=arc-20160816; b=qTaFawruWhIgP6YGFHfiT5txhNlJBSTBEC2yrt1C8iF9XNpe8+4sVIyN+BWFG2HW2J x9LdBrehdO2uZlyq/wFp8jp/dZIXf599VjbMffL9ExEFqGOP5e3w+/VP828e+NORLq/F OuyFcwPJlhfj1rOvsR9AkgpJtrjVG5+f+DgkqywWhMBz82L9noVnhQJTtq45QMUJ6YSI 9a2/g6ixTIr4YQ2HwHU5mB2RhX4pzt8IusF3SgceB9zfFFwS3OIS6hfM7r5aQ8WFGnks gZb17PCcZMlumUmpeiH5EnZWfSIJsBciyCmrBBmyXkWoc0Y7kXleKoiEg57l6olYbZm9 2lPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=VurFgGySbQkfcSExMQrzeXBMZ00w2zK+5oK6ceDKM9U=; b=xRXnLoGVSPkGo4a+fL7PFWi0cQSq1L5QGAxskw8jZqN2Elk6kL6RD3ASKec1bL7rcI kv0g5sDRwJsWoI1ictX1VZXHxFGyWOX+Zw0nr5N8o331dZ4Nz8FasUqOKp6p6ljBaHi6 dHPjZpIirO/qdUgCPWQnFcyS2zcCkGB4q3SpwgeF43hLOWmcQcU7rJxg8qZ2Xnegnr6u uzrQOYpUMk02fCgWfDgcGcdbaIq1PIYyJTzCdcF542WxADYLgnnE4reaiCqvctsep3H0 y3mvrlitRDMFo6ccng+lAE404LICfCZ/Hkalmf4RdKzKxR7NaHHwmUA8JjKOs1NWzcpx IEEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bsHwi9PZ; 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 np10-20020a17090b4c4a00b002477dac5834si13977083pjb.95.2023.05.03.00.04.48; Wed, 03 May 2023 00:05:03 -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=bsHwi9PZ; 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 S229633AbjECGxT (ORCPT + 99 others); Wed, 3 May 2023 02:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjECGxR (ORCPT ); Wed, 3 May 2023 02:53:17 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778161BEC; Tue, 2 May 2023 23:53:15 -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 3436r5Xt015957; Wed, 3 May 2023 01:53:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683096785; bh=VurFgGySbQkfcSExMQrzeXBMZ00w2zK+5oK6ceDKM9U=; h=From:To:CC:Subject:Date; b=bsHwi9PZdKcJG0N89hAdecEHuagUlb7Ygf/lN1SE0R3CxKDuhBaurpWTEWBnXVnnP gMtOJz3JUr/TXpnqIR4RVikXKdEO9BIU+1j+Rs4D0RMhUzhMPTdKITXVLjBVEDUhu5 s26aXFznWdCm0FqZgr7W2NLnzS6zXRO+5ZNA8SvY= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3436r5q9126803 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 01:53:05 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 3 May 2023 01:53:05 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Wed, 3 May 2023 01:53:05 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3436r4iG083057; Wed, 3 May 2023 01:53:04 -0500 From: Vaishnav Achath To: , , , CC: , , , , , , Subject: [PATCH 1/2] dt-bindings: dma: ti: Add J721S2 BCDMA Date: Wed, 3 May 2023 12:23:02 +0530 Message-ID: <20230503065303.16674-1-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 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,URIBL_BLOCKED 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?1764855648594933497?= X-GMAIL-MSGID: =?utf-8?q?1764855648594933497?= Add bindings for J721S2 BCDMA instance dedicated for Camera Serial Interface. Unlike AM62A CSI BCDMA, this instance has RX and TX channels but lacks block copy channels. Signed-off-by: Vaishnav Achath --- .../devicetree/bindings/dma/ti/k3-bcdma.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml index beecfe7a1732..5ca9581a66f4 100644 --- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml @@ -33,6 +33,7 @@ properties: enum: - ti,am62a-dmss-bcdma-csirx - ti,am64-dmss-bcdma + - ti,j721s2-dmss-bcdma-csi reg: minItems: 3 @@ -150,7 +151,27 @@ allOf: required: - power-domains + - if: + properties: + compatible: + contains: + const: ti,j721s2-dmss-bcdma-csi + then: + properties: + ti,sci-rm-range-bchan: false + + reg: + maxItems: 4 + reg-names: + items: + - const: gcfg + - const: rchanrt + - const: tchanrt + - const: ringrt + + required: + - ti,sci-rm-range-tchan else: properties: reg: From patchwork Wed May 3 06:53:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 89580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1127637vqo; Wed, 3 May 2023 00:05:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kl6CR38ihfJt6Pg70u2WZ9NyLq5+cmd4yCWcPDvUcdy94G5yejd2I4VgyeE38/oMA/5Is X-Received: by 2002:a17:90b:388:b0:24e:688:30f8 with SMTP id ga8-20020a17090b038800b0024e068830f8mr7733925pjb.49.1683097504118; Wed, 03 May 2023 00:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683097504; cv=none; d=google.com; s=arc-20160816; b=zHJTOjit67MA1aWit8Xrs9iW8aldIWilDF1dS8oK1anjGSjYA9VrflMJdhL/CO6inE EFD5mAY5DF6jqKjdf46vSi5fDxAwlPq+dUH3IehdPLyoEelffHWIXfiRPFoA2kJLgjwb zM7iuZzS/e7xB8bp+ASe7EyZEgLQEid2t30DI+4cfLats5vGYKwW6IUCiiAwzAXrQulx hqjUzFNY12XDZqLijlIrHrcSTVZPMz+P5jTeaTdMpzpYc7PWeKDHbIWbJoDCxX9seE1B HVm9taIWdn+zFJ9eT5/1ArS0k3GnGJcqWowWS2vRw0ZoIUPRphF4fYrLMloTlwGfImgj GgyA== 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=CLjFSxUEVGucEuzSE1pGGtQ4JU6Lw74mzLA2PTBlqgoq3b6X1obVZizhIKTsJAQXLt sUrEBBsGauZXuE3O/YyW40lDMxU/reb5J9EAc0UN6xYWlVVPVQ7wxWJeZ+oed8RWz4h2 g3LxJJEyxHtxadqtyw6s3k8WhYShuL0YY6YFEVNTthOeB+Q8IMURib5rywQnxi3gcguP DHaIkq8yDgOsXG3e3QuzbF4Es4dY/rfsv47d5gMZ4gy4Q+QaskZ5hU0wc31n1tmvZ5Z4 t8szIMFlGlqpAw4QG8EDwglY440PvFnY3z8Qp3p1FlDM46a8HtkJpCKQ1CvKt1jpuy1d bJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="MWV6/DKA"; 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 pg2-20020a17090b1e0200b00246b7a596eesi925404pjb.146.2023.05.03.00.04.48; Wed, 03 May 2023 00:05:04 -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="MWV6/DKA"; 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 S229692AbjECGxW (ORCPT + 99 others); Wed, 3 May 2023 02:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjECGxS (ORCPT ); Wed, 3 May 2023 02:53:18 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E8C62684; Tue, 2 May 2023 23:53:17 -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 3436r7iD015967; Wed, 3 May 2023 01:53:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683096787; bh=dDL1Ix5ed3FpBkik2TeAdp7w4F8HGFiJXQbTgcTMItg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MWV6/DKAaut9rrmb1aPB1cvas7X8I34+NweCC4JQ3ecLXKTvBzgkbY8IK2ZPNsVRc C1HZMCa9KWBNrxMJkRy8QOE8I/scqGv1wb2sp9KVUegVdLjGmA74ZxYCX9N7EUxYXV IqmFe5PvPQNwKeMn9nuFUae7aaPMSD3+DmXr5GAs= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3436r7mQ126813 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 01:53:07 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 3 May 2023 01:53:07 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) 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; Wed, 3 May 2023 01:53:07 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3436r6s4083088; Wed, 3 May 2023 01:53:06 -0500 From: Vaishnav Achath To: , , , CC: , , , , , , Subject: [PATCH 2/2] dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance Date: Wed, 3 May 2023 12:23:03 +0530 Message-ID: <20230503065303.16674-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230503065303.16674-1-vaishnav.a@ti.com> References: <20230503065303.16674-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,URIBL_BLOCKED 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?1764855648508884116?= X-GMAIL-MSGID: =?utf-8?q?1764855648508884116?= 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 */ }, };