[PATCH/DNI 6/7] pmdomain: renesas: r8a78000: Add SCMI GPIO support
Geert Uytterhoeven
geert+renesas at glider.be
Fri Oct 23 10:50:44 PDT 2026
Add support for the GPIO modules on R-Car X5H when using SCMI.
These are handled by the AON, HSCN, PERE, and PERW Module Controller
blocks.
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
---
This depends on "[PATCH v4 7/8] pmdomain: renesas: r8a78000: Add SCMI
remapping support"
https://lore.kernel.org/2895c8f3cbe718dc597ad25e16c2461f0d681ab6.1792163045.git.geert+renesas@glider.be/
---
drivers/pmdomain/renesas/r8a78000-mdlc.c | 25 ++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/drivers/pmdomain/renesas/r8a78000-mdlc.c b/drivers/pmdomain/renesas/r8a78000-mdlc.c
index 10089d938f71b27e..838566ed821e29e0 100644
--- a/drivers/pmdomain/renesas/r8a78000-mdlc.c
+++ b/drivers/pmdomain/renesas/r8a78000-mdlc.c
@@ -644,7 +644,23 @@ static const struct mdlc_info r8a78000_mdlc_default[] = {
{ /* sentinel */ }
};
+static const struct mod_map_in r8a78000_mdlc_aon_mod_fw[] = {
+ { 0x20, 811, -1 }, /* GPIODM0 */
+ { -1 }
+};
+
+static const struct mod_map_in r8a78000_mdlc_hscn_mod_fw[] = {
+ { 0x50, 332, -1 }, /* PFC_HSCN_GPIODM0 */
+ { -1 }
+};
+
+static const struct mod_map_in r8a78000_mdlc_pere_mod_fw[] = {
+ { 0x30, 193, -1 }, /* PFC_PERE_GPIODM0 */
+ { -1 }
+};
+
static const struct mod_map_in r8a78000_mdlc_perw_mod_fw[] = {
+ { 0x30, 201, -1 }, /* PFC_PERW_GPIODM0 */
{ 0x40, 205, -1 }, /* SCIF0 */
{ 0x41, 206, -1 }, /* SCIF1 */
{ 0x42, 207, -1 }, /* SCIF3 */
@@ -678,6 +694,15 @@ static const struct mod_map_in r8a78000_mdlc_scp_mod_fw[] = {
static const struct mdlc_info r8a78000_mdlc_fw[] = {
{
+ .base = 0xc1338000 /* mdlc_aon */,
+ .mod_map = r8a78000_mdlc_aon_mod_fw,
+ }, {
+ .base = 0xc9c90000 /* mdlc_hscn */,
+ .mod_map = r8a78000_mdlc_hscn_mod_fw,
+ }, {
+ .base = 0xc08f0000 /* mdlc_pere */,
+ .mod_map = r8a78000_mdlc_pere_mod_fw,
+ }, {
.base = 0xc05d0000 /* mdlc_perw */,
.mod_map = r8a78000_mdlc_perw_mod_fw,
}, {
--
2.43.0
More information about the linux-arm-kernel
mailing list