From patchwork Wed Jan 22 13:51:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hao Chang X-Patchwork-Id: 859473 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ECB31E4AB; Wed, 22 Jan 2025 13:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737553910; cv=none; b=ozU5ASIQ68VJ4yuPV6VaaY2dCpi0s1XoNmIZaM0n+6Op1D4OTyY5MLUHq2CFejUc8cHRfFjVc9PzidIt/wn5nyZIlxG0uLkjatTZXBHVAawGVgPL2k6Gi3k+iU/ugEaogO2aBKBJ0X2RjVA5MnjV/CxudVFhqd20HWWmGDxPnqc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737553910; c=relaxed/simple; bh=U52YDAKd2fl7onoKSd+k8uVkpwYIMyG1MPiVziIhZck=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NOya1oCvBoHDKljJJrWVzudwuivu7XVFVEtjtHgoDSif9SJ26ZDExZR7UhsOEeG8jQz+Zij5hztsHsLgLbE1MYJwiRWX+NEiTQHipuooVMPFpx7Dwki0HYe5DrtC62Yn7abe3165giegMV+uBK3Wk7d0vc7MVGffsfPbAwLgDTs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=kWFYFfZK; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="kWFYFfZK" X-UUID: 02adf73ed8c811efbd192953cf12861f-20250122 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=jv2yDZtHcpSll2NLJ4TWnj6kWytYEK0xigOiSIN3QPQ=; b=kWFYFfZKJ3WRuGl47YcW5NFG9PImD+uW6f6BBv5qA7WenMBkeKscomph1xKMRy6dlagrITq2geDi6mqFu/+vIAh0xt1qzEqajfuKWJQjqSIsuSTpli7K+wXqi9GpiWmKp9WHqeT3AfuehLhzVfRuGbyd4Avq0uC9HNDaapdZDeI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.46, REQID:4b878fb9-3dde-4272-87a3-796980be440a, 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:0a84883d-da39-4471-8a46-23da908abe46, B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:-3,IP:ni l,URL:1,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 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-UUID: 02adf73ed8c811efbd192953cf12861f-20250122 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1359005992; Wed, 22 Jan 2025 21:51:42 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Wed, 22 Jan 2025 21:51:40 +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.1258.28 via Frontend Transport; Wed, 22 Jan 2025 21:51:40 +0800 From: Hao Chang To: Sean Wang , Linus Walleij , Matthias Brugger , AngeloGioacchino Del Regno CC: Wenbin Mei , Axe Yang , Qingliang Li , , , , , "Hao Chang" Subject: [PATCH v2 0/3] pinctrl: mediatek: add support for multi-instance EINT Date: Wed, 22 Jan 2025 21:51:22 +0800 Message-ID: <20250122135135.15234-1-ot_chhao.chang@mediatek.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change in v2: 1)Remove debug code 2)Remove instance structure 3)Change from providing mapping table by device tree to providing it by pinctrl 4)Use eint hw structure as the basis for private data --- This patch depends on [v3,2/2] pinctrl: mediatek: add mt8196 driver [v3,1/2] dt-bindings: pinctrl: mediatek: add support for mt8196 Please also accept this patch together with [1] to avoid build and dt binding check error. [1]https://patchwork.kernel.org/project/linux-mediatek/list/?series=&submitter=215008&state=&q=v3&archive=&delegate= --- ot_chhao.chang (3): pinctrl: mediatek: add support for multi-instance EINT pinctrl: mediatek: update EINT base retrieval method pinctrl: mediatek: adapt to multi-base design drivers/pinctrl/mediatek/mtk-eint.c | 219 ++++++++++------- drivers/pinctrl/mediatek/mtk-eint.h | 22 +- drivers/pinctrl/mediatek/pinctrl-mt8196.c | 1 + .../pinctrl/mediatek/pinctrl-mtk-common-v2.c | 45 ++-- .../pinctrl/mediatek/pinctrl-mtk-common-v2.h | 1 + drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 232 ++++++++++++++++++ drivers/pinctrl/mediatek/pinctrl-paris.h | 7 + 7 files changed, 418 insertions(+), 109 deletions(-)