kernel_optimize_test/drivers/soc/ti
Grygorii Strashko 907a2b7e2f soc: ti: add k3 platforms chipid module driver
The Texas Instruments K3 Multicore SoC platforms have chipid module which
is represented by CTRLMMR_xxx_JTAGID register and contains information
about SoC id and revision.
 Bits:
  31-28 VARIANT Device variant
  27-12 PARTNO  Part number
  11-1  MFG     Indicates TI as manufacturer (0x17)
  1             Always 1

This patch adds corresponding driver to identify the TI K3 SoC family and
revision, and registers this information with the SoC bus. It is available
under /sys/devices/soc0/ for user space, and can be checked, where needed,
in Kernel using soc_device_match().

Identification is done by:
- checking MFG to be TI ID
 - retrieving Device variant (revision)
 - retrieving Part number and convert it to the family
 - retrieving machine from DT "/model"

Example J721E:
  # cat /sys/devices/soc0/{machine,family,revision}
  Texas Instruments K3 J721E SoC
  J721E
  SR1.0

Example AM65x:
  # cat /sys/devices/soc0/{machine,family,revision}
  Texas Instruments AM654 Base Board
  AM65X
  SR1.0

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
2020-05-27 20:39:14 -07:00
..
k3-ringacc.c soc: ti: k3: add navss ringacc driver 2020-01-15 10:07:27 -08:00
k3-socinfo.c soc: ti: add k3 platforms chipid module driver 2020-05-27 20:39:14 -07:00
Kconfig soc: ti: add k3 platforms chipid module driver 2020-05-27 20:39:14 -07:00
knav_dma.c soc: ti: knav_dma: Use proper enum in pktdma_init_chan 2019-01-30 10:22:17 -08:00
knav_qmss_acc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
knav_qmss_queue.c drivers: soc: ti: knav_qmss_queue: Pass lockdep expression to RCU lists 2020-01-19 22:46:52 -08:00
knav_qmss.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
Makefile soc: ti: add k3 platforms chipid module driver 2020-05-27 20:39:14 -07:00
omap_prm.c soc: ti: omap-prm: fix return value check in omap_prm_probe() 2019-10-29 09:57:56 -07:00
pm33xx.c soc: ti: pm33xx: Add base cpuidle support 2020-02-27 09:27:28 -08:00
ti_sci_inta_msi.c soc: ti: Add MSI domain bus support for Interrupt Aggregator 2019-05-01 10:49:17 +01:00
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access 2019-09-04 20:44:35 +02:00
wkup_m3_ipc.c soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot 2019-12-17 15:18:36 -08:00