new file mode 100644
@@ -0,0 +1,82 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/everest,es8389.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Everest ES8389 audio CODEC
+
+maintainers:
+ - Michael Zhang <zhangyi@everest-semi.com>
+
+allOf:
+ - $ref: dai-common.yaml#
+
+properties:
+ compatible:
+ const: everest,es8389
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: clock for master clock (MCLK)
+
+ clock-names:
+ items:
+ - const: mclk
+
+ "#sound-dai-cells":
+ const: 0
+
+ everest,adc-slot:
+ $ref: /schemas/types.yaml#/definitions/uint8
+ description: |
+ This property is used to set the slots of recording data when multiple
+ codecs are connected in PTDM mode.
+ please set this property to default if you are setting STDM mode.
+ minimum: 0x00
+ maximum: 0x07
+ default: 0x00
+
+ everest,dac-slot:
+ $ref: /schemas/types.yaml#/definitions/uint8
+ description: |
+ This property is used to set the slots of playing data when multiple
+ codecs are connected in TDM mode.
+ please do not set this property if you use single codec.
+ minimum: 0x00
+ maximum: 0x07
+ default: 0x00
+
+ prefix_name:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: device name prefix
+
+ everest,dmic-enabled:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ The property is a choice between PDM and AMIC
+
+required:
+ - compatible
+ - reg
+ - "#sound-dai-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c{
+ #address-cells = <1>;
+ #size-cells = <0>;
+ es8389: es8389@10 {
+ compatible = "everest,es8389";
+ reg = <0x10>;
+ everest,adc-slot = [00];
+ everest,dac-slot = [00];
+ prefix_name = "es8389_0";
+ #sound-dai-cells = <0>;
+ };
+ };
Add device tree binding documentation for Everest ES8389 Signed-off-by: Zhang Yi <zhangyi@everest-semi.com> --- .../bindings/sound/everest,es8389.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/everest,es8389.yaml