1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/sound/cirrus,cs35l41.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cirrus Logic CS35L41 Speaker Amplifier
10 - david.rhodes@cirrus.com
13 CS35L41 is a boosted mono Class D amplifier with DSP
14 speaker protection and equalization
27 The first cell indicating the audio interface.
34 description: voltage regulator phandle for the VA supply
37 description: voltage regulator phandle for the VP supply
39 cirrus,boost-peak-milliamp:
41 Boost-converter peak current limit in mA.
42 Configures the peak current by monitoring the current through the boost FET.
43 Range starts at 1600 mA and goes to a maximum of 4500 mA with increments
44 of 50 mA. See section 4.3.6 of the datasheet for details.
45 $ref: "/schemas/types.yaml#/definitions/uint32"
50 cirrus,boost-ind-nanohenry:
52 Boost inductor value, expressed in nH. Valid
53 values include 1000, 1200, 1500 and 2200.
54 $ref: "/schemas/types.yaml#/definitions/uint32"
58 cirrus,boost-cap-microfarad:
60 Total equivalent boost capacitance on the VBST
61 and VAMP pins, derated at 11 volts DC. The value must be rounded to the
62 nearest integer and expressed in uF.
63 $ref: "/schemas/types.yaml#/definitions/uint32"
67 Audio serial port SDOUT Hi-Z control. Sets the Hi-Z
68 configuration for SDOUT pin of amplifier.
69 0 = Logic 0 during unused slots, and while all transmit channels disabled
70 1 = Hi-Z during unused slots but logic 0 while all transmit channels disabled
71 2 = (Default) Logic 0 during unused slots, but Hi-Z while all transmit channels disabled
72 3 = Hi-Z during unused slots and while all transmit channels disabled
73 $ref: "/schemas/types.yaml#/definitions/uint32"
80 Configures the type of Boost being used.
81 Internal boost requires boost-peak-milliamp, boost-ind-nanohenry and
83 External Boost must have GPIO1 as GPIO output. GPIO1 will be set high to
87 $ref: "/schemas/types.yaml#/definitions/uint32"
91 cirrus,gpio1-polarity-invert:
93 Boolean which specifies whether the GPIO1
94 level is inverted. If this property is not present the level is not inverted.
97 cirrus,gpio1-output-enable:
99 Boolean which specifies whether the GPIO1 pin
100 is configured as an output. If this property is not present the
101 pin will be configured as an input.
104 cirrus,gpio1-src-select:
106 Configures the function of the GPIO1 pin.
107 Note that the options are different from the GPIO2 pin
108 0 = High Impedance (Default)
112 $ref: "/schemas/types.yaml#/definitions/uint32"
116 cirrus,gpio2-polarity-invert:
118 Boolean which specifies whether the GPIO2
119 level is inverted. If this property is not present the level is not inverted.
122 cirrus,gpio2-output-enable:
124 Boolean which specifies whether the GPIO2 pin
125 is configured as an output. If this property is not present the
126 pin will be configured as an input.
129 cirrus,gpio2-src-select:
131 Configures the function of the GPIO2 pin.
132 Note that the options are different from the GPIO1 pin.
133 0 = High Impedance (Default)
137 4 = Push-pull INTB (active low)
138 5 = Push-pull INT (active high)
139 $ref: "/schemas/types.yaml#/definitions/uint32"
155 - cirrus,boost-peak-milliamp
156 - cirrus,boost-ind-nanohenry
157 - cirrus,boost-cap-microfarad
165 - cirrus,gpio1-output-enable
166 - cirrus,gpio1-src-select
168 cirrus,boost-peak-milliamp: false
169 cirrus,boost-ind-nanohenry: false
170 cirrus,boost-cap-microfarad: false
171 cirrus,gpio1-src-select:
174 additionalProperties: false
179 #address-cells = <1>;
183 #sound-dai-cells = <1>;
184 compatible = "cirrus,cs35l41";
186 VA-supply = <&dummy_vreg>;
187 VP-supply = <&dummy_vreg>;
188 reset-gpios = <&gpio 110 0>;
190 cirrus,boost-type = <0>;
191 cirrus,boost-peak-milliamp = <4500>;
192 cirrus,boost-ind-nanohenry = <1000>;
193 cirrus,boost-cap-microfarad = <15>;