[PATCH v2 0/7] Add i2c and reset support for Renesas RZ/G2L

Paul Barker paul.barker.ct at bp.renesas.com
Mon Feb 26 16:05:29 CET 2024


This patch series extends the support for the Renesas RZ/G2L SMARC EVK
board (based on the R9A07G044L2 SoC) to include the following new
features:

  * I2C bus support, including automatic deblocking if SDA is stuck low
    due to another device on the board.

  * Basic PMIC support, with the ability to read, write & dump PMIC
    registers.

  * Support for requesting system reset (SYSRESET_COLD or
    SYSRESET_POWER) via the PMIC.

Along the way we fix the CPG driver to confirm all clock & reset changes
before returning, and update the device tree to align with Linux 6.7.

This series has been tested on RZ/G2L hardware, and the full u-boot
GitLab CI pipeline has been executed in our internal GitLab instance.

Changes from v1:
  * Rebased on U-Boot v2024.04-rc2 and re-tested.
  * Sync with Linux v6.7 instead of v6.6.
  * Add raa215300_bind() as a stub in patch 4.
  * Split up the addition of sysreset support into 3 patches: patch 5
    adds the driver, patch 6 binds it with the pmic driver and patch 7
    enables sysreset for the RZ/G2L.

Paul Barker (7):
  clk: renesas: Confirm all clock & reset changes on RZ/G2L
  arm: dts: rzg2l: Sync with Linux v6.7
  i2c: rzg2l: Add I2C driver for RZ/G2L family
  pmic: Add Renesas RAA215300 PMIC driver
  sysreset: Support reset via Renesas RAA215300 PMIC
  pmic: raa215300: Bind sysreset driver
  board: rzg2l: Support reset via Renesas RAA215300 PMIC

 arch/arm/dts/r9a07g044.dtsi               |  16 +-
 arch/arm/dts/r9a07g044l2-smarc.dts        |  21 +
 arch/arm/dts/rz-smarc-common.dtsi         |  18 +-
 arch/arm/dts/rzg2l-smarc-pinfunction.dtsi |  20 +
 arch/arm/dts/rzg2l-smarc-som.dtsi         |  22 +-
 arch/arm/dts/rzg2l-smarc.dtsi             |  43 +-
 arch/arm/mach-rmobile/Kconfig             |   1 +
 board/renesas/rzg2l/rzg2l.c               |   8 -
 configs/renesas_rzg2l_smarc_defconfig     |   7 +
 drivers/clk/renesas/rzg2l-cpg.c           |  17 +-
 drivers/i2c/Kconfig                       |   7 +
 drivers/i2c/Makefile                      |   1 +
 drivers/i2c/rz_riic.c                     | 624 ++++++++++++++++++++++
 drivers/power/pmic/Kconfig                |   9 +
 drivers/power/pmic/Makefile               |   1 +
 drivers/power/pmic/raa215300.c            |  50 ++
 drivers/sysreset/Kconfig                  |   6 +
 drivers/sysreset/Makefile                 |   1 +
 drivers/sysreset/sysreset_raa215300.c     |  58 ++
 19 files changed, 896 insertions(+), 34 deletions(-)
 create mode 100644 drivers/i2c/rz_riic.c
 create mode 100644 drivers/power/pmic/raa215300.c
 create mode 100644 drivers/sysreset/sysreset_raa215300.c


base-commit: 37345abb97ef0dd9c50a03b2a72617612dcae585
-- 
2.43.2



More information about the U-Boot mailing list