Freescale SGTL5000 Stereo Codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,sgtl5000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabio Estevam <festevam@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,sgtl5000"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — required here #
Exact value (const): 0
assigned-clock-parents — not listed as required here #
true — No constraints added by this property rule.
assigned-clock-rates — not listed as required here #
true — No constraints added by this property rule.
assigned-clocks — not listed as required here #
true — No constraints added by this property rule.
clocks — required here #
Array item rules (items) #
Item 1
the clock provider of SYS_MCLK
VDDA-supply — required here #
the regulator provider of VDDA
VDDIO-supply — required here #
the regulator provider of VDDIO
VDDD-supply — not listed as required here #
the regulator provider of VDDD
micbias-resistor-k-ohms — not listed as required here #
The bias resistor to be used in kOhms. The resistor can take values of 2k, 4k or 8k. If set to 0 it will be off. If this node is not mentioned or if the value is unknown, then micbias resistor is set to 4k.
Allowed values (enum): 0, 2, 4, 8
micbias-voltage-m-volts — not listed as required here #
The bias voltage to be used in mVolts. The voltage can take values from 1.25V to 3V by 250mV steps. If this node is not mentioned or the value is unknown, then the value is set to 1.25V.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000
lrclk-strength — not listed as required here #
The LRCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the table below:
VDDIO 1.8V 2.5V 3.3V
0 = Disable
1 = 1.66 mA 2.87 mA 4.02 mA
2 = 3.33 mA 5.74 mA 8.03 mA
3 = 4.99 mA 8.61 mA 12.05 mA
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
sclk-strength — not listed as required here #
The SCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the table below:
VDDIO 1.8V 2.5V 3.3V
0 = Disable
1 = 1.66 mA 2.87 mA 4.02 mA
2 = 3.33 mA 5.74 mA 8.03 mA
3 = 4.99 mA 8.61 mA 12.05 mA
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
port — not listed as required here #
Shared schema rule ($ref): audio-graph-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clocks", "VDDA-supply", "VDDIO-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
codec@a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
#sound-dai-cells = <0>;
clocks = <&clks 150>;
micbias-resistor-k-ohms = <2>;
micbias-voltage-m-volts = <2250>;
VDDA-supply = <®_3p3v>;
VDDIO-supply = <®_3p3v>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only