From: kah.jing.lee@intel.com
To: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de
Cc: rafael.j.wysocki@intel.com, tien.sung.ang@intel.com,
dinh.nguyen@intel.com, Kah Jing Lee <kah.jing.lee@intel.com>,
Zhou Furong <furong.zhou@intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [PATCH v3 3/3] documentation: misc: intel_sysid: Add the system id sysfs documentation for Altera(Intel) FPGA platform
Date: Mon, 25 Jul 2022 11:59:41 +0800 [thread overview]
Message-ID: <20220725035940.649062-1-kah.jing.lee@intel.com> (raw)
In-Reply-To: <20220721123258.416802-1-kah.jing.lee@intel.com>
From: Kah Jing Lee <kah.jing.lee@intel.com>
This sysfs documentation is created for Altera(Intel) FPGA platform
System ID soft IP. The Altera(Intel) Sysid component is generally
part of an FPGA design.
The component can be hotplugged when the FPGA is reconfigured.
Based on an initial contribution from Ley Foon Tan at Altera
Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
Reviewed-by: Zhou Furong <furong.zhou@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
v2->v3:
- Updated kernel version & date
- Added format for sysid & builtime output
---
---
.../testing/sysfs-devices-platform-soc-sysid | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-soc-sysid
diff --git a/Documentation/ABI/testing/sysfs-devices-platform-soc-sysid b/Documentation/ABI/testing/sysfs-devices-platform-soc-sysid
new file mode 100644
index 000000000000..6e40d154601f
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-soc-sysid
@@ -0,0 +1,41 @@
+What: /sys/devices/platform/soc@X/soc:base_fpga_region/
+soc:base_fpga_region:fpga_pr_region0/XXXXXXXX.sysid/
+Date: July 2022
+KernelVersion: v5.20
+Contact: Kah Jing Lee <kah.jing.lee@intel.com>
+Description:
+ The soc@X/soc:base_fpga_region/soc:base_fpga_region:fpga_pr_region0/
+ XXXXXXXX.sysid/ directory contains read-only attributes exposing
+ information about an System ID soft IP device. The X values could vary,
+ based on the FPGA platform System ID soft IP register address.
+
+What: .../XXXXXXX.sysid/sysid
+Date: July 2022
+KernelVersion: v5.20
+Contact: Kah Jing Lee <kah.jing.lee@intel.com>
+Description:
+ The .../XXXXXXX.sysid/sysid file contains the System ID for the FPGA
+ platform which is unique for the platform type and can be used for
+ checking the platform type for software download purposes. Sysid value
+ reported is in numerical format, and can also be printed in hex format
+ for human-readable string.
+ E.g:
+ root@agilex:~# cat /sys/bus/platform/drivers/altera_sysid/
+ f9000900.sysid/sysid/id
+ 4207856382
+ root@agilex:~# cat /sys/bus/platform/drivers/altera_sysid/
+ f9000900.sysid/sysid/id | xargs printf "0x%08x\n"
+ 0xfacecafe
+
+What: .../XXXXXXX.sysid/buildtime
+Date: July 2022
+KernelVersion: v5.20
+Contact: Kah Jing Lee <kah.jing.lee@intel.com>
+Description:
+ The .../XXXXXXX.sysid/buildtime file contains the buildtime for the
+ FPGA board file generation. Buildtime value reported in
+ <Unix timestamp> (YYYY-mm-dd HH:MM:SS UTC) format.
+ E.g:
+ root@agilex:~# cat /sys/bus/platform/drivers/altera_sysid/
+ f9000900.sysid/sysid/timestamp
+ 1637751409 (2021-11-24 10:56:49 UTC)
--
2.25.1
next prev parent reply other threads:[~2022-07-25 4:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-02 12:20 [PATCH 0/2] New driver for Intel(Altera) FPGA System ID softIP kah.jing.lee
2022-06-03 6:41 ` Greg KH
2022-06-03 7:35 ` kah.jing.lee
2022-07-21 12:30 ` [PATCH v2 0/3] " kah.jing.lee
2022-07-21 12:31 ` [PATCH v2 1/3] drivers: misc: intel_sysid: Add sysid from arch to drivers kah.jing.lee
2022-07-27 21:02 ` kernel test robot
2022-07-28 7:53 ` Greg KH
2022-07-28 15:37 ` Pierre-Louis Bossart
2022-07-28 15:59 ` Greg KH
2022-07-28 16:53 ` Pierre-Louis Bossart
2022-07-29 11:43 ` Greg KH
2022-07-29 11:56 ` Greg KH
2022-07-29 13:57 ` Greg KH
2022-07-28 7:57 ` Greg KH
2022-08-14 12:07 ` kernel test robot
2022-07-21 12:32 ` [PATCH v2 2/3] dt-bindings: misc: intel_sysid: Add the system id binding for Altera(Intel) FPGA platform kah.jing.lee
2022-07-21 19:16 ` Greg KH
2022-07-25 3:47 ` kah.jing.lee
2022-07-25 3:56 ` [PATCH v3 " kah.jing.lee
2022-07-21 12:32 ` [PATCH v2 3/3] documentation: misc: intel_sysid: Add the system id sysfs documentation " kah.jing.lee
2022-07-21 19:16 ` Greg KH
2022-07-25 3:59 ` kah.jing.lee [this message]
2022-07-28 7:51 ` [PATCH v3 " Greg KH
2022-07-28 7:58 ` [PATCH v2 0/3] New driver for Intel(Altera) FPGA System ID softIP Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220725035940.649062-1-kah.jing.lee@intel.com \
--to=kah.jing.lee@intel.com \
--cc=arnd@arndb.de \
--cc=dinh.nguyen@intel.com \
--cc=furong.zhou@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=tien.sung.ang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®