Skip to content

Commit 115e7d7

Browse files
Anushka Badhebroonie
authored andcommitted
ASoC: dt-bindings: rockchip: convert rk3399-gru-sound to DT Schema
Convert the rockchip,rk3399-gru-sound.txt DT binding to DT Schema format. Update rockchip,cpu from a single I2S controller phandle to a phandle-array. Add an optional second entry for the SPDIF controller, as seen in rk3399-gru.dtsi, required by boards with DisplayPort audio. Signed-off-by: Anushka Badhe <anushkabadhe@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260410055532.60868-1-anushkabadhe@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c5b6285 commit 115e7d7

2 files changed

Lines changed: 60 additions & 22 deletions

File tree

Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/rockchip,rk3399-gru-sound.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Rockchip with MAX98357A/RT5514/DA7219 codecs on GRU boards
8+
9+
maintainers:
10+
- Heiko Stuebner <heiko@sntech.de>
11+
12+
properties:
13+
compatible:
14+
const: rockchip,rk3399-gru-sound
15+
16+
rockchip,cpu:
17+
$ref: /schemas/types.yaml#/definitions/phandle-array
18+
description: |
19+
List of phandles to the Rockchip CPU DAI controllers connected to codecs
20+
minItems: 1
21+
items:
22+
- items:
23+
- description: Phandle to the Rockchip I2S controllers
24+
- items:
25+
- description: |
26+
Phandle to the Rockchip SPDIF controller. Required when a
27+
DisplayPort audio codec is referenced in rockchip,codec
28+
29+
rockchip,codec:
30+
$ref: /schemas/types.yaml#/definitions/phandle-array
31+
description: |
32+
The phandles of the audio codecs connected to the Rockchip CPU DAI
33+
controllers
34+
minItems: 1
35+
maxItems: 6
36+
items:
37+
maxItems: 1
38+
39+
dmic-wakeup-delay-ms:
40+
description: |
41+
specify delay time (ms) for DMIC ready.
42+
If this option is specified, a delay is required for DMIC to get ready
43+
so that rt5514 can avoid recording before DMIC sends valid data
44+
45+
required:
46+
- compatible
47+
- rockchip,cpu
48+
- rockchip,codec
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
sound {
55+
compatible = "rockchip,rk3399-gru-sound";
56+
rockchip,cpu = <&i2s0 &spdif>;
57+
rockchip,codec = <&max98357a &rt5514 &da7219 &cdn_dp>;
58+
dmic-wakeup-delay-ms = <20>;
59+
};
60+

0 commit comments

Comments
 (0)