Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
Schema identifier ($id): "http://devicetree.org/schemas/mfd/wlf,arizona.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.com"
These devices are audio SoCs with extensive digital capabilities and a range of analogue I/O.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Rule 2 #
Shared schema rule (
$ref):/schemas/sound/wlf,arizona.yaml#
Rule 3 #
Shared schema rule (
$ref):/schemas/regulator/wlf,arizona.yaml#
Rule 4 #
Shared schema rule (
$ref):/schemas/extcon/wlf,arizona.yaml#
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Required in this object (
required):"DCVDD-supply","MICVDD-supply"When the condition does not match (
else) #Properties and child nodes (
properties)
LDOVDD-supply— not listed as required hereDigital power supply, used internally to generate DCVDD when internally supplied.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"wlf,wm1814","wlf,wm5102","wlf,wm5110","wlf,wm8280","wlf,wm8997","wlf,wm8998"When the condition matches (
then) #Properties and child nodes (
properties)
DBVDD2-supply— required hereDatabus power supply.
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"wlf,wm1814","wlf,wm5102","wlf,wm5110","wlf,wm8280","wlf,wm8998"When the condition matches (
then) #Properties and child nodes (
properties)
DBVDD3-supply— required hereDatabus power supply.
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"cirrus,cs47l24","wlf,wm1831","wlf,wm8997"When the condition matches (
then) #Properties and child nodes (
properties)
SPKVDD-supply— required hereMono speaker driver power supply.
When the condition does not match (
else) #Properties and child nodes (
properties)
SPKVDDL-supply— required hereLeft speaker driver power supply.
SPKVDDR-supply— required hereRight speaker driver power supply.
Required in this object (
required):"SPKVDDL-supply","SPKVDDR-supply"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cirrus,cs47l24", "wlf,wm1814", "wlf,wm1831", "wlf,wm5102", "wlf,wm5110", "wlf,wm8280", "wlf,wm8997", "wlf,wm8998"
reg — not listed as required here #
Maximum number of items (maxItems): 1
AVDD-supply — required here #
Analogue power supply.
CPVDD-supply — required here #
Charge pump power supply.
DBVDD1-supply — required here #
Databus power supply.
DCVDD-supply — not listed as required here #
Digital power supply, normally supplied internally except on cs47l24, wm1831 where it is mandatory.
MICVDD-supply — not listed as required here #
Microphone power supply, normally supplied internally except on cs47l24, wm1831 where it is mandatory.
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
The first cell is the pin number and the second cell is used to specify optional parameters.
Exact value (const): 2
wlf,gpio-defaults — not listed as required here #
A list of GPIO configuration register values. Defines for the appropriate values can found in dt-bindings/mfd/arizona.h. If absent, no configuration of these registers is performed. If any entry has a value that is out of range for a 16 bit register then the chip default will be used. If present exactly five values must be specified.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
The first cell is the IRQ number. The second cell is the flags, encoded as trigger masks.
Exact value (const): 2
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Should reference the clocks supplied on MCLK1 and MCLK2.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Should contains two strings mclk1 for the clock supplied on MCLK1, recommended to be a high quality audio reference clock mclk2 for the clock supplied on MCLK2, recommended to be an always on 32k clock.
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"mclk1"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"mclk2"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"mclk1"Item 2
Exact value (
const):"mclk2"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wlf,reset — not listed as required here #
GPIO specifier for the GPIO controlling RESET
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "AVDD-supply", "CPVDD-supply", "DBVDD1-supply", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/mfd/arizona.h>
i2c@e0004000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0xe0004000 0x1000>;
wm5102: codec@1a {
compatible = "wlf,wm5102";
reg = <0x1a>;
reset-gpios = <&gpio 0>;
wlf,ldoena = <&gpio 1>;
AVDD-supply = <&vdd1v8>;
DBVDD1-supply = <&vdd1v8>;
DBVDD2-supply = <&vdd1v8>;
DBVDD3-supply = <&vdd1v8>;
CPVDD-supply = <&vdd1v8>;
LDOVDD-supply = <&vdd1v8>;
SPKVDDL-supply = <&vdd5v>;
SPKVDDR-supply = <&vdd5v>;
interrupts = <347>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&gic>;
gpio-controller;
#gpio-cells = <2>;
#sound-dai-cells = <1>;
wlf,gpio-defaults = <
ARIZONA_GP_FN_TXLRCLK
ARIZONA_GP_DEFAULT
ARIZONA_GP_DEFAULT
ARIZONA_GP_DEFAULT
ARIZONA_GP_DEFAULT
>;
clocks = <&clks 0>, <&clks 1>;
clock-names = "mclk1", "mclk2";
wlf,inmode = <ARIZONA_INMODE_DIFF ARIZONA_INMODE_DMIC>;
wlf,dmic-ref = <ARIZONA_DMIC_MICBIAS1 ARIZONA_DMIC_MICBIAS3>;
wlf,use-jd2;
wlf,use-jd2-nopull;
wlf,jd-invert;
wlf,micd-software-compare;
wlf,micd-detect-debounce = <0>;
wlf,micd-pol-gpio = <&codec 2 0>;
wlf,micd-rate = <ARIZONA_MICD_TIME_8MS>;
wlf,micd-dbtime = <4>;
wlf,micd-timeout-ms = <100>;
wlf,micd-force-micbias;
wlf,micd-configs = <0 ARIZONA_DMIC_MICBIAS1 0>,
<0x2000 ARIZONA_DMIC_MICBIAS2 1>;
wlf,gpsw = <ARIZONA_GPSW_OPEN>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause