mbox series

[v3,0/9] soc: renesas: Add RZ/G3E SoC detection support

Message ID 20250122103911.517484-1-john.madieu.xa@bp.renesas.com (mailing list archive)
Headers show
Series soc: renesas: Add RZ/G3E SoC detection support | expand

Message

John Madieu Jan. 22, 2025, 10:39 a.m. UTC
This patch series adds SoC detection support for the RZ/G3E, RZ/V2H(P),
and the RZ/G2Si SoCs. While the previous series (v1 and v2) were adding
syscon support as well, this series drops it to get rid of not-merged
dependencies. Syscon support will be added when adding one of its user
(such as TSU, PCIe, or USB drivers). This led to change the subject of
the series.

This Soc detection series relies on the System Controller IP to detect
various SoC features like core count, NPU/GPU/ISP presence, and CA55 PLL
configuration.

Key features:
- Detection of SoC revision
- Detection of quad/dual core configuration
- Detection of Ethos-U55 NPU presence
- Validation of CA55 PLL frequency setting
- SoC-specific extended identification through callbacks

Changes in v3:
- Changed series subject
- Got rid of [1] and other not-merged dependencies
- Removed syscon/regmap support
- Added RZ/V2H SoC detection support

Changes in v2:
- Fixed code style issues in rz-sysc.c and r9a09g047-sysc.c
- Fixed device tree documentation, getting rid of syscon compatible string
- Handled non signal-aware readable/writeable regmap callback
- Consolidated common code between RZ/V2H and RZ/G3E drivers
- Moved SoC ID detection from the compatible string fix into a new patch

Tested:
- Example of SoC detection:
[    0.065608] renesas-rz-sysc 10430000.system-controller: Detected Renesas 
Quad Core RZ/G3E r9a09g047 Rev 0  with Ethos-U55

- Example of PLL misconfiguration warning:
[    0.065616] renesas-rz-sysc 10430000.system-controller: CA55 PLL is not 
set to 1.7GHz

[1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=912455

Claudiu Beznea (3):
  soc: renesas: Add SYSC driver for Renesas RZ family
  soc: renesas: rz-sysc: Move RZ/G3S SoC detection to the SYSC driver
  arm64: dts: renesas: r9a08g045: Enable the system controller

John Madieu (6):
  dt-bindings: soc: renesas: Add RZ/G3E variant SYS binding
  soc: renesas: rz-sysc: Add support for RZ/G3E family
  soc: renesas: rz-sysc: Move RZ/V2H SoC detection to the SYS driver
  soc: renesas: rzv2h: Add a callback to print SoC-specific extra
    features
  arm64: dts: renesas: r9a09g047: Add sys node
  arm64: dts: renesas: r9a09g057: Enable SYS node

 .../soc/renesas/renesas,r9a09g057-sys.yaml    |   5 +-
 arch/arm64/boot/dts/renesas/r9a08g045.dtsi    |   1 -
 arch/arm64/boot/dts/renesas/r9a09g047.dtsi    |   7 +
 arch/arm64/boot/dts/renesas/r9a09g057.dtsi    |   1 -
 drivers/soc/renesas/Kconfig                   |  17 +++
 drivers/soc/renesas/Makefile                  |   4 +
 drivers/soc/renesas/r9a08g045-sysc.c          |  28 ++++
 drivers/soc/renesas/r9a09g047-sys.c           |  57 ++++++++
 drivers/soc/renesas/r9a09g057-sys.c           |  55 ++++++++
 drivers/soc/renesas/renesas-soc.c             |  33 +----
 drivers/soc/renesas/rz-sysc.c                 | 133 ++++++++++++++++++
 drivers/soc/renesas/rz-sysc.h                 |  46 ++++++
 drivers/soc/renesas/rzg3e-sys.h               |  28 ++++
 13 files changed, 380 insertions(+), 35 deletions(-)
 create mode 100644 drivers/soc/renesas/r9a08g045-sysc.c
 create mode 100644 drivers/soc/renesas/r9a09g047-sys.c
 create mode 100644 drivers/soc/renesas/r9a09g057-sys.c
 create mode 100644 drivers/soc/renesas/rz-sysc.c
 create mode 100644 drivers/soc/renesas/rz-sysc.h
 create mode 100644 drivers/soc/renesas/rzg3e-sys.h