linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/3] ASoC: zx-tdm: add bindings doc for zte's tdm  controller
@ 2017-02-16 11:05 Baoyou Xie
  2017-02-16 11:05 ` [PATCH v2 2/3] MAINTAINERS: add zte tdm controller driver to ARM ZTE architecture Baoyou Xie
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Baoyou Xie @ 2017-02-16 11:05 UTC (permalink / raw)
  To: lgirdwood, broonie, robh+dt, mark.rutland, perex, tiwai, jun.nie,
	shawn.guo
  Cc: alsa-devel, devicetree, linux-kernel, linux-arm-kernel,
	baoyou.xie, xie.baoyou, chen.chaokai, wang.qiang01

This patch adds dt-binding documentation for zte's tdm controller.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
 .../devicetree/bindings/sound/zte,tdm.txt          | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/zte,tdm.txt

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>;
+	};
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-02-22  0:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 11:05 [PATCH v2 1/3] ASoC: zx-tdm: add bindings doc for zte's tdm controller Baoyou Xie
2017-02-16 11:05 ` [PATCH v2 2/3] MAINTAINERS: add zte tdm controller driver to ARM ZTE architecture Baoyou Xie
2017-02-16 11:05 ` [PATCH v2 3/3] ASoC: zx-tdm: add zte's tdm controller driver Baoyou Xie
2017-02-17  1:36   ` Shawn Guo
2017-02-22  0:26   ` Applied "ASoC: zx-tdm: add zte's tdm controller driver" to the asoc tree Mark Brown
2017-02-17  1:32 ` [PATCH v2 1/3] ASoC: zx-tdm: add bindings doc for zte's tdm controller Shawn Guo
2017-02-22  0:26 ` Applied "ASoC: zx-tdm: add bindings doc for zte's tdm controller" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).