Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp540231imm; Sat, 8 Sep 2018 04:09:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZSomWWDUDsvGhzqizPArFsuS3rcWYHyEypb1qzZ+IaJUpXvxE27go70MBz/pHMxDaT+8v7 X-Received: by 2002:a17:902:c8:: with SMTP id a66-v6mr12494929pla.269.1536404958036; Sat, 08 Sep 2018 04:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536404958; cv=none; d=google.com; s=arc-20160816; b=mxcME9xHa3Y0oxVNa82a002Ohu0kR/HNFOY7p+DEcpWBkb3e3KE85kKbspJ1EmoEe1 qEIy1X4YOIUIYCnbbzt7FhxjIFc8bOuZam0zQ6up11DdubnOV+g64zNFa999/gxxhdHW +s3ax/p6mkTJHiEOXfbySDH6KLCPzBXMnqu8/KNdbnmbc5o2TT1VtlJ/11FgVbF/nrVi KESqULjuzZxIv2/A9GhrRajYdJNieOAKFFAxr4gMlwkeH8h+B3bi16kYSYajYBNhTGcl Hm8rLn9f9lz/EnDEjlOTitEJFPBKa+9MYN3iSkuWAA5YbKlcXqrZztX/IWt+O3BOFkcW lt8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=K7LPyaGKfxcNE+3U0ZIDdy/nmOfnwDcA35pqwwvvw2k=; b=QrfPKuLv5+Y+XTgrcr18vMhUiSMaqRUAOzcr5S9TarJh2rKHfZb5eV4Iai/QMGmvkV AUzzjXAjkNOsIa5CcXHo4oPk0HInaJvPL5Ar6TzG1jp34Ntl1NvtGbUMwajtluSvYPLq zLZk6VCiuBOENmgKKAqlgR3Msvw+/OHt+jgxMA8HVzAruojgvJtxkH0LkGPb2OL4GkCV CpzCse86YYNZw0e6qC/GioCS2xhlhp9Z979ixajT24t2NqmWGbXhIJjAk9r6wl4ie8FK uXQwvJLZ40CLxfSqwD9JfSLrijAj3jJuKHpR3vNMgyMKIN98S/DSCsz2kLIdRb+t/GjM MUFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22-v6si10263466pgv.323.2018.09.08.04.09.02; Sat, 08 Sep 2018 04:09:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726632AbeIHPxM (ORCPT + 99 others); Sat, 8 Sep 2018 11:53:12 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:28557 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726315AbeIHPxM (ORCPT ); Sat, 8 Sep 2018 11:53:12 -0400 X-UUID: c6059b04d56e47ad80ec7912309c2dbd-20180908 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 222446201; Sat, 08 Sep 2018 19:07:41 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sat, 8 Sep 2018 19:07:39 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sat, 8 Sep 2018 19:07:39 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v2 00/22] Unify MediaTek pinctrl in preparation for MT8183 and MT6765 Date: Sat, 8 Sep 2018 19:07:16 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang 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