Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml
Extension
.yaml
Size
1553 bytes
Lines
60
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# 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>;
    };

Annotation

Implementation Notes