From patchwork Thu Apr 14 17:39:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12813821 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 86FB1C433F5 for ; Thu, 14 Apr 2022 17:43:34 +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:References:In-Reply-To: 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: List-Owner; bh=LVxd4yYClC/IIjlloyPTP+8GHEJzkVLhj5UzghUqjGs=; b=Rd0TfxCZWlZszB UX+NAWnjMeLuiFj7t1ke/iNfZNLcSAX05tZ+QrCyLv0Ho00TY7vUClHVTET9PAUf8ulrj8s1VZ7Wu TEQZpaVeVeWoT3KuK+cBp5DiiCrHWPj6jMtgp6LlGHEaf7HnSGRK/RLcTfP2qOUZfafVS4F9ZsCjA IgtzXwl6PCcnJSe6d8K7qPF8Ye5kSDSb06R3IHdevZbqCySkWScIleZ43ZXT0C9+jBBZ8RX7JI5vX WNEGabtaiNQv30rzyu3yXyEW/WFDLpaB27SiijRBhlK6BU/rkno8ozmEpKFQtNwxlih2c3f5fu8uL YrFSHP7zNUdfgcVfJyNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nf3VA-006fQN-UJ; Thu, 14 Apr 2022 17:43:28 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nf3S4-006de0-F4; Thu, 14 Apr 2022 17:40:18 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1649958009; cv=none; d=zohomail.com; s=zohoarc; b=QiN4AHvK3KnwMN+9cGg1O8lMD4IKOfm1I0x32BBlTfSm0y0umWI95aSaQydzX6o9dWPtzeFd2ctYtnkiP3B3xppjSI75OJhKVxaKtP9j+uIVIq0bHZHJHBCpC/4yOEYLRzC1n3F2PpYGouQV1Fs5smRauHzfsoR+I8Qc9a6LHsw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649958009; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0k+Tj9WfzOG3POKIY+KWQEOeUrgIztHXTMPJcor8xWs=; b=O4s71R3Rt+r+wQ9UU7Zzna4m3jMo1P+AoVTGkXOpRyZgOyQbYR1+2PQLcURFzyjHXbnpPUIAA5RfYd0qAea0FT1tLxoL9n9FuY9Kzd19xpZp0gK+FwSK4hSI9w7DSwyzUBNLapoM50k5uOjX70VCiahm/wXylgbcDExJo/bgHR0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1649958009; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=0k+Tj9WfzOG3POKIY+KWQEOeUrgIztHXTMPJcor8xWs=; b=AnRM8nWTwRlK9nCFNwVUNi/ecZuaMZIHArAs0aEQlpwy0/Hkx/s2hAIjAyjU3FWg h4orxiXBJCsScMhF1ZuYY9IdGKhrXo6+icAs+HHr572whf346kUVhcJOrTkcHlNavn3 yeTrlqiPx1fZkGretDJqWVS5wGPyJtBIG8SnXbrc= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1649958008198477.80974111231285; Thu, 14 Apr 2022 10:40:08 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Sergio Paracuellos , Luiz Angelo Daros de Luca , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Matthias Brugger , Joe Perches Cc: erkin.bozoglu@xeront.com, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v2 07/14] pinctrl: ralink: add new compatible strings for each pinctrl subdriver Date: Thu, 14 Apr 2022 20:39:09 +0300 Message-Id: <20220414173916.5552-8-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220414173916.5552-1-arinc.unal@arinc9.com> References: <20220414173916.5552-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_104016_599207_6E15C591 X-CRM114-Status: GOOD ( 14.27 ) 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 As seen on any other pinctrl subdriver that calls code from a main driver, each subdriver needs to have a different compatible string. We don't want the same compatible string to match a different subdriver's pinmux data as it's not for our SoC. Therefore, add new compatible strings for each pinctrl subdriver. Change driver name on all subdrivers accordingly. Signed-off-by: Arınç ÜNAL --- drivers/pinctrl/ralink/pinctrl-mt7620.c | 4 ++-- drivers/pinctrl/ralink/pinctrl-mt7621.c | 4 ++-- drivers/pinctrl/ralink/pinctrl-rt2880.c | 4 ++-- drivers/pinctrl/ralink/pinctrl-rt305x.c | 4 ++-- drivers/pinctrl/ralink/pinctrl-rt3883.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/ralink/pinctrl-mt7620.c b/drivers/pinctrl/ralink/pinctrl-mt7620.c index fde269c68a7b..22ff16eff02f 100644 --- a/drivers/pinctrl/ralink/pinctrl-mt7620.c +++ b/drivers/pinctrl/ralink/pinctrl-mt7620.c @@ -371,7 +371,7 @@ static int mt7620_pinctrl_probe(struct platform_device *pdev) } static const struct of_device_id mt7620_pinctrl_match[] = { - { .compatible = "ralink,rt2880-pinmux" }, + { .compatible = "ralink,mt7620-pinctrl" }, {} }; MODULE_DEVICE_TABLE(of, mt7620_pinctrl_match); @@ -379,7 +379,7 @@ MODULE_DEVICE_TABLE(of, mt7620_pinctrl_match); static struct platform_driver mt7620_pinctrl_driver = { .probe = mt7620_pinctrl_probe, .driver = { - .name = "rt2880-pinmux", + .name = "mt7620-pinctrl", .of_match_table = mt7620_pinctrl_match, }, }; diff --git a/drivers/pinctrl/ralink/pinctrl-mt7621.c b/drivers/pinctrl/ralink/pinctrl-mt7621.c index 1470250ca3b7..b47968f40e0c 100644 --- a/drivers/pinctrl/ralink/pinctrl-mt7621.c +++ b/drivers/pinctrl/ralink/pinctrl-mt7621.c @@ -96,7 +96,7 @@ static int mt7621_pinctrl_probe(struct platform_device *pdev) } static const struct of_device_id mt7621_pinctrl_match[] = { - { .compatible = "ralink,rt2880-pinmux" }, + { .compatible = "ralink,mt7621-pinctrl" }, {} }; MODULE_DEVICE_TABLE(of, mt7621_pinctrl_match); @@ -104,7 +104,7 @@ MODULE_DEVICE_TABLE(of, mt7621_pinctrl_match); static struct platform_driver mt7621_pinctrl_driver = { .probe = mt7621_pinctrl_probe, .driver = { - .name = "rt2880-pinmux", + .name = "mt7621-pinctrl", .of_match_table = mt7621_pinctrl_match, }, }; diff --git a/drivers/pinctrl/ralink/pinctrl-rt2880.c b/drivers/pinctrl/ralink/pinctrl-rt2880.c index 9c5e828af43a..811e12df1133 100644 --- a/drivers/pinctrl/ralink/pinctrl-rt2880.c +++ b/drivers/pinctrl/ralink/pinctrl-rt2880.c @@ -40,7 +40,7 @@ static int rt2880_pinctrl_probe(struct platform_device *pdev) } static const struct of_device_id rt2880_pinctrl_match[] = { - { .compatible = "ralink,rt2880-pinmux" }, + { .compatible = "ralink,rt2880-pinctrl" }, {} }; MODULE_DEVICE_TABLE(of, rt2880_pinctrl_match); @@ -48,7 +48,7 @@ MODULE_DEVICE_TABLE(of, rt2880_pinctrl_match); static struct platform_driver rt2880_pinctrl_driver = { .probe = rt2880_pinctrl_probe, .driver = { - .name = "rt2880-pinmux", + .name = "rt2880-pinctrl", .of_match_table = rt2880_pinctrl_match, }, }; diff --git a/drivers/pinctrl/ralink/pinctrl-rt305x.c b/drivers/pinctrl/ralink/pinctrl-rt305x.c index b4765ca27cac..5b204b7ca1f3 100644 --- a/drivers/pinctrl/ralink/pinctrl-rt305x.c +++ b/drivers/pinctrl/ralink/pinctrl-rt305x.c @@ -117,7 +117,7 @@ static int rt305x_pinctrl_probe(struct platform_device *pdev) } static const struct of_device_id rt305x_pinctrl_match[] = { - { .compatible = "ralink,rt2880-pinmux" }, + { .compatible = "ralink,rt305x-pinctrl" }, {} }; MODULE_DEVICE_TABLE(of, rt305x_pinctrl_match); @@ -125,7 +125,7 @@ MODULE_DEVICE_TABLE(of, rt305x_pinctrl_match); static struct platform_driver rt305x_pinctrl_driver = { .probe = rt305x_pinctrl_probe, .driver = { - .name = "rt2880-pinmux", + .name = "rt305x-pinctrl", .of_match_table = rt305x_pinctrl_match, }, }; diff --git a/drivers/pinctrl/ralink/pinctrl-rt3883.c b/drivers/pinctrl/ralink/pinctrl-rt3883.c index b2e8151de226..44a66c3d2d2a 100644 --- a/drivers/pinctrl/ralink/pinctrl-rt3883.c +++ b/drivers/pinctrl/ralink/pinctrl-rt3883.c @@ -87,7 +87,7 @@ static int rt3883_pinctrl_probe(struct platform_device *pdev) } static const struct of_device_id rt3883_pinctrl_match[] = { - { .compatible = "ralink,rt2880-pinmux" }, + { .compatible = "ralink,rt3883-pinctrl" }, {} }; MODULE_DEVICE_TABLE(of, rt3883_pinctrl_match); @@ -95,7 +95,7 @@ MODULE_DEVICE_TABLE(of, rt3883_pinctrl_match); static struct platform_driver rt3883_pinctrl_driver = { .probe = rt3883_pinctrl_probe, .driver = { - .name = "rt2880-pinmux", + .name = "rt3883-pinctrl", .of_match_table = rt3883_pinctrl_match, }, };