Rockchip I2S/TDM Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,i2s-tdm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Rockchip I2S/TDM Controller is a Time Division Multiplexed audio interface found in various Rockchip SoCs, allowing up to 8 channels of audio over a serial interface.
Maintainers (maintainers): "Nicolas Frattaroli <frattaroli.nicolas@gmail.com>"
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): "rockchip,px30-i2s-tdm", "rockchip,rk1808-i2s-tdm", "rockchip,rk3308-i2s-tdm", "rockchip,rk3568-i2s-tdm", "rockchip,rk3588-i2s-tdm", "rockchip,rv1126-i2s-tdm"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
dma-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
clocks — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
clock for TX
Item 2
clock for RX
Item 3
AHB clock driving the interface
Item 4
Parent clock for mclk_tx (only required when using mclk-calibrate)
Item 5
Parent clock for mclk_rx (only required when using mclk-calibrate)
Item 6
Clock for sample rates that are an integer multiple of 8000 (only required when using mclk-calibrate)
Item 7
Clock for sample rates that are an integer multiple of 11025 (only required when using mclk-calibrate)
clock-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"mclk_tx"
Item 2
Exact value (
const):"mclk_rx"
Item 3
Exact value (
const):"hclk"
Item 4
Exact value (
const):"mclk_tx_src"
Item 5
Exact value (
const):"mclk_rx_src"
Item 6
Exact value (
const):"mclk_root0"
Item 7
Exact value (
const):"mclk_root1"
resets — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
resets for the tx and rx directions
reset-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
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.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
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.
rockchip,trcm-sync-tx-only — not listed as required here #
Value type (type): "boolean"
Use TX BCLK/LRCK for both TX and RX.
rockchip,trcm-sync-rx-only — not listed as required here #
Value type (type): "boolean"
Use RX BCLK/LRCK for both TX and RX.
#sound-dai-cells — required here #
Exact value (const): 0
rockchip,i2s-rx-route — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Defines the mapping of I2S RX sdis to I2S data bus lines. By default, they are mapped one-to-one. rockchip,i2s-rx-route = <3> would mean sdi3 is receiving from data0.
Maximum number of items (maxItems): 4
Array item rules (items) #
rockchip,i2s-tx-route — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Defines the mapping of I2S TX sdos to I2S data bus lines. By default, they are mapped one-to-one. rockchip,i2s-tx-route = <3> would mean sdo3 is sending to data0.
Maximum number of items (maxItems): 4
Array item rules (items) #
rockchip,io-multiplex — not listed as required here #
Specify that the GPIO lines on the I2S bus are multiplexed such that the direction (input/output) needs to be dynamically adjusted.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names", "resets", "reset-names", "#sound-dai-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3568-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
i2s@fe410000 {
compatible = "rockchip,rk3568-i2s-tdm";
reg = <0x0 0xfe410000 0x0 0x1000>;
interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru MCLK_I2S1_8CH_TX>, <&cru MCLK_I2S1_8CH_RX>,
<&cru HCLK_I2S1_8CH>;
clock-names = "mclk_tx", "mclk_rx", "hclk";
dmas = <&dmac1 3>, <&dmac1 2>;
dma-names = "rx", "tx";
resets = <&cru SRST_M_I2S1_8CH_TX>, <&cru SRST_M_I2S1_8CH_RX>;
reset-names = "tx-m", "rx-m";
rockchip,trcm-sync-tx-only;
rockchip,grf = <&grf>;
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 =
<&i2s1m0_sclktx
&i2s1m0_sclkrx
&i2s1m0_lrcktx
&i2s1m0_lrckrx
&i2s1m0_sdi0
&i2s1m0_sdi1
&i2s1m0_sdi2
&i2s1m0_sdi3
&i2s1m0_sdo0
&i2s1m0_sdo1
&i2s1m0_sdo2
&i2s1m0_sdo3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)