Rockchip RK3308 Internal Codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,rk3308-codec.yaml#"

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

This is the audio codec embedded in the Rockchip RK3308 SoC. It has 8 24-bit ADCs and 2 24-bit DACs. The maximum supported sampling rate is 192 kHz.

It is connected internally to one out of a selection of the internal I2S controllers.

The RK3308 audio codec has 8 independent capture channels, but some
features work on stereo pairs called groups:
  * grp 0 -- MIC1 / MIC2
  * grp 1 -- MIC3 / MIC4
  * grp 2 -- MIC5 / MIC6
  * grp 3 -- MIC7 / MIC8

Maintainers (maintainers): "Luca Ceresoli <luca.ceresoli@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rockchip,rk3308-codec"

reg — required here #

Maximum number of items (maxItems): 1

rockchip,grf — required here #

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

Phandle to the General Register Files (GRF)

clocks — required here #

Array item rules (items) #

Item 1

clock for TX

Item 2

clock for RX

Item 3

AHB clock driving the interface

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk_tx"

Item 2

Exact value (const): "mclk_rx"

Item 3

Exact value (const): "hclk"

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.

resets — required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "codec"

#sound-dai-cells — required here #

Exact value (const): 0

rockchip,micbias-avdd-percent — not listed as required here #

Voltage setting for the MICBIAS pins expressed as a percentage of AVDD.

E.g. if rockchip,micbias-avdd-percent = 85 and AVDD = 3v3, then the MIC BIAS voltage will be 3.3 V * 85% = 2.805 V.

Allowed values (enum): 50, 55, 60, 65, 70, 75, 80, 85

Required in this object (required): "compatible", "reg", "rockchip,grf", "clocks", "resets", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3308-cru.h>

audio_codec: audio-codec@ff560000 {
    compatible = "rockchip,rk3308-codec";
    reg = <0xff560000 0x10000>;
    rockchip,grf = <&grf>;
    clock-names = "mclk_tx", "mclk_rx", "hclk";
    clocks = <&cru SCLK_I2S2_8CH_TX_OUT>,
             <&cru SCLK_I2S2_8CH_RX_OUT>,
             <&cru PCLK_ACODEC>;
    reset-names = "codec";
    resets = <&cru SRST_ACODEC_P>;
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page