From patchwork Sun Oct 16 15:12:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siarhei Volkau X-Patchwork-Id: 3047 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1061150wrs; Sun, 16 Oct 2022 08:32:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VoMAjV0gtZegzlyDRzDJpFh0IabvtLy7c1zGhz9wHgk39MVyXoeox7/0cGkEG3kg7oWhI X-Received: by 2002:a63:2b53:0:b0:439:34d9:5d47 with SMTP id r80-20020a632b53000000b0043934d95d47mr6780041pgr.283.1665934350095; Sun, 16 Oct 2022 08:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665934350; cv=none; d=google.com; s=arc-20160816; b=GSWRaWAqeniSnQD7qiQmed5IcFzudbvbLJXGNNnkvlYpG3blFedKJmF7zjZRDk0K5j YiNKRsklgP+kRshGBoEpdo+FsffGB6zaowE8vfKEi4o5sRjQJRsp6oPLnOL2NCIsP8/C /yGNyLs3jqzO5dJqfiBBIUoYyz+FMCp6zpNLM5uo22a6Z5b3J7K/jFKrdDIcLUsrEvEJ grFzngYxDiAMP1v1A8yWAkEVmL5gepC01m3Ghzc1EpuHmzTyyCIqFR2dN6HxzMouvsBk L7av6ad+IQUmgSjczPDs6JZaue0t5vna8242XPcrJs/d4cpv/8X4PLN7YDT3+ZEx1vMt laIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=HEloXwBPQTOedM4DLcY3IOyF8FmsTUScb2vDbAYT/NM=; b=aB56bTpyC7P6i32jXWSInAAlcmjQDktVNiTzCl5v6rQ5DK7LM04D8Ivut9l3IuuAAb G+Fk70OGJCGfiyDJM+FJsngzzX+oL54jGqj7rI+JQEhZAP17OOKIRaH4tw+O1lz58KJI N4EcTUa8d1j4fmRDsvk6dcd+YFJVyk+jLwJWMDRuLhQ+KQhuTttjwaZhQ3f373398VGW DTroFnPgumjO2yVjkdZbEvGytOtABbYl7/rkGk0k0Bw8bM3teYJB8Vrj51I6R+5PoTue 9pWU6mz/W6VTVruGhBhZd2mDJI299wkWUdrYgboB43VpQXzyZpTbAb8m8ZY9/nMnMxJd Zpng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=YEm9ni7P; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u30-20020a056a00099e00b00562a956d979si8839669pfg.67.2022.10.16.08.32.17; Sun, 16 Oct 2022 08:32:30 -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=fail header.i=@gmail.com header.s=20210112 header.b=YEm9ni7P; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbiJPPNn (ORCPT + 99 others); Sun, 16 Oct 2022 11:13:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbiJPPNl (ORCPT ); Sun, 16 Oct 2022 11:13:41 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57198317EE; Sun, 16 Oct 2022 08:13:40 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id s2so12886376edd.2; Sun, 16 Oct 2022 08:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HEloXwBPQTOedM4DLcY3IOyF8FmsTUScb2vDbAYT/NM=; b=YEm9ni7PVpFNwHuyU353T8Xplmw16Fde4tPVB0MIPraLB1e8iarlUqrv/if931TSAg MbGPVDnbJ3gDaJBO4JSDOhQdiItL95tnjqm0U+2C4kck2bADWGLyz8ubMVLQdjD6HMZH kUb85FvLo6aYiwe9aPnbrgMr3q6i6Nj4sFAcgqn1rFCYgSaUOHgjlktf4EJWJMzt/HB1 P57DN3/x+NdY652oT23ad1JfgWuwx2hMfPF3DECVIjDP0HYRtfwOJizeUXMvsfXp88hn RVlTwU7FSWK+es4fyLnc8BESs9+uZMe7ByqvE8XQ8ETVhEcOKz2pNkA2bbg3IDUdacEY CigA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HEloXwBPQTOedM4DLcY3IOyF8FmsTUScb2vDbAYT/NM=; b=IYrP494SR8+MMVK4ppn4XO3H6ygfHSKz7Pfp7BOXTAyQNhOMibaYhLK2P2GqrKrR7m hrvRJgnlbyAsNiKH8IHasedriEXEvcQQAcCevdxalQrhhS8ShyEIFaePw2UmbFgqFHNY 9CDNskO5pddSRvLWGMqIYq2a/Sxf5klg7TiL0ciSRd9wbeerchRRg1niU+rbbSiXN0vC QhcFJGnaj5GoWU9oV9jzQOJWP6yLzdnXxP+eMVlSwV78yfL2QmfLa9EqlmnQ75KdSkvf npl1jiy8ofA3COmREBGhSy4xFd9whGNL4goO7fgIDGGLMOGcmTxleFyaStSNsa4cOU02 MYFA== X-Gm-Message-State: ACrzQf342NxYxtxu2lBctYFEDGE4ABToL+07KXnTe7M+AdzE2n9VfNaQ xkN2deekX+2qWhMCDQjzOK/a2P32DX7UUQ== X-Received: by 2002:aa7:cd74:0:b0:45c:78fb:1d89 with SMTP id ca20-20020aa7cd74000000b0045c78fb1d89mr6329789edb.87.1665933218965; Sun, 16 Oct 2022 08:13:38 -0700 (PDT) Received: from hp-power-15.localdomain (mm-39-7-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.7.39]) by smtp.gmail.com with ESMTPSA id i8-20020a1709061e4800b0078d4c72e2cesm4702735ejj.44.2022.10.16.08.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 08:13:38 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Krzysztof Kozlowski , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: ingenic: Add support for the JZ4755 dmaengine Date: Sun, 16 Oct 2022 18:12:55 +0300 Message-Id: <20221016151256.3021729-2-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221016151256.3021729-1-lis8215@gmail.com> References: <20221016151256.3021729-1-lis8215@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) 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?1746858777066307184?= X-GMAIL-MSGID: =?utf-8?q?1746858777066307184?= Acked-by: Krzysztof Kozlowski Signed-off-by: Siarhei Volkau --- Documentation/devicetree/bindings/dma/ingenic,dma.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/ingenic,dma.yaml b/Documentation/devicetree/bindings/dma/ingenic,dma.yaml index 3b0b3b919..e42b8ce94 100644 --- a/Documentation/devicetree/bindings/dma/ingenic,dma.yaml +++ b/Documentation/devicetree/bindings/dma/ingenic,dma.yaml @@ -18,6 +18,7 @@ properties: - enum: - ingenic,jz4740-dma - ingenic,jz4725b-dma + - ingenic,jz4755-dma - ingenic,jz4760-dma - ingenic,jz4760-bdma - ingenic,jz4760-mdma From patchwork Sun Oct 16 15:12:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siarhei Volkau X-Patchwork-Id: 3048 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1061205wrs; Sun, 16 Oct 2022 08:32:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4TolXyFRcXvfQJekvjsABF8/AGbtYMjbDmcDp4lp8nBrdG/8hJBJHOn9ISPLPkLnirQSdV X-Received: by 2002:a63:ff4f:0:b0:439:61d6:197 with SMTP id s15-20020a63ff4f000000b0043961d60197mr6830841pgk.67.1665934360022; Sun, 16 Oct 2022 08:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665934360; cv=none; d=google.com; s=arc-20160816; b=u2khGXM2QzCOZxOyxa068eKOa09h9qR/MZqah+l5vq56zt4x0wtRktH9y6G1Poqmin FXGLOQLlwjm3MQu56l3ySo5EcJFo1p66kiBbX5Aq7w0meDlKtLpTa8+s/tdAPgQCMM8i xI7Vh22pwOI0qB1Fc6IYmc2zSK2NiBqMln8AtJrUmzpQOC5kiXU55+boqLkeDfC0GB0c 5aZ6mskpy/Th0FzLHOI87DHnqiiUBdsP0d7Cc7kqY1uR53Yn3iWgrH9LbmYFf9vOn8BI HlAgQ2LYZi2o2YImD6fmrMvWBv3ruuK1VFGJWufG3eevesQUuBdf8dA0XucA7IQ0Z0K0 hXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=neMO/Xv6+/M8nxm7VBGkm586LqlZgH70RZd7S709kIk=; b=z68opyskYsFi2AK0ijWWLJ1MeiTMFiuZucfEzpi8RVG8MVyx4luvk1fwT1zdB+80Gi r0ib9ijvNa8Y2WJ809WvmvQouU2yLDwRdymWHhE6QHqMan2dDt1bDZo+/1aOxk4CD+hj lncQyjpEQ40U8D0bO9+rQFieD/F3n7FlJBtbFBwiNdkdz7y1fZJ5vdkyURa3sDOqcbOM +zCLqep96MLILpaWs1Assc4+iIOZvGMTcxQwxWF1QrDGHvunoCJKkO85Yyj2jH7LgPtC YQsvPwn5n+W3TGYpOezfNvcB0Rkb6Vf1CvWgoxpWUzPZMo/ixmCDYkh0Tjn4KbMYUFNk CGYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=cy1aqFE4; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a63c045000000b0043af57e5d16si8354083pgi.724.2022.10.16.08.32.26; Sun, 16 Oct 2022 08:32:40 -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=fail header.i=@gmail.com header.s=20210112 header.b=cy1aqFE4; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbiJPPNs (ORCPT + 99 others); Sun, 16 Oct 2022 11:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbiJPPNn (ORCPT ); Sun, 16 Oct 2022 11:13:43 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A4431DDE; Sun, 16 Oct 2022 08:13:41 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id l22so12846797edj.5; Sun, 16 Oct 2022 08:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=neMO/Xv6+/M8nxm7VBGkm586LqlZgH70RZd7S709kIk=; b=cy1aqFE4kk2fK98HQUyCMX7gpk8Uh1wj2IO/y2KU/Te/tLpZ2wiuJ7mxthCkzzsfcr wv03BqE9+JoLzKjUpQp1RKCNY9TgsEKRGIA4DKgmqGmKB2zuMe8MrGykU6+BgTAEwCSk GNm5cN7Vlq85W6SlYBCTSBNiVwSZ/gL+dLlg+QMJwpEkNBINM7uWouQIdAiz6Vpg9F4S MtUccb89emjD1C7heJpJvV76Jcx0DM2YNACCFRLhRTss1nVdvSVgrbrL3On8T/eN3Wr2 Ga/RvoaRlaZ7hLTB6LtBrkzjMLiaoNW5SuwR3/SJ2tR9pjmOEgr3os/al9k4iBd4Bila kMDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=neMO/Xv6+/M8nxm7VBGkm586LqlZgH70RZd7S709kIk=; b=fshGa36vu0XbJRuJX4vUEPhErZJE6jU5mPQcJRawC/fqZfVbYcNBMmTNGzVW7IvUOJ TJWICMSmWxHbLkAwsjcQZJqYBaXwlTh4HkbC6K53o+4QNxFqtDP1jS47j13SdzRBeLy1 TqArrTi4z496v+oefE2KUAwkxV61PP8D0IbAGCZVGLKkBMGhc+Zpf1DNDXTm6414jze5 bQgsuW9FMCkVdQeFIaUPXL5tRdSf/h+imX4FAJHOKVbTMAVncT5XWIJi69sltGRpo9QD T1YgFKRGI/DgA/qalQW5k3ZaJ2mDiVfVfXaHHTTYYpzNdiHViENgqPxRWMq+QBTPr+c/ PlVg== X-Gm-Message-State: ACrzQf2m6jA7h/OsZ+Gkp/lYPAMA+m8zzJYqNUjWxL85mvmO76YH6uFZ vReSkXven4H+rxk0vlIt8KSOx8XudjD1qA== X-Received: by 2002:a05:6402:3552:b0:45c:e4c:e6db with SMTP id f18-20020a056402355200b0045c0e4ce6dbmr6323433edd.403.1665933220594; Sun, 16 Oct 2022 08:13:40 -0700 (PDT) Received: from hp-power-15.localdomain (mm-39-7-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.7.39]) by smtp.gmail.com with ESMTPSA id i8-20020a1709061e4800b0078d4c72e2cesm4702735ejj.44.2022.10.16.08.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 08:13:40 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v2 2/2] dmaengine: JZ4780: Add support for the JZ4755. Date: Sun, 16 Oct 2022 18:12:56 +0300 Message-Id: <20221016151256.3021729-3-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221016151256.3021729-1-lis8215@gmail.com> References: <20221016151256.3021729-1-lis8215@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) 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?1746858787439216314?= X-GMAIL-MSGID: =?utf-8?q?1746858787439216314?= The JZ4755 has 4 DMA channels per DMA unit, two idential DMA units. The JZ4755 has the similar DMA engine to JZ4725b, so I assume it has the same bug as JZ4725b, see commit a40c94be2336. Signed-off-by: Siarhei Volkau Reviewed-by: Paul Cercueil --- drivers/dma/dma-jz4780.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 2a483802d..9c1a6e9a9 100644 --- a/drivers/dma/dma-jz4780.c +++ b/drivers/dma/dma-jz4780.c @@ -1038,6 +1038,13 @@ static const struct jz4780_dma_soc_data jz4725b_dma_soc_data = { JZ_SOC_DATA_BREAK_LINKS, }; +static const struct jz4780_dma_soc_data jz4755_dma_soc_data = { + .nb_channels = 4, + .transfer_ord_max = 5, + .flags = JZ_SOC_DATA_PER_CHAN_PM | JZ_SOC_DATA_NO_DCKES_DCKEC | + JZ_SOC_DATA_BREAK_LINKS, +}; + static const struct jz4780_dma_soc_data jz4760_dma_soc_data = { .nb_channels = 5, .transfer_ord_max = 6, @@ -1101,6 +1108,7 @@ static const struct jz4780_dma_soc_data x1830_dma_soc_data = { static const struct of_device_id jz4780_dma_dt_match[] = { { .compatible = "ingenic,jz4740-dma", .data = &jz4740_dma_soc_data }, { .compatible = "ingenic,jz4725b-dma", .data = &jz4725b_dma_soc_data }, + { .compatible = "ingenic,jz4755-dma", .data = &jz4755_dma_soc_data }, { .compatible = "ingenic,jz4760-dma", .data = &jz4760_dma_soc_data }, { .compatible = "ingenic,jz4760-mdma", .data = &jz4760_mdma_soc_data }, { .compatible = "ingenic,jz4760-bdma", .data = &jz4760_bdma_soc_data },