From patchwork Thu Feb 16 11:05:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 94049 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2449658qgi; Thu, 16 Feb 2017 03:05:24 -0800 (PST) X-Received: by 10.98.28.196 with SMTP id c187mr1921136pfc.92.1487243124434; Thu, 16 Feb 2017 03:05:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si6638783plk.137.2017.02.16.03.05.24; Thu, 16 Feb 2017 03:05:24 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753420AbdBPLFX (ORCPT + 7 others); Thu, 16 Feb 2017 06:05:23 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:35036 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753035AbdBPLFW (ORCPT ); Thu, 16 Feb 2017 06:05:22 -0500 Received: by mail-pg0-f41.google.com with SMTP id t188so5672431pgt.2 for ; Thu, 16 Feb 2017 03:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=jptU4fwKmIyuMypA7VXALjiQhWokXcDnduVa8Mnn0pE=; b=b7DY0Cif9fw/oPXVdo354uZ8G7F/qEOudtPu/i6O7QyGuF0W+l8KYzKtqci4UmxTRa gGH6XiPo3NoOLi9EKvG35anl61dGQvzWc1TaG2M1JBZX3DDTqfkc5If40rqVQO9Vyz+r hj7dYnA7LmQYpD5g9PYnZztMsLfXAk+ycm8MI= 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=jptU4fwKmIyuMypA7VXALjiQhWokXcDnduVa8Mnn0pE=; b=s+atIdJvELP6uP89Rs4pl4eqGIkHAQrKIUfrHNqIuOm4qkPGW/6gqIrCBw4IKZ4emw CjhPsXtqK4e8Rb19AtCHXzswgQnGDqvqM9fgupOkeW6Bt6Gv1qzaFfyhCNIHaCCWNN6N h1IlDLh0odXkj8JplE53XrLYM2orQ7XNuHH1NdjDHjZrTIeyvWgafaAt1Co2rWi2e2eJ g8UQvhzwNKQXIeDPcwYmhfnr+TUJxpcs3vfSA3y+fYiTbWPJx4n6PoEekjH2Z102EZil j4PZOLfPJHflrGrkIKhp0rUAs/Gc+J7fs/3MySFVFWAc+Woa5CjWUzQQEVId2aqJJ97g BeSA== X-Gm-Message-State: AMke39mfRwDiuR4M8jIPAuWiZkBNJTVypFkU31KvAR7Z+HM4zbFo6AsmXzDoz9gdfd5MtT1c X-Received: by 10.99.219.21 with SMTP id e21mr2084875pgg.29.1487243121700; Thu, 16 Feb 2017 03:05:21 -0800 (PST) Received: from localhost.localdomain ([45.56.152.47]) by smtp.gmail.com with ESMTPSA id e189sm13007787pfg.64.2017.02.16.03.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 03:05:21 -0800 (PST) From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, perex@perex.cz, tiwai@suse.com, jun.nie@linaro.org, shawn.guo@linaro.org Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn Subject: [PATCH v2 1/3] ASoC: zx-tdm: add bindings doc for zte's tdm controller Date: Thu, 16 Feb 2017 19:05:04 +0800 Message-Id: <1487243106-22841-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds dt-binding documentation for zte's tdm controller. Signed-off-by: Baoyou Xie --- .../devicetree/bindings/sound/zte,tdm.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/zte,tdm.txt -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Shawn Guo diff --git a/Documentation/devicetree/bindings/sound/zte,tdm.txt b/Documentation/devicetree/bindings/sound/zte,tdm.txt new file mode 100644 index 0000000..8ffc39e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/zte,tdm.txt @@ -0,0 +1,30 @@ +ZTE TDM DAI driver + +Required properties: + +- compatible : should be one of the following. + * zte,zx296718-tdm +- reg : physical base address of the controller and length of memory mapped + region. +- clocks : Pairs of phandle and specifier referencing the controller's clocks. +- clock-names: "wclk" for the wclk. + "pclk" for the pclk. +-#clock-cells: should be 1. +- zte,tdm-dma-sysctrl : Reference to the sysctrl controller controlling + the dma. includes: + phandle of sysctrl. + register offset in sysctrl for control dma. + mask of the register that be written to sysctrl. + +Example: + + tdm: tdm@1487000 { + compatible = "zte,zx296718-tdm"; + reg = <0x01487000 0x1000>; + clocks = <&audiocrm AUDIO_TDM_WCLK>, <&audiocrm AUDIO_TDM_PCLK>; + clock-names = "wclk", "pclk"; + #clock-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&tdm_global_pin>; + zte,tdm-dma-sysctrl = <&sysctrl 0x10c 4>; + };