diff mbox

[1/2] ASoC: cs4265: bindings: sound: Add bindings for CS4265 CODEC

Message ID 1400872614-21666-1-git-send-email-Paul.Handrigan@cirrus.com (mailing list archive)
State New, archived
Headers show

Commit Message

Paul Handrigan May 23, 2014, 7:16 p.m. UTC
This patch adds binding documentation for the Cirrus Logic CS4265 CODEC.

Signed-off-by: Paul Handrigan <paul.handrigan@cirrus.com>
---
 Documentation/devicetree/bindings/sound/cs4265.txt | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/cs4265.txt

Comments

Mark Brown May 23, 2014, 8:28 p.m. UTC | #1
On Fri, May 23, 2014 at 02:16:53PM -0500, Paul Handrigan wrote:

> +Optional properties:
> +
> +  - reset-gpio : a GPIO spec for the reset pin. If specified, it will be
> +		 deasserted before communication to the codec starts.

GPIO properties are supposed to be named -gpios by convention even if
they only specify a single GPIO.
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/sound/cs4265.txt b/Documentation/devicetree/bindings/sound/cs4265.txt
new file mode 100644
index 0000000..03d0dde
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/cs4265.txt
@@ -0,0 +1,29 @@ 
+CS4265 audio CODEC
+
+This device supports I2C only.
+
+Required properties:
+
+  - compatible : "cirrus,cs4265"
+
+  - reg : the I2C address of the device for I2C. The I2C address depends on
+          the state of the AD0 pin.  If AD0 is high, the i2c address is 0x4f.
+          If it is low, the i2c address is 0x4e.
+
+Optional properties:
+
+  - reset-gpio : a GPIO spec for the reset pin. If specified, it will be
+		 deasserted before communication to the codec starts.
+
+Examples:
+
+codec_ad0_high: cs4265@4f { /* AD0 Pin is high */
+	compatible = "cirrus,cs4265";
+	reg = <0x4f>;
+};
+
+
+codec_ad0_low: cs4265@4e { /* AD0 Pin is low */
+	compatible = "cirrus,cs4265";
+	reg = <0x4e>;
+};