Documentation / devicetree / bindings / sound / rockchip,rk3399-gru-sound.yaml


Based on kernel version 7.2. Page generated on 2026-08-20 08:41 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/rockchip,rk3399-gru-sound.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Rockchip with MAX98357A/RT5514/DA7219 codecs on GRU boards

maintainers:
  - Heiko Stuebner <heiko@sntech.de>

properties:
  compatible:
    const: rockchip,rk3399-gru-sound

  rockchip,cpu:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    description: |
      List of phandles to the Rockchip CPU DAI controllers connected to codecs
    minItems: 1
    items:
      - items:
          - description: Phandle to the Rockchip I2S controllers
      - items:
          - description: |
              Phandle to the Rockchip SPDIF controller. Required when a
              DisplayPort audio codec is referenced in rockchip,codec

  rockchip,codec:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    description: |
      The phandles of the audio codecs connected to the Rockchip CPU DAI
      controllers
    minItems: 1
    maxItems: 6
    items:
      maxItems: 1

  dmic-wakeup-delay-ms:
    description: |
      specify delay time (ms) for DMIC ready.
      If this option is specified, a delay is required for DMIC to get ready
      so that rt5514 can avoid recording before DMIC sends valid data

required:
  - compatible
  - rockchip,cpu
  - rockchip,codec

additionalProperties: false

examples:
  - |
    sound {
      compatible = "rockchip,rk3399-gru-sound";
      rockchip,cpu = <&i2s0 &spdif>;
      rockchip,codec = <&max98357a &rt5514 &da7219 &cdn_dp>;
      dmic-wakeup-delay-ms = <20>;
    };