From patchwork Fri May 5 14:39:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp459175vqo; Fri, 5 May 2023 07:43:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Yz9xjDsi3UOeKJ34nwXWvK6dOnHlA0WeHS0cEsEDVrH/NEw2nZHzQ6Y/6t2mZuaVCS5I0 X-Received: by 2002:a17:903:120d:b0:1a5:2993:8aa6 with SMTP id l13-20020a170903120d00b001a529938aa6mr1862353plh.63.1683297804729; Fri, 05 May 2023 07:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683297804; cv=none; d=google.com; s=arc-20160816; b=CGpmnsj8qUlcSiBd0ls65obUBez0nZAlpZlL4jovpVgcAHA8UCe3zNzddLFnxDNbCZ WFrQ5hWbmBGa0NkuppUPGw4XUtN1ylK4FlmkJeFyGpLDirpal/m7V4MN6HPmF3RKZEh8 5nWqn3Gtvwq6GjIJNd9+jny/epLbaKlOsIZQNmu/IyiqAORW8F+2V9AgGuKLS2qG2FdK jMY1CYcz8srUYTlDWEN1jk4x/8yxWhrfUytOo9+rJw4GHVuwMznZDhIE5Ha7+io1Jksw yf3E3drQmTgqinPd+zb9MIxrhS4qpIsuCwPolvfPIWMQXu73E4pJnfpK/9WW4fXvePwn NkVQ== 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=1kQ1KWTdL2m4TLS0zoE+1YZP6/kYoYIQqI8C4X6l3nQ=; b=DtqzZkE4dXh1Jp3Y+SjqTwws9nTMiiVxSwvY3SGb9/YnTdrjmq44wlNWa7wrKD0C6+ uhhyNWHkM++gS8mxZ+s4nIfihkk5skNl8AYhRUKtU4/jym3Zapvj0uS+wEo+LpaTvyhR wKKDQT9A0e3susH2li9Zx9SFWIB1AcsTQaPLGuQMwPZgJpu9qT9pHr/8PC+gjA/HoY6x T40Vhf0aTgMyAT1o9MbNEoORhaQNXYNadVN1ZSlIBpFzmt1uI6FbxftNo+gbwM9ha/0G 7KODFHuDTEPmQ7rE136wS9OeMAB8Z7+cs3jint1cFGNhO2CnWS7wBerr+YMEvDuSenlr Ymfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RdnTrBbZ; 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 m18-20020a170902db1200b001a6dc4a98f7si1799013plx.365.2023.05.05.07.43.05; Fri, 05 May 2023 07:43:24 -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=RdnTrBbZ; 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 S232533AbjEEOjp (ORCPT + 99 others); Fri, 5 May 2023 10:39:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjEEOjk (ORCPT ); Fri, 5 May 2023 10:39:40 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7537F1634E; Fri, 5 May 2023 07:39:39 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 345EdXbG001399; Fri, 5 May 2023 09:39:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683297573; bh=1kQ1KWTdL2m4TLS0zoE+1YZP6/kYoYIQqI8C4X6l3nQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RdnTrBbZ5ovXP9Qlq8uZZhCXtx0nHIOdqFGbY8UpprK9s1gEexSDb3jFf1nmkfPc6 fDnAPZaQOTV1g/XXKS4CdBit7ZPjFW8YvBCcbzAisaB1S+cofErJBY3IdLbErQzwPo Rb89tJ4N3mb/uQuwBWsW1qhwOcOclNuCKav4E4Gs= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 345EdXjr123278 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 09:39:33 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) 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; Fri, 5 May 2023 09:39:32 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) 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:32 -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 345EdVNE045167; Fri, 5 May 2023 09:39:32 -0500 From: Vaishnav Achath To: , , , , CC: , , , , , Subject: [PATCH v3 1/2] dt-bindings: dma: ti: Add J721S2 BCDMA Date: Fri, 5 May 2023 20:09:28 +0530 Message-ID: <20230505143929.28131-2-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?1765065678782440807?= X-GMAIL-MSGID: =?utf-8?q?1765065678782440807?= 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 Reviewed-by: Krzysztof Kozlowski --- V2->V3: * Avoid using if:else:if, instead move ti,am64-dmss-bcdma to new if:, also keep entries in alphabetical order. V1->V2: * Move J721S2 BCDMA entry to else condition to avoid failure with AM62A BCDMA. .../devicetree/bindings/dma/ti/k3-bcdma.yaml | 54 +++++++++++++------ 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml index beecfe7a1732..4ca300a42a99 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 @@ -151,7 +152,12 @@ allOf: required: - power-domains - else: + - if: + properties: + compatible: + contains: + const: ti,am64-dmss-bcdma + then: properties: reg: minItems: 5 @@ -168,6 +174,28 @@ allOf: - ti,sci-rm-range-bchan - ti,sci-rm-range-tchan + - 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 + unevaluatedProperties: false examples: 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 */ }, };