Message ID | 1403562593-31952-1-git-send-email-Paul.Handrigan@cirrus.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2b65df255c7e1f028f7b4f4d18fd41eecafad4bd |
Headers | show |
On Mon, Jun 23, 2014 at 05:29:52PM -0500, Paul Handrigan wrote: > This patch adds binding documentation for the Cirrus Logic CS4265 I2C CODEC. Applied both, thanks. I suspect you'll end up needing to split the S/PDIF mute operation but it doesn't make such a big difference at the framework level. > Changes for v2: > > * Change DT reset pin name to "reset-gpios" As covered in SubmittingPatches things like this should go after the ---.
diff --git a/Documentation/devicetree/bindings/sound/cs4265.txt b/Documentation/devicetree/bindings/sound/cs4265.txt new file mode 100644 index 0000000..380fff8 --- /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-gpios : 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>; +};
This patch adds binding documentation for the Cirrus Logic CS4265 I2C CODEC. Changes for v2: * Change DT reset pin name to "reset-gpios" 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