RT5677 audio CODEC

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5677.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):
  * IN1P
  * IN1N
  * IN2P
  * IN2N
  * MICBIAS1
  * DMIC1
  * DMIC2
  * DMIC3
  * DMIC4
  * LOUT1
  * LOUT2
  * LOUT3

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5677"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

realtek,pow-ldo2-gpio — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's POW_LDO2 pin.

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

Maximum number of items (maxItems): 1

CODEC's RESET pin. Active low.

realtek,gpio-config — not listed as required here #

Array of six 8bit elements that configures GPIO. 0 - floating (reset value) 1 - pull down 2 - pull up

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

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

Array item rules (items) #

Maximum value (maximum): 2

realtek,jd1-gpio — not listed as required here #

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

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

Configures GPIO Mic Jack detection 1.

realtek,jd2-gpio — not listed as required here #

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

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

Configures GPIO Mic Jack detection 2.

realtek,jd3-gpio — not listed as required here #

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

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

Configures GPIO Mic Jack detection 3.

Properties matching a name pattern (patternProperties) #

^realtek,in[1-2]-differential$ — name matches this regular expression #

Value type (type): "boolean"

Indicate MIC1/2 input are differential, rather than single-ended.

^realtek,lout[1-3]-differential$ — name matches this regular expression #

Value type (type): "boolean"

Indicate LOUT1/2/3 outputs are differential, rather than single-ended.

Required in this object (required): "compatible", "reg", "interrupts", "gpio-controller", "#gpio-cells"

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@2c {
        compatible = "realtek,rt5677";
        reg = <0x2c>;
        interrupt-parent = <&gpio>;
        interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
        gpio-controller;
        #gpio-cells = <2>;
        realtek,pow-ldo2-gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
        realtek,reset-gpio = <&gpio 3 GPIO_ACTIVE_LOW>;
        realtek,in1-differential;
        realtek,gpio-config = <0 0 0 0 0 2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 70: OFF

Line 71: GPIO1 for jd1.

Line 72: GPIO2 for jd1.

Line 73: GPIO3 for jd1.

Line 79: OFF

Line 80: GPIO4 for jd2.

Line 81: GPIO5 for jd2.

Line 82: GPIO6 for jd2.

Line 88: OFF

Line 89: GPIO4 for jd3.

Line 90: GPIO5 for jd3.

Line 91: GPIO6 for jd3.

Edit this page