Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1377556 > unrolled thread

[RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

Started byBiao Huang <biao.huang@mediatek.com>
First post2016-04-13 09:10 +0200
Last post2016-04-13 11:40 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701 Biao Huang <biao.huang@mediatek.com> - 2016-04-13 09:10 +0200
    [RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701 Biao Huang <biao.huang@mediatek.com> - 2016-04-13 09:10 +0200
    [RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs. Biao Huang <biao.huang@mediatek.com> - 2016-04-13 09:10 +0200
    Re: [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT  driver for mt2701 Matthias Brugger <matthias.bgg@gmail.com> - 2016-04-13 11:40 +0200

#1377556 — [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

FromBiao Huang <biao.huang@mediatek.com>
Date2016-04-13 09:10 +0200
Subject[RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
Message-ID<rnn62-5Id-1@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1377561 — [RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

FromBiao Huang <biao.huang@mediatek.com>
Date2016-04-13 09:10 +0200
Subject[RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701
Message-ID<rnn62-5Id-17@gated-at.bofh.it>
In reply to#1377556
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

[toc] | [prev] | [next] | [standalone]


#1377562 — [RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

FromBiao Huang <biao.huang@mediatek.com>
Date2016-04-13 09:10 +0200
Subject[RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs.
Message-ID<rnn63-5Id-21@gated-at.bofh.it>
In reply to#1377556
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

[toc] | [prev] | [next] | [standalone]


#1377696 — Re: [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

FromMatthias Brugger <matthias.bgg@gmail.com>
Date2016-04-13 11:40 +0200
SubjectRe: [RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701
Message-ID<rnprd-7F0-29@gated-at.bofh.it>
In reply to#1377556

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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web