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: realtek,alc5623: convert to DT schema

Convert alc5623 audio codec binding to DT schema.

Also add "realtek,alc5621" to the compatible list for
existing use in kirkwood-t5325.dts.

Signed-off-by: Mahdi Khosravi <mmk1776@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250811080940.7909-1-mmk1776@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Mahdi Khosravi and committed by
Mark Brown
8c02c835 bdf0f2c8

+54 -25
-25
Documentation/devicetree/bindings/sound/alc5623.txt
··· 1 - ALC5621/ALC5622/ALC5623 audio Codec 2 - 3 - Required properties: 4 - 5 - - compatible: "realtek,alc5623" 6 - - reg: the I2C address of the device. 7 - 8 - Optional properties: 9 - 10 - - add-ctrl: Default register value for Reg-40h, Additional Control 11 - Register. If absent or has the value of 0, the 12 - register is untouched. 13 - 14 - - jack-det-ctrl: Default register value for Reg-5Ah, Jack Detect 15 - Control Register. If absent or has value 0, the 16 - register is untouched. 17 - 18 - Example: 19 - 20 - alc5621: alc5621@1a { 21 - compatible = "alc5621"; 22 - reg = <0x1a>; 23 - add-ctrl = <0x3700>; 24 - jack-det-ctrl = <0x4810>; 25 - };
+54
Documentation/devicetree/bindings/sound/realtek,alc5623.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/realtek,alc5623.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ALC5621/ALC5623 Audio Codec 8 + 9 + maintainers: 10 + - Mahdi Khosravi <mmk1776@gmail.com> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - realtek,alc5621 19 + - realtek,alc5623 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + add-ctrl: 25 + description: 26 + Default register value for Reg-40h, Additional Control Register. 27 + If absent or zero, the register is left untouched. 28 + $ref: /schemas/types.yaml#/definitions/uint32 29 + 30 + jack-det-ctrl: 31 + description: 32 + Default register value for Reg-5Ah, Jack Detect Control Register. 33 + If absent or zero, the register is left untouched. 34 + $ref: /schemas/types.yaml#/definitions/uint32 35 + 36 + required: 37 + - compatible 38 + - reg 39 + 40 + unevaluatedProperties: false 41 + 42 + examples: 43 + - | 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + 48 + codec@1a { 49 + compatible = "realtek,alc5623"; 50 + reg = <0x1a>; 51 + add-ctrl = <0x3700>; 52 + jack-det-ctrl = <0x4810>; 53 + }; 54 + };