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#
38 description: voltage regulator phandle for the VDD_A supply
41 description: voltage regulator phandle for the VDD_BATT supply
46 cirrus,asp-sdout-hiz-ctrl:
48 Audio serial port SDOUT Hi-Z control. Sets the Hi-Z
49 configuration for SDOUT pin of amplifier. Logical OR of
50 CS35L45_ASP_TX_HIZ_xxx values.
51 $ref: /schemas/types.yaml#/definitions/uint32
57 "^cirrus,gpio-ctrl[1-3]$":
59 GPIO pins configuration.
61 additionalProperties: false
65 GPIO pin direction. Valid only when 'gpio-ctrl' is 1
68 $ref: /schemas/types.yaml#/definitions/uint32
74 GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0
77 $ref: /schemas/types.yaml#/definitions/uint32
83 GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0
86 $ref: /schemas/types.yaml#/definitions/uint32
92 GPIO output polarity select. Valid only when 'gpio-ctrl' is 1
94 0 = Non-inverted, Active High
95 1 = Inverted, Active Low
96 $ref: /schemas/types.yaml#/definitions/uint32
102 Defines the function of the GPIO pin.
104 0 = High impedance input
105 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
106 2 = Pin acts as MDSYNC, direction controlled by MDSYNC
109 0 = High impedance input
110 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
111 2 = Pin acts as open drain INT
113 4 = Pin acts as push-pull output INT. Active low.
114 5 = Pin acts as push-pull output INT. Active high.
117 0 = High impedance input
118 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
120 $ref: /schemas/types.yaml#/definitions/uint32
129 unevaluatedProperties: false
133 #include <dt-bindings/sound/cs35l45.h>
135 #address-cells = <1>;
139 #sound-dai-cells = <1>;
140 compatible = "cirrus,cs35l45";
142 spi-max-frequency = <5000000>;
143 vdd-a-supply = <&dummy_vreg>;
144 vdd-batt-supply = <&dummy_vreg>;
145 reset-gpios = <&gpio 110 0>;
146 cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED |
147 CS35L45_ASP_TX_HIZ_DISABLED)>;