Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4203366ybi; Mon, 27 May 2019 13:16:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzov9Feur5m04yp33jkqrGfdQcTXwI/LPiJjzlK2/SMsKMz7NfD1wXml/nSdU3yzyIGjlYg X-Received: by 2002:a62:ea04:: with SMTP id t4mr135031848pfh.47.1558988189591; Mon, 27 May 2019 13:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558988189; cv=none; d=google.com; s=arc-20160816; b=sZVcB+VF0sSdXnhQMIH7UuTVII2IDRPk8luHS6szdboXwvE2vB598TMsse2vpMFmxS fmiH6McfpKZy15NeCot04DSlXDtinqGZ6c4FAo6cAwbN3CB31hPE2YZZPwS5HSp5jNoc B9qU5xaGkbpoYIq2sx784ilv1IF3BzJTAq5yJfKLwYqWWixE7ruXLX+sCx/LAzqFrcIJ xjOU/mWb40c3s4oleIFJKYm8W17Zgdpv2B6RFEZ5DnxHuCu4mmF5GHOw7QOF3kqi/F5U /YIrszkFgpJtQBAtk5efWNxK0BLJatTZos/d5N8WbWqyNDqrzhUkpn2eG/QWNtM1WC9T gT5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RXahGaBrkqUKt9hjO+RHzxhaODt54utR6Qk5vi9eCaQ=; b=XZyw9P29S0joWxd09sIXlfcuOtnz4iPchMnfp67J+dc/OuaWSHSY0oBicdNpxnGlcS 5DL78wKigv17wQRxweKLdU7e9iO4BNoT4k+3U9zlUsg0cPe546gFjn0BYzXRgXT1ZB8K DbTOJ4KD9iuwNP1jWUDg6bwtOr+gS2teTkKyj5QAE82XZdYrnym7a1aLMMhGpcv7Uqgx 0pKG0vjVZkiXl0D6co47FDFSqx9IGjO/T/v92S0OPwVRUZJoVjhYusu12rdicAgG8sRo KjT3lR0oCdym5ytG4fwjOiy2iqlsYNTmVKY6rwQYfnt7/yX9lPAxkn0DNtOM8VdrN9wF QbFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=owUyFwlX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q40si394164pjb.17.2019.05.27.13.16.14; Mon, 27 May 2019 13:16:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=owUyFwlX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727335AbfE0UPH (ORCPT + 99 others); Mon, 27 May 2019 16:15:07 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41797 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfE0UPH (ORCPT ); Mon, 27 May 2019 16:15:07 -0400 Received: by mail-wr1-f65.google.com with SMTP id c2so2681321wrm.8; Mon, 27 May 2019 13:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RXahGaBrkqUKt9hjO+RHzxhaODt54utR6Qk5vi9eCaQ=; b=owUyFwlXphbnCdPceA7pSRSRDBr3F1cc+EYPPm79e3Mf5qHXv14oDJt46X6NAUyIRR G8rIbeApWCEHEMmhlRx3sXskvz5BaS8egS4Oe3eTA7Ys+yuNij75fEoMQUizaMmwhxBD t8vJk+fQL+MCUNgL065d067WNqHgghWlYg2ur8Q/sOYgpDjMMkPOTouS7+pZphyN091F AEsIEBlrTAAuj60d8VMJv1XBSDROb2vq/4aMIo8KqsQ1aVp92V7++kk+PL/L39FQJifY hgTsxXS33KvZVSk33Hw64di1otY89d/aw5+eSOpGEVTZFs4aQbB2d+qHXBUr9wnla9jo sP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RXahGaBrkqUKt9hjO+RHzxhaODt54utR6Qk5vi9eCaQ=; b=rHbJRNzilttVTAwCdxzQvoE1BTcBFascxyrKJUdTofPyn0HC/QZqY3v7Df34HNAmQv pZlvePpFHgJ3/NBofq7GBeumMAUnrNOUGpfYoikqlM6yuEJZ6LHmg3OdoBUx621hcImg Uqk4a0uKoJ+SOcieDDIaEqOARV3wJRkRTijkQTGE+zNHikaRksQosuCiMfcai2yJM3VY 2qRzA0rC3njxSJxIoaKdGJkpStG2vhjJdKMpPZ/m/ceVk9ybsTgv4MqL7PXG1HXratYU kgFJg3L4+f0fZDzlUDcTuWKLgKl/vIR8AQQZUiizzjnDFtGtsx0hyESdOLPbtMEIviii wyvw== X-Gm-Message-State: APjAAAWeKWXwvVGr/22l6PcR8sz75OWGiC86zRiq16GMtvI4UUXbQhD7 r9zepb5aeCEoWKa0/yhq+f8= X-Received: by 2002:a5d:5701:: with SMTP id a1mr75764699wrv.52.1558988105323; Mon, 27 May 2019 13:15:05 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id i27sm347146wmb.16.2019.05.27.13.15.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 13:15:04 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Vinod Koul , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Dan Williams Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Subject: [PATCH v3 0/7] Allwinner H6 DMA support Date: Mon, 27 May 2019 22:14:52 +0200 Message-Id: <20190527201459.20130-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series has been first proposed by Jernej Skrabec[1]. As this series is mandatory for SPDIF/I2S support and because he is busy on Cedrus stuff. I asked him to make the minor change requested and repost it. Authorship remains to him. I have tested this series with SPDIF driver and added a patch to enable DMA_SUN6I_CONFIG for arm64. Original Post: " DMA engine engine on H6 almost the same as on older SoCs. The biggest difference is that it has slightly rearranged bits in registers and it needs additional clock, probably due to iommu. These patches were tested with I2S connected to HDMI. I2S needs additional patches which will be sent later. Please take a look. Best regards, Jernej " Thanks, Clément Changes since v2: - Drop the change of "dma-request" default value Changes since v1: - Enable DMA_SUN6I in arm64 defconfig - Change mbus_clk to has_mbus_clk - Collect Rob H. reviewed-by Clément Péron (1): arm64: defconfig: enable Allwinner DMA drivers Jernej Skrabec (6): dt-bindings: arm64: allwinner: h6: Add binding for DMA controller dmaengine: sun6i: Add a quirk for additional mbus clock dmaengine: sun6i: Add a quirk for setting DRQ fields dmaengine: sun6i: Add a quirk for setting mode fields dmaengine: sun6i: Add support for H6 DMA arm64: dts: allwinner: h6: Add DMA node .../devicetree/bindings/dma/sun6i-dma.txt | 9 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 12 ++ arch/arm64/configs/defconfig | 1 + drivers/dma/sun6i-dma.c | 147 +++++++++++++----- 4 files changed, 132 insertions(+), 37 deletions(-) -- 2.20.1