pmdomain: renesas: Add R-Car X5H MDLC SCMI remapping driver

Add a proof-of-concept Module Controller driver for the R-Car X5H
(R8A78000) SoC, using tables to remap from hardware power domain,
module, and reset IDs to SCMI power domains, clocks, and resets.

Note that SCMI clocks representing hardware modules are fake clocks,
with a zero clock rate, that can just be enabled and disabled.
Hence these are controlled from the clock domain's start/stop callbacks.

For now this contains preliminary support for SCP FW SDKv4.28.0,
v4.31.0, and v4.32.0:
  - As the SCMI power domain IDs are idential for all three versions,
    r8a78000_mdlc_*_power_fw_4_28_0[] apply to all of them,
  - As the SCMI clock and reset IDs are identical for the last two
    versions (except for the addition of two reset IDs in v4.32.0),
    r8a78000_mdlc_fw_4_31_0[] applies to both of them.

Note that v4.32 has two new reset IDs without corresponding clock IDs,
so "/* SCMI clock and reset IDs are identical */" is no longer 100%
true.  However, these new resets seem to be meant for board control, not
SoC control.

Suggested-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
4 files changed