Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1448514pxb; Thu, 14 Apr 2022 06:31:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhmFHzWglNCZi5omTmbGiJKUxcKp8LApjGm5i0h9e72sEY4nj3ITXbheKwRJ8oZTi3jfGV X-Received: by 2002:a63:4f43:0:b0:39d:96ff:838c with SMTP id p3-20020a634f43000000b0039d96ff838cmr2265924pgl.115.1649943098488; Thu, 14 Apr 2022 06:31:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649943098; cv=pass; d=google.com; s=arc-20160816; b=K52XfIgzbEIs6VeP5mQn2m0KMcHk4E0GAYuCPbD+ayrImMUoThhBuynJaj0xk/Z3zM f4MfCy3InCkzZUuOC8e5V1z3glwrXASp6pwrrbngSk5xTBi2qF7gX4PlkDom+Kwpi1X3 aaqFICcfxxgcUk2aNkqu+OoUg5/iLMA3XiJUI5+5n7bk0Xzb+OnE/cz5CwXbah7u14JA unb9rDXdrRtlx1nVAVIFO7Zk9feyI1iq/jtjWxHIsKd2QjRkYV1cOCxp4fn61Y05IOmw myK0q2bf3RH5WhFy0Ofcjwo72b21KkGSdxWL/lBoRliDuYA+rXFuZCxULTyITmleyGnX V+tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yDHyQQxfNMEnTd2E3yyM7UTuJ1wsjaiRDNpz9ZFlCLE=; b=ALLXyWsIkLnrKw4uTaLUV7xq63+owVuzNmg6zmR/A6h1sd+xa015BebT5CGiBGVsCZ tfS1aMcOBNc99K+E4INFJh6dyb6VojA5PbDdl0TXymTely/E7nVqjVDg9xM49Fb9gGco dyrWbJBc/FJ9d4zNWKE0hG8w3I2J8txXR2LhwpTYQ+fG2D6P75F0cQpYPGW946WgeUt8 I0F/f8mI77hk4FX9/huxpUzGzrErd6Knv5nD5Rgvz7dYAsw/KQFZ/53WrqFbdIleKYZZ fv7Wy6llDBbcql9KvYi3SE+cBjEuyaqaAO8+6WCid7e6zII2QVoVKf6YKSCC+zBIpz+x RNnw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=NzE9qnfn; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cl7-20020a056a0032c700b0050604ac89e3si5990014pfb.345.2022.04.14.06.31.23; Thu, 14 Apr 2022 06:31:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=NzE9qnfn; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240577AbiDNIiA (ORCPT + 99 others); Thu, 14 Apr 2022 04:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240975AbiDNIh1 (ORCPT ); Thu, 14 Apr 2022 04:37:27 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4382E6352C; Thu, 14 Apr 2022 01:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649925279; cv=none; d=zohomail.com; s=zohoarc; b=bK5Oi1eK1Ot4P/WIk25uibXlw1HpAFV0BLpK1vE8f+UtFCwJCDn5uyimVMT74+L3Pl7PBnHMUkIHyg0hBzCR9gly97etErUWUYd8FW9SLVCU2jFCcpr9oj8gnu9pe9QHPRZdzDHONFqNsO/uf8WZrAQ1Ni0gAUNXwoM0vuqEZN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649925279; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=yDHyQQxfNMEnTd2E3yyM7UTuJ1wsjaiRDNpz9ZFlCLE=; b=QGPvJmBysj/SmHpGSuqHcz7/f2LUP4LhaTlQ6gR7c9+hyqT1wqrJEEDh97sVyP3NEQ1QI7E7rhOFQ1l6p5jVUUdfS6wt1pkV5Bvr/UA24Tfh6HlaCnjxB9AJ5i8QXWPkLMQElosEGH9qSAAb58kMpdcNbcD6B+wTviPzE0upDNw= 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=1649925279; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=yDHyQQxfNMEnTd2E3yyM7UTuJ1wsjaiRDNpz9ZFlCLE=; b=NzE9qnfnUYwkYCqHU95IzqVChcoaxcIuKwcaeDYubTHX/xq/71ydVL44+9zqeTYu jMbW94YQ1qgEc3g+Iy8Dt7/h8O87LDR2nDsfFwRATKebVRUZZR036yv8XzLgA7QR8al DMX+MiTUPGopIKxrKqj9cjc250MX53mkA9OMGFlY= Received: from [10.10.10.3] (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1649925277018325.6447048364738; Thu, 14 Apr 2022 01:34:37 -0700 (PDT) Message-ID: <550b20f2-098e-0f25-ad9f-3ff523879cb7@arinc9.com> Date: Thu, 14 Apr 2022 11:34:31 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 10/14] dt-bindings: pinctrl: rt2880: fix binding name, pin groups and functions Content-Language: en-US To: Krzysztof Kozlowski , Sergio Paracuellos , Luiz Angelo Daros de Luca , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Matthias Brugger Cc: erkin.bozoglu@xeront.com, 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 References: <20220413060729.27639-1-arinc.unal@arinc9.com> <20220413060729.27639-11-arinc.unal@arinc9.com> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/04/2022 18:25, Krzysztof Kozlowski wrote: > On 13/04/2022 08:07, Arınç ÜNAL wrote: >> Change binding name from ralink,rt2880-pinmux to ralink,rt2880-pinctrl. >> This is the binding for the Ralink RT2880 pinctrl subdriver. > > What I don't see here is why you are doing this. pinmux/pinctrl have the > same meaning, I guess? What I understand is pinmux is rather a specific term for the muxing of pins or pin groups. Pinctrl is what we prefer here since the term is more inclusive of what the subdriver does: controlling pins. Any mediatek driver/subdriver is called pinctrl so I'm not doing something uncommon. > >> >> Current pin group and function bindings are for MT7621. Put bindings for >> RT2880 instead. >> >> Signed-off-by: Arınç ÜNAL >> --- >> ...pinmux.yaml => ralink,rt2880-pinctrl.yaml} | 24 +++++++++---------- >> 1 file changed, 12 insertions(+), 12 deletions(-) >> rename Documentation/devicetree/bindings/pinctrl/{ralink,rt2880-pinmux.yaml => ralink,rt2880-pinctrl.yaml} (56%) >> >> diff --git a/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml b/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinctrl.yaml >> similarity index 56% >> rename from Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml >> rename to Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinctrl.yaml >> index 9de8b0c075e2..c657bbf9fdda 100644 >> --- a/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml >> +++ b/Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinctrl.yaml >> @@ -1,21 +1,23 @@ >> # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> %YAML 1.2 >> --- >> -$id: http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinmux.yaml# >> +$id: http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinctrl.yaml# >> $schema: http://devicetree.org/meta-schemas/core.yaml# >> >> -title: Ralink rt2880 pinmux controller >> +title: Ralink RT2880 Pin Controller >> >> maintainers: >> + - Arınç ÜNAL > > Mention this in commit msg. Will do. > >> - Sergio Paracuellos >> >> description: >> - The rt2880 pinmux can only set the muxing of pin groups. Muxing indiviual pins >> + Ralink RT2880 pin controller for RT2880 SoC. >> + The pin controller can only set the muxing of pin groups. Muxing indiviual pins >> is not supported. There is no pinconf support. >> >> properties: >> compatible: >> - const: ralink,rt2880-pinmux >> + const: ralink,rt2880-pinctrl > > you need to deprecate old property and add a new one. Do we really have to? That property name was inaccurate from the start. I don't see a reason to keep it being referred to on the binding. > > >> >> patternProperties: >> '-pins$': >> @@ -28,14 +30,12 @@ patternProperties: >> >> properties: >> groups: >> - description: Name of the pin group to use for the functions. >> - enum: [i2c, jtag, mdio, pcie, rgmii1, rgmii2, sdhci, spi, >> - uart1, uart2, uart3, wdt] >> + description: The pin group to select. >> + enum: [i2c, spi, uartlite, jtag, mdio, sdram, pci] >> + >> function: >> - description: The mux function to select >> - enum: [gpio, i2c, i2s, jtag, mdio, nand1, nand2, pcie refclk, >> - pcie rst, pcm, rgmii1, rgmii2, sdhci, spdif2, spdif3, >> - spi, uart1, uart2, uart3, wdt refclk, wdt rst] >> + description: The mux function to select. >> + enum: [gpio, i2c, spi, uartlite, jtag, mdio, sdram, pci] >> > > These were all incorrect for rt2880, I understand? Pretty much. Arınç