[PATCH 0/4] ASoC: cs35l45: Adds support for brownout prevention engines

From: Ricardo Rivera-Matos via B4 Relay

Date: Mon Nov 09 2026 - 13:01:53 EST


The CS35L45 amplifier has two independent brownout prevention engines
used to prevent system brownout events induced by transient audio peaks.

The amplifier brownount prevention engine (ABPE) monitors the battery
voltage and applies attenuation to audio output in terms of either
decibles, voltage, or wattage. The ABPE response is configured across
four thresholds with four corresponding attenuation values. The attack,
hold, and release parameters of the associated limiter are also
configurable.

The boost converter brownout prevention engine (BBPE) monitors the
battery voltage and the current passing through the inductor in the
boost converter circuit and applies current limit to the boost
converter. The BBPE can be configured to monitor either both the battery
voltage and inductor current or only the battery voltage. When operating
in the combined response mode, the more conservative limitis applied.
The thresholds for the voltage response are configurable across four
levels and the thresholds for the inductor current response are
configurable across three levels. The BBPE's attack, hold, and release
parameters are configurable for both of the response limiters.

Signed-off-by: Ricardo Rivera-Matos <rriveram@xxxxxxxxxxxxxxxxxxxxx>
---
Ricardo Rivera-Matos (4):
ASoC: dt-bindings: cs35l45: Adds ABPE properties
ASoC: cs35l45: Adds support for ABPE feature
ASoC: dt-bindings: cs35l45: Adds Boost BPE properties
ASoC: cs35l45: Adds Boost BPE configuration

.../devicetree/bindings/sound/cirrus,cs35l45.yaml | 415 ++++++++++++++
include/dt-bindings/sound/cs35l45.h | 45 ++
sound/soc/codecs/cs35l45-tables.c | 95 ++++
sound/soc/codecs/cs35l45.c | 601 +++++++++++++++++++++
sound/soc/codecs/cs35l45.h | 193 +++++++
5 files changed, 1349 insertions(+)
---
base-commit: cde5523c75f1320a55ac1d55a717ccbb566557f0
change-id: 20261102-cs35l45-bpe-340780e966df

Best regards,
--
Ricardo Rivera-Matos <rriveram@xxxxxxxxxxxxxxxxxxxxx>