All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/22] Unify MediaTek pinctrl in preparation for MT8183 and MT6765
@ 2018-09-08 11:07 ` sean.wang
  0 siblings, 0 replies; 140+ messages in thread
From: sean.wang @ 2018-09-08 11:07 UTC (permalink / raw)
  To: linus.walleij, linux-mediatek
  Cc: linux-arm-kernel, linux-gpio, linux-kernel, Sean Wang

From: Sean Wang <sean.wang@mediatek.com>

v2 and changes since v1:

add new patches
* Add additional patch 17 to 22 to support MT8183 SoC

update the existing patches
* Patch 2: Removed unnecessary blank line and headers included.
* Patch 4: Extended the size eint number can hold since it's possible more than 254 pins in certain SoC.
* Patch 11: Added cosmetic patch and fixed an error logic on invalid condition.
* Patch 14: Removed unused macro and given a better naming to the name of the default bases.

v1:

Irregular register arrangement and their logic access from various MediaTek
SoCs being introduced already causes pinctrl-mtk-common to bloat and became
really hard to maintain so that the patch creates pinctrl-mtk-common-v2 based
on the core of mt7622 pinctrl to try make the register operations to be simple.

The goals pinctrl-mtk-common-v2 want to achieve are to hopefully support
all of MediaTek SoCs, and two kinds of dt-bindings being supported,
Linux generic pinctrl dt-binding which mt762x like to support and MediaTek
vendor per-pin dt-binding the other SoCs support the MT8183 and MT6765 incline
to make use of.

The patch starts to refactor MT7622 pinctrl driver first with splitting
out these portable ways from there such as table-based register operation
and the other operations in common in the both kinds of driver.

Sean Wang (19):
  pinctrl: mediatek: add pinctrl-mtk-common-v2 for all MediaTek pinctrls
  pinctrl: mediatek: add pinctrl-moore that implements the generic
    pinctrl dt-bindings
  pinctrl: mediatek: extend struct mtk_pin_field_calc to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: extend struct mtk_pin_desc to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: extend struct mtk_pin_soc to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add driving strength related support to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add drv register support to pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add pull related support to pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add advanced pull related support to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add ies register support to pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add pullen, pullsel register support to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add MT7623 pinctrl driver based on generic pinctrl
    binding
  pinctrl: mediatek: use pin descriptor all in pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add multiple register bases support to
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: adjust error code and message when some register
    not supported is found
  pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver
    depends on
  pinctrl: mediatek: extend advanced pull support in
    pinctrl-mtk-common-v2.c
  pinctrl: mediatek: extend eint build to pinctrl-mtk-common-v2.c
  pinctrl: mediatek: add eint support to MT8183 pinctrl driver

Zhiyong Tao (3):
  pinctrl: mediatek: add pinctrl-paris that implements the vendor
    dt-bindings
  pinctrl: mediatek: add MT8183 pinctrl driver
  pintcrl: mediatek: add pull tweaks for I2C related pins on MT8183

 drivers/pinctrl/mediatek/Kconfig                 |   41 +-
 drivers/pinctrl/mediatek/Makefile                |    4 +
 drivers/pinctrl/mediatek/pinctrl-moore.c         |  689 ++++++++
 drivers/pinctrl/mediatek/pinctrl-moore.h         |   53 +
 drivers/pinctrl/mediatek/pinctrl-mt7622.c        | 1407 +++-------------
 drivers/pinctrl/mediatek/pinctrl-mt7623.c        | 1441 ++++++++++++++++
 drivers/pinctrl/mediatek/pinctrl-mt8183.c        |  544 ++++++
 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c |  670 ++++++++
 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h |  288 ++++
 drivers/pinctrl/mediatek/pinctrl-mtk-mt8183.h    | 1916 ++++++++++++++++++++++
 drivers/pinctrl/mediatek/pinctrl-paris.c         |  906 ++++++++++
 drivers/pinctrl/mediatek/pinctrl-paris.h         |   65 +
 12 files changed, 6833 insertions(+), 1191 deletions(-)
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-moore.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-moore.h
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7623.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8183.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8183.h
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-paris.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-paris.h

-- 
2.7.4

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

end of thread, other threads:[~2018-09-25 13:09 UTC | newest]

Thread overview: 140+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-08 11:07 [PATCH v2 00/22] Unify MediaTek pinctrl in preparation for MT8183 and MT6765 sean.wang
2018-09-08 11:07 ` sean.wang at mediatek.com
2018-09-08 11:07 ` sean.wang
2018-09-08 11:07 ` [PATCH v2 03/22] pinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:43   ` Linus Walleij
2018-09-18 19:43     ` Linus Walleij
2018-09-18 19:43     ` Linus Walleij
     [not found] ` <cover.1536404280.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2018-09-08 11:07   ` [PATCH v2 01/22] pinctrl: mediatek: add pinctrl-mtk-common-v2 for all MediaTek pinctrls sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:36     ` Linus Walleij
