Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp140200iob; Tue, 17 May 2022 21:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLr09FnDSUcbkheOdZbSVrMNa61Dp4I+X9tAnr6tPSVq5H9kEzcSfgatFqq26uNXKH5UjJ X-Received: by 2002:a63:5151:0:b0:3db:6074:1180 with SMTP id r17-20020a635151000000b003db60741180mr21439144pgl.310.1652848562368; Tue, 17 May 2022 21:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652848562; cv=none; d=google.com; s=arc-20160816; b=RsnLTVVZcYKa4Kjy3Yvablr56erKV4mDw3dPockfUNSgxbTttgZN6RCBhmvX128mLk XtLe4zS+s4JzFzsszNcJV6OYAy8kWn+mSW6VDghJ6aQCYvUqpQbdDZ8CWcRKraOY6Do7 f1zIn7YKQr23H0uLZyF+jrADvs3EpY72tGKTUTusRVume0qvfUVBIvp30QafiBYcO/K8 7emWPMqjAYxf54klhZnuQwOmGX40+yrUoNbvwLg6P12+BqtA1k2Bc9/k89icYVmtYM9e /IQ6QW0YX+9B2YRkea6yBbVg6Oq8XbbRxV9eXqiit4Fu5+x4nSjnaFjKKVsoReJtGe97 3q5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gPXXIjnAagJRUpGicUR2Rs+QPOKTEkfvKmgzX9GVZm4=; b=rG3jPDhSPsgYyXLEwZB9W6HQ8GX6tGXxZBl0YACSqEfQOXf6ClQHCRX/FtMerHmseY scoAdWWI9rpV2QUCSrwmi+p5vHKmqItOV4AqVDOzjwAedhChA45FhkoL+vqoBBnFQ/vY 7u3BQur6MV354j1ejShzyNX3+AkGVWvtxumWFLUykeLM+fYR82FehdB2k/5/tUSPj9R3 VBoJSlcMJ9R4ll/csJIdbHNFke2QchJYmHmd+c7hdF1eZA3xIyoeDnZpmguq+JPMzqWv sm3FqxDqiWkbtVoJQoEqjVHgdg9BKJJaZonJsN/382D75ASMv+IOYhfGXVW4bw2pa1nK 6vFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=d7DGzljI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s12-20020a17090302cc00b00161ba2ffeb8si1305714plk.557.2022.05.17.21.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:36:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=d7DGzljI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 02AB2BCE8F; Tue, 17 May 2022 20:53:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbiEQVbV (ORCPT + 99 others); Tue, 17 May 2022 17:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiEQVbT (ORCPT ); Tue, 17 May 2022 17:31:19 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C8413337F; Tue, 17 May 2022 14:31:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 91C2F1F44529 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652823075; bh=HRSS8woHfbhaBMvzaEElxv/TxCPiPytRs/B9ys0Aolo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d7DGzljIgY1ZUvR5X0+e6kZMprNH2UzQ0A7u9HHHGywLCvjflIHY/vRiItTD1r2/z PQK6qSyuBWLGZatA2CENsvMqzWAs3ccA3dmVxFkZ5GiJtk4lhRC4C8yHkK+ixfzXMI uZfyEHtxSpggJFkbTYKHs8l6+yWib4hHXJkmRSROTIzvBOyD/VY8B+1nQgcBYkZwqA 6i/5Ej9kgfoyU/cgrj9KEsQPWuWZH/QeMdygKYBjumnKQ4RCJXAA+04HCCvWRyxaQA 9ezs/V0EEFsYXFXwyuljwTKZDQWkm9o606knMWZ6MEyFmZjTAISPUH58MFutFtRusi HJ1xFS6Hld++A== Date: Tue, 17 May 2022 17:31:11 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Krzysztof Kozlowski Cc: Linus Walleij , kernel@collabora.com, AngeloGioacchino Del Regno , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , Sean Wang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] dt-bindings: pinctrl: mt8192: Add mediatek,pull-down-adv property Message-ID: <20220517213111.22slqxqhbaxc22f6@notapiano> References: <20220429200637.2204937-1-nfraprado@collabora.com> <4adf790c-5773-a78e-3c8e-2a510e3dbd1e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4adf790c-5773-a78e-3c8e-2a510e3dbd1e@linaro.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 Fri, Apr 29, 2022 at 10:31:52PM +0200, Krzysztof Kozlowski wrote: > On 29/04/2022 22:06, N?colas F. R. A. Prado wrote: > > Add the mediatek,pull-down-adv property to the pinctrl-mt8192 dt-binding > > to allow configuring pull-down resistors on the pins of MT8192. It is > > the same as in mt8183-pinctrl. > > > > Signed-off-by: N?colas F. R. A. Prado > > > > --- > > > > .../devicetree/bindings/pinctrl/pinctrl-mt8192.yaml | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8192.yaml b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8192.yaml > > index c90a132fbc79..e462f49eae6f 100644 > > --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8192.yaml > > +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8192.yaml > > @@ -117,6 +117,17 @@ patternProperties: > > $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [0, 1, 2, 3] > > > > + mediatek,pull-down-adv: > > + description: | > > + Pull down settings for 2 pull resistors, R0 and R1. User can > > + configure those special pins. Valid arguments are described as below: > > Trailing ':' should be escaped, so '::' OK. > > > > + 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. > > + 1: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled. > > + 2: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled. > > + 3: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled. > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [0, 1, 2, 3] > > It's okay, but for all these and other values (you have few such in the > binding), you should maybe add header and defines. It's much more > readable for humans... OK. I'll look into adding defines for these. > > Is the property valid without bias-pull-down? Actually it doesn't really make sense to set this property together with bias-pull-down, as they set conflicting register settings for the pin bias... I'll add a condition to avoid both being present. Thanks, N?colas > > Best regards, > Krzysztof