xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wlf,wm8962.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/wlf,wm8962.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: Wolfson WM8962 Ultra-Low Power Stereo CODEC
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - patches@opensource.cirrus.com
118cc087a1SEmmanuel Vadot
12*8bab661aSEmmanuel VadotallOf:
13*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
14*8bab661aSEmmanuel Vadot
158cc087a1SEmmanuel Vadotproperties:
168cc087a1SEmmanuel Vadot  compatible:
178cc087a1SEmmanuel Vadot    const: wlf,wm8962
188cc087a1SEmmanuel Vadot
198cc087a1SEmmanuel Vadot  reg:
208cc087a1SEmmanuel Vadot    maxItems: 1
218cc087a1SEmmanuel Vadot
228cc087a1SEmmanuel Vadot  clocks:
238cc087a1SEmmanuel Vadot    maxItems: 1
248cc087a1SEmmanuel Vadot
258cc087a1SEmmanuel Vadot  interrupts:
268cc087a1SEmmanuel Vadot    maxItems: 1
278cc087a1SEmmanuel Vadot
288cc087a1SEmmanuel Vadot  "#sound-dai-cells":
298cc087a1SEmmanuel Vadot    const: 0
308cc087a1SEmmanuel Vadot
318cc087a1SEmmanuel Vadot  AVDD-supply:
328cc087a1SEmmanuel Vadot    description: Analogue supply.
338cc087a1SEmmanuel Vadot
348cc087a1SEmmanuel Vadot  CPVDD-supply:
358cc087a1SEmmanuel Vadot    description: Charge pump power supply.
368cc087a1SEmmanuel Vadot
378cc087a1SEmmanuel Vadot  DBVDD-supply:
388cc087a1SEmmanuel Vadot    description: Digital Buffer Supply.
398cc087a1SEmmanuel Vadot
408cc087a1SEmmanuel Vadot  DCVDD-supply:
418cc087a1SEmmanuel Vadot    description: Digital Core Supply.
428cc087a1SEmmanuel Vadot
438cc087a1SEmmanuel Vadot  MICVDD-supply:
448cc087a1SEmmanuel Vadot    description: Microphone bias amp supply.
458cc087a1SEmmanuel Vadot
468cc087a1SEmmanuel Vadot  PLLVDD-supply:
478cc087a1SEmmanuel Vadot    description: PLL Supply
488cc087a1SEmmanuel Vadot
498cc087a1SEmmanuel Vadot  SPKVDD1-supply:
508cc087a1SEmmanuel Vadot    description: Supply for left speaker drivers.
518cc087a1SEmmanuel Vadot
528cc087a1SEmmanuel Vadot  SPKVDD2-supply:
538cc087a1SEmmanuel Vadot    description: Supply for right speaker drivers.
548cc087a1SEmmanuel Vadot
558cc087a1SEmmanuel Vadot  spk-mono:
568cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
578cc087a1SEmmanuel Vadot    description:
588cc087a1SEmmanuel Vadot      If present, the SPK_MONO bit of R51 (Class D Control 2) gets set,
598cc087a1SEmmanuel Vadot      indicating that the speaker is in mono mode.
608cc087a1SEmmanuel Vadot
618cc087a1SEmmanuel Vadot  mic-cfg:
628cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
638cc087a1SEmmanuel Vadot    description:
648cc087a1SEmmanuel Vadot      Default register value for R48 (Additional Control 4).
658cc087a1SEmmanuel Vadot      If absent, the default should be the register default.
668cc087a1SEmmanuel Vadot
678cc087a1SEmmanuel Vadot  gpio-cfg:
688cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
698cc087a1SEmmanuel Vadot    minItems: 6
708cc087a1SEmmanuel Vadot    maxItems: 6
718cc087a1SEmmanuel Vadot    description:
728cc087a1SEmmanuel Vadot      A list of GPIO configuration register values.  If absent, no
738cc087a1SEmmanuel Vadot      configuration of these registers is performed.  Note that only values
748cc087a1SEmmanuel Vadot      within [0x0, 0xffff] are valid.  Any other value is regarded as setting
758cc087a1SEmmanuel Vadot      the GPIO register to its reset value 0x0.
768cc087a1SEmmanuel Vadot
778cc087a1SEmmanuel Vadot  port:
788cc087a1SEmmanuel Vadot    $ref: audio-graph-port.yaml#
798cc087a1SEmmanuel Vadot    unevaluatedProperties: false
808cc087a1SEmmanuel Vadot
818cc087a1SEmmanuel Vadotrequired:
828cc087a1SEmmanuel Vadot  - compatible
838cc087a1SEmmanuel Vadot  - reg
848cc087a1SEmmanuel Vadot  - AVDD-supply
858cc087a1SEmmanuel Vadot  - CPVDD-supply
868cc087a1SEmmanuel Vadot  - DBVDD-supply
878cc087a1SEmmanuel Vadot  - DCVDD-supply
888cc087a1SEmmanuel Vadot  - MICVDD-supply
898cc087a1SEmmanuel Vadot  - PLLVDD-supply
908cc087a1SEmmanuel Vadot  - SPKVDD1-supply
918cc087a1SEmmanuel Vadot  - SPKVDD2-supply
928cc087a1SEmmanuel Vadot
93*8bab661aSEmmanuel VadotunevaluatedProperties: false
948cc087a1SEmmanuel Vadot
958cc087a1SEmmanuel Vadotexamples:
968cc087a1SEmmanuel Vadot  - |
978cc087a1SEmmanuel Vadot    #include <dt-bindings/clock/imx6qdl-clock.h>
988cc087a1SEmmanuel Vadot
998cc087a1SEmmanuel Vadot    i2c {
1008cc087a1SEmmanuel Vadot          #address-cells = <1>;
1018cc087a1SEmmanuel Vadot          #size-cells = <0>;
1028cc087a1SEmmanuel Vadot
1038cc087a1SEmmanuel Vadot          wm8962: codec@1a {
1048cc087a1SEmmanuel Vadot                  compatible = "wlf,wm8962";
1058cc087a1SEmmanuel Vadot                  reg = <0x1a>;
1068cc087a1SEmmanuel Vadot                  clocks = <&clks IMX6QDL_CLK_CKO>;
1078cc087a1SEmmanuel Vadot                  DCVDD-supply = <&reg_audio>;
1088cc087a1SEmmanuel Vadot                  DBVDD-supply = <&reg_audio>;
1098cc087a1SEmmanuel Vadot                  AVDD-supply = <&reg_audio>;
1108cc087a1SEmmanuel Vadot                  CPVDD-supply = <&reg_audio>;
1118cc087a1SEmmanuel Vadot                  MICVDD-supply = <&reg_audio>;
1128cc087a1SEmmanuel Vadot                  PLLVDD-supply = <&reg_audio>;
1138cc087a1SEmmanuel Vadot                  SPKVDD1-supply = <&reg_audio>;
1148cc087a1SEmmanuel Vadot                  SPKVDD2-supply = <&reg_audio>;
1158cc087a1SEmmanuel Vadot                  gpio-cfg = <
1168cc087a1SEmmanuel Vadot                          0x0000 /* 0:Default */
1178cc087a1SEmmanuel Vadot                          0x0000 /* 1:Default */
1188cc087a1SEmmanuel Vadot                          0x0013 /* 2:FN_DMICCLK */
1198cc087a1SEmmanuel Vadot                          0x0000 /* 3:Default */
1208cc087a1SEmmanuel Vadot                          0x8014 /* 4:FN_DMICCDAT */
1218cc087a1SEmmanuel Vadot                          0x0000 /* 5:Default */
1228cc087a1SEmmanuel Vadot                  >;
1238cc087a1SEmmanuel Vadot          };
1248cc087a1SEmmanuel Vadot    };
125