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