ASoC: codecs: add support for rk3328
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / sound / rockchip,rk3328-codec.txt
diff --git a/Documentation/devicetree/bindings/sound/rockchip,rk3328-codec.txt b/Documentation/devicetree/bindings/sound/rockchip,rk3328-codec.txt
new file mode 100644 (file)
index 0000000..2469588
--- /dev/null
@@ -0,0 +1,23 @@
+* Rockchip Rk3328 internal codec
+
+Required properties:
+
+- compatible: "rockchip,rk3328-codec"
+- reg: physical base address of the controller and length of memory mapped
+  region.
+- rockchip,grf: the phandle of the syscon node for GRF register.
+- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
+- clock-names: should be "pclk".
+- spk-depop-time-ms: speak depop time msec.
+
+Example for rk3328 internal codec:
+
+codec: codec@ff410000 {
+       compatible = "rockchip,rk3328-codec";
+       reg = <0x0 0xff410000 0x0 0x1000>;
+       rockchip,grf = <&grf>;
+       clocks = <&cru PCLK_ACODEC>;
+       clock-names = "pclk";
+       spk-depop-time-ms = 100;
+       status = "disabled";
+};