Rockchip rk3328 internal codec

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

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

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): "rockchip,rk3328-codec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for audio codec

Item 2

clock for I2S master clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "mclk"

rockchip,grf — required here #

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

The phandle of the syscon node for the GRF register.

spk-depop-time-ms — not listed as required here #

Default value (default): 200

Speaker depop time in msec.

mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO specifier for external line driver control (typically the dedicated GPIO_MUTE pin)

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "rockchip,grf", "#sound-dai-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/clock/rk3328-cru.h>
codec: codec@ff410000 {
  compatible = "rockchip,rk3328-codec";
  reg = <0xff410000 0x1000>;
  clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
  clock-names = "pclk", "mclk";
  rockchip,grf = <&grf>;
  mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
  spk-depop-time-ms = <100>;
  #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