1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cirrus Logic CS35L45 Speaker Amplifier
10 - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
11 - Richard Fitzgerald <rf@opensource.cirrus.com>
14 CS35L45 is a Boosted Mono Class D Amplifier with DSP
15 Speaker Protection and Adaptive Battery Management.
18 - $ref: dai-common.yaml#
35 description: voltage regulator phandle for the VDD_A supply
38 description: voltage regulator phandle for the VDD_BATT supply
43 cirrus,asp-sdout-hiz-ctrl:
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
54 "^cirrus,gpio-ctrl[1-3]$":
56 GPIO pins configuration.
58 additionalProperties: false
62 GPIO pin direction. Valid only when 'gpio-ctrl' is 1
65 $ref: /schemas/types.yaml#/definitions/uint32
71 GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0
74 $ref: /schemas/types.yaml#/definitions/uint32
80 GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0
83 $ref: /schemas/types.yaml#/definitions/uint32
89 GPIO output polarity select. Valid only when 'gpio-ctrl' is 1
91 0 = Non-inverted, Active High
92 1 = Inverted, Active Low
93 $ref: /schemas/types.yaml#/definitions/uint32
99 Defines the function of the GPIO pin.
101 0 = High impedance input
102 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
103 2 = Pin acts as MDSYNC, direction controlled by MDSYNC
106 0 = High impedance input
107 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
108 2 = Pin acts as open drain INT
110 4 = Pin acts as push-pull output INT. Active low.
111 5 = Pin acts as push-pull output INT. Active high.
114 0 = High impedance input
115 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
117 $ref: /schemas/types.yaml#/definitions/uint32
126 unevaluatedProperties: false
130 #include <dt-bindings/sound/cs35l45.h>
132 #address-cells = <1>;
136 #sound-dai-cells = <1>;
137 compatible = "cirrus,cs35l45";
139 spi-max-frequency = <5000000>;
140 vdd-a-supply = <&dummy_vreg>;
141 vdd-batt-supply = <&dummy_vreg>;
142 reset-gpios = <&gpio 110 0>;
143 cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED |
144 CS35L45_ASP_TX_HIZ_DISABLED)>;