Re: [PATCH v2 2/2] ASoC: codecs: Add NXP TFA9865 amplifier driver
From: Mark Brown
Date: Wed Nov 18 2026 - 13:36:27 EST
> Add a driver for the NXP (now Goodix) TFA9865 speaker amplifier. The
> chip has no DSP, so the driver only has to apply the initialization
> sequence for the device revision, select the I2S slot that feeds the
> amplifier and power the amplifier and its boost converter up and down.
>
> The register settings are taken from the NXP tfa98xx driver. Only the
> B0 revision and the 32-bit I2S slots configured at reset are supported
> for now.
> +static const struct regmap_config tfa9865_regmap = {
> + .reg_bits = 8,
> + .val_bits = 16,
> + .max_register = 0xff,
> +
> + .volatile_reg = tfa9865_volatile_reg,
> + .cache_type = REGCACHE_NONE,
> +};
There's no point in specifying volatile registers if you don't have a
cache, and if you know which registers are volatile I can't see any
reason not to have a cache.
--
Mark Brown <broonie@xxxxxxxxxx>