Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4287560rwb; Mon, 21 Nov 2022 06:04:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6z3YQFFKr0bagpMR3AunRY9lcZFV/JEMmJswE1Ecb9uPrNKJ9DtL58Io31s8vJyeunCwR2 X-Received: by 2002:a63:d909:0:b0:440:5517:5d8a with SMTP id r9-20020a63d909000000b0044055175d8amr1122432pgg.200.1669039492527; Mon, 21 Nov 2022 06:04:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669039492; cv=none; d=google.com; s=arc-20160816; b=V0o8qqbU8qydFCiNMIhJcRQ7oL0/Wtbj+iLmgCwmy8ZZpzCMA2xHlyomSGY+hPyWHT X3B4QE34xhiXOCLjdRu58TmrEk2uaS+966fcv4fL000ChA/ase+7fzFrcuV4ynEQu4ix o4zWwsuibbqyfGZdjVWfsBsz3jNQrds/f+g7AvreSnAhe3VCLsUkcYcQ7qNTKKEgHUuz TPhLdDaQPX9bXgfVPSucEK40iVTPA1qM8fdSEJXBNkcF7lTVEAUx6Y7hD95uanXKO48A 9GH+BNIJVUeHY2v2sRYcDbjb86mMebR36qDdmPRo+ux0fav9j5U1VA00PWM4PeKhNhc0 11Aw== ARC-Message-Signature: i=1; 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=255dOqNolHNvw0+5ItpWC+fmQMElh60KndDJXZcS5WM=; b=s6kQ+ytSDe5+Slqjoo5+fQo08CNhBomBSaLjpLBy0G14Ug2MjH6TbPjn6isKsky/uo vqxjTQgF9gml5iM6Dl8slVbi8rHnSpo+MYCi3e4D8QdhkLYxueH7VEvU4KYoLLlijBkA ba9c1qV99Kd1jvCE01iVwkttL1ng1rB1CZJMsr5Wg6ux3tkHA25sqwBLrwzh5c2lw5Ic iNPFTjlRDEzdpiZIvlszy90pUDI9IlgLhZ7eQPC70GgbW+FlU+2RxDuHNKxRpGuoLFOU kc1kcbhc6i1Op1OXjq31s3tf0NXxcqFPWIFDuW1er4CqnAbPmECVPOgVhyg3BaSdHdef UGoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bvComeIC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a35-20020a631a63000000b0046edc0aea7csi10969665pgm.515.2022.11.21.06.04.34; Mon, 21 Nov 2022 06:04:52 -0800 (PST) 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=@collabora.com header.s=mail header.b=bvComeIC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231348AbiKUNtS (ORCPT + 91 others); Mon, 21 Nov 2022 08:49:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbiKUNtD (ORCPT ); Mon, 21 Nov 2022 08:49:03 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B05624B; Mon, 21 Nov 2022 05:49:03 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 219306600371; Mon, 21 Nov 2022 13:49:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669038541; bh=AeKWzGXHbjRKpMaS+ztWcfZ+DeI78CJ083tMt3FLtes=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bvComeICZ+p7rb1lgdPClfoyO/gA+D0VTz/zn47MaRosJ+vsGqguHKWSYUZZXlp+4 ApbqaD01wloyg1n/LrsQ8BRaImqS0tFmCnBDVPb5DG+4fQdRQsZE0NwabIqlUxiqJA 6dbt0E6jgQkxX1i+Upu+iKAWrvod1wn4ljKNv8Rv2whVNckIJFFrgOCpEsccQDpFSJ u06xUkNp0QYwa7+gXDXhxsEtE6lMTAZVStCXqz38UpUYTMJTtnR+CwdPLa/qsUFl0R jN8Ek/4YiZNsFcb58074RKzFx3sAbpZH0Gt2J4qNwywvaz2OvCWr/LbatB4/LTGRAC 545gIjRkAST9A== Message-ID: <1d27a496-b49c-94d5-e9e6-68c81195a69a@collabora.com> Date: Mon, 21 Nov 2022 14:48:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v5 6/7] dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Document MT6735 pin controller Content-Language: en-US To: Yassine Oudjana , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Andy Teng Cc: Yassine Oudjana , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring References: <20221118113028.145348-1-y.oudjana@protonmail.com> <20221118113028.145348-7-y.oudjana@protonmail.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221118113028.145348-7-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 18/11/22 12:30, Yassine Oudjana ha scritto: > From: Yassine Oudjana > > Add bindings for the pin controller found on MediaTek MT6735 and > MT6735M SoCs, including describing a method to manually specify > a pin and function in the pinmux property making defining bindings > for each pin/function combination unnecessary. The pin controllers > on those SoCs are generally identical, with the only difference > being the lack of MSDC2 pins (198-203) on MT6735M. > > Signed-off-by: Yassine Oudjana > Reviewed-by: Rob Herring > --- > .../pinctrl/mediatek,mt6779-pinctrl.yaml | 55 ++++++++++++++++++- > MAINTAINERS | 6 ++ > 2 files changed, 60 insertions(+), 1 deletion(-) > ..snip.. > @@ -352,18 +391,32 @@ examples: > }; > > /* GPIO0 set as multifunction GPIO0 */ > - gpio-pins { > + gpio0-pins { > pins { > pinmux = ; > }; > }; > > + /* GPIO1 set to function 0 (GPIO) */ > + gpio1-pins { > + pins { > + pinmux = <(MTK_PIN_NO(1) | 0)>; Please follow the same format that you can find in all of the mtXXXX-pinfunc.h. What you wrote here (MTK_PIN_NO(x) | func) is defined in there for the purpose of providing a definition name that actually means something (for both readability and documentation purposes). This means that your GPIO1 set to function 0 (gpio) should be pinmux = ; > + }; > + }; > + > /* GPIO52 set as multifunction SDA0 */ > i2c0-pins { > pins { > pinmux = ; > }; > }; > + > + /* GPIO62 set to function 1 (primary function) */ > + i2c1-pins { > + pins { > + pinmux = <(MTK_PIN_NO(62) | 1)>; pinmux = ; (is it sda1??) This means that you should as well add a mediatek,mt6735-pinfunc.h binding... Regards, Angelo