2018-09-07 02:13:29 +00:00
# SPDX-License-Identifier: GPL-2.0
2012-12-15 23:51:19 +01:00
#
# Renesas SH and SH Mobile PINCTRL drivers
#
2012-07-10 11:49:30 +09:00
2012-12-15 23:51:19 +01:00
config PINCTRL_SH_PFC
2019-01-21 19:47:18 +01:00
bool "Renesas SoC pin control support" if COMPILE_TEST && !(ARCH_RENESAS || SUPERH)
default y if ARCH_RENESAS || SUPERH
2012-07-10 12:08:14 +09:00
select PINMUX
select PINCONF
2013-03-10 16:44:02 +01:00
select GENERIC_PINCONF
2019-01-21 19:47:18 +01:00
select PINCTRL_PFC_EMEV2 if ARCH_EMEV2
select PINCTRL_PFC_R8A73A4 if ARCH_R8A73A4
select PINCTRL_PFC_R8A7740 if ARCH_R8A7740
select PINCTRL_PFC_R8A7743 if ARCH_R8A7743
select PINCTRL_PFC_R8A7744 if ARCH_R8A7744
select PINCTRL_PFC_R8A7745 if ARCH_R8A7745
select PINCTRL_PFC_R8A77470 if ARCH_R8A77470
select PINCTRL_PFC_R8A774A1 if ARCH_R8A774A1
2019-09-19 09:17:16 +01:00
select PINCTRL_PFC_R8A774B1 if ARCH_R8A774B1
2019-01-21 19:47:18 +01:00
select PINCTRL_PFC_R8A774C0 if ARCH_R8A774C0
select PINCTRL_PFC_R8A7778 if ARCH_R8A7778
select PINCTRL_PFC_R8A7779 if ARCH_R8A7779
select PINCTRL_PFC_R8A7790 if ARCH_R8A7790
select PINCTRL_PFC_R8A7791 if ARCH_R8A7791
select PINCTRL_PFC_R8A7792 if ARCH_R8A7792
select PINCTRL_PFC_R8A7793 if ARCH_R8A7793
select PINCTRL_PFC_R8A7794 if ARCH_R8A7794
pinctrl: sh-pfc: Split R-Car H3 support in two independent drivers
Despite using the same compatible values ("r8a7795"-based) because of
historical reasons, R-Car H3 ES1.x (R8A77950) and R-Car H3 ES2.0+
(R8A77951) are really different SoCs, with different part numbers, and
with different Pin Function Controller blocks.
Reflect this in the pinctrl configuration, by replacing the existing
CONFIG_PINCTRL_PFC_R8A7795 symbol by two new config symbols:
CONFIG_PINCTRL_PFC_R8A77950 and CONFIG_PINCTRL_PFC_R8A77951. The latter
are selected automatically, depending on the soon-to-be-introduced
corresponding SoC-specific config options, and on the current common
config option, to relax dependencies.
Rename the individual pin control driver source files from
pfc-r8a7795-es1.c to pfc-r8a77950.c, and from pfc-r8a7795.c to
pfc-r8a77951.c, and make them truly independent.
As both SoCs share the same compatible value, special care must be taken
to match them to the correct pin control driver, if support for it is
included in the running kernel.
This will allow making support for early R-Car H3 revisions optional,
the largest share of which is taken by the pin control driver.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20191230083156.19191-1-geert+renesas@glider.be
2019-12-30 09:31:56 +01:00
select PINCTRL_PFC_R8A77950 if ARCH_R8A77950 || ARCH_R8A7795
select PINCTRL_PFC_R8A77951 if ARCH_R8A77951 || ARCH_R8A7795
2019-12-11 11:03:08 +01:00
select PINCTRL_PFC_R8A77960 if ARCH_R8A77960
2019-10-23 14:29:55 +02:00
select PINCTRL_PFC_R8A77961 if ARCH_R8A77961
2019-01-21 19:47:18 +01:00
select PINCTRL_PFC_R8A77965 if ARCH_R8A77965
select PINCTRL_PFC_R8A77970 if ARCH_R8A77970
select PINCTRL_PFC_R8A77980 if ARCH_R8A77980
select PINCTRL_PFC_R8A77990 if ARCH_R8A77990
select PINCTRL_PFC_R8A77995 if ARCH_R8A77995
select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203
select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264
select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269
select PINCTRL_PFC_SH73A0 if ARCH_SH73A0
select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720
select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722
select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723
select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724
select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734
select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757
select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785
select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786
select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3
2012-12-15 23:51:19 +01:00
help
2019-01-21 19:47:18 +01:00
This enables pin control drivers for Renesas SuperH and ARM platforms
2012-07-10 12:08:14 +09:00
2016-02-17 17:15:49 +09:00
config PINCTRL_SH_PFC_GPIO
select GPIOLIB
bool
2012-07-10 11:49:30 +09:00
help
2016-02-17 17:15:49 +09:00
This enables pin control and GPIO drivers for SH/SH Mobile platforms
2012-12-15 23:51:19 +01:00
2019-01-21 17:05:45 +01:00
config PINCTRL_SH_FUNC_GPIO
select PINCTRL_SH_PFC_GPIO
bool
help
This enables legacy function GPIOs for SH platforms
2015-01-25 14:49:52 +01:00
config PINCTRL_PFC_EMEV2
2019-01-21 19:47:18 +01:00
bool "Emma Mobile AV2 pin control support" if COMPILE_TEST
2015-01-25 14:49:52 +01:00
2013-03-26 22:49:49 +09:00
config PINCTRL_PFC_R8A73A4
2019-01-21 19:47:18 +01:00
bool "R-Mobile APE6 pin control support" if COMPILE_TEST
2016-02-17 17:15:49 +09:00
select PINCTRL_SH_PFC_GPIO
2013-03-26 22:49:49 +09:00
2012-12-15 23:51:21 +01:00
config PINCTRL_PFC_R8A7740
2019-01-21 19:47:18 +01:00
bool "R-Mobile A1 pin control support" if COMPILE_TEST
2016-02-17 17:15:49 +09:00
select PINCTRL_SH_PFC_GPIO
2012-12-15 23:51:21 +01:00
2017-04-20 21:46:08 +03:00
config PINCTRL_PFC_R8A7743
2019-01-21 19:47:18 +01:00
bool "RZ/G1M pin control support" if COMPILE_TEST
2017-04-20 21:46:08 +03:00
2018-09-11 11:30:05 +01:00
config PINCTRL_PFC_R8A7744
2019-01-21 19:47:18 +01:00
bool "RZ/G1N pin control support" if COMPILE_TEST
2018-09-11 11:30:05 +01:00
2017-04-28 21:52:35 +03:00
config PINCTRL_PFC_R8A7745
2019-01-21 19:47:18 +01:00
bool "RZ/G1E pin control support" if COMPILE_TEST
2017-04-28 21:52:35 +03:00
2018-04-24 12:03:08 +01:00
config PINCTRL_PFC_R8A77470
2019-01-21 19:47:18 +01:00
bool "RZ/G1C pin control support" if COMPILE_TEST
2018-04-24 12:03:08 +01:00
2018-08-13 14:52:32 +01:00
config PINCTRL_PFC_R8A774A1
2019-01-21 19:47:18 +01:00
bool "RZ/G2M pin control support" if COMPILE_TEST
2018-08-13 14:52:32 +01:00
2019-09-19 09:17:16 +01:00
config PINCTRL_PFC_R8A774B1
bool "RZ/G2N pin control support" if COMPILE_TEST
2018-09-12 14:31:02 +01:00
config PINCTRL_PFC_R8A774C0
2019-01-21 19:47:18 +01:00
bool "RZ/G2E pin control support" if COMPILE_TEST
2018-09-12 14:31:02 +01:00
2013-04-12 05:37:20 +00:00
config PINCTRL_PFC_R8A7778
2019-01-21 19:47:18 +01:00
bool "R-Car M1A pin control support" if COMPILE_TEST
2013-04-12 05:37:20 +00:00
2012-12-15 23:51:22 +01:00
config PINCTRL_PFC_R8A7779
2019-01-21 19:47:18 +01:00
bool "R-Car H1 pin control support" if COMPILE_TEST
2012-12-15 23:51:22 +01:00
2013-04-08 11:08:53 +09:00
config PINCTRL_PFC_R8A7790
2019-01-21 19:47:18 +01:00
bool "R-Car H2 pin control support" if COMPILE_TEST
2013-04-08 11:08:53 +09:00
2013-10-17 06:46:05 +09:00
config PINCTRL_PFC_R8A7791
2019-01-21 19:47:18 +01:00
bool "R-Car M2-W pin control support" if COMPILE_TEST
2013-10-17 06:46:05 +09:00
2016-06-30 00:21:08 +03:00
config PINCTRL_PFC_R8A7792
2019-01-21 19:47:18 +01:00
bool "R-Car V2H pin control support" if COMPILE_TEST
2016-06-30 00:21:08 +03:00
2015-05-12 11:13:20 +02:00
config PINCTRL_PFC_R8A7793
2019-01-21 19:47:18 +01:00
bool "R-Car M2-N pin control support" if COMPILE_TEST
2015-05-12 11:13:20 +02:00
pinctrl: sh-pfc: add R8A7794 PFC support
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 5:
- resolved rejects, refreshed the patch;
- added Laurent Pinchart's ACK.
Changes in version 4:
- reused the PORT_GP_26() macro to #define PORT_GP_28().
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() macro.
Changes in version 2:
- rebased the patch.
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-06-06 01:34:48 +03:00
config PINCTRL_PFC_R8A7794
2019-01-21 19:47:18 +01:00
bool "R-Car E2 pin control support" if COMPILE_TEST
pinctrl: sh-pfc: add R8A7794 PFC support
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 5:
- resolved rejects, refreshed the patch;
- added Laurent Pinchart's ACK.
Changes in version 4:
- reused the PORT_GP_26() macro to #define PORT_GP_28().
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() macro.
Changes in version 2:
- rebased the patch.
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-06-06 01:34:48 +03:00
pinctrl: sh-pfc: Split R-Car H3 support in two independent drivers
Despite using the same compatible values ("r8a7795"-based) because of
historical reasons, R-Car H3 ES1.x (R8A77950) and R-Car H3 ES2.0+
(R8A77951) are really different SoCs, with different part numbers, and
with different Pin Function Controller blocks.
Reflect this in the pinctrl configuration, by replacing the existing
CONFIG_PINCTRL_PFC_R8A7795 symbol by two new config symbols:
CONFIG_PINCTRL_PFC_R8A77950 and CONFIG_PINCTRL_PFC_R8A77951. The latter
are selected automatically, depending on the soon-to-be-introduced
corresponding SoC-specific config options, and on the current common
config option, to relax dependencies.
Rename the individual pin control driver source files from
pfc-r8a7795-es1.c to pfc-r8a77950.c, and from pfc-r8a7795.c to
pfc-r8a77951.c, and make them truly independent.
As both SoCs share the same compatible value, special care must be taken
to match them to the correct pin control driver, if support for it is
included in the running kernel.
This will allow making support for early R-Car H3 revisions optional,
the largest share of which is taken by the pin control driver.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20191230083156.19191-1-geert+renesas@glider.be
2019-12-30 09:31:56 +01:00
config PINCTRL_PFC_R8A77950
bool "R-Car H3 ES1.x pin control support" if COMPILE_TEST
config PINCTRL_PFC_R8A77951
bool "R-Car H3 ES2.0+ pin control support" if COMPILE_TEST
2015-09-03 02:51:49 +00:00
2019-10-23 14:29:54 +02:00
config PINCTRL_PFC_R8A77960
2019-01-21 19:47:18 +01:00
bool "R-Car M3-W pin control support" if COMPILE_TEST
2016-08-18 15:12:32 +02:00
2019-10-23 14:29:55 +02:00
config PINCTRL_PFC_R8A77961
bool "R-Car M3-W+ pin control support" if COMPILE_TEST
2018-02-20 16:12:07 +01:00
config PINCTRL_PFC_R8A77965
2019-01-21 19:47:18 +01:00
bool "R-Car M3-N pin control support" if COMPILE_TEST
2018-02-20 16:12:07 +01:00
2017-11-10 20:59:01 +03:00
config PINCTRL_PFC_R8A77970
2019-01-21 19:47:18 +01:00
bool "R-Car V3M pin control support" if COMPILE_TEST
2017-11-10 20:59:01 +03:00
2018-03-08 22:14:32 +03:00
config PINCTRL_PFC_R8A77980
2019-01-21 19:47:18 +01:00
bool "R-Car V3H pin control support" if COMPILE_TEST
2018-03-08 22:14:32 +03:00
2018-05-11 12:22:23 +09:00
config PINCTRL_PFC_R8A77990
2019-01-21 19:47:18 +01:00
bool "R-Car E3 pin control support" if COMPILE_TEST
2018-05-11 12:22:23 +09:00
2017-08-09 21:19:41 +09:00
config PINCTRL_PFC_R8A77995
2019-01-21 19:47:18 +01:00
bool "R-Car D3 pin control support" if COMPILE_TEST
2017-08-09 21:19:41 +09:00
2012-12-15 23:51:29 +01:00
config PINCTRL_PFC_SH7203
2019-01-21 19:47:18 +01:00
bool "SH7203 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:29 +01:00
2012-12-15 23:51:30 +01:00
config PINCTRL_PFC_SH7264
2019-01-21 19:47:18 +01:00
bool "SH7264 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:30 +01:00
2012-12-15 23:51:31 +01:00
config PINCTRL_PFC_SH7269
2019-01-21 19:47:18 +01:00
bool "SH7269 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:31 +01:00
2012-12-15 23:51:24 +01:00
config PINCTRL_PFC_SH73A0
2019-01-21 19:47:18 +01:00
bool "SH-Mobile AG5 pin control support" if COMPILE_TEST
2016-02-17 17:15:49 +09:00
select PINCTRL_SH_PFC_GPIO
2013-04-21 23:26:26 +02:00
select REGULATOR
2012-12-15 23:51:24 +01:00
2012-12-15 23:51:32 +01:00
config PINCTRL_PFC_SH7720
2019-01-21 19:47:18 +01:00
bool "SH7720 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:32 +01:00
2012-12-15 23:51:33 +01:00
config PINCTRL_PFC_SH7722
2019-01-21 19:47:18 +01:00
bool "SH7722 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:33 +01:00
2012-12-15 23:51:34 +01:00
config PINCTRL_PFC_SH7723
2019-01-21 19:47:18 +01:00
bool "SH-Mobile R2 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:34 +01:00
2012-12-15 23:51:35 +01:00
config PINCTRL_PFC_SH7724
2019-01-21 19:47:18 +01:00
bool "SH-Mobile R2R pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:35 +01:00
2012-12-15 23:51:36 +01:00
config PINCTRL_PFC_SH7734
2019-01-21 19:47:18 +01:00
bool "SH7734 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:36 +01:00
2012-12-15 23:51:37 +01:00
config PINCTRL_PFC_SH7757
2019-01-21 19:47:18 +01:00
bool "SH7757 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:37 +01:00
2012-12-15 23:51:38 +01:00
config PINCTRL_PFC_SH7785
2019-01-21 19:47:18 +01:00
bool "SH7785 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:38 +01:00
2012-12-15 23:51:39 +01:00
config PINCTRL_PFC_SH7786
2019-01-21 19:47:18 +01:00
bool "SH7786 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO
2012-12-15 23:51:39 +01:00
2012-12-15 23:51:40 +01:00
config PINCTRL_PFC_SHX3
2019-01-21 19:47:18 +01:00
bool "SH-X3 pin control support" if COMPILE_TEST
2019-01-21 17:05:45 +01:00
select PINCTRL_SH_FUNC_GPIO