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

ASoC: dt-bindings: rockchip,rk3036-codec: convert to yaml

Convert the binding to yaml.

The codec seems to be from Innosilicon, but the compatible has ever only
been rockchip-based, as they sythesized the codec for the rk3036.

So the yaml file gets a name matching that compatible.
The only other notable change is the addition of the #sound-dai-cells
property, that is always required.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20241007205639.2477635-1-heiko@sntech.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Heiko Stuebner and committed by
Mark Brown
5cd575a8 7c66c4f7

+58 -20
-20
Documentation/devicetree/bindings/sound/inno-rk3036.txt
··· 1 - Inno audio codec for RK3036 2 - 3 - Inno audio codec is integrated inside RK3036 SoC. 4 - 5 - Required properties: 6 - - compatible : Should be "rockchip,rk3036-codec". 7 - - reg : The registers of codec. 8 - - clock-names : Should be "acodec_pclk". 9 - - clocks : The clock of codec. 10 - - rockchip,grf : The phandle of grf device node. 11 - 12 - Example: 13 - 14 - acodec: acodec-ana@20030000 { 15 - compatible = "rk3036-codec"; 16 - reg = <0x20030000 0x4000>; 17 - rockchip,grf = <&grf>; 18 - clock-names = "acodec_pclk"; 19 - clocks = <&cru ACLK_VCODEC>; 20 - };
+58
Documentation/devicetree/bindings/sound/rockchip,rk3036-codec.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,rk3036-codec.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Rockchip RK3036 internal codec 8 + 9 + maintainers: 10 + - Heiko Stuebner <heiko@sntech.de> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: rockchip,rk3036-codec 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + clocks: 23 + items: 24 + - description: clock for audio codec 25 + 26 + clock-names: 27 + items: 28 + - const: acodec_pclk 29 + 30 + rockchip,grf: 31 + $ref: /schemas/types.yaml#/definitions/phandle 32 + description: 33 + The phandle of the syscon node for the GRF register. 34 + 35 + "#sound-dai-cells": 36 + const: 0 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - clocks 42 + - clock-names 43 + - rockchip,grf 44 + - "#sound-dai-cells" 45 + 46 + unevaluatedProperties: false 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/clock/rk3036-cru.h> 51 + acodec: audio-codec@20030000 { 52 + compatible = "rockchip,rk3036-codec"; 53 + reg = <0x20030000 0x4000>; 54 + rockchip,grf = <&grf>; 55 + clock-names = "acodec_pclk"; 56 + clocks = <&cru ACLK_VCODEC>; 57 + #sound-dai-cells = <0>; 58 + };