18c2ecf20Sopenharmony_ciCS43130 DAC
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci  - compatible : "cirrus,cs43130", "cirrus,cs4399", "cirrus,cs43131",
68c2ecf20Sopenharmony_ci                 "cirrus,cs43198"
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci  - reg : the I2C address of the device for I2C
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci  - VA-supply, VP-supply, VL-supply, VCP-supply, VD-supply:
118c2ecf20Sopenharmony_ci	power supplies for the device, as covered in
128c2ecf20Sopenharmony_ci	Documentation/devicetree/bindings/regulator/regulator.txt.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciOptional properties:
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci  - reset-gpios : Active low GPIO used to reset the device
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci  - cirrus,xtal-ibias:
208c2ecf20Sopenharmony_ci   When external MCLK is generated by external crystal
218c2ecf20Sopenharmony_ci   oscillator, CS43130 can be used to provide bias current
228c2ecf20Sopenharmony_ci   for external crystal.  Amount of bias current sent is
238c2ecf20Sopenharmony_ci   set as:
248c2ecf20Sopenharmony_ci   1 = 7.5uA
258c2ecf20Sopenharmony_ci   2 = 12.5uA
268c2ecf20Sopenharmony_ci   3 = 15uA
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci  - cirrus,dc-measure:
298c2ecf20Sopenharmony_ci   Boolean, define to enable headphone DC impedance measurement.
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci  - cirrus,ac-measure:
328c2ecf20Sopenharmony_ci   Boolean, define to enable headphone AC impedance measurement.
338c2ecf20Sopenharmony_ci   DC impedance must also be enabled for AC impedance measurement.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci  - cirrus,dc-threshold:
368c2ecf20Sopenharmony_ci   Define 2 DC impedance thresholds in ohms for HP output control.
378c2ecf20Sopenharmony_ci   Default values are 50 and 120 Ohms.
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci  - cirrus,ac-freq:
408c2ecf20Sopenharmony_ci   Define the frequencies at which to measure HP AC impedance.
418c2ecf20Sopenharmony_ci   Only used if "cirrus,dc-measure" is defined.
428c2ecf20Sopenharmony_ci   Exactly 10 frequencies must be defined.
438c2ecf20Sopenharmony_ci   If this properties is undefined, by default,
448c2ecf20Sopenharmony_ci   following frequencies are used:
458c2ecf20Sopenharmony_ci   <24 43 93 200 431 928 2000 4309 9283 20000>
468c2ecf20Sopenharmony_ci   The above frequencies are logarithmically equally spaced.
478c2ecf20Sopenharmony_ci   Log base is 10.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ciExample:
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cics43130: audio-codec@30 {
528c2ecf20Sopenharmony_ci   compatible = "cirrus,cs43130";
538c2ecf20Sopenharmony_ci   reg = <0x30>;
548c2ecf20Sopenharmony_ci   reset-gpios = <&axi_gpio 54 0>;
558c2ecf20Sopenharmony_ci   VA-supply = <&dummy_vreg>;
568c2ecf20Sopenharmony_ci   VP-supply = <&dummy_vreg>;
578c2ecf20Sopenharmony_ci   VL-supply = <&dummy_vreg>;
588c2ecf20Sopenharmony_ci   VCP-supply = <&dummy_vreg>;
598c2ecf20Sopenharmony_ci   VD-supply = <&dummy_vreg>;
608c2ecf20Sopenharmony_ci   cirrus,xtal-ibias = <2>;
618c2ecf20Sopenharmony_ci   interrupt-parent = <&gpio0>;
628c2ecf20Sopenharmony_ci   interrupts = <55 8>;
638c2ecf20Sopenharmony_ci   cirrus,dc-measure;
648c2ecf20Sopenharmony_ci   cirrus,ac-measure;
658c2ecf20Sopenharmony_ci   cirrus,dc-threshold = /bits/ 16 <20 100>;
668c2ecf20Sopenharmony_ci   cirrus,ac-freq = /bits/ 16 <24 43 93 200 431 928 2000 4309 9283 20000>;
678c2ecf20Sopenharmony_ci};
68