2018-09-18 19:36       ` Linus Walleij
2018-09-18 19:36       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 02/22] pinctrl: mediatek: add pinctrl-moore that implements the generic pinctrl dt-bindings sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:42     ` Linus Walleij
2018-09-18 19:42       ` Linus Walleij
2018-09-18 19:42       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 04/22] pinctrl: mediatek: extend struct mtk_pin_desc to pinctrl-mtk-common-v2.c sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:44     ` Linus Walleij
2018-09-18 19:44       ` Linus Walleij
2018-09-18 19:44       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 05/22] pinctrl: mediatek: extend struct mtk_pin_soc " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:45     ` Linus Walleij
2018-09-18 19:45       ` Linus Walleij
2018-09-18 19:45       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 06/22] pinctrl: mediatek: add driving strength related support " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:46     ` Linus Walleij
2018-09-18 19:46       ` Linus Walleij
2018-09-18 19:46       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 07/22] pinctrl: mediatek: add drv register " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:47     ` Linus Walleij
2018-09-18 19:47       ` Linus Walleij
2018-09-18 19:47       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 08/22] pinctrl: mediatek: add pull related " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:48     ` Linus Walleij
2018-09-18 19:48       ` Linus Walleij
2018-09-18 19:48       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 09/22] pinctrl: mediatek: add advanced " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:49     ` Linus Walleij
2018-09-18 19:49       ` Linus Walleij
2018-09-18 19:49       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 10/22] pinctrl: mediatek: add ies register " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:50     ` Linus Walleij
2018-09-18 19:50       ` Linus Walleij
2018-09-18 19:50       ` Linus Walleij
2018-09-08 11:07   ` [PATCH v2 11/22] pinctrl: mediatek: add pullen, pullsel " sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-09-08 11:07     ` sean.wang at mediatek.com
2018-09-18 19:51     ` Linus Walleij
2018-09-18 19:51       ` Linus Walleij
2018-09-18 19:51       ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 12/22] pinctrl: mediatek: add MT7623 pinctrl driver based on generic pinctrl binding sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:52   ` Linus Walleij
2018-09-18 19:52     ` Linus Walleij
2018-09-18 19:52     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 13/22] pinctrl: mediatek: use pin descriptor all in pinctrl-mtk-common-v2.c sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:53   ` Linus Walleij
2018-09-18 19:53     ` Linus Walleij
2018-09-18 19:53     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 14/22] pinctrl: mediatek: add multiple register bases support to pinctrl-mtk-common-v2.c sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:56   ` Linus Walleij
2018-09-18 19:56     ` Linus Walleij
2018-09-18 19:56     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 15/22] pinctrl: mediatek: adjust error code and message when some register not supported is found sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:57   ` Linus Walleij
2018-09-18 19:57     ` Linus Walleij
2018-09-18 19:57     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 16/22] pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver depends on sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:58   ` Linus Walleij
2018-09-18 19:58     ` Linus Walleij
2018-09-18 19:58     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 17/22] pinctrl: mediatek: add pinctrl-paris that implements the vendor dt-bindings sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 19:59   ` Linus Walleij
2018-09-18 19:59     ` Linus Walleij
2018-09-18 19:59     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 18/22] pinctrl: mediatek: add MT8183 pinctrl driver sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 20:01   ` Linus Walleij
2018-09-18 20:01     ` Linus Walleij
2018-09-18 20:01     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 19/22] pinctrl: mediatek: extend advanced pull support in pinctrl-mtk-common-v2.c sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 20:02   ` Linus Walleij
2018-09-18 20:02     ` Linus Walleij
2018-09-18 20:02     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 20/22] pintcrl: mediatek: add pull tweaks for I2C related pins on MT8183 sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 20:03   ` Linus Walleij
2018-09-18 20:03     ` Linus Walleij
2018-09-18 20:03     ` Linus Walleij
2018-09-08 11:07 ` [PATCH v2 21/22] pinctrl: mediatek: extend eint build to pinctrl-mtk-common-v2.c sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-08 11:07 ` [PATCH v2 22/22] pinctrl: mediatek: add eint support to MT8183 pinctrl driver sean.wang
2018-09-08 11:07   ` sean.wang at mediatek.com
2018-09-08 11:07   ` sean.wang
2018-09-18 22:07 ` [PATCH v2 00/22] Unify MediaTek pinctrl in preparation for MT8183 and MT6765 Linus Walleij
2018-09-18 22:07   ` Linus Walleij
2018-09-18 22:07   ` Linus Walleij
2018-09-19  2:54   ` Sean Wang
2018-09-19  2:54     ` Sean Wang
2018-09-19  2:54     ` Sean Wang
2018-09-19  4:37     ` Manivannan Sadhasivam
2018-09-19  4:37       ` Manivannan Sadhasivam
2018-09-19  4:37       ` Manivannan Sadhasivam
2018-09-21  4:22       ` Sean Wang
2018-09-21  4:22         ` Sean Wang
2018-09-21  4:22         ` Sean Wang
2018-09-25 10:48         ` Matthias Brugger
2018-09-25 10:48           ` Matthias Brugger
2018-09-25 10:48           ` Matthias Brugger
2018-09-25 13:07           ` Manivannan Sadhasivam
2018-09-25 13:07             ` Manivannan Sadhasivam
2018-09-25 13:07             ` Manivannan Sadhasivam
2018-09-25 13:09             ` Manivannan Sadhasivam
2018-09-25 13:09               ` Manivannan Sadhasivam
2018-09-25 13:09               ` Manivannan Sadhasivam

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.