]> Gentwo Git Trees - linux/.git/commit
soc: renesas: rz-sysc: Add syscon/regmap support
authorJohn Madieu <john.madieu.xa@bp.renesas.com>
Mon, 18 Aug 2025 16:28:47 +0000 (18:28 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 20 Aug 2025 06:35:55 +0000 (08:35 +0200)
commit2da2740fb9c8e26b6b5e20d74f2ed1d49824236d
tree84cbcb1dcdd9fa601423f0d4353fca229cc5c18e
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
soc: renesas: rz-sysc: Add syscon/regmap support

The RZ/G3E system controller has various registers that control or report
some properties specific to individual IPs. The regmap is registered as a
syscon device to allow these IP drivers to access the registers through the
regmap API.

As other RZ SoCs might have custom read/write callbacks or max-offsets,
register a custom regmap configuration.

[claudiu.beznea:
 - do not check the match->data validity in rz_sysc_probe() as it is
   always valid
 - dinamically allocate regmap_cfg]

Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250818162859.9661-2-john.madieu.xa@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/soc/renesas/Kconfig
drivers/soc/renesas/r9a08g045-sysc.c
drivers/soc/renesas/r9a09g047-sys.c
drivers/soc/renesas/r9a09g057-sys.c
drivers/soc/renesas/rz-sysc.c
drivers/soc/renesas/rz-sysc.h