Realtek RT5651 audio CODEC
Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5651.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bard Liao <bardliao@realtek.com>"
This device supports I2C only. Pins on the device (for linking into audio routes) for RT5651:
* DMIC L1
* DMIC R1
* IN1P
* IN2P
* IN2N
* IN3P
* HPOL
* HPOR
* LOUTL
* LOUTR
* PDML
* PDMR
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/sound/dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "realtek,rt5651"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "mclk"
#sound-dai-cells — not listed as required here #
Exact value (const): 0
realtek,in2-differential — not listed as required here #
Value type (type): "boolean"
Indicate MIC2 input are differential, rather than single-ended.
realtek,dmic-en — not listed as required here #
Value type (type): "boolean"
Indicates DMIC is used.
realtek,jack-detect-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Select jack-detect input pin.
Allowed values (enum): 1, 2, 3
realtek,jack-detect-not-inverted — not listed as required here #
Value type (type): "boolean"
Normal jack-detect switches give an inverted (active-low) signal. Set this bool in the rare case you've a jack-detect switch which is not inverted.
realtek,over-current-threshold-microamp — not listed as required here #
Micbias over-current detection threshold in µA.
Allowed values (enum): 600, 1500, 2000
realtek,over-current-scale-factor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Micbias over-current detection scale factor:
0: scale current by 0.5
1: scale current by 0.75
2: scale current by 1.0
3: scale current by 1.5
Allowed values (enum): 0, 1, 2, 3
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
codec@1a {
compatible = "realtek,rt5651";
reg = <0x1a>;
realtek,dmic-en;
realtek,in2-differential;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)