xref: /linux/Documentation/devicetree/bindings/sound/cirrus,cs35l45.yaml (revision 72661ff7662acc00d51976d4b2d2d13eb5628385)
1*72661ff7SRichard Fitzgerald# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*72661ff7SRichard Fitzgerald%YAML 1.2
3*72661ff7SRichard Fitzgerald---
4*72661ff7SRichard Fitzgerald$id: http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml#
5*72661ff7SRichard Fitzgerald$schema: http://devicetree.org/meta-schemas/core.yaml#
6*72661ff7SRichard Fitzgerald
7*72661ff7SRichard Fitzgeraldtitle: Cirrus Logic CS35L45 Speaker Amplifier
8*72661ff7SRichard Fitzgerald
9*72661ff7SRichard Fitzgeraldmaintainers:
10*72661ff7SRichard Fitzgerald  - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
11*72661ff7SRichard Fitzgerald  - Richard Fitzgerald <rf@opensource.cirrus.com>
12*72661ff7SRichard Fitzgerald
13*72661ff7SRichard Fitzgeralddescription: |
14*72661ff7SRichard Fitzgerald  CS35L45 is a Boosted Mono Class D Amplifier with DSP
15*72661ff7SRichard Fitzgerald  Speaker Protection and Adaptive Battery Management.
16*72661ff7SRichard Fitzgerald
17*72661ff7SRichard Fitzgeraldproperties:
18*72661ff7SRichard Fitzgerald  compatible:
19*72661ff7SRichard Fitzgerald    enum:
20*72661ff7SRichard Fitzgerald      - cirrus,cs35l45
21*72661ff7SRichard Fitzgerald
22*72661ff7SRichard Fitzgerald  reg:
23*72661ff7SRichard Fitzgerald    maxItems: 1
24*72661ff7SRichard Fitzgerald
25*72661ff7SRichard Fitzgerald  '#sound-dai-cells':
26*72661ff7SRichard Fitzgerald    const: 1
27*72661ff7SRichard Fitzgerald
28*72661ff7SRichard Fitzgerald  reset-gpios:
29*72661ff7SRichard Fitzgerald    maxItems: 1
30*72661ff7SRichard Fitzgerald
31*72661ff7SRichard Fitzgerald  vdd-a-supply:
32*72661ff7SRichard Fitzgerald    description: voltage regulator phandle for the VDD_A supply
33*72661ff7SRichard Fitzgerald
34*72661ff7SRichard Fitzgerald  vdd-batt-supply:
35*72661ff7SRichard Fitzgerald    description: voltage regulator phandle for the VDD_BATT supply
36*72661ff7SRichard Fitzgerald
37*72661ff7SRichard Fitzgerald  spi-max-frequency:
38*72661ff7SRichard Fitzgerald    maximum: 5000000
39*72661ff7SRichard Fitzgerald
40*72661ff7SRichard Fitzgerald  cirrus,asp-sdout-hiz-ctrl:
41*72661ff7SRichard Fitzgerald    description:
42*72661ff7SRichard Fitzgerald      Audio serial port SDOUT Hi-Z control. Sets the Hi-Z
43*72661ff7SRichard Fitzgerald      configuration for SDOUT pin of amplifier. Logical OR of
44*72661ff7SRichard Fitzgerald      CS35L45_ASP_TX_HIZ_xxx values.
45*72661ff7SRichard Fitzgerald    $ref: "/schemas/types.yaml#/definitions/uint32"
46*72661ff7SRichard Fitzgerald    minimum: 0
47*72661ff7SRichard Fitzgerald    maximum: 3
48*72661ff7SRichard Fitzgerald    default: 2
49*72661ff7SRichard Fitzgerald
50*72661ff7SRichard Fitzgeraldrequired:
51*72661ff7SRichard Fitzgerald  - compatible
52*72661ff7SRichard Fitzgerald  - reg
53*72661ff7SRichard Fitzgerald  - "#sound-dai-cells"
54*72661ff7SRichard Fitzgerald
55*72661ff7SRichard FitzgeraldadditionalProperties: false
56*72661ff7SRichard Fitzgerald
57*72661ff7SRichard Fitzgeraldexamples:
58*72661ff7SRichard Fitzgerald  - |
59*72661ff7SRichard Fitzgerald    #include <dt-bindings/sound/cs35l45.h>
60*72661ff7SRichard Fitzgerald    spi {
61*72661ff7SRichard Fitzgerald        #address-cells = <1>;
62*72661ff7SRichard Fitzgerald        #size-cells = <0>;
63*72661ff7SRichard Fitzgerald
64*72661ff7SRichard Fitzgerald        cs35l45: cs35l45@2 {
65*72661ff7SRichard Fitzgerald          #sound-dai-cells = <1>;
66*72661ff7SRichard Fitzgerald          compatible = "cirrus,cs35l45";
67*72661ff7SRichard Fitzgerald          reg = <2>;
68*72661ff7SRichard Fitzgerald          spi-max-frequency = <5000000>;
69*72661ff7SRichard Fitzgerald          vdd-a-supply = <&dummy_vreg>;
70*72661ff7SRichard Fitzgerald          vdd-batt-supply = <&dummy_vreg>;
71*72661ff7SRichard Fitzgerald          reset-gpios = <&gpio 110 0>;
72*72661ff7SRichard Fitzgerald          cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED |
73*72661ff7SRichard Fitzgerald                                        CS35L45_ASP_TX_HIZ_DISABLED)>;
74*72661ff7SRichard Fitzgerald        };
75*72661ff7SRichard Fitzgerald    };
76