sh-pfc: add R8A7794 PFC support
Subsystems (5)
PATCH v3 1/1 sh-pfc: add R8A7794 PFC support
From: Hisashi Nakamura <[email protected]>
Add PFC support for the R8A7794 SoC including pin groups for some on-chip devices such as ETH, I2C, INTC, MSIOF, QSPI, [H]SCIF...
[Sergei: squashed together several patches, fixed the MLB_CLK typo, added IRQ4.. IRQ9 pin groups, fixed IRQn comments, added ETH B pin group names, removed stray new line and fixed typos in the comments in the pinmux_config_regs[] initializer, removed the platform device ID, took into account limited number of signals in the GPIO1/5/6 controllers, added reasonable and removed unreasonable copyrights, modified the bindings document, renamed, added changelog.]
---
Changes in version 3:
- removed the platform device ID;
- added PORT_GP_26() and PORT_GP_28() macros, used them for GPIO1/5/6 in the CPU_ALL_PORT() macto.
Changes in version 2:
- rebased the patch.
Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt | 1 drivers/pinctrl/sh-pfc/Kconfig | 5 drivers/pinctrl/sh-pfc/Makefile | 1 drivers/pinctrl/sh-pfc/core.c | 6 drivers/pinctrl/sh-pfc/core.h | 1 drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 4020 ++++++++++ 6 files changed, 4034 insertions(+)
Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt +1 -0
@@ -17,6 +17,7 @@ Required Properties: - "renesas,pfc-r8a7779": for R8A7779 (R-Car H1) compatible pin-controller. - "renesas,pfc-r8a7790": for R8A7790 (R-Car H2) compatible pin-controller. - "renesas,pfc-r8a7791": for R8A7791 (R-Car M2) compatible pin-controller. + - "renesas,pfc-r8a7794": for R8A7794 (R-Car E2) compatible pin-controller. - "renesas,pfc-sh73a0": for SH73A0 (SH-Mobile AG5) compatible pin-controller. - reg: Base address and length of each memory resource used by the pin
drivers/pinctrl/sh-pfc/Kconfig +5 -0
@@ -55,6 +55,11 @@ config PINCTRL_PFC_R8A7791 depends on ARCH_R8A7791 select PINCTRL_SH_PFC +config PINCTRL_PFC_R8A7794 + def_bool y + depends on ARCH_R8A7794 + select PINCTRL_SH_PFC + config PINCTRL_PFC_SH7203 def_bool y depends on CPU_SUBTYPE_SH7203
drivers/pinctrl/sh-pfc/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-$(CONFIG_PINCTRL_PFC_R8A7778) += pfc obj-$(CONFIG_PINCTRL_PFC_R8A7779) += pfc-r8a7779.o obj-$(CONFIG_PINCTRL_PFC_R8A7790) += pfc-r8a7790.o obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o +obj-$(CONFIG_PINCTRL_PFC_R8A7794) += pfc-r8a7794.o obj-$(CONFIG_PINCTRL_PFC_SH7203) += pfc-sh7203.o obj-$(CONFIG_PINCTRL_PFC_SH7264) += pfc-sh7264.o obj-$(CONFIG_PINCTRL_PFC_SH7269) += pfc-sh7269.o
drivers/pinctrl/sh-pfc/core.c +6 -0
@@ -481,6 +481,12 @@ static const struct of_device_id sh_pfc_ .data = &r8a7791_pinmux_info, },#endif +#ifdef CONFIG_PINCTRL_PFC_R8A7794 + { + .compatible = "renesas,pfc-r8a7794", + .data = &r8a7794_pinmux_info, + }, +#endif #ifdef CONFIG_PINCTRL_PFC_SH73A0 { .compatible = "renesas,pfc-sh73a0",
drivers/pinctrl/sh-pfc/core.h +1 -0
@@ -72,6 +72,7 @@ extern const struct sh_pfc_soc_info r8a7extern const struct sh_pfc_soc_info r8a7779_pinmux_info;extern const struct sh_pfc_soc_info r8a7790_pinmux_info;extern const struct sh_pfc_soc_info r8a7791_pinmux_info; +extern const struct sh_pfc_soc_info r8a7794_pinmux_info;extern const struct sh_pfc_soc_info sh7203_pinmux_info;extern const struct sh_pfc_soc_info sh7264_pinmux_info;extern const struct sh_pfc_soc_info sh7269_pinmux_info;
drivers/pinctrl/sh-pfc/pfc-r8a7794.c new file +4020 -0
2,956 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Hi Sergei,
Thank you for the patch.
Quoted 6 lines · On Monday 23 February 2015 00:33:38 Sergei Shtylyov wrote:
From: Hisashi Nakamura <[email protected]>
Add PFC support for the R8A7794 SoC including pin groups for some on-chip devices such as ETH, I2C, INTC, MSIOF, QSPI, [H]SCIF...
Signed-off-by Hisashi Nakamura <[email protected]>
Quoted 8 lines
[Sergei: squashed together several patches, fixed the
MLB_CLKtypo, added IRQ4.. IRQ9 pin groups, fixed IRQn comments, added ETH B pin group names, removed stray new line and fixed typos in the comments in the pinmux_config_regs[] initializer, removed the platform device ID, took into account limited number of signals in the GPIO1/5/6 controllers, added reasonable and removed unreasonable copyrights, modified the bindings document, renamed, added changelog.] Signed-off-by: Sergei Shtylyov <[email protected]>
Quoted 16 lines
---
Changes in version 3:
- removed the platform device ID;
- addedPORT_GP_26()andPORT_GP_28()macros, used them for GPIO1/5/6 in theCPU_ALL_PORT()macto.Changes in version 2:
- rebased the patch.Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt | 1 drivers/pinctrl/sh-pfc/Kconfig | 5 drivers/pinctrl/sh-pfc/Makefile | 1 drivers/pinctrl/sh-pfc/core.c | 6 drivers/pinctrl/sh-pfc/core.h | 1 drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 4020 ++ 6 files changed, 4034 insertions(+)
Signature · 3 lines
Regards, Laurent Pinchart
Hello.
Quoted 12 lines · Sergei Shtylyov
From: Hisashi Nakamura <[email protected]>
Add PFC support for the R8A7794 SoC including pin groups for some on-chip devices such as ETH, I2C, INTC, MSIOF, QSPI, [H]SCIF...
Signed-off-by Hisashi Nakamura <[email protected]>[Sergei: squashed together several patches, fixed the
MLB_CLKtypo, added IRQ4.. IRQ9 pin groups, fixed IRQn comments, added ETH B pin group names, removed stray new line and fixed typos in the comments in the pinmux_config_regs[] initializer, removed the platform device ID, took into account limited number of signals in the GPIO1/5/6 controllers, added reasonable and removed unreasonable copyrights, modified the bindings document, renamed, added changelog.]
Quoted 7 lines
Signed-off-by Sergei Shtylyov <[email protected]>---
Changes in version 3:
- removed the platform device ID;
- addedPORT_GP_26()andPORT_GP_28()macros, used them for GPIO1/5/6 in theCPU_ALL_PORT()macto.
Don't apply this patch! The change above causes the driver to fail probing
and the eventual kernel hang somehow... :-(
Quoted 2 lines
Changes in version 2:
- rebased the patch.
WBR, Sergei
Quoted 16 lines · Sergei Shtylyov
Quoted 15 lines
From: Hisashi Nakamura <[email protected]>
Add PFC support for the R8A7794 SoC including pin groups for some on-chip devices such as ETH, I2C, INTC, MSIOF, QSPI, [H]SCIF...
Signed-off-by Hisashi Nakamura <[email protected]>[Sergei: squashed together several patches, fixed the
MLB_CLKtypo, added IRQ4..
IRQ9 pin groups, fixed IRQn comments, added ETH B pin group names, removed stray new line and fixed typos in the comments in the pinmux_config_regs[] initializer, removed the platform device ID, took into account limited number of
signals in the GPIO1/5/6 controllers, added reasonable and removed unreasonable copyrights, modified the bindings document, renamed, added changelog.]Signed-off-by Sergei Shtylyov <[email protected]>
Quoted 8 lines
Quoted 5 lines
---
Changes in version 3:
- removed the platform device ID;
- addedPORT_GP_26()andPORT_GP_28()macros, used them for GPIO1/5/6 in theCPU_ALL_PORT()macto.Don't apply this patch! The change above causes the driver to fail probing
and the eventual kernel hang somehow... :-(
OK, I think I fixed it now. But I'm going to submit the new version of
this patch after that, in order to reuse PORT_GP_26() when defining PORT_GP_28()...
Quoted 2 lines
Quoted 2 lines
Changes in version 2:
- rebased the patch.
WBR, Sergei
Quoted 12 lines · Sergei Shtylyov
From: Hisashi Nakamura <[email protected]>
Add PFC support for the R8A7794 SoC including pin groups for some on-chip devices such as ETH, I2C, INTC, MSIOF, QSPI, [H]SCIF...
Signed-off-by Hisashi Nakamura <[email protected]>[Sergei: squashed together several patches, fixed the
MLB_CLKtypo, added IRQ4.. IRQ9 pin groups, fixed IRQn comments, added ETH B pin group names, removed stray new line and fixed typos in the comments in the pinmux_config_regs[] initializer, removed the platform device ID, took into account limited number of signals in the GPIO1/5/6 controllers, added reasonable and removed unreasonable copyrights, modified the bindings document, renamed, added changelog.]
Quoted 4 lines
Signed-off-by Sergei Shtylyov <[email protected]>---
Changes in version 3:
This v3 applied with Laurent's ACK.
Yours,
Linus Walleij
Quoted 14 lines · Linus Walleij
Quoted 13 lines
From: Hisashi Nakamura <[email protected]>
Add PFC support for the R8A7794 SoC including pin groups for some on-chip devices such as ETH, I2C, INTC, MSIOF, QSPI, [H]SCIF...
Signed-off-by Hisashi Nakamura <[email protected]>[Sergei: squashed together several patches, fixed the
MLB_CLKtypo, added IRQ4.. IRQ9 pin groups, fixed IRQn comments, added ETH B pin group names, removed stray new line and fixed typos in the comments in the pinmux_config_regs[] initializer, removed the platform device ID, took into account limited number of signals in the GPIO1/5/6 controllers, added reasonable and removed unreasonable copyrights, modified the bindings document, renamed, added changelog.]Signed-off-by Sergei Shtylyov <[email protected]>
Quoted 4 lines
Quoted 2 lines
---
Changes in version 3:This v3 applied with Laurent's ACK.
There's v4 already. Anyway, it shouldn't be applied yet.
Quoted 2 lines
Yours,
Linus Walleij
WBR, Sergei