[PATCH 20/20] Documentation: devicetree: CS35l41 External Boost
Lucas Tanure
tanureal at opensource.cirrus.com
Thu Mar 3 18:30:59 CET 2022
From: David Rhodes <drhodes at opensource.cirrus.com>
Document external boost feature on CS35L41
Signed-off-by: David Rhodes <drhodes at opensource.cirrus.com>
---
.../bindings/sound/cirrus,cs35l41.yaml | 42 +++++++++++++++++--
1 file changed, 39 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml
index 3235702ce402..51b5d86661d5 100644
--- a/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml
+++ b/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml
@@ -75,6 +75,19 @@ properties:
maximum: 3
default: 2
+ cirrus,boost-type:
+ description:
+ Configures the type of Boost being used.
+ Internal boost requires boost-peak-milliamp, boost-ind-nanohenry and
+ boost-cap-microfarad.
+ External Boost must have GPIO1 as GPIO output. GPIO1 will be set high to
+ enable boost voltage.
+ 0 = Internal Boost
+ 1 = External Boost
+ $ref: "/schemas/types.yaml#/definitions/uint32"
+ minimum: 0
+ maximum: 1
+
cirrus,gpio1-polarity-invert:
description:
Boolean which specifies whether the GPIO1
@@ -131,9 +144,32 @@ required:
- compatible
- reg
- "#sound-dai-cells"
- - cirrus,boost-peak-milliamp
- - cirrus,boost-ind-nanohenry
- - cirrus,boost-cap-microfarad
+
+allOf:
+ - if:
+ properties:
+ cirrus,boost-type:
+ contains:
+ const: 0
+
+ then:
+ required:
+ - cirrus,boost-peak-milliamp
+ - cirrus,boost-ind-nanohenry
+ - cirrus,boost-cap-microfarad
+
+ - if:
+ properties:
+ cirrus,boost-type:
+ contains:
+ const: 1
+
+ then:
+ required:
+ - cirrus,gpio1-output-enable
+ properties:
+ cirrus,gpio1-src-select:
+ const: 1
additionalProperties: false
--
2.35.1
More information about the Alsa-devel
mailing list