From patchwork Fri Jan 10 10:42:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cathy Xu X-Patchwork-Id: 13934227 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 44E69E77188 for ; Fri, 10 Jan 2025 10:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: 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=C9hARpZb1un6HXEmRsJ7j249RR5J20aGvP0n2v1qFcA=; b=PgWwcib8W7IR9n/CrxPfQt7pWa WIdn7lG6lrLBMg40GaHh5lAQzppP477j/KZ5Z6WIZkP8ml5Ys1qOX7HhjKDCNAcSzW9+PTqjLAFFy 0FqMQnL2rLmMRsmd/WrgXR/PWCV1vq/PzSo8uxSmE0gIWc0O1kpWjSRqa8ZdY24YN+sGCiRelDM9t tvdLXypi/z6pRpE3cmdMS9eVSd+Esf7SAaDowYFKJfc6K83YteC40pmcR7f3Ki486fyrG4m9AXm6h YHUyraSIbKD/PDcnxlEXRmYQkC+2TNI+lrkO92UNOSE8Z2LpBvE4EoFAKvud98ePDApcPcrtR+F3L 7mXR9ScQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tWCY6-0000000F0SM-0GPE; Fri, 10 Jan 2025 10:47:30 +0000 Received: from [216.200.240.184] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tWCY1-0000000F0Qp-29E5; Fri, 10 Jan 2025 10:47:28 +0000 X-UUID: 432c01decf4011ef82ff63e91e7eb18c-20250110 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=C9hARpZb1un6HXEmRsJ7j249RR5J20aGvP0n2v1qFcA=; b=ctDyInVuzr5Y5coZwNpd/0sM5WdKge7UxVoCVVgiGwEgHe8qtkAYL8isZktJi6XAeg0gggG3Yx5pxfi988nP6tuHV4GTd5D/84eLmWuhpEH6FlUAzU1+jfSEPVeuxAt6kF0Gyc3wB+rl/2KIIxAcbppuqLtXA4vGvo6C/qeeURE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.46,REQID:057dc8f8-c69e-43df-a750-77a0e829dc1e,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:60aa074,CLOUDID:244cb10e-078a-483b-8929-714244d25c49,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:-3,IP:ni l,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 432c01decf4011ef82ff63e91e7eb18c-20250110 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1504183452; Fri, 10 Jan 2025 03:47:18 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 10 Jan 2025 18:47:15 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 10 Jan 2025 18:47:14 +0800 From: Cathy Xu To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang , Lei Xue , CC: , , , , , Cathy Xu Subject: [PATCH v2 0/2] MediaTek pinctrl patch on mt8196 Date: Fri, 10 Jan 2025 18:42:27 +0800 Message-ID: <20250110104703.13625-1-ot_cathy.xu@mediatek.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250110_024725_552706_8C3C2B32 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Changes in v2: - fix driver file's coding style. - add pinctrl binding document. Changes in v1: - add mt8196 pinctrl driver. - add pinmux definition file. Cathy Xu (2): dt-bindings: pinctrl: mediatek: add support for mt8196 pinctrl: mediatek: add mt8196 driver .../pinctrl/mediatek,mt8196-pinctrl.yaml | 266 ++ drivers/pinctrl/mediatek/Kconfig | 12 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8196.c | 1764 +++++++++++ drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 2789 +++++++++++++++++ include/dt-bindings/pinctrl/mt8196-pinfunc.h | 1572 ++++++++++ 6 files changed, 6404 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt8196-pinctrl.yaml create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8196.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h create mode 100644 include/dt-bindings/pinctrl/mt8196-pinfunc.h