Skip to content

Add AM62P silicon revision detection via NVMEM

Judith Mendez linux-arm-kernel linux-devicetree lkml 3 versions – Applied

Status from this message: I have applied the following to branch ti-drivers-soc-next on [1].

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Switch k3_chipinfo_variant_to_sr() parameter from pdev to dev for consistency
- Move nvmem-cells binding description under items, simplify description, and drop maxItems
- Add review tags for both patches

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: hwinfo: ti,k3-socinfo: Add nvmem-cells supportDocumentation/devicetree/bindings/hwinfo/ti,k3-socinfo.yaml+11 -00 replies
2/2soc: ti: k3-socinfo: Add support for AM62P variants via NVMEMdrivers/soc/ti/k3-socinfo.c+38 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiAndrew Davis
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add AM62P silicon revision detection via NVMEM

This series adds support for detecting AM62P silicon revisions using the NVMEM framework to read the GP_SW1 register.

Background:
===========
On AM62P SoCs, the standard JTAGID register does not provide information on silicon revision, instead the GP_SW1 register contains the information needed for proper device identification.

Proper silicon revision detection is required to apply proper workarounds and quirks for different silicon revisions, particularly for MMCSD [0].

Implementation history:
=======================
An initial implementation [0] added a second register range directly to the chipid node to access GP_SW registers. Following upstream review feedback to split the patches appropriately, an alternative RFC approach
[1] was explored that introduced a new NVMEM eFuse binding specifically for TI K3 SoCs.

This final implementation takes a simpler approach by leveraging the existing NVMEM framework with optional nvmem-cells support. The k3-socinfo driver can now optionally consume silicon revision data from the NVMEM provider, making it more flexible and avoiding the need for either direct register access or new bindings.

Implementation details:
=======================
- NVMEM support is fully optional - the driver continues to work without it and falls back to SR1.0 for AM62P devices
- When NVMEM cells are present, the driver reads GP_SW1 to accurately detect SR1.1 and SR1.2 variants

Changelog:
==========
Changes since v2:
- Switch k3_chipinfo_variant_to_sr() parameter from pdev to dev for consistency
- Move nvmem-cells binding description under items, simplify description, and drop maxItems
- Add review tags for both patches

Revisions:
==========
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

[0] https://lore.kernel.org/linux-mmc/[email protected]/
[1] https://lore.kernel.org/all/[email protected]/

Judith Mendez (2):
dt-bindings: hwinfo: ti,k3-socinfo: Add nvmem-cells support
soc: ti: k3-socinfo: Add support for AM62P variants via NVMEM

 .../bindings/hwinfo/ti,k3-socinfo.yaml        | 11 +++++
 drivers/soc/ti/k3-socinfo.c                   | 41 +++++++++++++++++--
 2 files changed, 49 insertions(+), 3 deletions(-)
Signature · 1 line
2.52.0