From patchwork Wed Oct 19 06:39:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siarhei Volkau X-Patchwork-Id: 4451 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp164259wrs; Tue, 18 Oct 2022 23:42:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7w1AHEbrpjFgoK4d1bOcAaoIMoy+Pj9RAGsf7q17Agrit+gxDi3cohIgq1mxatTFSnyluK X-Received: by 2002:a17:906:8a6f:b0:780:96b4:d19e with SMTP id hy15-20020a1709068a6f00b0078096b4d19emr5354172ejc.624.1666161779517; Tue, 18 Oct 2022 23:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666161779; cv=none; d=google.com; s=arc-20160816; b=lMVDHxIUVI2cWGiqfbt4ijw0saMXyVquQWh7KuXkKcrcAP8+BRIB3tUGiel1es1uh8 PHRhDlSTYqqtp6zWbbo+94MFahxedobvaPq2Bgui70UkcaZWmdwIzSRSdgyB4cRXMgBk klAmKU5ASt5tThEfIG8NJK5g7morY2rnGhaU2n9WyRq/KLjvVGCkYtQVT3/QE1zgKgAu v1+DqsjaDnwPb0Zh8Eb4iSXeNy0qd5TS7yJlMK6RKGdObNn25qSAS2dih2s7qXakKmGK 6h5zrdcTv573hsL44pQ77pB1QuLDKlDHY5BGczh7GGILNVj26bOl3N80k9TRjKgwEf/n Xozg== 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=CzZ/0kJ25IZFQ+fXOgV6ivprSS9GGp5SkUxE38Mr8iA=; b=SO+K4U2X1yeImSqkIzDTbew6wEcPyJGKcr8B7yWBOolMXuR9Xx/mbjnjJ+q7vKNK7d /0fFO78+Hrvo0rVP3Nge6+XDDL0u2pk0rkz2KfUGKoghe8it1FgVJaWGXM6oXUYbEJOm Nv0f8hSP1vIxPVE+L0g8j8jdNZ76lB9RI6agcurAU5INOGyXgby+YUShcLgFGYS+M1TN 9FZtgjrcGpgJiUGy+l1oaf1Y7HAwPq2Q4HpZIcV7B0XBNLbFtTOifPvve2UNfYGTwvLm PsFF8xpyXA7Tg+3FVQVvPkGIOO6GI9RKqqPijrXT8hTNhjKckNWB8rFBVPOJw2reL7KX 1mVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="m/L/QUe9"; 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 r10-20020a05640251ca00b004593895fb89si9505185edd.390.2022.10.18.23.42.35; Tue, 18 Oct 2022 23:42:59 -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="m/L/QUe9"; 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 S230078AbiJSGkd (ORCPT + 99 others); Wed, 19 Oct 2022 02:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiJSGkL (ORCPT ); Wed, 19 Oct 2022 02:40:11 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 614F814D25; Tue, 18 Oct 2022 23:39:45 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a26so37243231ejc.4; Tue, 18 Oct 2022 23:39:45 -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=CzZ/0kJ25IZFQ+fXOgV6ivprSS9GGp5SkUxE38Mr8iA=; b=m/L/QUe9BT9Bx6rjulcvTeel7RT82sBotg2IWuC8/omI0b/k3xnEGLTvkR6M5ZN8vv M0MzO83iNJuzy7YulBWxv7FuZge7RhJdg8/0yiWsa7iZAlN/qkDoEOC8RZhnEmWZvjHt dT17Vq0L4v8IWbIr9bjmOv+sFuzqa8ZIRJZMFNPLLI8tSQ822vKQVZtYW86DUlW2tI4B uBJ1Hi0bIMuVwuCIqAHvhKjVAbH9vXY1JNctAvUXLqqnH3HhhXd8fGHNfvQS+hHk4PEY pyZzH2BGfrEU4c84BgnyFq12VJ8lMOvq6n2GFnOux5CT/E7LLblDG5m+4dLiiy4BR/fp WQXg== 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=CzZ/0kJ25IZFQ+fXOgV6ivprSS9GGp5SkUxE38Mr8iA=; b=6WHMCvJBxUx757+JinFllA7vgybfA1cfv5mFA59kb1VH/Ox67ANd95V/eAObv+k4Jp HDgwJi6ka1TYWoULU8kXa8rziq90cL8xt+U2Q4nTrWJYy2vr9QpsTtyZYQj+OVSETBlw AFMSdU5TrzCMw8mSVxFlvcafDYms0TqUihdGekrNd+Ft0pqtXtqvE8RlbiIRpO/FEXGu xbDgNKuHved4jFOhqsIr9sFRzwgG9gCQQ9UOUfJkQPHEvhodc9xiFcGS1ClXzY+5wPAA fRgMJnP1WRuJwF3wj4hty+V9qsVea+ioAooGYZdyJg499EMgcwlBuskXOXjEopGHu5lz G9ig== X-Gm-Message-State: ACrzQf3EqpnQqX5m+ObCO5pP1LyZlPkmRXIvtGrNX7cEGypHZMh1mmWy Uf0O2dbwAnOcnAALsiqIYMpJgWSCkTt+uQ== X-Received: by 2002:a17:907:d04:b0:76e:e208:27ba with SMTP id gn4-20020a1709070d0400b0076ee20827bamr5632131ejc.652.1666161583511; Tue, 18 Oct 2022 23:39:43 -0700 (PDT) Received: from hp-power-15.localdomain (mm-39-4-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.4.39]) by smtp.gmail.com with ESMTPSA id fy19-20020a170906b7d300b00781dbdb292asm8467168ejb.155.2022.10.18.23.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 23:39:43 -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 v4 1/2] dt-bindings: ingenic: Add support for the JZ4755 dmaengine Date: Wed, 19 Oct 2022 09:39:33 +0300 Message-Id: <20221019063934.3278444-2-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221019063934.3278444-1-lis8215@gmail.com> References: <20221019063934.3278444-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?1747097254303135341?= X-GMAIL-MSGID: =?utf-8?q?1747097254303135341?= Update documentation prior to adding driver changes. 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 Wed Oct 19 06:39:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siarhei Volkau X-Patchwork-Id: 4450 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp164194wrs; Tue, 18 Oct 2022 23:42:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RbRDtinIHB2YV4WUBGhMDk7Fp2xl998BAo6ualGOwHtBcWdnS4WyQevT8JMnepsXSllJe X-Received: by 2002:a17:907:6eab:b0:78d:4c16:a687 with SMTP id sh43-20020a1709076eab00b0078d4c16a687mr5401424ejc.392.1666161766129; Tue, 18 Oct 2022 23:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666161766; cv=none; d=google.com; s=arc-20160816; b=wvzqnv6SqcDFMoLvRyCwH5YFW0NXOPmCPMqwgM5v6iNRJUpICt0b3nBxEanz8zNwPh fsri+jDYQusx5XpOpE68jI+aAMl7Ildzd2LJXRCGbn98yfTHa5PJ2k8F0DP73/3GKh7e /2ZNKOB7Js2IUdOsyI7i+Wx3Tg966egEmMC0PU8OLZ6ivnJCqtpKcrdRYjBIK+I1/Pt9 /f9JCKriALOjel4bGfljAlhYsPexi8cHW1NqClIl8W61zI3hDMQQIsUKxYNy+TI/MgkY WPNPUmLkDecY4nffYFouM1P/RLjzROJ5Z0lOALzYjMTheI1g8+UQF+p+17nh+vvw/mhD AP2A== 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=9HwispDUz/zmZOxZOQfRBMDPdwbQJsbMK56653OL67w=; b=KVpp8M+XCD/JGgNHxSBPzXObV9JO+qNwKwr9olDwqNu5mXGKLfqwNJeHcIU3h/+Lsm arDdGb3KzUm3vWlb9C+QJfe4E65KG7ZtI1mi6p/z0FJYYl2EBsJFvUqEs2eWoWe0YAl7 Y53siGAEpZwB6yNJykj4VIEmuK/CylYv+UQKi4AiZckGggsBdvnrvMnhOCn/Fwv05BzM ia4xulCwQE8RHCrvT0/6yH6ktJg6gTsvJd6030I8xtMXG/Wsybl35+civdvLtbjfdRkC fa33twyNK1ul4zsNba2H6SQhid9qaVHsdCx2toQw+f8b5/RokAYjLMkuR3RToGtkrGkV uCTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=cuN7lWEi; 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 c24-20020a50d658000000b0045cb9cf913csi12561180edj.424.2022.10.18.23.42.21; Tue, 18 Oct 2022 23:42:46 -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=cuN7lWEi; 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 S230100AbiJSGkb (ORCPT + 99 others); Wed, 19 Oct 2022 02:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbiJSGkL (ORCPT ); Wed, 19 Oct 2022 02:40:11 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6202E183AD; Tue, 18 Oct 2022 23:39:46 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id sc25so37560689ejc.12; Tue, 18 Oct 2022 23:39:46 -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=9HwispDUz/zmZOxZOQfRBMDPdwbQJsbMK56653OL67w=; b=cuN7lWEiaUtYv3fpMZdZdqzVlWk025u7+JSeAWp4vmVflIvhxdf2248hhYaVIZsaeq e02I3loX7Jt6whvAG/LFcheqxxyYI6N8krm0xSYWd9RDLV/PaUDf0xh5/k4MES2ryTEF zxjFFQlWhCwjfCY96rZL1aM1Zd4Y3V41FmNAu5LiRw0Ew+p2RbeCtvH+GBNcFpocUvME 6gmd0O5iVOahfoCh4PwC8RK6IpvVEs7XdFalVmA/2A1VfWMlciYI7E1EDcctiZw/I2VX pGt8YEoufr82lZri1Lu7KXNYWXZS8ydr5kRQNULG5ZPHDcaaH5CLS+UBcUmlKngOBQuV xgJQ== 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=9HwispDUz/zmZOxZOQfRBMDPdwbQJsbMK56653OL67w=; b=veA7gG5KIJFX34ycI/H+ZN8DR+jPkMdjFqUPkK6dC1BR2GN7vmIKTxxKxY7oXK5fbx y8jOtRNa//B9QviEh+ukrRDQ57UxMNEWb6x6WdRtOD9dE0HWXHR0vyva1TBBurVDC9QK 7yHjskVgrZfX7XzJ0qB5RJnqt+X9AUQuoyNL6H8UPc5hr0lfIMbhVh8qYiNUu/zEgWkk nuS2I/yiTRSDP1nVIwTZsAWVFwTRekfiDhP0ytUYykC0pCXHqgywPNLmYrYIyPaZtoN4 cAumpXK9dgYuwV76xAjy8InPVOiEWsMjSKxNsJFRa9BlI5yUuXtkHKNaS3v6PrzNZ641 OPTQ== X-Gm-Message-State: ACrzQf3ajs84b55bBNpkaAkx8uWmh7ntW4DA5gXAfAjWTWL9CrbskbMQ TkxMrHTNsj9f67RnQE9UCVY= X-Received: by 2002:a17:907:7f24:b0:78d:ee20:5c62 with SMTP id qf36-20020a1709077f2400b0078dee205c62mr5422199ejc.177.1666161584954; Tue, 18 Oct 2022 23:39:44 -0700 (PDT) Received: from hp-power-15.localdomain (mm-39-4-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.4.39]) by smtp.gmail.com with ESMTPSA id fy19-20020a170906b7d300b00781dbdb292asm8467168ejb.155.2022.10.18.23.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 23:39:44 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Paul Cercueil , Vinod Koul , Rob Herring , Krzysztof Kozlowski , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v4 2/2] dmaengine: JZ4780: Add support for the JZ4755. Date: Wed, 19 Oct 2022 09:39:34 +0300 Message-Id: <20221019063934.3278444-3-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221019063934.3278444-1-lis8215@gmail.com> References: <20221019063934.3278444-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?1747097239912049105?= X-GMAIL-MSGID: =?utf-8?q?1747097239912049105?= The JZ4755 has 4 DMA channels per DMA unit, two idential DMA units. The JZ4755 has the similar DMA engine to JZ4725b and it has the same bug as JZ4725b, see commit a40c94be2336. At least the JZ_SOC_DATA_BREAK_LINKS flag make it work much better, although not ideal. Reviewed-by: Paul Cercueil Tested-by: Siarhei Volkau Signed-off-by: Siarhei Volkau --- 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 },