All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
@ 2016-04-13  7:07 ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, linux-gpio,
	srv_heupstream, Yingjoe Chen, Hongzhou Yang, Eddie Huang

Biao Huang (1):
  arm: dts: Add pinctrl/GPIO/EINT node for mt2701

Erin Lo (1):
  ARM: mediatek: Add MT2701 config options for mediatek SoCs.

 arch/arm/boot/dts/mt2701.dtsi  |   19 +++++++++++++++++++
 arch/arm/mach-mediatek/Kconfig |    4 ++++
 2 files changed, 23 insertions(+)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
@ 2016-04-13  7:07 ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: linux-arm-kernel

Biao Huang (1):
  arm: dts: Add pinctrl/GPIO/EINT node for mt2701

Erin Lo (1):
  ARM: mediatek: Add MT2701 config options for mediatek SoCs.

 arch/arm/boot/dts/mt2701.dtsi  |   19 +++++++++++++++++++
 arch/arm/mach-mediatek/Kconfig |    4 ++++
 2 files changed, 23 insertions(+)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
@ 2016-04-13  7:07 ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, linux-gpio,
	srv_heupstream, Yingjoe Chen, Hongzhou Yang, Eddie Huang

Biao Huang (1):
  arm: dts: Add pinctrl/GPIO/EINT node for mt2701

Erin Lo (1):
  ARM: mediatek: Add MT2701 config options for mediatek SoCs.

 arch/arm/boot/dts/mt2701.dtsi  |   19 +++++++++++++++++++
 arch/arm/mach-mediatek/Kconfig |    4 ++++
 2 files changed, 23 insertions(+)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs.
  2016-04-13  7:07 ` Biao Huang
  (?)
@ 2016-04-13  7:07   ` Biao Huang
  -1 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, linux-gpio,
	srv_heupstream, Yingjoe Chen, Hongzhou Yang, Eddie Huang, Erin Lo

From: Erin Lo <erin.lo@mediatek.com>

The upcoming MTK pinctrl driver have a big pin table for each SoC
and we don't want to bloat the kernel binary if we don't need it.
Add config options so we can build for one SoC only. Add MT2701.

Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/mach-mediatek/Kconfig |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index 8ced4ad..70e49d5 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -10,6 +10,10 @@ menuconfig ARCH_MEDIATEK
 
 if ARCH_MEDIATEK
 
+config MACH_MT2701
+	bool "MediaTek MT2701 SoCs support"
+	default ARCH_MEDIATEK
+
 config MACH_MT6589
 	bool "MediaTek MT6589 SoCs support"
 	default ARCH_MEDIATEK
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs.
@ 2016-04-13  7:07   ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: linux-arm-kernel

From: Erin Lo <erin.lo@mediatek.com>

The upcoming MTK pinctrl driver have a big pin table for each SoC
and we don't want to bloat the kernel binary if we don't need it.
Add config options so we can build for one SoC only. Add MT2701.

Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/mach-mediatek/Kconfig |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index 8ced4ad..70e49d5 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -10,6 +10,10 @@ menuconfig ARCH_MEDIATEK
 
 if ARCH_MEDIATEK
 
+config MACH_MT2701
+	bool "MediaTek MT2701 SoCs support"
+	default ARCH_MEDIATEK
+
 config MACH_MT6589
 	bool "MediaTek MT6589 SoCs support"
 	default ARCH_MEDIATEK
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs.
@ 2016-04-13  7:07   ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, linux-gpio,
	srv_heupstream, Yingjoe Chen, Hongzhou Yang, Eddie Huang, Erin Lo

From: Erin Lo <erin.lo@mediatek.com>

The upcoming MTK pinctrl driver have a big pin table for each SoC
and we don't want to bloat the kernel binary if we don't need it.
Add config options so we can build for one SoC only. Add MT2701.

Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/mach-mediatek/Kconfig |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index 8ced4ad..70e49d5 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -10,6 +10,10 @@ menuconfig ARCH_MEDIATEK
 
 if ARCH_MEDIATEK
 
+config MACH_MT2701
+	bool "MediaTek MT2701 SoCs support"
+	default ARCH_MEDIATEK
+
 config MACH_MT6589
 	bool "MediaTek MT6589 SoCs support"
 	default ARCH_MEDIATEK
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701
  2016-04-13  7:07 ` Biao Huang
  (?)
@ 2016-04-13  7:07   ` Biao Huang
  -1 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, linux-gpio,
	srv_heupstream, Yingjoe Chen, Hongzhou Yang, Eddie Huang,
	Biao Huang

Add pinctrl and GPIO node to mt2701.dtsi

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
This patch has been reverted in 7aec2fd74add9c4a61d77f51c805b4f7592956da
We have checked it can build pass in kernel-4.6 rc1
---
 arch/arm/boot/dts/mt2701.dtsi |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi
index 88364f0..da5fef8 100644
--- a/arch/arm/boot/dts/mt2701.dtsi
+++ b/arch/arm/boot/dts/mt2701.dtsi
@@ -17,6 +17,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include "skeleton64.dtsi"
+#include "mt2701-pinfunc.h"
 
 / {
 	compatible = "mediatek,mt2701";
@@ -115,6 +116,24 @@
 		#reset-cells = <1>;
 	};
 
