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: 162624 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3269407jan; Mon, 22 Apr 2019 19:26:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLPB8FGwreCogHkZKk45DtKoZB30QnZ2PMnKup3kHoK51/me4GoZWnJLJdp3yfhIn/1nac X-Received: by 2002:a17:902:b181:: with SMTP id s1mr292919plr.9.1555986396303; Mon, 22 Apr 2019 19:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555986396; cv=none; d=google.com; s=arc-20160816; b=j3AGCyTwa86P0VqSmI8c985sjP3x7Dmxwc4pM3u36LDMybE82CHSYwgHhd55ZfVg7U dAld0H1iAxDx0OlL41INYIIPpvFovozkD8FX8sHYu5USwV1c3GKmV4unh37WvlSJyh6H +BcR3O1wDxX58v9xGpQY3ji3jvTmNnYtMbOTKf7pv2VuYtGCWsk/gC1nkooYzpfaGdLt gE5qXaNjGXWyeAPW0gGY6aPiGRWLQMgM/iJ0+TsUiYUl48S+Ux05aIBWFYTJFLaLVYof Fn8OI1uFGT8mdKmKZtOwfcAQtnWDkSvPB7uPptLrGQ638KtopZ4S/54xNTWOCNRKfcTB jwFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=gASq3fDuMs0vNSJwTjZaOrSujM7fxO1Yz4CvMFkoEJ8=; b=q39uKIMwAJOA6bn41OXbDtCQdijB3CCn7F/YFsCj1JyL97xRPvtT7XNHnVpf+86141 locnAoKZJzFpMEd1i6xan9iPIu7vt0fZk7nzpE5pa6n8JQDWZwkooKIT2jRDrZEMtf8k CTeQENJiqstNLlSbMAgGiHQWe2H5YoEee9FM3hBmUjFVvwKpeVaynQvh0zMC+O0BWm0k pY/2LhXkpRT5dyMotHzFEhdXESBMJxwi15xyDX6wr+03wzXZ8bjF93YuWdRUKhc5JCbZ 8wwpS8U+jiPYP1KC+vLCOQvj6J/rA2pv0TM2XaiDsSjI/UA/vD6uL+AXPDY3dlUflj04 oRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iCYqXx36; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si13111206pgs.33.2019.04.22.19.26.36; Mon, 22 Apr 2019 19:26:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=iCYqXx36; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730017AbfDWC0f (ORCPT + 7 others); Mon, 22 Apr 2019 22:26:35 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44225 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729699AbfDWC0f (ORCPT ); Mon, 22 Apr 2019 22:26:35 -0400 Received: by mail-pf1-f193.google.com with SMTP id y13so6625583pfm.11 for ; Mon, 22 Apr 2019 19:26:35 -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=S/aaF59vXnQitCLd8x/dL23u2yILAg2kquJ5Vi7/gDVaHN+Q7MEJcS+WYdyE8yrRE0 7Zhk5tNfoZJ/ft0i6lxwT0Da1PQWFgqDtgOqCC1fIPbZ8KU6UED5gr/XmcAY3z2kR7ZU oKQ3pxZlF6JGmcmowtt3msK4lnrEbopv+oSvjNoGnjRIvyCe/v+MxYabTtKfZMzyDDQ6 o/GF2Xb/pJTzMK+cB0J8X2/Us3NZFJXik2lt9+8GXtFWyKMB4w+UodMU6Z5WIGdWXMrx zapzqq4xQSLjJx0O0rpAVKgLHSY6wLg9diPHtE77RHPgd9IEg+K04H6V72ElKCR1LDZw VXhA== X-Gm-Message-State: APjAAAX7FtwoJ4VGr+uFpOUExyK5M+AMeYK6CmhQ8Aym6c9bZQs5Hiat JarD8INwVrF1Zd7yjigBK3UmAA== 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 Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, baolin.wang@linaro.org, orsonzhai@gmail.com, zhang.lyra@gmail.com, devicetree@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: ASoC: Add Spreadtrum multi-channel data transfer support Date: Tue, 23 Apr 2019 10:26:21 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 1.7.9.5 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 = ; +};