Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
* [PATCH v2 00/13] add initial support for Renesas RZ/T2H SoC
@ 2025-02-17 10:52 Thierry Bultel
  2025-02-17 10:52 ` [PATCH v2 01/13] dt-bindings: soc: Add Renesas RZ/T2H (R9A09G077) SoC Thierry Bultel
                   ` (12 more replies)
  0 siblings, 13 replies; 30+ messages in thread
From: Thierry Bultel @ 2025-02-17 10:52 UTC (permalink / raw)
  To: thierry.bultel, Geert Uytterhoeven, Magnus Damm
  Cc: linux-renesas-soc, Thierry Bultel

This patchset brings basic support for Renesas RZ/T2H SoC and
its evaluation board. The 4 CPUs are enabled, only the serial 
console is available and the board must boot on a ramdisk. 
earlycon is supported, though.

The RZ/T2H serial controller (SCI) is quite different from the 
other RZ SoCs, one of the big differences (but not the only) being
the 32 bits registers. In order to not modify the existing sh-sci 
driver too much, a new set of 'ops' function pointer is introduced,
alllowing to code the specifics of RZ/T2H in a separate file.
Termios setting is not supported yet, the default 115200 baudrate
being kept by default.

Clock support for RZ/T2H is added to the existing renesas-cpg-mssr
driver, with some little modifications so that more paremeters are
passed to the device-speicif registration callback. 
At this stage, the assumption is made that most of the initialization 
is done earlier by the bootloader. Module clock enable/disable is 
not supported, because quite hard to test when the only available 
peripheral is the serial console, and will come in a future patchset.

Changes v1->v2
* CPG based on renesas-cpg-mssr (no more new CPG driver), updated cover letter
  for that.
* bindings: 
  - passed dt_binding_check and added missing comppatible strings, 
  - document SoC + evaluation board in a single commit
  - rzsci added to sci documentation
  - fixed dependencies
  - renamed the evaluation board to r9a9g077m44-rzt2h-evk
  - removed clock module numbers & resets from binding header
  
* rz/sci:
  - fixed rzsci_receive_chars following Geert's advice, and comment
    that 9-bits data is not supported
  - fixed the regression (ops init) on non-DT legacy boards, sci_probe_regmap
    called moved in the non-DT case.
  - moved struct sci_of_data introduction in the appropriate commit
  
* dts
  - applied conventions (nodes alphabetical order & node names)
  - added missing compatibles to r9a09g077m44.dtsi and r9a09g077m44-rzt2h-evk.dts
  

