dt-bindings: sound: Document jz4740-codec bindings
authorPaul Cercueil <paul@crapouillou.net>
Thu, 7 Feb 2019 13:31:38 +0000 (10:31 -0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Feb 2019 14:36:04 +0000 (14:36 +0000)
Add documentation about how to probe the jz4740-codec driver from
devicetree.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/ingenic,jz4740-codec.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/sound/ingenic,jz4740-codec.txt b/Documentation/devicetree/bindings/sound/ingenic,jz4740-codec.txt
new file mode 100644 (file)
index 0000000..1ffcade
--- /dev/null
@@ -0,0 +1,20 @@
+Ingenic JZ4740 codec controller
+
+Required properties:
+- compatible : "ingenic,jz4740-codec"
+- reg : codec registers location and length
+- clocks : phandle to the AIC clock.
+- clock-names: must be set to "aic".
+- #sound-dai-cells: Must be set to 0.
+
+Example:
+
+codec: audio-codec@10020080 {
+       compatible = "ingenic,jz4740-codec";
+       reg = <0x10020080 0x8>;
+
+       #sound-dai-cells = <0>;
+
+       clocks = <&cgu JZ4740_CLK_AIC>;
+       clock-names = "aic";
+};