From a1cf13479084b988fa9ef536b8256d9908fc6e30 Mon Sep 17 00:00:00 2001
From: Simon Ho <simon.ho@conexant.com>
Date: Wed, 5 Apr 2017 17:07:13 +0800
Subject: [PATCH] ASoC: cx2072x: Add DT bingings documentation for CX2072X
CODEC
References: bsc#1068546
Patch-mainline: Submitted, alsa-devel ML
Initial version of CX2072X device tree bindings document.
Signed-off-by: Simon Ho <simon.ho@conexant.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
Documentation/devicetree/bindings/sound/cx2072x.txt | 36 ++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/cx2072x.txt
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/cx2072x.txt
@@ -0,0 +1,36 @@
+Conexant CX20721/CX20723/CX7601 audio CODEC
+
+The devices support I2C only.
+
+Required properties:
+
+ - compatible : One of "cnxt,cx20721", "cnxt,cx20723", "cnxt,cx7601".
+
+ - reg : the I2C address of the device for I2C, it should be <0x33>
+
+Optional properties:
+
+ - clocks : phandle and clock specifier for codec MCLK.
+ - clock-names : Clock name string for 'clocks' attribute, should be "mclk".
+
+CODEC output pins:
+ "PORTA" - Headphone
+ "PORTG" - Class-D output
+ "PORTE" - Line out
+
+CODEC output pins for Conexant DSP chip:
+ "AEC REF" - AEC reference signal
+
+CODEC input pins:
+ "PORTB" - Analog mic
+ "PORTC" - Digital mic
+ "PORTD" - Headset mic
+
+Example:
+
+codec: cx20721@33 {
+ compatible = "cnxt,cx20721";
+ reg = <0x33>;
+ clocks = <&sco>;
+ clock-names = "mclk";
+};