Skip to contentSkip to conversation

pinctrl: mediatek: Modify pinctrl bindings for mt7623

PATCH In review John Crispin 2 participants 6 messages Feb 19, 2016

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 pinctrl: mediatek: Modify pinctrl bindings for mt7623

Cc devicetree at vger.kernel.org

---
please apply to the devel-mt2701 branch

Changes in V2
* make mt7623-pinfunc.h part of patch 1/2
* make sure the list stays sorted

 .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |    1 +
 include/dt-bindings/pinctrl/mt7623-pinfunc.h       |  520 ++++++++++++++++++++
 2 files changed, 521 insertions(+)
 create mode 100644 include/dt-bindings/pinctrl/mt7623-pinfunc.h
Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt +1 -0
index 9ffb0b2..17631d0 100644
@@ -6,6 +6,7 @@ Required properties:
 - compatible: value should be one of the following.
 	"mediatek,mt2701-pinctrl", compatible with mt2701 pinctrl.
 	"mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
+	"mediatek,mt7623-pinctrl", compatible with mt7623 pinctrl.
 	"mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.
 	"mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
 	"mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
include/dt-bindings/pinctrl/mt7623-pinfunc.h new file +520 -0

520 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 2/2 pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for MT7623

Add the driver and header files required to make pinctrl work on MediaTek MT7623.

---
please apply to the devel-mt2701 branch

Changes in V2
* fix typo in Kconfig
* move mt7623-pinfunc.h into 1/2

 drivers/pinctrl/mediatek/Kconfig              |    6 +
 drivers/pinctrl/mediatek/Makefile             |    1 +
 drivers/pinctrl/mediatek/pinctrl-mt7623.c     |  380 +++++
 drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h | 1936 +++++++++++++++++++++++++
 4 files changed, 2323 insertions(+)
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7623.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
drivers/pinctrl/mediatek/Kconfig +6 -0
index 13e9939..78654a8 100644
@@ -15,6 +15,12 @@ config PINCTRL_MT2701
 	default MACH_MT2701
 	select PINCTRL_MTK_COMMON
 
+config PINCTRL_MT7623
+	bool "Mediatek MT7623 pin control" if COMPILE_TEST && !MACH_MT7623
+	depends on OF
+	default MACH_MT7623
+	select PINCTRL_MTK_COMMON
+
 config PINCTRL_MT8135
 	bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
 	depends on OF
drivers/pinctrl/mediatek/Makefile +1 -0
index da30314..1be2f3f 100644
@@ -3,6 +3,7 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)	+= pinctrl-mtk-common.o
 
 # SoC Drivers
 obj-$(CONFIG_PINCTRL_MT2701)		+= pinctrl-mt2701.o
+obj-$(CONFIG_PINCTRL_MT7623)		+= pinctrl-mt7623.o
 obj-$(CONFIG_PINCTRL_MT8135)		+= pinctrl-mt8135.o
 obj-$(CONFIG_PINCTRL_MT8127)		+= pinctrl-mt8127.o
 obj-$(CONFIG_PINCTRL_MT8173)		+= pinctrl-mt8173.o
drivers/pinctrl/mediatek/pinctrl-mt7623.c new file +380 -0

380 lines not on this page · raw message

drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h new file +1936 -0

1,936 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#2 lore raw

Re: [PATCH V2 2/2] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for MT7623

Quoted 10 lines · John Crispin

Add the driver and header files required to make pinctrl work on MediaTek MT7623.

---
please apply to the devel-mt2701 branch

Changes in V2
* fix typo in Kconfig
* move mt7623-pinfunc.h into 1/2

Patch applied, thanks for your efforts to support this SoC. I had to do some manual fixup for Makefile, I think it looks allright now.

Yours,
Linus Walleij

#3 lore raw
In reply to John Crispin
Quoted 8 lines · John Crispin
Cc devicetree at vger.kernel.org

---
please apply to the devel-mt2701 branch

Changes in V2
* make mt7623-pinfunc.h part of patch 1/2
* make sure the list stays sorted

Patch applied unless the Mediatek maintainers come with serious remarks (I can always revert).

Only minor comments from Yingjoe on the previous version so I guess it is finished.

MTK guys: do you even have this SoC? It appears MTK is churning out a plethora of SoCs and then they land in the lap of the OpenWRT developers before the MTK maintainers even start to look at it...

Yours,
Linus Walleij

#4 lore raw
Quoted 17 lines · Linus Walleij
Quoted 8 lines · John Crispin
Cc devicetree at vger.kernel.org

---
please apply to the devel-mt2701 branch

Changes in V2
* make mt7623-pinfunc.h part of patch 1/2
* make sure the list stays sorted

Patch applied unless the Mediatek maintainers come with serious remarks (I can always revert).

Only minor comments from Yingjoe on the previous version so I guess it is finished.

Quoted 7 lines

MTK guys: do you even have this SoC? It appears MTK is churning out a plethora of SoCs and then they land in the lap of the OpenWRT developers before the MTK maintainers even start to look at it...

Yours,
Linus Walleij

I am doing this work in close collaboration with MTK. It is contractual work. MTK is huge and has many BUs, one of them is WCN, formerly known as Ralink. I have supported their MIPS silicon for many years now so asking me to also take care of the Wireless SoCs based on ARM was the natural next step.

John

#5 lore raw
Quoted 26 lines · John Crispin
Quoted 17 lines · Linus Walleij
Quoted 8 lines · John Crispin
Cc devicetree at vger.kernel.org

---
please apply to the devel-mt2701 branch

Changes in V2
* make mt7623-pinfunc.h part of patch 1/2
* make sure the list stays sorted

Patch applied unless the Mediatek maintainers come with serious remarks (I can always revert).

Only minor comments from Yingjoe on the previous version so I guess it is finished.

Quoted 7 lines

MTK guys: do you even have this SoC? It appears MTK is churning out a plethora of SoCs and then they land in the lap of the OpenWRT developers before the MTK maintainers even start to look at it...

Yours,
Linus Walleij

Quoted 5 lines

I am doing this work in close collaboration with MTK. It is contractual work. MTK is huge and has many BUs, one of them is WCN, formerly known as Ralink. I have supported their MIPS silicon for many years now so asking me to also take care of the Wireless SoCs based on ARM was the natural next step.

Awesome!

Keep doing what you're doing :)

Yours,
Linus Walleij