From patchwork Fri May 5 08:26:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90403 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp285090vqo; Fri, 5 May 2023 03:13:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6h42TIPQiiBDMUdBi39Ou4EaC46xnicEZauu+sBxlRGSaphjUSVANxeskzfyQQW7sNb14k X-Received: by 2002:a05:6a20:7620:b0:f2:791f:7ce1 with SMTP id m32-20020a056a20762000b000f2791f7ce1mr753209pze.44.1683281589657; Fri, 05 May 2023 03:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683281589; cv=none; d=google.com; s=arc-20160816; b=r8IaeI0zmuyLXpDdIN7EMiF3+E9OnWNT2zHLehmug5ziWZFuQAyM2KBvA11b2irlBR b1gnKqcvv8upQcDvES6wVxuWYPCJ34Qyc2muL6zev9T+EBXZEWc+iEiCleKMPA/1D4AS SfBvX1UF0pOfMSWdxEkSGauFBB/WTOhRSmaRs2MYODdY8aAWLBZdxcdT6WP4frMwr1a0 EAY86Rso1rrvkxz/kYR55CdDCtbRNE2jodAkNkQiiMofeWSD7rN+VDyaUnPVpET3Q5vU FMfLbiwsfLnedtoGjmuvh/nZAzuhqeI6SV/Y/jgn1G6UeGS6GkBL29Aj4KMwELBn8dz1 2ZKg== 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=dcoc0TaLj2PqYHrHsjoa5H3Fd5Sh+EZ+E15K/tnODBY=; b=kVVJ9Xp+ba1n9t25F99SUzklCudrBizshA5NExY+A5kLizNHIVIhP3gC3ycQr03WMG kC4Mdp+KbSVpFJ5JHreXinMRFhjxiPIQXWZkSDllEijgku6YKOseJiH/z2ANcUuUQrGB VP+paWEUGkABZWqwIZzwpxQYztNJ7fBerN675EqF8FYqtoOgFGVHR9f2zQ9nwpHwE7eO wqfebYRF1nzXseFc9pYzgK3BiT9fuBQ3jtscTBLOKNsHtvBgmfG9c/AJYmznhQ/i9Hzc IOsjgdDgSyOIrHBRRUUS+VwZjdKV/Bk0b/hxzP/nBBWIT60PvigP0LwhJp1f7fw7NAM+ 2mMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="FrM10/DP"; 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 v184-20020a6389c1000000b0051394ccd19csi1716074pgd.55.2023.05.05.03.12.57; Fri, 05 May 2023 03:13:09 -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="FrM10/DP"; 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 S231790AbjEEJtU (ORCPT + 99 others); Fri, 5 May 2023 05:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbjEEJtS (ORCPT ); Fri, 5 May 2023 05:49:18 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBF618DD2; Fri, 5 May 2023 02:49:15 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3458Q6ne076875; Fri, 5 May 2023 03:26:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683275166; bh=dcoc0TaLj2PqYHrHsjoa5H3Fd5Sh+EZ+E15K/tnODBY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FrM10/DPdGSDPFfWy0E/gKSCiEWHXRfg7Jh44prTOEpNNtXnG0Ih8NZQSZGbIHspC toRtHq+SSb/osFBGxkUeBpTeYCeMEOxNlvVM1fBySZ6h2/hiebFy6UIjhrMH4g7Pnw gVYCStek9Qxgg/sj6Hcek2z3FHTQNB7TuYvwFEkI= 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 3458Q6sg035302 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 03:26:06 -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 03:26:06 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 03:26:06 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3458Q4Rb021882; Fri, 5 May 2023 03:26:05 -0500 From: Vaishnav Achath To: , , , CC: , , , , , , Subject: [PATCH v2 1/2] dt-bindings: dma: ti: Add J721S2 BCDMA Date: Fri, 5 May 2023 13:56:01 +0530 Message-ID: <20230505082602.31783-2-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?1765048675835478021?= X-GMAIL-MSGID: =?utf-8?q?1765048675835478021?= 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 --- 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..54d4b8e0c8ce 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 @@ -152,21 +153,44 @@ allOf: - power-domains else: - properties: - reg: - minItems: 5 - - reg-names: - items: - - const: gcfg - - const: bchanrt - - const: rchanrt - - const: tchanrt - - const: ringrt - - required: - - 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 + + else: + properties: + reg: + minItems: 5 + + reg-names: + items: + - const: gcfg + - const: bchanrt + - const: rchanrt + - const: tchanrt + - const: ringrt + + required: + - ti,sci-rm-range-bchan + - ti,sci-rm-range-tchan unevaluatedProperties: false 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 */ }, };