From patchwork Thu Jan 26 00:33:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 13116445 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE202C54E94 for ; Thu, 26 Jan 2023 00:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8OCX7QVpStKl8f59KEtlr+BLWQIEPB8i00Y5p2P6Q/4=; b=MXEiCL6u7n8NyD FWfrT6gn2KLRKCR3v/+nHglwHIlOjORzPHcypdWVBIINvzOAUiI22hbeI3/APFWyPRA1kCKXsvPnH dl17eU7SFsq7dcOkmEH0IffVXg+wA3XVgdD0lC7SUEA4TF79IFcfviGlJIj1i/5lg5NuaFExWAVWV jgIEXZ0xOu7b/+AaZFpb4q53bY/QfTWifnpq/nUBIQxDE+ArCcadIO01a1X5xRghRFsupYIoLHXgm fk7n92dBRNNdlc4z1QRDBuz1Pdbq5SvmBlv56YArpnae6C/HmHVx7GG1AFpZX8hbzDu5PvUXbxL9d 4uWZzA+PJKXG2dKZrPYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKqDU-009D4a-NT; Thu, 26 Jan 2023 00:34:12 +0000 Received: from fudo.makrotopia.org ([2a07:2ec0:3002::71]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKqDP-009D25-AZ; Thu, 26 Jan 2023 00:34:10 +0000 Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pKqDJ-000393-1D; Thu, 26 Jan 2023 01:34:01 +0100 Date: Thu, 26 Jan 2023 00:33:54 +0000 From: Daniel Golle To: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sean Wang , Linus Walleij , Matthias Brugger , Rob Herring , Krzysztof Kozlowski Cc: Chen-Yu Tsai , Miles Chen , Edward-JW Yang , Johnson Wang , Fabien Parent , Sam Shih , Jianhui Zhao Subject: [PATCH v2 0/2] add pinctrl driver for MT7981 SoC Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230125_163407_381638_BC1D4972 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MediaTek MT7981 SoC is the smaller sibbling of the MT7986 SoC. While MT7986 is already fully supported in vanilla Linux, only few things are missing to support also MT7981. Add pinctrl driver including devicetree bindings for MediaTek MT7981 which together with the added clock drivers[1] completes support for the most basic features of this SoC. A complete work-in-progress tree based on linux-next for testing is available via Github[2]: [1]: https://patchwork.kernel.org/project/linux-clk/list/?series=714497 [2]: https://github.com/dangowrt/linux Changes since v1: * cleaned up YAML bindings according to comments of Rob Herring * sync with pinctrl-mt7986.c to get pu/pd bias working Daniel Golle (2): dt-bindings: pinctrl: add bindings for MT7981 SoC pinctrl: add mt7981 pinctrl driver .../pinctrl/mediatek,mt7981-pinctrl.yaml | 475 ++++++++ drivers/pinctrl/mediatek/Kconfig | 5 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1048 +++++++++++++++++ 4 files changed, 1529 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt7981-pinctrl.yaml create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7981.c base-commit: 9fbee811e479aca2f3523787cae1f46553141b40 Reviewed-by: Rob Herring