Add bridged amplifiers to cs42l43
authorMark Brown <broonie@kernel.org>
Wed, 17 Apr 2024 00:12:19 +0000 (09:12 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 17 Apr 2024 00:12:19 +0000 (09:12 +0900)
commit1f05252a3a95bb898413126d3cd480fed4edab0e
treed19f29a1fed2c3168053e5410304f4b0c191f964
parent351007b069287d3f0399e9e83981b33a2050eb54
parent439fbc97502ae16f3e54e05d266d103674cc4f06
Add bridged amplifiers to cs42l43

Merge series from Charles Keepax <ckeepax@opensource.cirrus.com>:

In some cs42l43 systems a couple of cs35l56 amplifiers are attached
to the cs42l43's SPI and I2S. On Windows the cs42l43 is controlled
by a SDCA class driver and these two amplifiers are controlled by
firmware running on the cs42l43. However, under Linux the decision
was made to interact with the cs42l43 directly, affording the user
greater control over the audio system. However, this has resulted
in an issue where these two bridged cs35l56 amplifiers are not
populated in ACPI and must be added manually. There is at least an
SDCA extension unit DT entry we can key off.

The process of adding this is handled using a software node, firstly the
ability to add native chip selects to software nodes must be added.
Secondly, an additional flag for naming the SPI devices is added this
allows the machine driver to key to the correct amplifier. Then finally,
the cs42l43 SPI driver adds the two amplifiers directly onto its SPI
bus.

An additional series will follow soon to add the audio machine driver
parts (in the sof-sdw driver), however that is fairly orthogonal to
this part of the process, getting the actual amplifiers registered.
MAINTAINERS
drivers/spi/Kconfig
drivers/spi/spi.c