linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] soc: samsung: exynos-chipid: add gs101 support
@ 2025-11-18 13:56 Tudor Ambarus
  2025-11-18 13:56 ` [PATCH v2 1/7] dt-bindings: nvmem: add google,gs101-otp Tudor Ambarus
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Tudor Ambarus @ 2025-11-18 13:56 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alim Akhtar,
	Peter Griffin, André Draszik, Srinivas Kandagatla
  Cc: Krzysztof Kozlowski, semen.protsenko, willmcvicker, kernel-team,
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel,
	Tudor Ambarus, Krzysztof Kozlowski

Dependency
==========
Typical dependency of the DT patch depending on the bindings patch,
thus the bindings patch could go via the Samsung SoC tree with
Srinivas's ack.

Description
===========
GS101 is different (but also e850 and autov9 I assume) from the SoCs
that are currently handled by the exynos-chipid driver because the
chip ID info is part of the OTP registers. GS101 OTP has a clock, an
interrupt line, a register space (that contains product and chip ID,
TMU data, ASV, etc) and a 32Kbit memory space that can be
read/program/locked with specific commands. On GS101 the "ChipID block"
is just an abstraction, it's not a physical device. When the power-on
sequence progresses, the OTP chipid values are loaded to the OTP
registers.

Add the GS101 chip ID support. The support is intentionally added in the
exynos-chipid driver, and not in a dedicated Exynos OTP driver, because
we estimate that there will not be any OTP consumers in the kernel other
than the chip ID/SoC interface. The downstream GS101 drivers confirm
this supposition.

Testing
=======
root@google-gs:~# cat /sys/devices/soc0/family
Samsung Exynos
root@google-gs:~# cat /sys/devices/soc0/machine
Oriole
root@google-gs:~# cat /sys/devices/soc0/revision
11
root@google-gs:~# cat /sys/devices/soc0/soc_id
GS101

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
---
Changes in v2:
- complete rework, treat it as a new patch set please.
- bindings were reviewed at:
  - Link: https://lore.kernel.org/linux-samsung-soc/27a5521cd7ddbed0e870ac416dc829722f1b36a5.camel@linaro.org/T/#me139353334db535806ca6462ae1e86b01ff032a7
  - addressed Andre's s/if of/is of
- part of the cleaning patches are from this trivial series:
  - Link: https://lore.kernel.org/linux-samsung-soc/20251112-chipid-trivial-v1-0-ec2dea03bd83@linaro.org/
- Link to v1: https://lore.kernel.org/r/20251031-gs101-chipid-v1-0-d78d1076b210@linaro.org

---
Tudor Ambarus (7):
      dt-bindings: nvmem: add google,gs101-otp
      soc: samsung: exynos-chipid: add google,gs101-otp support
      soc: samsung: exynos-chipid: use devm action to unregister soc device
      soc: samsung: exynos-chipid: use dev_err_probe where appropiate
      soc: samsung: exynos-chipid: rename method
      soc: samsung: exynos-chipid: downgrade dev_info to dev_dbg for soc info
      arm64: dts: exynos: gs101: add OTP node

 .../bindings/nvmem/google,gs101-otp.yaml           |  56 ++++++++
 arch/arm64/boot/dts/exynos/google/gs101.dtsi       |   7 +
 drivers/soc/samsung/exynos-chipid.c                | 148 +++++++++++++++------
 3 files changed, 168 insertions(+), 43 deletions(-)
---
base-commit: 4b67e4c65c1e0740ac12bd0d790eb5a9d0091aaa
change-id: 20251031-gs101-chipid-fd84da8afa2f

Best regards,
-- 
Tudor Ambarus <tudor.ambarus@linaro.org>



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-11-19 12:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18 13:56 [PATCH v2 0/7] soc: samsung: exynos-chipid: add gs101 support Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 1/7] dt-bindings: nvmem: add google,gs101-otp Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 2/7] soc: samsung: exynos-chipid: add google,gs101-otp support Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 3/7] soc: samsung: exynos-chipid: use devm action to unregister soc device Tudor Ambarus
2025-11-19 12:13   ` Krzysztof Kozlowski
2025-11-19 12:30     ` Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 4/7] soc: samsung: exynos-chipid: use dev_err_probe where appropiate Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 5/7] soc: samsung: exynos-chipid: rename method Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 6/7] soc: samsung: exynos-chipid: downgrade dev_info to dev_dbg for soc info Tudor Ambarus
2025-11-18 13:56 ` [PATCH v2 7/7] arm64: dts: exynos: gs101: add OTP node Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).