Documentation / devicetree / bindings / sound / rockchip,rockchip-audio-max98090.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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/rockchip,rockchip-audio-max98090.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Rockchip audio complex with MAX98090 codec

maintainers:
  - Fabio Estevam <festevam@gmail.com>

properties:
  compatible:
    const: rockchip,rockchip-audio-max98090

  rockchip,model:
    $ref: /schemas/types.yaml#/definitions/string
    description: The user-visible name of this sound complex.

  rockchip,i2s-controller:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle to the Rockchip I2S controller.

  rockchip,audio-codec:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle to the MAX98090 audio codec.

  rockchip,headset-codec:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle to the external chip for jack detection.

  rockchip,hdmi-codec:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle to the HDMI device for HDMI codec.

required:
  - compatible
  - rockchip,model
  - rockchip,i2s-controller

allOf:
  - if:
      required:
        - rockchip,audio-codec
    then:
      required:
        - rockchip,headset-codec

unevaluatedProperties: false

examples:
  - |
    sound {
        compatible = "rockchip,rockchip-audio-max98090";
        rockchip,model = "ROCKCHIP-I2S";
        rockchip,i2s-controller = <&i2s>;
        rockchip,audio-codec = <&max98090>;
        rockchip,headset-codec = <&headsetcodec>;
    };