diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2017-07-31 13:56:30 +0300 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | a94628bd9c6bbd2d22dd9dcdae6a548432f756f2 (patch) | |
tree | 79c4c0e16b385d4e0345397562a4fbef9cf76c52 /Documentation | |
parent | 5b07bcffad9b0905733ada4907dfecc5df696b75 (diff) |
MLK-15070-1: ASoC: codecs: Add support for AK4497 DAC
AK4497 is a 32-bit 2ch DAC, supporting up to 6 types
of digital filters and accepts up to 768kHz PCM data
and 22.4MHz DSD data.
This is based on original code received from Asahi Kasei
with the following modifications:
* there is now a .component_driver inside snd_soc_codec_driver holding
the controls, dapm_widgets and dap_routes.
* Remove akdbgprt
* Use module_i2c_driver
* Add NXP copyright
* Use symbolic names for registers
* Fix coding style issues
* fix function parameters indentation
* remove multiple empty newlines
* convert C++ style comments to C style comments
* fix spaces and tabs at the end of the line.
* remove braces {} for single block statements
* Make pointers const
* Fix lines over 80 chars
* Don't initialize statics to 0
* Use usleep_range instead of msleep
* Fx vendor prefix
* Add DT bindings documentation for ak4497 codec
* Remove regmap default functions
* Use devm_kzalloc
* Fix MAX_REGISTERS value
* Add $self as module author
* Remove .owner field
* Make ak4497_init_reg return void
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/sound/ak4497.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/ak4497.txt b/Documentation/devicetree/bindings/sound/ak4497.txt new file mode 100644 index 000000000000..f1fd59f3c959 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ak4497.txt @@ -0,0 +1,23 @@ +AK4497 audio codec + +This device supports I2C mode only. + +Required properties: + +- compatible : "asahi-kasei,ak4497" +- reg : The I2C address of the device. +- asahi-kasei,pdn-gpio: A GPIO specifier for the GPIO controlling + the power down & reset pin. +- asahi-kasei,mute-gpio: A GPIO specifier for the GPIO controlling + the soft mute pin. + +Example: + +&i2c { + ak4458: ak4458@0x10 { + compatible = "asahi-kasei,ak4458"; + reg = <0x10>; + asahi-kasei,pdn-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH> + asahi-kasei,mute-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH> + }; +}; |