Freescale Sony/Philips Digital Interface Format (S/PDIF) Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,spdif.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"
The Freescale S/PDIF audio block is a stereo transceiver that allows the processor to receive and transmit digital audio via an coaxial cable or a fibre cable.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx35-spdif","fsl,imx6sx-spdif","fsl,imx8mm-spdif","fsl,imx8mn-spdif","fsl,imx8mq-spdif","fsl,imx8qm-spdif","fsl,imx8qxp-spdif","fsl,imx8ulp-spdif","fsl,vf610-spdif"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx6sl-spdif","fsl,imx6sx-spdif"Item 2
Exact value (
const):"fsl,imx35-spdif"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Combined or receive interrupt
Item 2
Transmit interrupt
dmas — required here #
Array item rules (items) #
Item 1
DMA controller phandle and request line for RX
Item 2
DMA controller phandle and request line for TX
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
clocks — required here #
Array item rules (items) #
Item 1
The core clock of spdif controller.
Item 2
Clock for tx0 and rx0.
Item 3
Clock for tx1 and rx1.
Item 4
Clock for tx2 and rx2.
Item 5
Clock for tx3 and rx3.
Item 6
Clock for tx4 and rx4.
Item 7
Clock for tx5 and rx5.
Item 8
Clock for tx6 and rx6.
Item 9
Clock for tx7 and rx7.
Item 10
The spba clock is required when SPDIF is placed as a bus slave of the Shared Peripheral Bus and when two or more bus masters (CPU, DMA or DSP) try to access it. This property is optional depending on the SoC design.
Item 11
PLL clock source for 8kHz series rate, optional.
Item 12
PLL clock source for 11khz series rate, optional.
Minimum number of items (minItems): 9
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"rxtx0"
Item 3
Exact value (
const):"rxtx1"
Item 4
Exact value (
const):"rxtx2"
Item 5
Exact value (
const):"rxtx3"
Item 6
Exact value (
const):"rxtx4"
Item 7
Exact value (
const):"rxtx5"
Item 8
Exact value (
const):"rxtx6"
Item 9
Exact value (
const):"rxtx7"
Item 10
Exact value (
const):"spba"
Item 11
Exact value (
const):"pll8k"
Item 12
Exact value (
const):"pll11k"
Minimum number of items (minItems): 9
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If this property is absent, the native endian mode will be in use as default, or the big endian mode will be in use for all the device registers. Set this flag for HCDs with big endian descriptors and big endian registers.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"fsl,imx8qm-spdif","fsl,imx8qxp-spdif"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx8qm-spdif","fsl,imx8qxp-spdif"When the condition matches (
then) #
Examples (examples) #
spdif@2004000 {
compatible = "fsl,imx35-spdif";
reg = <0x02004000 0x4000>;
interrupts = <0 52 0x04>;
dmas = <&sdma 14 18 0>,
<&sdma 15 18 0>;
dma-names = "rx", "tx";
clocks = <&clks 197>, <&clks 3>,
<&clks 197>, <&clks 107>,
<&clks 0>, <&clks 118>,
<&clks 62>, <&clks 139>,
<&clks 0>;
clock-names = "core", "rxtx0",
"rxtx1", "rxtx2",
"rxtx3", "rxtx4",
"rxtx5", "rxtx6",
"rxtx7";
big-endian;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)