mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
ASoC: dt-bindings: Add TDM controller bindings for StarFive JH7110
Add bindings for TDM driver which supports multi-channel audio playback and capture on JH7110 platform. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Walker Chen <walker.chen@starfivetech.com> Link: https://lore.kernel.org/r/20230526145402.450-2-walker.chen@starfivetech.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d0c76d9430
commit
d9afe0d36c
1 changed files with 98 additions and 0 deletions
|
@ -0,0 +1,98 @@
|
|||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/sound/starfive,jh7110-tdm.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: StarFive JH7110 TDM Controller
|
||||
|
||||
description: |
|
||||
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:
|
||||
- Walker Chen <walker.chen@starfivetech.com>
|
||||
|
||||
allOf:
|
||||
- $ref: dai-common.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- starfive,jh7110-tdm
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
items:
|
||||
- description: TDM AHB Clock
|
||||
- description: TDM APB Clock
|
||||
- description: TDM Internal Clock
|
||||
- description: TDM Clock
|
||||
- description: Inner MCLK
|
||||
- description: TDM External Clock
|
||||
|
||||
clock-names:
|
||||
items:
|
||||
- const: tdm_ahb
|
||||
- const: tdm_apb
|
||||
- const: tdm_internal
|
||||
- const: tdm
|
||||
- const: mclk_inner
|
||||
- const: tdm_ext
|
||||
|
||||
resets:
|
||||
items:
|
||||
- description: tdm ahb reset line
|
||||
- description: tdm apb reset line
|
||||
- description: tdm core reset line
|
||||
|
||||
dmas:
|
||||
items:
|
||||
- description: RX DMA Channel
|
||||
- description: TX DMA Channel
|
||||
|
||||
dma-names:
|
||||
items:
|
||||
- const: rx
|
||||
- const: tx
|
||||
|
||||
"#sound-dai-cells":
|
||||
const: 0
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- clocks
|
||||
- clock-names
|
||||
- resets
|
||||
- dmas
|
||||
- dma-names
|
||||
- "#sound-dai-cells"
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
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>;
|
||||
};
|
Loading…
Reference in a new issue