+	pio: pinctrl@10005000 {
+		compatible = "mediatek,mt2701-pinctrl";
+		reg = <0 0x1000b000 0 0x1000>;
+		mediatek,pctl-regmap = <&syscfg_pctl_a>;
+		pins-are-numbered;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	syscfg_pctl_a: syscfg@10005000 {
+		compatible = "mediatek,mt2701-pctl-a-syscfg", "syscon";
+		reg = <0 0x10005000 0 0x1000>;
+	};
+
 	scpsys: scpsys@10006000 {
 		compatible = "mediatek,mt2701-scpsys", "syscon";
 		#power-domain-cells = <1>;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701
@ 2016-04-13  7:07   ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: linux-arm-kernel

Add pinctrl and GPIO node to mt2701.dtsi

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
This patch has been reverted in 7aec2fd74add9c4a61d77f51c805b4f7592956da
We have checked it can build pass in kernel-4.6 rc1
---
 arch/arm/boot/dts/mt2701.dtsi |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi
index 88364f0..da5fef8 100644
--- a/arch/arm/boot/dts/mt2701.dtsi
+++ b/arch/arm/boot/dts/mt2701.dtsi
@@ -17,6 +17,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include "skeleton64.dtsi"
+#include "mt2701-pinfunc.h"
 
 / {
 	compatible = "mediatek,mt2701";
@@ -115,6 +116,24 @@
 		#reset-cells = <1>;
 	};
 
+	pio: pinctrl at 10005000 {
+		compatible = "mediatek,mt2701-pinctrl";
+		reg = <0 0x1000b000 0 0x1000>;
+		mediatek,pctl-regmap = <&syscfg_pctl_a>;
+		pins-are-numbered;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	syscfg_pctl_a: syscfg at 10005000 {
+		compatible = "mediatek,mt2701-pctl-a-syscfg", "syscon";
+		reg = <0 0x10005000 0 0x1000>;
+	};
+
 	scpsys: scpsys at 10006000 {
 		compatible = "mediatek,mt2701-scpsys", "syscon";
 		#power-domain-cells = <1>;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701
@ 2016-04-13  7:07   ` Biao Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Biao Huang @ 2016-04-13  7:07 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, linux-gpio,
	srv_heupstream, Yingjoe Chen, Hongzhou Yang, Eddie Huang,
	Biao Huang

Add pinctrl and GPIO node to mt2701.dtsi

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
This patch has been reverted in 7aec2fd74add9c4a61d77f51c805b4f7592956da
We have checked it can build pass in kernel-4.6 rc1
---
 arch/arm/boot/dts/mt2701.dtsi |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi
index 88364f0..da5fef8 100644
--- a/arch/arm/boot/dts/mt2701.dtsi
+++ b/arch/arm/boot/dts/mt2701.dtsi
@@ -17,6 +17,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include "skeleton64.dtsi"
+#include "mt2701-pinfunc.h"
 
 / {
 	compatible = "mediatek,mt2701";
@@ -115,6 +116,24 @@
 		#reset-cells = <1>;
 	};
 
+	pio: pinctrl@10005000 {
+		compatible = "mediatek,mt2701-pinctrl";
+		reg = <0 0x1000b000 0 0x1000>;
+		mediatek,pctl-regmap = <&syscfg_pctl_a>;
+		pins-are-numbered;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	syscfg_pctl_a: syscfg@10005000 {
+		compatible = "mediatek,mt2701-pctl-a-syscfg", "syscon";
+		reg = <0 0x10005000 0 0x1000>;
+	};
+
 	scpsys: scpsys@10006000 {
 		compatible = "mediatek,mt2701-scpsys", "syscon";
 		#power-domain-cells = <1>;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
  2016-04-13  7:07 ` Biao Huang
@ 2016-04-13  9:32   ` Matthias Brugger
  -1 siblings, 0 replies; 11+ messages in thread
From: Matthias Brugger @ 2016-04-13  9:32 UTC (permalink / raw)
  To: Biao Huang, Linus Walleij
  Cc: srv_heupstream, Hongzhou Yang, linux-kernel, linux-gpio,
	linux-mediatek, Yingjoe Chen, Eddie Huang, linux-arm-kernel



On 13/04/16 09:07, Biao Huang wrote:
> Biao Huang (1):
>    arm: dts: Add pinctrl/GPIO/EINT node for mt2701
>
> Erin Lo (1):
>    ARM: mediatek: Add MT2701 config options for mediatek SoCs.
>
>   arch/arm/boot/dts/mt2701.dtsi  |   19 +++++++++++++++++++
>   arch/arm/mach-mediatek/Kconfig |    4 ++++
>   2 files changed, 23 insertions(+)
>

Applied to v4.6-next/[dts,kconfig].

Thanks.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
@ 2016-04-13  9:32   ` Matthias Brugger
  0 siblings, 0 replies; 11+ messages in thread
From: Matthias Brugger @ 2016-04-13  9:32 UTC (permalink / raw)
  To: linux-arm-kernel



On 13/04/16 09:07, Biao Huang wrote:
> Biao Huang (1):
>    arm: dts: Add pinctrl/GPIO/EINT node for mt2701
>
> Erin Lo (1):
>    ARM: mediatek: Add MT2701 config options for mediatek SoCs.
>
>   arch/arm/boot/dts/mt2701.dtsi  |   19 +++++++++++++++++++
>   arch/arm/mach-mediatek/Kconfig |    4 ++++
>   2 files changed, 23 insertions(+)
>

Applied to v4.6-next/[dts,kconfig].

Thanks.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-04-13  9:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-13  7:07 [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701 Biao Huang
2016-04-13  7:07 ` Biao Huang
2016-04-13  7:07 ` Biao Huang
2016-04-13  7:07 ` [RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs Biao Huang
2016-04-13  7:07   ` Biao Huang
2016-04-13  7:07   ` Biao Huang
2016-04-13  7:07 ` [RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701 Biao Huang
2016-04-13  7:07   ` Biao Huang
2016-04-13  7:07   ` Biao Huang
2016-04-13  9:32 ` [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver " Matthias Brugger
2016-04-13  9:32   ` Matthias Brugger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.