From patchwork Tue Apr 23 02:26:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10911777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3AB531575 for ; Tue, 23 Apr 2019 02:27:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 288F6286CF for ; Tue, 23 Apr 2019 02:27:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17939287DA; Tue, 23 Apr 2019 02:27:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0BC86286CF for ; Tue, 23 Apr 2019 02:27:34 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 607FB844; Tue, 23 Apr 2019 04:26:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 607FB844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1555986452; bh=PzmCVpaL2zp+t0zoisJ2L/q3l0f67/Yy8xLdo1PEiWU=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Ir24g8GHGp++jsE9m78jlk1V9VRzyHX9rNgwk6IuByVtstzBn8yQ9NEvDGAg3FHJf AD6i9ehKxiCjbbkKC5NcoOaKiLHqJOBOcSYpDRHhGbdv9gOAR+EedVOgQN0M0gFb8e K5FJd0yPdLveZ5a+Osa0K7s1WqXUvFf7GnH/gNYw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C4D3BF896B2; Tue, 23 Apr 2019 04:26:41 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4F6C6F896DB; Tue, 23 Apr 2019 04:26:40 +0200 (CEST) Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 52001F8070C for ; Tue, 23 Apr 2019 04:26:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 52001F8070C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iCYqXx36" Received: by mail-pf1-x442.google.com with SMTP id i17so6632344pfo.6 for ; Mon, 22 Apr 2019 19:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gASq3fDuMs0vNSJwTjZaOrSujM7fxO1Yz4CvMFkoEJ8=; b=iCYqXx36jkAyFd9ij8v0sRLq374JRNRE8B4Vhjp5QBX0wvx6ZfyP0Cs0x8Re0rviaN GqYIWv5GBdszkjTBYN8oVHxCsvtoqbu5+iEIQLiqJrLIDaexKlzL6mRsJ/ftRrTrn+Ew SFeOEWevFR2VzkHx1TgabdQPxfD+XiZXfYS5tn8PcbOaRz2Gy6yQuikLhF4WTt5k/Ivc DOSjyDZ7BZTK1JyqHozphZ/kUJwfBb3eX0F42TGlKp61njikMV89Tlw4l3uu/wOwz1bh 4hTvwN6XWKZW6cyILYDwDC0af4XyxVI7a+5S2kV5CIUi1LM+2eW+F58RJYNWk3+tI8Rf AcAw== 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; bh=gASq3fDuMs0vNSJwTjZaOrSujM7fxO1Yz4CvMFkoEJ8=; b=OoMeBp97NcdoO+0kmaR+RYXhHCqq96Q/NBclW3iMI6TYq5ZRr9dY5EvILhdwilKGH0 oG9siM/WTLcSe+6LLjXBr9eutqUJXzePOic7XZnfH4lKn+mXrg88ZCwM3gGmtcqtokl4 s6M7ZOsO3Q4ob2Kc2EbfJHyz/9yBXae+4H4fBVCD+8o06FYxgT8ZU+E3K52XFgawbwxZ zBlWcdQ/fgYUYGvc4DVmRsOr58dVCsKycQsPZeEq+KP4xwVt8C/BmR624eECkJ9o9CAB QT/iYmfPQrqqmq4sDkSuMduKKpBv2Ubdee6ab/oDtkg5FiYiaMX+4qjbG9uOm/sO18pq 2SRw== X-Gm-Message-State: APjAAAW6hhQwY5l0ADcvVRxjkCkHO5nd9CVmlIdMixp9ZWQCZlXuV++G 9434m1gozA9WHDyn3mQk/xPpaQ== X-Google-Smtp-Source: APXvYqzd+6Rz44lnMs0lPc5HWEvvP2fnwZEERIXT1ZcpDnFtC1zT8zJUoi6k6uJC4et996PGZafC2A== X-Received: by 2002:a63:4c26:: with SMTP id z38mr22609786pga.425.1555986394820; Mon, 22 Apr 2019 19:26:34 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id d25sm18874024pfn.154.2019.04.22.19.26.30 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Apr 2019 19:26:34 -0700 (PDT) From: Baolin Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, robh+dt@kernel.org, mark.rutland@arm.com, tiwai@suse.com Date: Tue, 23 Apr 2019 10:26:21 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, baolin.wang@linaro.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, orsonzhai@gmail.com Subject: [alsa-devel] [PATCH v2 1/2] dt-bindings: ASoC: Add Spreadtrum multi-channel data transfer support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP On Spreadtrum platform, the audio subsystem will use the multi-channel data transfer controller to transfer sound stream between audio subsystem and other AP/CP subsystem. It can support 10 DAC channel and 10 ADC channel, and each channel has 512 bytes depth data fifo. Moreover each channel can be used DMA mode or interrupt mode to transfer data. Signed-off-by: Baolin Wang --- Changes from v1: - Move the documentation into sound/. --- .../devicetree/bindings/sound/sprd-mcdt.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/sprd-mcdt.txt diff --git a/Documentation/devicetree/bindings/sound/sprd-mcdt.txt b/Documentation/devicetree/bindings/sound/sprd-mcdt.txt new file mode 100644 index 0000000..274ba0a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sprd-mcdt.txt @@ -0,0 +1,19 @@ +Spreadtrum Multi-Channel Data Transfer Binding + +The Multi-channel data transfer controller is used for sound stream +transmission between audio subsystem and other AP/CP subsystem. It +supports 10 DAC channel and 10 ADC channel, and each channel can be +configured with DMA mode or interrupt mode. + +Required properties: +- compatible: Should be "sprd,sc9860-mcdt". +- reg: Should contain registers address and length. +- interrupts: Should contain one interrupt shared by all channel. + +Example: + +mcdt@41490000 { + compatible = "sprd,sc9860-mcdt"; + reg = <0 0x41490000 0 0x170>; + interrupts = ; +};