RT5659/RT5658 audio CODEC

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5659.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

This device supports I2C only.

Pins on the device (for linking into audio routes) for RT5659/RT5658:
  * DMIC L1
  * DMIC R1
  * DMIC L2
  * DMIC R2
  * IN1P
  * IN1N
  * IN2P
  * IN2N
  * IN3P
  * IN3N
  * IN4P
  * IN4N
  * HPOL
  * HPOR
  * SPOL
  * SPOR
  * LOUTL
  * LOUTR
  * MONOOUT
  * PDML
  * PDMR
  * SPDIF

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "realtek,rt5659", "realtek,rt5658"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

realtek,dmic1-data-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

Specify which pin to be used as DMIC1 data pin.

Default value (default): 0

realtek,dmic2-data-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

Specify which pin to be used as DMIC2 data pin.

Default value (default): 0

realtek,jd-src — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Specify which JD source be used.

Default value (default): 0

realtek,ldo1-en-gpios — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's LDO1_EN pin.

realtek,reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's RESET pin.

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

port — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1b {
        compatible = "realtek,rt5659";
        reg = <0x1b>;
        interrupt-parent = <&gpio>;
        interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
        realtek,ldo1-en-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 63: dmic1 is not used

Line 64: using IN2N pin as dmic1 data pin

Line 65: using GPIO5 pin as dmic1 data pin

Line 66: using GPIO9 pin as dmic1 data pin

Line 67: using GPIO11 pin as dmic1 data pin

Line 74: dmic2 is not used

Line 75: using IN2P pin as dmic2 data pin

Line 76: using GPIO6 pin as dmic2 data pin

Line 77: using GPIO10 pin as dmic2 data pin

Line 78: using GPIO12 pin as dmic2 data pin

Line 85: No JD is used

Line 86: using JD3 as JD source

Line 87: JD source for Intel HDA header

Edit this page