Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1086626pxb; Thu, 23 Sep 2021 18:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIvPFN2yeuFdKjArdawohTaRHgHpBCaBf5syxFGv6fEKdcX00652KfDOeX0mkv205PuhUW X-Received: by 2002:a17:906:4a0b:: with SMTP id w11mr8693539eju.265.1632445450116; Thu, 23 Sep 2021 18:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632445450; cv=none; d=google.com; s=arc-20160816; b=aQm/N8PVOKUsx3ptwQdf0kc2FPYAjitARXzY1zoBruJ8WVW4JvYx7+CZTKJk8iegJB z7BxSISG5Baofje+mjUBxNqO2E5dj5+vkYOAhQa8m/ixm0yOnZhu+aEpnGliH9DjZdMG pbm8Imee09Y3qIZJ99CZf787BjAb9WqGVo82j3aL2mBviKhAY3PbyvBITgDaG3yVftz1 DvdHQwzJ0d9oNONSb9jtVBs7wFwJQ9djJl2jugEI5YKDplIgIAQ1m0H936baA8FwpSV8 ftocwsKTFz4nFiPAhyk9qEIEbUPeRL+XT/dCOVkVo2rEq+agOJkyePIIm3Zt6Xx6pmyL T7RQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GasIhLti856Ga5HeR4f+cGNysCxF+XCkHYY1M/ZuBiw=; b=F6+h8lICT6Z00Ya2hFmF/DnE3DcEMH2HuYDNuN7uFuzYiwF3MMlRdDVNIJPxHx4DiK XdxMR0Hqp/bL2A7VXLG/SZz9YUwW39unqg+EwT68YphFQuurNMBf7bHZ6yAir8+Wqblq 63A7UYnP6SnZttkIZr2jYLcTeyIcrIjPUiBDLpcayhU+rBABrEgxQrad5qvS0bJ054h5 gG1QxnojtmpzVtOVZYyr/nQysIUyb6p4WYKqvWBaaXKcICVbho3/v65QeOk2pjnUw+/l migJxhie31cboKetyAtHt15FMisxjYKLqLpezbUqW348IDfzHLYeMJ2YyZl0enxkUnEk AtFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si9720519edi.226.2021.09.23.18.03.47; Thu, 23 Sep 2021 18:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243692AbhIXBB6 (ORCPT + 99 others); Thu, 23 Sep 2021 21:01:58 -0400 Received: from mail-oi1-f173.google.com ([209.85.167.173]:42500 "EHLO mail-oi1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243678AbhIXBB5 (ORCPT ); Thu, 23 Sep 2021 21:01:57 -0400 Received: by mail-oi1-f173.google.com with SMTP id x124so12237425oix.9; Thu, 23 Sep 2021 18:00:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GasIhLti856Ga5HeR4f+cGNysCxF+XCkHYY1M/ZuBiw=; b=4mVsfYxG8qdry4qRKnb+PrIMsa+n4O9bja5YsRRWWi5Y0PlAxw0S3Op6hurzGa4Ebn nBe0Li0u4rlHuBuYKB41IN15Y9ZXNpx1rj3EDY/ObbdJDuY30PODF8jsCwI1LTDfApsE YVEQtnOdwjxAiA8XJhvTVEZOert/hJE0IZFfObMlG28nBpwu/z1IOSGFkNt5I6IQoXx3 Q8sgYlKeEGWUiDQDXwWTv5WTd6YBOrGuyElNnzCJTazAC05qnoLYMHnqgpwjOtcMzGL0 7U040FWSlIdxsk1XqRsuB3xblE/+mJM4og3naOEybWLJFOFhkjtEUtGFuZDCyJ+wIb98 kALg== X-Gm-Message-State: AOAM533LTPlqTtbBGYiCw+Wx+XyUYBnrDCZAZVTKbWUpbqw7uFqXish7 HSNz40CdeOj+crd5CLWcmA== X-Received: by 2002:a05:6808:ec8:: with SMTP id q8mr7842887oiv.94.1632445224741; Thu, 23 Sep 2021 18:00:24 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id a23sm1676644otp.44.2021.09.23.18.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 18:00:24 -0700 (PDT) Received: (nullmailer pid 3848448 invoked by uid 1000); Fri, 24 Sep 2021 01:00:23 -0000 Date: Thu, 23 Sep 2021 20:00:23 -0500 From: Rob Herring To: Zhiyong Tao Cc: linus.walleij@linaro.org, mark.rutland@arm.com, matthias.bgg@gmail.com, sean.wang@kernel.org, srv_heupstream@mediatek.com, hui.liu@mediatek.com, light.hsieh@mediatek.com, biao.huang@mediatek.com, hongzhou.yang@mediatek.com, sean.wang@mediatek.com, seiya.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v13 2/5] dt-bindings: pinctrl: mt8195: change pull up/down description Message-ID: References: <20210922025640.11600-1-zhiyong.tao@mediatek.com> <20210922025640.11600-3-zhiyong.tao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210922025640.11600-3-zhiyong.tao@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 10:56:37AM +0800, Zhiyong Tao wrote: > For supporting SI units in "bias-pull-down" & "bias-pull-up", > Change pull up/down description > > Signed-off-by: Zhiyong Tao > --- > .../bindings/pinctrl/pinctrl-mt8195.yaml | 65 ++++++++++++++++++- > 1 file changed, 63 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml > index 2f12ec59eee5..2f2afabbe4fc 100644 > --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml > @@ -85,9 +85,70 @@ patternProperties: > 2/4/6/8/10/12/14/16mA in mt8195. > enum: [0, 1, 2, 3, 4, 5, 6, 7] > > - bias-pull-down: true > + bias-pull-down: > + description: | > + For pull down type is normal, it don't need add RSEL & R1R0 define > + and resistance value. > + For pull down type is PUPD/R0/R1 type, it can add R1R0 define to > + set different resistance. It can support "MTK_PUPD_SET_R1R0_00" & > + "MTK_PUPD_SET_R1R0_01" & "MTK_PUPD_SET_R1R0_10" & "MTK_PUPD_SET_R1R0_11" > + define in mt8195. > + For pull down type is RSEL, it can add RSEL define & resistance value(ohm) > + to set different resistance by identifying property "mediatek,rsel_resistance_in_si_unit". > + It can support "MTK_PULL_SET_RSEL_000" & "MTK_PULL_SET_RSEL_001" > + & "MTK_PULL_SET_RSEL_010" & "MTK_PULL_SET_RSEL_011" & "MTK_PULL_SET_RSEL_100" > + & "MTK_PULL_SET_RSEL_101" & "MTK_PULL_SET_RSEL_110" & "MTK_PULL_SET_RSEL_111" > + define in mt8195. It can also support resistance value(ohm) "75000" & "5000" in mt8195. Please make a schema: oneOf: - enum: [ 0, 1, ...7 ] - description: MT8195... enum: [ 5000, 75000 ] > + An example of using RSEL define: > + pincontroller { > + i2c0_pin { > + pinmux = ; > + bias-pull-down = ; > + }; > + }; > + An example of using si unit resistance value(ohm): > + &pio { > + mediatek,rsel_resistance_in_si_unit; > + } > + pincontroller { > + i2c0_pin { > + pinmux = ; > + bias-pull-down = <75000>; > + }; > + }; > > - bias-pull-up: true > + bias-pull-up: > + description: | > + For pull up type is normal, it don't need add RSEL & R1R0 define > + and resistance value. > + For pull up type is PUPD/R0/R1 type, it can add R1R0 define to > + set different resistance. It can support "MTK_PUPD_SET_R1R0_00" & > + "MTK_PUPD_SET_R1R0_01" & "MTK_PUPD_SET_R1R0_10" & "MTK_PUPD_SET_R1R0_11" > + define in mt8195. > + For pull up type is RSEL, it can add RSEL define & resistance value(ohm) > + to set different resistance by identifying property "mediatek,rsel_resistance_in_si_unit". > + It can support "MTK_PULL_SET_RSEL_000" & "MTK_PULL_SET_RSEL_001" > + & "MTK_PULL_SET_RSEL_010" & "MTK_PULL_SET_RSEL_011" & "MTK_PULL_SET_RSEL_100" > + & "MTK_PULL_SET_RSEL_101" & "MTK_PULL_SET_RSEL_110" & "MTK_PULL_SET_RSEL_111" > + define in mt8195. It can also support resistance value(ohm) > + "1000" & "1500" & "2000" & "3000" & "4000" & "5000" & "10000" & "75000" in mt8195. Same here. > + An example of using RSEL define: > + pincontroller { > + i2c0_pin { > + pinmux = ; > + bias-pull-up = ; > + }; > + }; > + An example of using si unit resistance value(ohm): > + &pio { > + mediatek,rsel_resistance_in_si_unit; > + } > + pincontroller { > + i2c0_pin { > + pinmux = ; > + bias-pull-up = <1000>; > + }; > + }; > > bias-disable: true > > -- > 2.25.1 > >