[PATCH 0/2] Add AM62P silicon revision detection via NVMEM
From: Judith Mendez <hidden>
Date: 2026-02-04 21:37:52
Also in:
linux-devicetree, lkml
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 [0] https://lore.kernel.org/linux-mmc/20250805234950.3781367-1-jm@ti.com/ (local) [1] https://lore.kernel.org/all/20250924210735.1732423-1-jm@ti.com/ (local) 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 | 12 +++++ drivers/soc/ti/k3-socinfo.c | 48 +++++++++++++++++-- 2 files changed, 57 insertions(+), 3 deletions(-) -- 2.52.0