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: Convert realtek,rt5651 to DT schema

Convert the Realtek RT5661 codec binding to DT schema format. Add
missing clocks/clock-names for MCLK which is in use already. Also add
the standard "#sound-dai-cells" property.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260108214443.1127685-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Rob Herring (Arm) and committed by
Mark Brown
35bffbe4 0cd9bf6a

+100 -63
+100
Documentation/devicetree/bindings/sound/realtek,rt5651.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,rt5651.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Realtek RT5651 audio CODEC 8 + 9 + maintainers: 10 + - Bard Liao <bardliao@realtek.com> 11 + 12 + description: > 13 + This device supports I2C only. 14 + 15 + Pins on the device (for linking into audio routes) for RT5651: 16 + 17 + * DMIC L1 18 + * DMIC R1 19 + * IN1P 20 + * IN2P 21 + * IN2N 22 + * IN3P 23 + * HPOL 24 + * HPOR 25 + * LOUTL 26 + * LOUTR 27 + * PDML 28 + * PDMR 29 + 30 + allOf: 31 + - $ref: /schemas/sound/dai-common.yaml# 32 + 33 + properties: 34 + compatible: 35 + const: realtek,rt5651 36 + 37 + reg: 38 + maxItems: 1 39 + 40 + clocks: 41 + maxItems: 1 42 + 43 + clock-names: 44 + const: mclk 45 + 46 + '#sound-dai-cells': 47 + const: 0 48 + 49 + realtek,in2-differential: 50 + type: boolean 51 + description: Indicate MIC2 input are differential, rather than single-ended. 52 + 53 + realtek,dmic-en: 54 + type: boolean 55 + description: Indicates DMIC is used. 56 + 57 + realtek,jack-detect-source: 58 + $ref: /schemas/types.yaml#/definitions/uint32 59 + description: Select jack-detect input pin. 60 + enum: [1, 2, 3] 61 + 62 + realtek,jack-detect-not-inverted: 63 + type: boolean 64 + description: 65 + Normal jack-detect switches give an inverted (active-low) signal. Set this 66 + bool in the rare case you've a jack-detect switch which is not inverted. 67 + 68 + realtek,over-current-threshold-microamp: 69 + description: Micbias over-current detection threshold in µA. 70 + enum: [600, 1500, 2000] 71 + 72 + realtek,over-current-scale-factor: 73 + $ref: /schemas/types.yaml#/definitions/uint32 74 + description: > 75 + Micbias over-current detection scale factor: 76 + 77 + 0: scale current by 0.5 78 + 1: scale current by 0.75 79 + 2: scale current by 1.0 80 + 3: scale current by 1.5 81 + enum: [0, 1, 2, 3] 82 + 83 + required: 84 + - compatible 85 + - reg 86 + 87 + additionalProperties: false 88 + 89 + examples: 90 + - | 91 + i2c { 92 + #address-cells = <1>; 93 + #size-cells = <0>; 94 + codec@1a { 95 + compatible = "realtek,rt5651"; 96 + reg = <0x1a>; 97 + realtek,dmic-en; 98 + realtek,in2-differential; 99 + }; 100 + };
-63
Documentation/devicetree/bindings/sound/rt5651.txt
··· 1 - RT5651 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - 7 - - compatible : "realtek,rt5651". 8 - 9 - - reg : The I2C address of the device. 10 - 11 - Optional properties: 12 - 13 - - realtek,in2-differential 14 - Boolean. Indicate MIC2 input are differential, rather than single-ended. 15 - 16 - - realtek,dmic-en 17 - Boolean. true if dmic is used. 18 - 19 - - realtek,jack-detect-source 20 - u32. Valid values: 21 - 1: Use JD1_1 pin for jack-detect 22 - 2: Use JD1_2 pin for jack-detect 23 - 3: Use JD2 pin for jack-detect 24 - 25 - - realtek,jack-detect-not-inverted 26 - bool. Normal jack-detect switches give an inverted (active-low) signal, 27 - set this bool in the rare case you've a jack-detect switch which is not 28 - inverted. 29 - 30 - - realtek,over-current-threshold-microamp 31 - u32, micbias over-current detection threshold in µA, valid values are 32 - 600, 1500 and 2000µA. 33 - 34 - - realtek,over-current-scale-factor 35 - u32, micbias over-current detection scale-factor, valid values are: 36 - 0: Scale current by 0.5 37 - 1: Scale current by 0.75 38 - 2: Scale current by 1.0 39 - 3: Scale current by 1.5 40 - 41 - Pins on the device (for linking into audio routes) for RT5651: 42 - 43 - * DMIC L1 44 - * DMIC R1 45 - * IN1P 46 - * IN2P 47 - * IN2N 48 - * IN3P 49 - * HPOL 50 - * HPOR 51 - * LOUTL 52 - * LOUTR 53 - * PDML 54 - * PDMR 55 - 56 - Example: 57 - 58 - rt5651: codec@1a { 59 - compatible = "realtek,rt5651"; 60 - reg = <0x1a>; 61 - realtek,dmic-en = "true"; 62 - realtek,in2-diff = "false"; 63 - };