Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3654871iob; Mon, 2 May 2022 02:02:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf4ZtUueyuSkXyGC3KtzR4jIev42Ur1oLy52h1eniQEv3z1p/rQVnxpAnVVM/AmXyvVrU+ X-Received: by 2002:a63:60d:0:b0:3c1:7361:b265 with SMTP id 13-20020a63060d000000b003c17361b265mr9103375pgg.434.1651482171188; Mon, 02 May 2022 02:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651482171; cv=none; d=google.com; s=arc-20160816; b=RbG0VPRIzaIBZn1IlvQExHEk++7zHrrWdM6Mw/QxzshmE+HfMyBABrkF486UjSdwk6 c1p2R9BS7pN4I76yYeu1TevdM8kfIMsX/AuF1MTscQIomLkliPGPLg3etGVLI2MX8VHe rev2dEitey551lmrjTi2EDirbfm/ug2bU1+kR2WV74And/QSSO5tIKa1+odHiUVI/naG pk0Q2+DIkrv9I/h25ycMSky6/1YEsJOcAChBXzLy+x2gGf6LOd2L2h1jgIz9JODeAPXY qprUWn9ZbkBg5e+++SLIW+Ic9ZrCZrJqMeYXdepwx+EXQHHKnfxV6vzc3g3UQAVlGTlK Z9/Q== 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=cOTYvKnpssw+HjajD028HmP+wTShZ9IeCONkU/DnTDM=; b=uCfB7dUoRgyZMQYoAHvca/M2lP8JpVW6d5hO4UDUk68tjeXIj6G05o2SPO26m10FQg vL37D9P7vwddx6umBjOcI4cMWov3YLb6X0mJGxv0Nwl2ifjeC7ui4nzck5gbWmjwfCva QKNsMUeCeGWRlcJIHhv5pnIHG2NFdB3M2+OPcYj8rf89hbF6+XpC6WBct+dzbvM9dYDj S4CaxKvBW49atntnZlzZ+ru1uEQvyKodR7cvphVNWHfa44Pti0DPH//LdDhEC2lfOBLc J1a4wzsbDnh9SUmqpYDgjIWMcNC4mAP6YAeBjgDFikX/jMeXsTsUwlVUTfJvL7JLw0e6 V6BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IS1Bwm1K; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a170902e95100b0015835fea6dbsi14061766pll.403.2022.05.02.02.02.36; Mon, 02 May 2022 02:02:51 -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=@linaro.org header.s=google header.b=IS1Bwm1K; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380739AbiD2UfQ (ORCPT + 99 others); Fri, 29 Apr 2022 16:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380669AbiD2UfP (ORCPT ); Fri, 29 Apr 2022 16:35:15 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F343E644F5 for ; Fri, 29 Apr 2022 13:31:54 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id dk23so17494873ejb.8 for ; Fri, 29 Apr 2022 13:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=cOTYvKnpssw+HjajD028HmP+wTShZ9IeCONkU/DnTDM=; b=IS1Bwm1KfpiUP9DD8wNp7WoHCXusyqm+r96FFYBPQnjwMo4DHP7CiRZTs7jb3p5XCW spWHOr7uLBLxmBGed7edoEFKUzDZw4lfa+zF/UssDIXgb5glOSFPpl0eRZgdk2tpJTjw 2dnQFVEV5XluFKgdMiXjg/WVa6dhmTbKzRETUVxk3qsNELPl4TPDZHepIIdG5lBbYYAq OmUAb2CPekhK3R8YB9uIBwwCN8KjMK4pXvataQGiWRx8r3y6C58oJUvIBE9rgzMBG1/t SfXe0quGxmGX8L9S4V6NIcVtP6hhLWksn8EjxYNmEkgQaYonwOn9HZ8uU+fi/RWarzkB DZ1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=cOTYvKnpssw+HjajD028HmP+wTShZ9IeCONkU/DnTDM=; b=1NH5HjAPJ+k8F6IZDvs6bew63c0U1HMrOX+SXTqSdo/dcbwhN7av2TNKsb34DGeZVN GZSNQiUhg7CAh/ylnrGWv9XY86qzf7LQ0rCTPc7jK3zDYy3lBEdCLkb73WXTDuRN7Dtw 7ZX4OAN2kIKYqqI8fYu7VL54c8o7dzSnkso2wGFzJiHlp5SEmJgv7UNrCWfJ1RhL2wso 1xbQ84XuoSVDRB0zB02jtN+c1du7eiB+NRmSwKtV92BkTWfC7P8P98XX96Bvx9apYkDi r8qSbe+WghJs5bCp+n4edPFggUt25FDx0C13WgQvO0r3HYwDHBe2m/1AIbP8/+2ArOpL 9PWg== X-Gm-Message-State: AOAM531I7cj2U5ROKRUXR0FuLHVkUpoJv1hNo+8rdsT8q6PEjVJw2lqT 7585YmITGDSkzfTIc1TRP5le6Uwlbd31NQ== X-Received: by 2002:a17:907:7f26:b0:6f4:69c:196f with SMTP id qf38-20020a1709077f2600b006f4069c196fmr956890ejc.613.1651264313578; Fri, 29 Apr 2022 13:31:53 -0700 (PDT) Received: from [192.168.0.176] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm3299258edq.53.2022.04.29.13.31.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 13:31:53 -0700 (PDT) Message-ID: <4adf790c-5773-a78e-3c8e-2a510e3dbd1e@linaro.org> Date: Fri, 29 Apr 2022 22:31:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] dt-bindings: pinctrl: mt8192: Add mediatek,pull-down-adv property Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Linus Walleij Cc: 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 References: <20220429200637.2204937-1-nfraprado@collabora.com> From: Krzysztof Kozlowski In-Reply-To: <20220429200637.2204937-1-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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 '::' > + 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... Is the property valid without bias-pull-down? Best regards, Krzysztof