[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250503-wmt-soc-driver-v2-0-8c774ad84d47@gmail.com>
Date: Sat, 03 May 2025 02:04:22 +0400
From: Alexey Charkov <alchark@...il.com>
To: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Krzysztof Kozlowski <krzk@...nel.org>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, Alexey Charkov <alchark@...il.com>
Subject: [PATCH v2 0/3] ARM: vt8500: Add runtime SoC version identification
VIA/WonderMedia SoCs have a chip ID register, which is helpful for
selecting support for correct sets of hardware quirks at runtime, add
code for it.
This will enable the use of SOC bus match tables in individual drivers,
allowing for finer grained feature selection where device trees might
not provide full information about what the hardware expects (such as
with non-user-visible SoC revisions having different behavior within
the same user-visible SoC version).
This series intentionally omits the updates to MAINTAINERS, as there
are multiple VT8500 related submissions this cycle which may go via
different trees (and cause pain in sequencing the merges). It will be
updated separately in a single pass to cover everything VT8500 related.
Signed-off-by: Alexey Charkov <alchark@...il.com>
---
Changes in v2:
- Moved the DT binding under hwinfo directory
- Changed the compatible string to be based on SoC version
- Reworked the driver into a platform one, and switched to devm_ functions
(all of the above - thanks Krzysztof)
- Link to v1: https://lore.kernel.org/r/20250423-wmt-soc-driver-v1-0-bd8bf32521c2@gmail.com
---
Alexey Charkov (3):
dt-bindings: soc: Add VIA/WonderMedia SoC identification
soc: Add VIA/WonderMedia SoC identification driver
ARM: dts: vt8500: add DT nodes for the system config ID register
.../bindings/hwinfo/via,vt8500-scc-id.yaml | 37 ++++++
arch/arm/boot/dts/vt8500/vt8500.dtsi | 5 +
arch/arm/boot/dts/vt8500/wm8505.dtsi | 5 +
arch/arm/boot/dts/vt8500/wm8650.dtsi | 5 +
arch/arm/boot/dts/vt8500/wm8750.dtsi | 5 +
arch/arm/boot/dts/vt8500/wm8850.dtsi | 5 +
drivers/soc/Kconfig | 1 +
drivers/soc/Makefile | 1 +
drivers/soc/vt8500/Kconfig | 20 ++++
drivers/soc/vt8500/Makefile | 2 +
drivers/soc/vt8500/wmt-socinfo.c | 125 +++++++++++++++++++++
11 files changed, 211 insertions(+)
---
base-commit: 37ff6e9a2ce321b7932d3987701757fb4d87b0e6
change-id: 20250423-wmt-soc-driver-de26d67bd4ef
Best regards,
--
Alexey Charkov <alchark@...il.com>
Powered by blists - more mailing lists