From patchwork Tue Apr 1 05:48:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cathy Xu X-Patchwork-Id: 14034361 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 6D186C36014 for ; Tue, 1 Apr 2025 05:51:07 +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=oLzSObFZ8GWkeA06gsbil9g+nG95as4Jy0XV74XNVOs=; b=x0Z343WR7ulO3qS6I9mQYHKhDk yO2uT3xA5VEQV4NeZcYZM1sV01ibrtA8I0YVH6PxV6DltJImsohRCz6FHNVY8ffXhLnHtprjeF0iE Ka98VklGqPvaFnMFOh5tnirtRN7ph0gU9rWw/tYSLBVPSknGF/Be4u7l8uJpYMsA1EwDTLeW5trqV /gFjs5LFn7H5uo6RDu21LlmPM0PJIAA9anwmW63Q1KP8Zqs3b9i9PfhVx4N8Mmmz5df2BPB+F5jC3 o7kQiYAzdNEdGLTJBZ9y84ebPOSZcZEOa2cgAqRT/41xVkjQej2Tc5V0H+Z4sW2Ri7WVOgo1zUL8u DJztR/pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzUWV-000000021MK-0QQf; Tue, 01 Apr 2025 05:50:55 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzUUh-000000021Ap-0GhO; Tue, 01 Apr 2025 05:49:04 +0000 X-UUID: 00be00060ebd11f0a1e849db4cc18d44-20250331 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=oLzSObFZ8GWkeA06gsbil9g+nG95as4Jy0XV74XNVOs=; b=aUS77l+67qTKhG9GL93v3Hy3MSGOpMdhYeOiO077pRuC3h0AFHyo+qBvQolnngilnZOp9QA8fLmnyIvvaF8DyHGpZelq8Kamk6GzeiSh/ZJTh0zX5DVv+5g5Oh6atiUEvClZYJGHLN2bo6aYkUd1OyO6Z8iBGCMv2R9zkw1ExwA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.2.1,REQID:6c4dabb9-0cef-4b50-9112-09c935af0f7a,IP:0,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:0 X-CID-META: VersionHash:0ef645f,CLOUDID:6066cf4a-a527-43d8-8af6-bc8b32d9f5e9,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: 00be00060ebd11f0a1e849db4cc18d44-20250331 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1582804349; Mon, 31 Mar 2025 22:48:57 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.39; Tue, 1 Apr 2025 13:48:54 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1258.39 via Frontend Transport; Tue, 1 Apr 2025 13:48:53 +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 v6 0/3] pinctrl: mediatek: Add pinctrl driver on mt8196 Date: Tue, 1 Apr 2025 13:48:09 +0800 Message-ID: <20250401054837.1551-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-20250331_224903_115843_8F82847D X-CRM114-Status: GOOD ( 11.46 ) 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 Changes in v6: - Simplify the register description and adjust the order of properties in dt-binding. Changes in v5: - Remove header file to fix dt-binding check error. - Add /* sentinel */ in pinctrl-mt8196.c. Changes in v4: - Add rsel-resistence-in-si-unit and remove RSEL macro magic number in mediatek,mt8196-pinctrl.yaml. - Add values in SI units option to |struct mtk_pin_soc| in pinctrl-mt8196.c. - Move pinmux macro header file to arch/arm64/boot/dts/mediatek. Changes in v3: - Remove drive-strength-microamp & rsel-resistence-in-si-unit related description in mediatek,mt8196-pinctrl.yaml. - Use pm_sleep_ptr() in pinctrl-mt8196.c to fix build error. Changes in v2: - Fix driver file's coding style. - Add pinctrl binding document. Cathy Xu (3): dt-bindings: pinctrl: mediatek: Add support for mt8196 arm64: dts: mediatek: mt8196: Add pinmux macro header file pinctrl: mediatek: Add pinctrl driver on mt8196 .../pinctrl/mediatek,mt8196-pinctrl.yaml | 220 ++ arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h | 1574 ++++++++++ drivers/pinctrl/mediatek/Kconfig | 12 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8196.c | 1859 +++++++++++ drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 2789 +++++++++++++++++ 6 files changed, 6455 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt8196-pinctrl.yaml create mode 100644 arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8196.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h Reviewed-by: AngeloGioacchino Del Regno