* [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform
@ 2015-03-06 6:24 Yingjoe Chen
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
2015-03-06 13:18 ` [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Matthias Brugger
0 siblings, 2 replies; 11+ messages in thread
From: Yingjoe Chen @ 2015-03-06 6:24 UTC (permalink / raw)
To: Linus Walleij, Matthias Brugger
Cc: Hongzhou Yang, linux-arm-kernel, linux-kernel, linux-gpio,
srv_heupstream, linux-mediatek, Catalin Marinas, Arnd Bergmann,
Yingjoe Chen
These 2 patches are fixup for MT8173 pinctrl driver:
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/320066.html
Arm64 maintainers doesn't want to add MACH_* in Kconfig, this patch
is used to replace the first one in that series.
Matthias,
Can you take this one?
----------------------------------
MediaTek SoC expect to work with a pinctrl driver.
Select PINCTRL if ARCH_MEDIATEK is selected.
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
---
arch/arm64/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index e627ead..a2ddd3f 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -151,6 +151,7 @@ menu "Platform selection"
config ARCH_MEDIATEK
bool "Mediatek MT65xx & MT81xx ARMv8 SoC"
select ARM_GIC
+ select PINCTRL
help
Support for Mediatek MT65xx & MT81xx ARMv8 SoCs
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-06 6:24 [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Yingjoe Chen
@ 2015-03-06 6:24 ` Yingjoe Chen
2015-03-06 11:05 ` Paul Bolle
` (3 more replies)
2015-03-06 13:18 ` [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Matthias Brugger
1 sibling, 4 replies; 11+ messages in thread
From: Yingjoe Chen @ 2015-03-06 6:24 UTC (permalink / raw)
To: Linus Walleij, Matthias Brugger
Cc: Hongzhou Yang, linux-arm-kernel, linux-kernel, linux-gpio,
srv_heupstream, linux-mediatek, Catalin Marinas, Arnd Bergmann,
Yingjoe Chen
Linus,
This one make PINCTRL_MT8173 option user selectable and is based on
mtk-staging in your tree. If you think this is OK, please applied or
squash this into previous change. Thanks.
--------------------------------------------------
ARM64 maintainer doesn't want to add MACH_* for each SoC.
Adjust mt8173 pinctrl kconfig entry so user can manually select it.
Also make PINCTRL_MT8135 build when COMPILE_TEST is enabled.
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
---
drivers/pinctrl/mediatek/Kconfig | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig
index 49b8649..1472f0e 100644
--- a/drivers/pinctrl/mediatek/Kconfig
+++ b/drivers/pinctrl/mediatek/Kconfig
@@ -1,4 +1,4 @@
-if ARCH_MEDIATEK
+if ARCH_MEDIATEK || COMPILE_TEST
config PINCTRL_MTK_COMMON
bool
@@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON
select OF_GPIO
config PINCTRL_MT8135
- def_bool MACH_MT8135
+ def_bool MACH_MT8135 || COMPILE_TEST
select PINCTRL_MTK_COMMON
config PINCTRL_MT8173
- def_bool MACH_MT8173
+ bool "Mediatek MT8173 pin control"
+ def_bool y
+ depends on ARM64 || COMPILE_TEST
select PINCTRL_MTK_COMMON
endif
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
@ 2015-03-06 11:05 ` Paul Bolle
2015-03-09 8:26 ` Yingjoe Chen
2015-03-09 8:13 ` [PATCH] " Yingjoe Chen
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Paul Bolle @ 2015-03-06 11:05 UTC (permalink / raw)
To: Yingjoe Chen
Cc: Linus Walleij, Matthias Brugger, Hongzhou Yang, linux-arm-kernel,
linux-kernel, linux-gpio, srv_heupstream, linux-mediatek,
Catalin Marinas, Arnd Bergmann
On Fri, 2015-03-06 at 14:24 +0800, Yingjoe Chen wrote:
> --- a/drivers/pinctrl/mediatek/Kconfig
> +++ b/drivers/pinctrl/mediatek/Kconfig
> @@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON
> select OF_GPIO
>
> config PINCTRL_MT8135
> - def_bool MACH_MT8135
> + def_bool MACH_MT8135 || COMPILE_TEST
> select PINCTRL_MTK_COMMON
>
> config PINCTRL_MT8173
> - def_bool MACH_MT8173
> + bool "Mediatek MT8173 pin control"
> + def_bool y
The kconfig tools will do what you mean here, but I think it's cleaner
to make this just:
bool "Mediatek MT8173 pin control"
default y
> + depends on ARM64 || COMPILE_TEST
> select PINCTRL_MTK_COMMON
>
> endif
Thanks,
Paul Bolle
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform
2015-03-06 6:24 [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Yingjoe Chen
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
@ 2015-03-06 13:18 ` Matthias Brugger
1 sibling, 0 replies; 11+ messages in thread
From: Matthias Brugger @ 2015-03-06 13:18 UTC (permalink / raw)
To: Yingjoe Chen
Cc: Linus Walleij, Hongzhou Yang,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-gpio, srv_heupstream,
linux-mediatek, Catalin Marinas, Arnd Bergmann
2015-03-06 7:24 GMT+01:00 Yingjoe Chen <yingjoe.chen@mediatek.com>:
> These 2 patches are fixup for MT8173 pinctrl driver:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/320066.html
>
> Arm64 maintainers doesn't want to add MACH_* in Kconfig, this patch
> is used to replace the first one in that series.
>
> Matthias,
> Can you take this one?
>
> ----------------------------------
> MediaTek SoC expect to work with a pinctrl driver.
> Select PINCTRL if ARCH_MEDIATEK is selected.
>
> Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
applied to v4.0-next/arm64
> ---
> arch/arm64/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index e627ead..a2ddd3f 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -151,6 +151,7 @@ menu "Platform selection"
> config ARCH_MEDIATEK
> bool "Mediatek MT65xx & MT81xx ARMv8 SoC"
> select ARM_GIC
> + select PINCTRL
> help
> Support for Mediatek MT65xx & MT81xx ARMv8 SoCs
>
> --
> 1.8.1.1.dirty
>
--
motzblog.wordpress.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
2015-03-06 11:05 ` Paul Bolle
@ 2015-03-09 8:13 ` Yingjoe Chen
2015-03-09 20:36 ` [PATCH 2/2] " Arnd Bergmann
2015-03-13 14:40 ` [PATCH v3] " Yingjoe Chen
3 siblings, 0 replies; 11+ messages in thread
From: Yingjoe Chen @ 2015-03-09 8:13 UTC (permalink / raw)
To: Linus Walleij, Paul Bolle
Cc: Arnd Bergmann, srv_heupstream, Hongzhou Yang, Catalin Marinas,
linux-kernel, linux-gpio, linux-mediatek, Yingjoe Chen,
linux-arm-kernel, Matthias Brugger
Change based on Paul's suggestion.
Old patch can be found at:
http://lists.infradead.org/pipermail/linux-mediatek/2015-March/000057.html
------
ARM64 maintainer doesn't want to add MACH_* for each SoC.
Adjust mt8173 pinctrl kconfig entry so user can manually select it.
Also make PINCTRL_MT8135 build when COMPILE_TEST is enabled.
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
---
drivers/pinctrl/mediatek/Kconfig | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig
index 49b8649..0e3a002 100644
--- a/drivers/pinctrl/mediatek/Kconfig
+++ b/drivers/pinctrl/mediatek/Kconfig
@@ -1,4 +1,4 @@
-if ARCH_MEDIATEK
+if ARCH_MEDIATEK || COMPILE_TEST
config PINCTRL_MTK_COMMON
bool
@@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON
select OF_GPIO
config PINCTRL_MT8135
- def_bool MACH_MT8135
+ def_bool MACH_MT8135 || COMPILE_TEST
select PINCTRL_MTK_COMMON
config PINCTRL_MT8173
- def_bool MACH_MT8173
+ bool "Mediatek MT8173 pin control"
+ default y
+ depends on ARM64 || COMPILE_TEST
select PINCTRL_MTK_COMMON
endif
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-06 11:05 ` Paul Bolle
@ 2015-03-09 8:26 ` Yingjoe Chen
0 siblings, 0 replies; 11+ messages in thread
From: Yingjoe Chen @ 2015-03-09 8:26 UTC (permalink / raw)
To: Paul Bolle
Cc: Arnd Bergmann, srv_heupstream, Hongzhou Yang, Catalin Marinas,
Linus Walleij, linux-kernel, linux-gpio, linux-mediatek,
Matthias Brugger, linux-arm-kernel
On Fri, 2015-03-06 at 12:05 +0100, Paul Bolle wrote:
> On Fri, 2015-03-06 at 14:24 +0800, Yingjoe Chen wrote:
> > --- a/drivers/pinctrl/mediatek/Kconfig
> > +++ b/drivers/pinctrl/mediatek/Kconfig
>
> > @@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON
> > select OF_GPIO
> >
> > config PINCTRL_MT8135
> > - def_bool MACH_MT8135
> > + def_bool MACH_MT8135 || COMPILE_TEST
> > select PINCTRL_MTK_COMMON
> >
> > config PINCTRL_MT8173
> > - def_bool MACH_MT8173
> > + bool "Mediatek MT8173 pin control"
> > + def_bool y
>
> The kconfig tools will do what you mean here, but I think it's cleaner
> to make this just:
> bool "Mediatek MT8173 pin control"
> default y
>
Hi Paul,
Just sent a new version with this change.
Thanks for your suggestion.
Joe.C
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
2015-03-06 11:05 ` Paul Bolle
2015-03-09 8:13 ` [PATCH] " Yingjoe Chen
@ 2015-03-09 20:36 ` Arnd Bergmann
2015-03-13 6:46 ` Yingjoe Chen
2015-03-13 14:40 ` [PATCH v3] " Yingjoe Chen
3 siblings, 1 reply; 11+ messages in thread
From: Arnd Bergmann @ 2015-03-09 20:36 UTC (permalink / raw)
To: Yingjoe Chen
Cc: Linus Walleij, Matthias Brugger, Hongzhou Yang, linux-arm-kernel,
linux-kernel, linux-gpio, srv_heupstream, linux-mediatek,
Catalin Marinas
On Friday 06 March 2015 14:24:51 Yingjoe Chen wrote:
> Linus,
> This one make PINCTRL_MT8173 option user selectable and is based on
> mtk-staging in your tree. If you think this is OK, please applied or
> squash this into previous change. Thanks.
The patch looks good in principle, just two small comments
> --------------------------------------------------
To simplify the job for Linus here, please start the line above
with
8<------
(a stylized pair if scissors)
which is the magic that git-am looks for.
> ARM64 maintainer doesn't want to add MACH_* for each SoC.
> Adjust mt8173 pinctrl kconfig entry so user can manually select it.
>
> Also make PINCTRL_MT8135 build when COMPILE_TEST is enabled.
>
> Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
> ---
> drivers/pinctrl/mediatek/Kconfig | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig
> index 49b8649..1472f0e 100644
> --- a/drivers/pinctrl/mediatek/Kconfig
> +++ b/drivers/pinctrl/mediatek/Kconfig
> @@ -1,4 +1,4 @@
> -if ARCH_MEDIATEK
> +if ARCH_MEDIATEK || COMPILE_TEST
>
> config PINCTRL_MTK_COMMON
> bool
> @@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON
> select OF_GPIO
>
> config PINCTRL_MT8135
> - def_bool MACH_MT8135
> + def_bool MACH_MT8135 || COMPILE_TEST
> select PINCTRL_MTK_COMMON
>
> config PINCTRL_MT8173
> - def_bool MACH_MT8173
> + bool "Mediatek MT8173 pin control"
> + def_bool y
> + depends on ARM64 || COMPILE_TEST
> select PINCTRL_MTK_COMMON
>
You have slightly different logic here: PINCTRL_MT8135 will
always be enabled when COMPILE_TEST is on, while PINCTRL_MT8173
is enabled by default in this case, but can be turned off.
Neither of them is what you really want, which would be
config PINCTRL_MT8135
bool "Mediatek MT8135 pin control"
depends on MACH_MT8135 || COMPILE_TEST
default MACH_MT8135
select PINCTRL_MTK_COMMON
config PINCTRL_MT8135
bool "Mediatek MT8173 pin control"
depends on MACH_MT8173 || COMPILE_TEST
default MACH_MT8173
select PINCTRL_MTK_COMMON
This way, the options are only enabled by default if MACH_MT8135
or MACH_MT8173 are enabled, but you are free to enable or disable
them when COMPILE_TEST is set. Alternatively, you can do
config PINCTRL_MT8135
bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
default MACH_MT8135
select PINCTRL_MTK_COMMON
config PINCTRL_MT8135
bool "Mediatek MT8173 pin control" if COMPILE_TEST && !MACH_MT8173
default MACH_MT8173
select PINCTRL_MTK_COMMON
which will let you turn on the options if COMPILE_TEST is set, but not
let you turn them off when the drivers are required.
Arnd
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-09 20:36 ` [PATCH 2/2] " Arnd Bergmann
@ 2015-03-13 6:46 ` Yingjoe Chen
2015-03-13 10:08 ` Arnd Bergmann
0 siblings, 1 reply; 11+ messages in thread
From: Yingjoe Chen @ 2015-03-13 6:46 UTC (permalink / raw)
To: Arnd Bergmann, Linus Walleij
Cc: Matthias Brugger, Hongzhou Yang, linux-arm-kernel, linux-kernel,
linux-gpio, srv_heupstream, linux-mediatek, Catalin Marinas
Hi Arnd,
Thanks for your suggestion.
On Mon, 2015-03-09 at 21:36 +0100, Arnd Bergmann wrote:
> On Friday 06 March 2015 14:24:51 Yingjoe Chen wrote:
> > Linus,
> > This one make PINCTRL_MT8173 option user selectable and is based on
> > mtk-staging in your tree. If you think this is OK, please applied or
> > squash this into previous change. Thanks.
>
> The patch looks good in principle, just two small comments
>
> > --------------------------------------------------
>
> To simplify the job for Linus here, please start the line above
> with
>
> 8<------
>
> (a stylized pair if scissors)
>
> which is the magic that git-am looks for.
Will do next time.
<...>
> You have slightly different logic here: PINCTRL_MT8135 will
> always be enabled when COMPILE_TEST is on, while PINCTRL_MT8173
> is enabled by default in this case, but can be turned off.
> Neither of them is what you really want, which would be
>
> config PINCTRL_MT8135
> bool "Mediatek MT8135 pin control"
> depends on MACH_MT8135 || COMPILE_TEST
> default MACH_MT8135
> select PINCTRL_MTK_COMMON
>
> config PINCTRL_MT8135
> bool "Mediatek MT8173 pin control"
> depends on MACH_MT8173 || COMPILE_TEST
> default MACH_MT8173
> select PINCTRL_MTK_COMMON
>
> This way, the options are only enabled by default if MACH_MT8135
> or MACH_MT8173 are enabled, but you are free to enable or disable
> them when COMPILE_TEST is set. Alternatively, you can do
>
> config PINCTRL_MT8135
> bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
> default MACH_MT8135
> select PINCTRL_MTK_COMMON
>
> config PINCTRL_MT8135
> bool "Mediatek MT8173 pin control" if COMPILE_TEST && !MACH_MT8173
> default MACH_MT8173
> select PINCTRL_MTK_COMMON
>
> which will let you turn on the options if COMPILE_TEST is set, but not
> let you turn them off when the drivers are required.
Yes, this is preferred. Because we don't have MACH_MT8173, so it is
possible a ARM64 + ARCH_MEDIATEK system doesn't need PINCTRL_MT8173, so
we still need 2 slightly different logic. Is it OK if I do this?
Also add some comments so future SoCs can follow the correct template.
# For ARMv7 SoCs
config PINCTRL_MT8135
bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
default MACH_MT8135
select PINCTRL_MTK_COMMON
# For ARMv8 SoCs
config PINCTRL_MT8173
bool "Mediatek MT8173 pin control"
depends on ARM64 || COMPILE_TEST
default ARM64
select PINCTRL_MTK_COMMON
Joe.C
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-13 6:46 ` Yingjoe Chen
@ 2015-03-13 10:08 ` Arnd Bergmann
0 siblings, 0 replies; 11+ messages in thread
From: Arnd Bergmann @ 2015-03-13 10:08 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Yingjoe Chen, Linus Walleij, srv_heupstream, Hongzhou Yang,
Catalin Marinas, linux-kernel, linux-gpio, linux-mediatek,
Matthias Brugger
On Friday 13 March 2015 14:46:35 Yingjoe Chen wrote:
> > which will let you turn on the options if COMPILE_TEST is set, but not
> > let you turn them off when the drivers are required.
>
> Yes, this is preferred. Because we don't have MACH_MT8173, so it is
> possible a ARM64 + ARCH_MEDIATEK system doesn't need PINCTRL_MT8173, so
> we still need 2 slightly different logic. Is it OK if I do this?
> Also add some comments so future SoCs can follow the correct template.
>
> # For ARMv7 SoCs
> config PINCTRL_MT8135
> bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
> default MACH_MT8135
> select PINCTRL_MTK_COMMON
>
> # For ARMv8 SoCs
> config PINCTRL_MT8173
> bool "Mediatek MT8173 pin control"
> depends on ARM64 || COMPILE_TEST
> default ARM64
> select PINCTRL_MTK_COMMON
>
Looks good with one modification: please make it
default ARM64 && ARCH_MEDIATEK
so the driver does not get turned on by default for ARM64 configurations that
do not contain support for mediatek chips.
Arnd
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
` (2 preceding siblings ...)
2015-03-09 20:36 ` [PATCH 2/2] " Arnd Bergmann
@ 2015-03-13 14:40 ` Yingjoe Chen
2015-03-18 12:01 ` Linus Walleij
3 siblings, 1 reply; 11+ messages in thread
From: Yingjoe Chen @ 2015-03-13 14:40 UTC (permalink / raw)
To: Linus Walleij, Paul Bolle, Arnd Bergmann
Cc: srv_heupstream, Hongzhou Yang, Catalin Marinas, linux-kernel,
linux-gpio, linux-mediatek, Matthias Brugger, Yingjoe Chen,
linux-arm-kernel
Hi Linus,
Yet another version. Changed based on Arnd's suggestion to make config
options for PINCTRL_MT8135 & PINCTRL_MT8173 more consist. This is based
on mtk-staging in your tree. If you think this is OK, please applied or
squash this into previous change. Thanks.
Old patch can be found at:
http://lists.infradead.org/pipermail/linux-mediatek/2015-March/000057.html
Joe.C
8<-------------------------------------------------------
ARM64 maintainer doesn't want to add MACH_* for each SoC.
Adjust mt8173 pinctrl kconfig entry so user can manually select it.
Also make PINCTRL_MT8135 selectable when COMPILE_TEST is enabled.
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
---
drivers/pinctrl/mediatek/Kconfig | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig
index 49b8649..5983cf5 100644
--- a/drivers/pinctrl/mediatek/Kconfig
+++ b/drivers/pinctrl/mediatek/Kconfig
@@ -1,4 +1,4 @@
-if ARCH_MEDIATEK
+if ARCH_MEDIATEK || COMPILE_TEST
config PINCTRL_MTK_COMMON
bool
@@ -7,12 +7,17 @@ config PINCTRL_MTK_COMMON
select GPIOLIB
select OF_GPIO
+# For ARMv7 SoCs
config PINCTRL_MT8135
- def_bool MACH_MT8135
+ bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
+ default MACH_MT8135
select PINCTRL_MTK_COMMON
+# For ARMv8 SoCs
config PINCTRL_MT8173
- def_bool MACH_MT8173
+ bool "Mediatek MT8173 pin control"
+ depends on ARM64 || COMPILE_TEST
+ default ARM64 && ARCH_MEDIATEK
select PINCTRL_MTK_COMMON
endif
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v3] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
2015-03-13 14:40 ` [PATCH v3] " Yingjoe Chen
@ 2015-03-18 12:01 ` Linus Walleij
0 siblings, 0 replies; 11+ messages in thread
From: Linus Walleij @ 2015-03-18 12:01 UTC (permalink / raw)
To: Yingjoe Chen
Cc: Paul Bolle, Arnd Bergmann, srv_heupstream, Hongzhou Yang,
Catalin Marinas, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-mediatek, Matthias Brugger,
linux-arm-kernel@lists.infradead.org
On Fri, Mar 13, 2015 at 3:40 PM, Yingjoe Chen <yingjoe.chen@mediatek.com> wrote:
> Hi Linus,
>
> Yet another version. Changed based on Arnd's suggestion to make config
> options for PINCTRL_MT8135 & PINCTRL_MT8173 more consist. This is based
> on mtk-staging in your tree. If you think this is OK, please applied or
> squash this into previous change. Thanks.
>
> Old patch can be found at:
> http://lists.infradead.org/pipermail/linux-mediatek/2015-March/000057.html
>
> Joe.C
>
> 8<-------------------------------------------------------
> ARM64 maintainer doesn't want to add MACH_* for each SoC.
> Adjust mt8173 pinctrl kconfig entry so user can manually select it.
>
> Also make PINCTRL_MT8135 selectable when COMPILE_TEST is enabled.
>
> Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
This last version of the patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-03-18 12:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 6:24 [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Yingjoe Chen
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
2015-03-06 11:05 ` Paul Bolle
2015-03-09 8:26 ` Yingjoe Chen
2015-03-09 8:13 ` [PATCH] " Yingjoe Chen
2015-03-09 20:36 ` [PATCH 2/2] " Arnd Bergmann
2015-03-13 6:46 ` Yingjoe Chen
2015-03-13 10:08 ` Arnd Bergmann
2015-03-13 14:40 ` [PATCH v3] " Yingjoe Chen
2015-03-18 12:01 ` Linus Walleij
2015-03-06 13:18 ` [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Matthias Brugger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).