StarFive JH7110 TDM Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/starfive,jh7110-tdm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The TDM Controller is a Time Division Multiplexed audio interface integrated in StarFive JH7110 SoC, allowing up to 8 channels of audio over a serial interface. The TDM controller can operate both in master and slave mode.
Maintainers (maintainers): "Walker Chen <walker.chen@starfivetech.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): "starfive,jh7110-tdm"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
TDM AHB Clock
Item 2
TDM APB Clock
Item 3
TDM Internal Clock
Item 4
TDM Clock
Item 5
Inner MCLK
Item 6
TDM External Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tdm_ahb"
Item 2
Exact value (
const):"tdm_apb"
Item 3
Exact value (
const):"tdm_internal"
Item 4
Exact value (
const):"tdm"
Item 5
Exact value (
const):"mclk_inner"
Item 6
Exact value (
const):"tdm_ext"
resets — required here #
Array item rules (items) #
Item 1
tdm ahb reset line
Item 2
tdm apb reset line
Item 3
tdm core reset line
dmas — required here #
Array item rules (items) #
Item 1
RX DMA Channel
Item 2
TX DMA Channel
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
#sound-dai-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "dmas", "dma-names", "#sound-dai-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
tdm@10090000 {
compatible = "starfive,jh7110-tdm";
reg = <0x10090000 0x1000>;
clocks = <&syscrg 184>,
<&syscrg 185>,
<&syscrg 186>,
<&syscrg 187>,
<&syscrg 17>,
<&tdm_ext>;
clock-names = "tdm_ahb", "tdm_apb",
"tdm_internal", "tdm",
"mclk_inner", "tdm_ext";
resets = <&syscrg 105>,
<&syscrg 107>,
<&syscrg 106>;
dmas = <&dma 20>, <&dma 21>;
dma-names = "rx","tx";
#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)