From: sugar <sugar.zhang@rock-chips.com> Date: Wed, 31 Dec 2014 00:53:22 +0000 (+0800) Subject: Documentation: sound: add rt3261 codec documentation. X-Git-Tag: firefly_0821_release~4353 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=85d067dc7e8bb6ead7fbf11fc4fd0f1b6000dba1;p=firefly-linux-kernel-4.4.55.git Documentation: sound: add rt3261 codec documentation. Signed-off-by: sugar <sugar.zhang@rock-chips.com> --- diff --git a/Documentation/devicetree/bindings/sound/rt3261.txt b/Documentation/devicetree/bindings/sound/rt3261.txt new file mode 100644 index 000000000000..ffeb305f542e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rt3261.txt @@ -0,0 +1,31 @@ +rt3261 audio CODEC + +This device supports I2C only. + +Required properties: + + - compatible : "rt3261" + + - reg : the I2C address of the device. + + - codec-en-gpio : the enable gpio of codec. + + - spk-num : the number of speaker. + + - modem-input-mode : modem input mode (DIFFERENTIAL/SINGLE_END). + + - lout-to-modem_mode : line out mode. + + - spk-amplify : Gain control for speaker. + +Example: + +rt3261: rt3261@1c { + compatible = "rt3261"; + reg = <0x1c>; + codec-en-gpio = <&gpio3 GPIO_D7 GPIO_ACTIVE_HIGH>; + spk-num= <2>; + modem-input-mode = <1>; + lout-to-modem_mode = <1>; + spk-amplify = <2>; +};