[PATCH v2 0/3] New driver for Intel(Altera) FPGA System ID softIP

From: kah . jing . lee
Date: Thu Jul 21 2022 - 08:31:07 EST


From: Kah Jing Lee <kah.jing.lee@xxxxxxxxx>

Hi,

I would like to request review for the new System ID driver for Intel FPGA
platform.

New sysid driver for Altera(Intel) Sysid component is generally part of an
FPGA design. The component can be hotplugged when the FPGA is reconfigured.

There are two basic ways to use the system ID core:
- Verify the system ID before downloading new software to a system. This
method can be used by software development tools, before downloading a
program to a target hardware system, if the program is compiled for
different hardware.

- Check system ID after reset. If a program is running on hardware other
than the expected Platform Designer system, the program may fail to
function altogether. If the program does not crash, it can behave
erroneously in subtle ways that are difficult to debug. To protect against
this case, a program can compare the expected system ID against the
system ID core, and report an error if they do not match.

Documentation link:
https://rocketboards.org/foswiki/Documentation/AgilexSoCGSRD#PR_Files

Feedback from maintainers:
https://lore.kernel.org/lkml/YpmqeHt5Y31ffh5Q@xxxxxxxxx/#t

Kah Jing Lee (3):
drivers: misc: intel_sysid: Add sysid from arch to drivers
dt-bindings: misc: intel_sysid: Add the system id binding for
Altera(Intel) FPGA platform
documentation: misc: intel_sysid: Add the system id sysfs
documentation for Altera(Intel) FPGA platform

.../testing/sysfs-devices-platform-soc-sysid | 27 +++++
.../bindings/misc/intel,socfpga-sysid.yaml | 41 +++++++
drivers/misc/Kconfig | 9 ++
drivers/misc/Makefile | 1 +
drivers/misc/intel_sysid.c | 114 ++++++++++++++++++
5 files changed, 192 insertions(+)
create mode 100644 Documentation/ABI/testing/
sysfs-devices-platform-soc-sysid
create mode 100644 Documentation/devicetree/bindings/misc/
intel,socfpga-sysid.yaml
create mode 100644 drivers/misc/intel_sysid.c

--
2.25.1