Skip to content

Commit 4b047ec

Browse files
drhodescirrustiwai
authored andcommitted
ASoC: cs35l41: Document CS35l41 External Boost
Document internal and external boost feature for ASoC CS35L41. For internal boost the following properties are required: - cirrus,boost-peak-milliamp - cirrus,boost-ind-nanohenry - cirrus,boost-cap-microfarad For external boost, the GPIO1 must be configured as output, so the following properties are required: - cirrus,gpio1-src-select = <1> - cirrus,gpio1-output-enable Signed-off-by: David Rhodes <drhodes@opensource.cirrus.com> Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220413083728.10730-16-tanureal@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 5577dd2 commit 4b047ec

1 file changed

Lines changed: 41 additions & 3 deletions

File tree

Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ properties:
7575
maximum: 3
7676
default: 2
7777

78+
cirrus,boost-type:
79+
description:
80+
Configures the type of Boost being used.
81+
Internal boost requires boost-peak-milliamp, boost-ind-nanohenry and
82+
boost-cap-microfarad.
83+
External Boost must have GPIO1 as GPIO output. GPIO1 will be set high to
84+
enable boost voltage.
85+
0 = Internal Boost
86+
1 = External Boost
87+
$ref: "/schemas/types.yaml#/definitions/uint32"
88+
minimum: 0
89+
maximum: 1
90+
7891
cirrus,gpio1-polarity-invert:
7992
description:
8093
Boolean which specifies whether the GPIO1
@@ -131,9 +144,32 @@ required:
131144
- compatible
132145
- reg
133146
- "#sound-dai-cells"
134-
- cirrus,boost-peak-milliamp
135-
- cirrus,boost-ind-nanohenry
136-
- cirrus,boost-cap-microfarad
147+
148+
allOf:
149+
- if:
150+
properties:
151+
cirrus,boost-type:
152+
const: 0
153+
then:
154+
required:
155+
- cirrus,boost-peak-milliamp
156+
- cirrus,boost-ind-nanohenry
157+
- cirrus,boost-cap-microfarad
158+
else:
159+
if:
160+
properties:
161+
cirrus,boost-type:
162+
const: 1
163+
then:
164+
required:
165+
- cirrus,gpio1-output-enable
166+
- cirrus,gpio1-src-select
167+
properties:
168+
cirrus,boost-peak-milliamp: false
169+
cirrus,boost-ind-nanohenry: false
170+
cirrus,boost-cap-microfarad: false
171+
cirrus,gpio1-src-select:
172+
enum: [1]
137173

138174
additionalProperties: false
139175

@@ -150,6 +186,8 @@ examples:
150186
VA-supply = <&dummy_vreg>;
151187
VP-supply = <&dummy_vreg>;
152188
reset-gpios = <&gpio 110 0>;
189+
190+
cirrus,boost-type = <0>;
153191
cirrus,boost-peak-milliamp = <4500>;
154192
cirrus,boost-ind-nanohenry = <1000>;
155193
cirrus,boost-cap-microfarad = <15>;

0 commit comments

Comments
 (0)