From patchwork Wed Feb 16 03:21:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Liu X-Patchwork-Id: 543144 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C120C433F5 for ; Wed, 16 Feb 2022 03:21:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344215AbiBPDVy (ORCPT ); Tue, 15 Feb 2022 22:21:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbiBPDVw (ORCPT ); Tue, 15 Feb 2022 22:21:52 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB411400F; Tue, 15 Feb 2022 19:21:35 -0800 (PST) X-UUID: 3686b0aa786b4a78a5e0ac1dd57d9d1a-20220216 X-UUID: 3686b0aa786b4a78a5e0ac1dd57d9d1a-20220216 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1363640122; Wed, 16 Feb 2022 11:21:31 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Feb 2022 11:21:30 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Feb 2022 11:21:30 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 16 Feb 2022 11:21:29 +0800 From: Guodong Liu To: Linus Walleij , Rob Herring , Matthias Brugger , Sean Wang CC: Sean Wang , , , , , , , Guodong Liu Subject: [PATCH v5 0/3] pinctrl: mediatek: Support pinctrl driver on mt8186 Date: Wed, 16 Feb 2022 11:21:21 +0800 Message-ID: <20220216032124.28067-1-guodong.liu@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org changes since v4: - update mt8186 pull up RSEL type define value - update mt8186 pull up RSEL type si unit value(ohm) - update macro definition name - update mt8186 bias resistance selectio register description changes since v3: - remove generic descriptions for common properties - remove quotes - drop "." - drop "-" on description - move partial "bias-pull-up" description info to the example - don't break the code into two lines, maximux 84 columns is fine - add the required fixes tag changes since v2: - update reg property - update reg-names property - sync rsel resistance selection property same as patch 3 - repair constraints is not indented correctly for bias-pull-{up,down} - add "type: boolean" to the list of valid values. This corresponds to having bias-pull-{up,down} without any arguments. - add dual file license for file "mt8186-pinfunc.h" - add patch 3 to change "mediatek,rsel_resistance_in_si_unit" to "mediatek,rsel-resistance-in-si-unit" changes since v1: - add default pinctrl config to consistent with other MTK pinctrl drivers Patch 1 add pinctrl file and binding document. Patch 2 add pinctrl chip driver on mt8186. Patch 3 canonical rsel resistance selection property. Guodong Liu (3): dt-bindings: pinctrl: mt8186: add pinctrl file and binding document pinctrl: add pinctrl driver on mt8186 pinctrl: canonical rsel resistance selection property .../bindings/pinctrl/pinctrl-mt8186.yaml | 297 +++ drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8186.c | 1271 ++++++++++ drivers/pinctrl/mediatek/pinctrl-mtk-mt8186.h | 2186 +++++++++++++++++ drivers/pinctrl/mediatek/pinctrl-paris.c | 2 +- include/dt-bindings/pinctrl/mt8186-pinfunc.h | 1174 +++++++++ 7 files changed, 4937 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-mt8186.yaml create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8186.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8186.h create mode 100644 include/dt-bindings/pinctrl/mt8186-pinfunc.h