Thierry Bultel (13):
  dt-bindings: soc: Add Renesas RZ/T2H (R9A09G077) SoC
  dt-bindings: clock: Add cpg for the Renesas RZ/T2H SoC
  dt-bindings: serial: Add compatible for Renesas RZ/T2H SoC in sci
  soc: renesas: Add RZ/T2H (R9A09G077) config option
  clk: renesas: Pass sub struct of cpg_mssr_priv to cpg_clk_register
  clk: renesas: Add support for R9A09G077 SoC
  serial: sh-sci: Fix a comment about SCIFA
  serial: sh-sci: Introduced function pointers
  serial: sh-sci: Introduced sci_of_data
  serial: sh-sci: Add support for RZ/T2H SCI
  arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC
  arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board
  defconfig: Enable RZ/T2H Soc and RZ_SCI

 .../bindings/clock/renesas,cpg-mssr.yaml      |   1 +
 .../bindings/serial/renesas,sci.yaml          |   2 +
 .../bindings/soc/renesas/renesas.yaml         |  10 +
 arch/arm64/boot/dts/renesas/Makefile          |   1 +
 arch/arm64/boot/dts/renesas/r9a09g077.dtsi    | 129 +++++
 .../dts/renesas/r9a09g077m44-rzt2h-evk.dts    |  35 ++
 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi |  13 +
 arch/arm64/configs/defconfig                  |   2 +
 drivers/clk/renesas/Kconfig                   |   5 +
 drivers/clk/renesas/Makefile                  |   1 +
 drivers/clk/renesas/r7s9210-cpg-mssr.c        |   7 +-
 drivers/clk/renesas/r8a77970-cpg-mssr.c       |  11 +-
 drivers/clk/renesas/r9a09g077-cpg-mssr.c      | 237 +++++++++
 drivers/clk/renesas/rcar-gen3-cpg.c           |   8 +-
 drivers/clk/renesas/rcar-gen3-cpg.h           |   6 +-
 drivers/clk/renesas/rcar-gen4-cpg.c           |   9 +-
 drivers/clk/renesas/rcar-gen4-cpg.h           |   3 +-
 drivers/clk/renesas/renesas-cpg-mssr.c        | 139 +++--
 drivers/clk/renesas/renesas-cpg-mssr.h        |  44 +-
 drivers/soc/renesas/Kconfig                   |   5 +
 drivers/tty/serial/Kconfig                    |   7 +
 drivers/tty/serial/Makefile                   |   1 +
 drivers/tty/serial/rzsci.c                    | 485 ++++++++++++++++++
 drivers/tty/serial/rzsci.h                    |  12 +
 drivers/tty/serial/sh-sci.c                   | 415 ++++++++-------
 drivers/tty/serial/sh-sci_common.h            | 180 +++++++
 .../dt-bindings/clock/r9a09g077-cpg-mssr.h    |  49 ++
 include/linux/serial_sci.h                    |   3 +-
 include/uapi/linux/serial_core.h              |   3 +
 29 files changed, 1555 insertions(+), 268 deletions(-)
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077.dtsi
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi
 create mode 100644 drivers/clk/renesas/r9a09g077-cpg-mssr.c
 create mode 100644 drivers/tty/serial/rzsci.c
 create mode 100644 drivers/tty/serial/rzsci.h
 create mode 100644 drivers/tty/serial/sh-sci_common.h
 create mode 100644 include/dt-bindings/clock/r9a09g077-cpg-mssr.h

-- 
2.43.0


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

end of thread, other threads:[~2025-02-20 13:04 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-17 10:52 [PATCH v2 00/13] add initial support for Renesas RZ/T2H SoC Thierry Bultel
2025-02-17 10:52 ` [PATCH v2 01/13] dt-bindings: soc: Add Renesas RZ/T2H (R9A09G077) SoC Thierry Bultel
2025-02-17 12:22   ` Geert Uytterhoeven
2025-02-17 13:03   ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 02/13] dt-bindings: clock: Add cpg for the Renesas RZ/T2H SoC Thierry Bultel
2025-02-17 12:25   ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 03/13] dt-bindings: serial: Add compatible for Renesas RZ/T2H SoC in sci Thierry Bultel
2025-02-17 12:20   ` Geert Uytterhoeven
2025-02-17 12:29     ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 04/13] soc: renesas: Add RZ/T2H (R9A09G077) config option Thierry Bultel
2025-02-17 10:52 ` [PATCH v2 05/13] clk: renesas: Pass sub struct of cpg_mssr_priv to cpg_clk_register Thierry Bultel
2025-02-17 11:44   ` Paul Barker
2025-02-18 14:28   ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 06/13] clk: renesas: Add support for R9A09G077 SoC Thierry Bultel
2025-02-17 16:32   ` Paul Barker
2025-02-17 10:52 ` [PATCH v2 07/13] serial: sh-sci: Fix a comment about SCIFA Thierry Bultel
2025-02-17 11:32   ` Paul Barker
2025-02-17 10:52 ` [PATCH v2 08/13] serial: sh-sci: Introduced function pointers Thierry Bultel
2025-02-17 12:49   ` Geert Uytterhoeven
2025-02-19 13:06   ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 09/13] serial: sh-sci: Introduced sci_of_data Thierry Bultel
2025-02-17 12:54   ` Geert Uytterhoeven
2025-02-19 13:53   ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 10/13] serial: sh-sci: Add support for RZ/T2H SCI Thierry Bultel
2025-02-17 10:52 ` [PATCH v2 11/13] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC Thierry Bultel
2025-02-17 10:52 ` [PATCH v2 12/13] arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board Thierry Bultel
2025-02-20 13:03   ` Geert Uytterhoeven
2025-02-17 10:52 ` [PATCH v2 13/13] defconfig: Enable RZ/T2H Soc and RZ_SCI Thierry Bultel
2025-02-18  7:20   ` Krzysztof Kozlowski
2025-02-18  7:21     ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox