soc: Add VIA/WonderMedia SoC identification driver
authorAlexey Charkov <alchark@gmail.com>
Sat, 3 May 2025 11:52:32 +0000 (15:52 +0400)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 4 May 2025 17:27:01 +0000 (19:27 +0200)
commit96f94587d7413401630569f288477e6d97028efd
tree9e913a8f2326803851e6785c12f8ead3d4fbb652
parent04e394d6e2a349d0522a6afe6db22f1f1a843e3a
soc: Add VIA/WonderMedia SoC identification driver

Add a small SOC bus driver to parse the chip ID and revision made
available on VIA/WonderMedia SoCs via their system configuration
controller's SCC_ID register.

This is intended to select appropriate sets of on-chip device quirks
at runtime, as it has been found that even within the same SoC
version there can be register-incompatible differences, such as
with the SDMMC controller on WM8505 rev. A0-A1 vs. rev. A2.

The list of SoC versions is compiled from various vendor source dumps
and not all of them have corresponding mainline driver support.
Some of them also have been seen with varying on-chip markings while
sharing the same hardware chip ID's (as is the case with e.g. WM8850
vs. WM8950). In such cases the selection of names to use here among
those seen in various source dumps and chip markings was arbitrary.

Suggested by Krzysztof at [1] - thanks a lot!

[1] https://lore.kernel.org/all/14de236b-e2a7-4bde-986d-1e5ffddd01b4@kernel.org/

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Link: https://lore.kernel.org/r/20250503-wmt-soc-driver-v3-2-2daa9056fa10@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/vt8500/Kconfig [new file with mode: 0644]
drivers/soc/vt8500/Makefile [new file with mode: 0644]
drivers/soc/vt8500/wmt-socinfo.c [new file with mode: 0644]