Rockchip I2S controller

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

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

The I2S bus (Inter-IC sound bus) is a serial link for digital audio data transfer between devices in the system.

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 #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3066-i2s"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-i2s", "rockchip,rk1808-i2s", "rockchip,rk3036-i2s", "rockchip,rk3128-i2s", "rockchip,rk3188-i2s", "rockchip,rk3228-i2s", "rockchip,rk3288-i2s", "rockchip,rk3308-i2s", "rockchip,rk3328-i2s", "rockchip,rk3366-i2s", "rockchip,rk3368-i2s", "rockchip,rk3399-i2s", "rockchip,rk3588-i2s", "rockchip,rv1126-i2s"

Item 2

Exact value (const): "rockchip,rk3066-i2s"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for I2S controller

Item 2

clock for I2S BUS

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s_clk"

Item 2

Exact value (const): "i2s_hclk"

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

pinctrl-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "default"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "bclk_on"

Item 2

Exact value (const): "bclk_off"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "reset-m"

Item 2

Exact value (const): "reset-h"

resets — not listed as required here #

Maximum number of items (maxItems): 2

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.

rockchip,capture-channels — not listed as required here #

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

Default value (default): 2

Max capture channels, if not set, 2 channels default.

rockchip,playback-channels — not listed as required here #

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

Default value (default): 8

Max playback channels, if not set, 8 channels default.

rockchip,grf — not listed as required here #

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

The phandle of the syscon node for the GRF register. Required property for controllers which support multi channel playback/capture.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2s@ff890000 {
  compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s";
  reg = <0xff890000 0x10000>;
  interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0>;
  clock-names = "i2s_clk", "i2s_hclk";
  dmas = <&pdma1 0>, <&pdma1 1>;
  dma-names = "tx", "rx";
  rockchip,capture-channels = <2>;
  rockchip,playback-channels = <8>;
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page