Rockchip Serial Audio Interface Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,rk3576-sai.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Rockchip Serial Audio Interface (SAI) controller is a flexible audio controller that implements the I2S, I2S/TDM and the PDM standards.
Maintainers (maintainers): "Nicolas Frattaroli <nicolas.frattaroli@collabora.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 #
Exact value (const): "rockchip,rk3576-sai"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as 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
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"rx"
clocks — required here #
Array item rules (items) #
Item 1
master audio clock
Item 2
AHB clock driving the interface
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
Item 2
Exact value (
const):"hclk"
resets — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
reset for the mclk domain
Item 2
reset for the hclk domain
reset-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"m"
Item 2
Exact value (
const):"h"
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
#sound-dai-cells — required here #
Exact value (const): 0
rockchip,sai-rx-route — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Defines the mapping of the controller's SDI ports to actual input lanes, as well as the number of input lanes. rockchip,sai-rx-route = <3> would mean sdi3 is receiving from data0, and that there is only one receiving lane. This property's absence is to be understood as only one receiving lane being used if the controller has capture capabilities.
Maximum number of items (maxItems): 4
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):3
rockchip,sai-tx-route — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Defines the mapping of the controller's SDO ports to actual output lanes, as well as the number of output lanes. rockchip,sai-tx-route = <3> would mean sdo3 is sending to data0, and that there is only one transmitting lane. This property's absence is to be understood as only one transmitting lane being used if the controller has playback capabilities.
Maximum number of items (maxItems): 4
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):3
Required in this object (required): "compatible", "reg", "dmas", "dma-names", "clocks", "clock-names", "#sound-dai-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rockchip,rk3576-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/power/rockchip,rk3576-power.h>
#include <dt-bindings/reset/rockchip,rk3576-cru.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
sai1: sai@2a610000 {
compatible = "rockchip,rk3576-sai";
reg = <0x0 0x2a610000 0x0 0x1000>;
interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru MCLK_SAI1_8CH>, <&cru HCLK_SAI1_8CH>;
clock-names = "mclk", "hclk";
dmas = <&dmac0 2>, <&dmac0 3>;
dma-names = "tx", "rx";
power-domains = <&power RK3576_PD_AUDIO>;
resets = <&cru SRST_M_SAI1_8CH>, <&cru SRST_H_SAI1_8CH>;
reset-names = "m", "h";
pinctrl-names = "default";
pinctrl-0 = <&sai1m0_lrck
&sai1m0_sclk
&sai1m0_sdi0
&sai1m0_sdo0
&sai1m0_sdo1
&sai1m0_sdo2
&sai1m0_sdo3>;
rockchip,sai-tx-route = <3 1 2 0>;
#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)