Skip to content

RFC: firmware: meson-sm: add chipid sysfs export

Viacheslav Bocharov linux-amlogic linux-arm-kernel linux-devicetree lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4firmware: meson-sm: change sprintf to scnprintfdrivers/firmware/meson/meson_sm.c+1 -10 replies
2/4firmware: meson_sm: Add chipid number sysfs entrydrivers/firmware/meson/meson_sm.c+53 -10 replies
3/4soc: amlogic: meson-gx-socinfo: export socinfo for use in other modulesdrivers/soc/amlogic/meson-gx-socinfo.c+20 -141 reply
4/4firmware: meson_sm: use meson_gx_socinfo for compatibilitydrivers/firmware/meson/meson_sm.c+17 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] RFC: firmware: meson-sm: add chipid sysfs export

The Amlogic Meson SoC Secure Monitor implements a call to retrieve an unique SoC ID starting from the GX Family and all new families. But GX-family chips (e.g. GXB, GXL and newer) supports also 128-bit chip ID. 128-bit chip ID consists 32-bit SoC version and 96-bit OTP data.

This patchset introduces an exported sysfs string for the 128-bit chipid, considering a check for the version of the returned value. If the chip does not support version 2 of the call, it falls back to (where possible) information from the meson-gx-socinfo driver to supplement the data from OTP.

Viacheslav Bocharov (4):
firmware: meson-sm: change sprintf to scnprintf
firmware: meson_sm: Add chipid number sysfs entry
soc: amlogic: meson-gx-socinfo: export socinfo for use in other
modules
firmware: meson_sm: use meson_gx_socinfo for compatibility

 drivers/firmware/meson/meson_sm.c      | 72 +++++++++++++++++++++++++-
 drivers/soc/amlogic/meson-gx-socinfo.c | 34 +++++++-----
 2 files changed, 90 insertions(+), 16 deletions(-)
Signature · 1 line
2.34.1