]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ASoC: Documentation: Add google, cros-ec-codec
authorCheng-Yi Chiang <cychiang@chromium.org>
Sat, 19 Jan 2019 11:33:31 +0000 (19:33 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 29 Jan 2019 12:05:10 +0000 (12:05 +0000)
Add documentation for Chrome EC codec driver.

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt
new file mode 100644 (file)
index 0000000..1084f7f
--- /dev/null
@@ -0,0 +1,26 @@
+* Audio codec controlled by ChromeOS EC
+
+Google's ChromeOS EC codec is a digital mic codec provided by the
+Embedded Controller (EC) and is controlled via a host-command interface.
+
+An EC codec node should only be found as a sub-node of the EC node (see
+Documentation/devicetree/bindings/mfd/cros-ec.txt).
+
+Required properties:
+- compatible: Must contain "google,cros-ec-codec"
+- #sound-dai-cells: Should be 1. The cell specifies number of DAIs.
+- max-dmic-gain: A number for maximum gain in dB on digital microphone.
+
+Example:
+
+cros-ec@0 {
+       compatible = "google,cros-ec-spi";
+
+       ...
+
+       cros_ec_codec: ec-codec {
+               compatible = "google,cros-ec-codec";
+               #sound-dai-cells = <1>;
+               max-dmic-gain = <43>;
+       };
+};
index 9f64f8d3740edcf37a3736941e7b997fc9c4a9c1..3bcc5465e4602106af50422e8c9ca0129b6203c1 100644 (file)
@@ -3687,6 +3687,13 @@ N:       cros_ec
 N:     cros-ec
 F:     drivers/power/supply/cros_usbpd-charger.c
 
+CHROMEOS EC CODEC DRIVER
+M:     Cheng-Yi Chiang <cychiang@chromium.org>
+S:     Maintained
+R:     Enric Balletbo i Serra <enric.balletbo@collabora.com>
+R:     Guenter Roeck <groeck@chromium.org>
+F:     Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt
+
 CIRRUS LOGIC AUDIO CODEC DRIVERS
 M:     Brian Austin <brian.austin@cirrus.com>
 M:     Paul Handrigan <Paul.Handrigan@cirrus.com>