Skip to content

Commit 4432d41

Browse files
committed
Merge tag 'renesas-pinctrl-for-v6.9-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
pinctrl: renesas: Updates for v6.9 (take two) - Add support for the R-Car V4M (R8A779H0) SoC, - Add support for suspend/resume on the RZ/G2L family, - Miscellaneous fixes and improvements. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2 parents 47847b9 + a6f06b9 commit 4432d41

File tree

7 files changed

+4440
-32
lines changed

7 files changed

+4440
-32
lines changed

Documentation/devicetree/bindings/pinctrl/renesas,pfc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ properties:
4646
- renesas,pfc-r8a779a0 # R-Car V3U
4747
- renesas,pfc-r8a779f0 # R-Car S4-8
4848
- renesas,pfc-r8a779g0 # R-Car V4H
49+
- renesas,pfc-r8a779h0 # R-Car V4M
4950
- renesas,pfc-sh73a0 # SH-Mobile AG5
5051

5152
reg:

drivers/pinctrl/renesas/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ config PINCTRL_RENESAS
3838
select PINCTRL_PFC_R8A779A0 if ARCH_R8A779A0
3939
select PINCTRL_PFC_R8A779F0 if ARCH_R8A779F0
4040
select PINCTRL_PFC_R8A779G0 if ARCH_R8A779G0
41+
select PINCTRL_PFC_R8A779H0 if ARCH_R8A779H0
4142
select PINCTRL_RZG2L if ARCH_RZG2L
4243
select PINCTRL_RZV2M if ARCH_R9A09G011
4344
select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203
@@ -154,6 +155,10 @@ config PINCTRL_PFC_R8A779G0
154155
bool "pin control support for R-Car V4H" if COMPILE_TEST
155156
select PINCTRL_SH_PFC
156157

158+
config PINCTRL_PFC_R8A779H0
159+
bool "pin control support for R-Car V4M" if COMPILE_TEST
160+
select PINCTRL_SH_PFC
161+
157162
config PINCTRL_PFC_R8A7740
158163
bool "pin control support for R-Mobile A1" if COMPILE_TEST
159164
select PINCTRL_SH_PFC_GPIO
@@ -187,9 +192,11 @@ config PINCTRL_RZG2L
187192
bool "pin control support for RZ/{G2L,G2UL,V2L}" if COMPILE_TEST
188193
depends on OF
189194
select GPIOLIB
195+
select GPIOLIB_IRQCHIP
190196
select GENERIC_PINCTRL_GROUPS
191197
select GENERIC_PINMUX_FUNCTIONS
192198
select GENERIC_PINCONF
199+
select IRQ_DOMAIN_HIERARCHY
193200
help
194201
This selects GPIO and pinctrl driver for Renesas RZ/{G2L,G2UL,V2L}
195202
platforms.

drivers/pinctrl/renesas/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ obj-$(CONFIG_PINCTRL_PFC_R8A77995) += pfc-r8a77995.o
3131
obj-$(CONFIG_PINCTRL_PFC_R8A779A0) += pfc-r8a779a0.o
3232
obj-$(CONFIG_PINCTRL_PFC_R8A779F0) += pfc-r8a779f0.o
3333
obj-$(CONFIG_PINCTRL_PFC_R8A779G0) += pfc-r8a779g0.o
34+
obj-$(CONFIG_PINCTRL_PFC_R8A779H0) += pfc-r8a779h0.o
3435
obj-$(CONFIG_PINCTRL_PFC_SH7203) += pfc-sh7203.o
3536
obj-$(CONFIG_PINCTRL_PFC_SH7264) += pfc-sh7264.o
3637
obj-$(CONFIG_PINCTRL_PFC_SH7269) += pfc-sh7269.o

drivers/pinctrl/renesas/core.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,12 @@ static const struct of_device_id sh_pfc_of_table[] = {
638638
.data = &r8a779g0_pinmux_info,
639639
},
640640
#endif
641+
#ifdef CONFIG_PINCTRL_PFC_R8A779H0
642+
{
643+
.compatible = "renesas,pfc-r8a779h0",
644+
.data = &r8a779h0_pinmux_info,
645+
},
646+
#endif
641647
#ifdef CONFIG_PINCTRL_PFC_SH73A0
642648
{
643649
.compatible = "renesas,pfc-sh73a0",
@@ -731,10 +737,12 @@ static int sh_pfc_resume_noirq(struct device *dev)
731737
sh_pfc_walk_regs(pfc, sh_pfc_restore_reg);
732738
return 0;
733739
}
740+
#define pm_psci_sleep_ptr(_ptr) pm_sleep_ptr(_ptr)
734741
#else
735742
static int sh_pfc_suspend_init(struct sh_pfc *pfc) { return 0; }
736743
static int sh_pfc_suspend_noirq(struct device *dev) { return 0; }
737744
static int sh_pfc_resume_noirq(struct device *dev) { return 0; }
745+
#define pm_psci_sleep_ptr(_ptr) PTR_IF(false, (_ptr))
738746
#endif /* CONFIG_ARM_PSCI_FW */
739747

740748
static DEFINE_NOIRQ_DEV_PM_OPS(sh_pfc_pm, sh_pfc_suspend_noirq, sh_pfc_resume_noirq);
@@ -1417,7 +1425,7 @@ static struct platform_driver sh_pfc_driver = {
14171425
.driver = {
14181426
.name = DRV_NAME,
14191427
.of_match_table = of_match_ptr(sh_pfc_of_table),
1420-
.pm = pm_sleep_ptr(&sh_pfc_pm),
1428+
.pm = pm_psci_sleep_ptr(&sh_pfc_pm),
14211429
},
14221430
};
14231431

drivers/pinctrl/renesas/pfc-r8a779h0.c

Lines changed: 3967 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)