@@ -19,10 +19,12 @@ properties:
clocks:
items:
- description: clock for audio codec
+ - description: clock for I2S master clock
clock-names:
items:
- const: pclk
+ - const: mclk
rockchip,grf:
$ref: /schemas/types.yaml#/definitions/phandle
@@ -41,21 +43,28 @@ properties:
GPIO specifier for external line driver control (typically the
dedicated GPIO_MUTE pin)
+ "#sound-dai-cells":
+ const: 0
+
required:
- compatible
- reg
- clocks
- clock-names
- rockchip,grf
+ - "#sound-dai-cells"
examples:
- |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/clock/rk3328-cru.h>
codec: codec@ff410000 {
compatible = "rockchip,rk3328-codec";
reg = <0xff410000 0x1000>;
- clocks = <&cru PCLK_ACODEC>;
- clock-names = "pclk";
+ clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
+ clock-names = "pclk", "mclk";
rockchip,grf = <&grf>;
mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
- spk-depop-time-ms = 100;
+ spk-depop-time-ms = <100>;
+ #sound-dai-cells = <0>;
};
This patch adds description about "mclk" clock and fixes some errors which are dt_binding_check reported. Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net> --- .../bindings/sound/rockchip,rk3328-codec.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)