xref: /freebsd/sys/contrib/device-tree/Bindings/sound/cirrus,cs35l45.yaml (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
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
17properties:
18  compatible:
19    enum:
20      - cirrus,cs35l45
21
22  reg:
23    maxItems: 1
24
25  '#sound-dai-cells':
26    const: 1
27
28  reset-gpios:
29    maxItems: 1
30
31  vdd-a-supply:
32    description: voltage regulator phandle for the VDD_A supply
33
34  vdd-batt-supply:
35    description: voltage regulator phandle for the VDD_BATT supply
36
37  spi-max-frequency:
38    maximum: 5000000
39
40  cirrus,asp-sdout-hiz-ctrl:
41    description:
42      Audio serial port SDOUT Hi-Z control. Sets the Hi-Z
43      configuration for SDOUT pin of amplifier. Logical OR of
44      CS35L45_ASP_TX_HIZ_xxx values.
45    $ref: "/schemas/types.yaml#/definitions/uint32"
46    minimum: 0
47    maximum: 3
48    default: 2
49
50required:
51  - compatible
52  - reg
53  - "#sound-dai-cells"
54
55additionalProperties: false
56
57examples:
58  - |
59    #include <dt-bindings/sound/cs35l45.h>
60    spi {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        cs35l45: cs35l45@2 {
65          #sound-dai-cells = <1>;
66          compatible = "cirrus,cs35l45";
67          reg = <2>;
68          spi-max-frequency = <5000000>;
69          vdd-a-supply = <&dummy_vreg>;
70          vdd-batt-supply = <&dummy_vreg>;
71          reset-gpios = <&gpio 110 0>;
72          cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED |
73                                        CS35L45_ASP_TX_HIZ_DISABLED)>;
74        };
75    };
76