Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Anushka Badhe and committed by
Mark Brown
115e7d76 c5b6285a

+60 -22
-22
Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
··· 1 - ROCKCHIP with MAX98357A/RT5514/DA7219 codecs on GRU boards 2 - 3 - Required properties: 4 - - compatible: "rockchip,rk3399-gru-sound" 5 - - rockchip,cpu: The phandle of the Rockchip I2S controller that's 6 - connected to the codecs 7 - - rockchip,codec: The phandle of the audio codecs 8 - 9 - Optional properties: 10 - - dmic-wakeup-delay-ms : specify delay time (ms) for DMIC ready. 11 - If this option is specified, which means it's required dmic need 12 - delay for DMIC to ready so that rt5514 can avoid recording before 13 - DMIC send valid data 14 - 15 - Example: 16 - 17 - sound { 18 - compatible = "rockchip,rk3399-gru-sound"; 19 - rockchip,cpu = <&i2s0>; 20 - rockchip,codec = <&max98357a &rt5514 &da7219>; 21 - dmic-wakeup-delay-ms = <20>; 22 - };
+60
Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.yaml
··· 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 +