Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1302279pxb; Fri, 24 Sep 2021 01:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTWqStF5sYffgZj1ptCpnCqZQW2w6Qt9/Kz1Dr5CDQGdeSenxjUaXqQAQzQDEG9o8Ywf7G X-Received: by 2002:a05:6e02:1112:: with SMTP id u18mr7570828ilk.75.1632470969939; Fri, 24 Sep 2021 01:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632470969; cv=none; d=google.com; s=arc-20160816; b=I5JwNYrdgirB42ttIFH3TVHoAu4tx4fyq/GXHvCwMAsIxb3jcDqO72g+ig4Fjy/otL 2Z/2osIYBDADKAexlQs/pO7Grkj2BPnpnGwJ04F8TskGhlkx1LEhPIK5KBqUPcqUfJH2 FE4+elnAyaspZUz8Ig1diqgaLvEmdUx6998gf1EGwPJe9LQbm5szmRNiOyNwVzOTvA9A 7iaYBougoXx+Q4fbU1icjsUklF6D18/O96yIJNZowj21YcsLiNLuXhYQ6bvp2UUTypK9 mgZY2KZHrARF6uPkA68as2vAosOdA6c1WXtSEzC3m0Ud8jnsuWqwhP6jRW5K4IYu7Y+w zQcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cBnWjD9AwlBvEiiOQP/g8O6BVvM2jC52GPqokjngcyE=; b=ErWuEfLv+2pz+N4F9NM1yxK/HdNjcNVGHHESwRY35ot8YO0WfFsPPYvMOB8ZxKWmSy uOYWDZBOhGVZX3DBGGNVAvE0YfpTx1WjpOYo244Q2G+rlhTth1ucX5LGk5oEqFpVbxR2 zmk8bCHrjFAR1QHL0//glsB8w4dTGDjAQVQFeoWffQgVAVvs2DDRh+oH6VmR8AkmCaYu JybimMTIzCWFq0EipK/8pT0NQF2O013/v2fMs1+xyM7GR8tdGRPsO/N6hsaJwM3YQDIM VwMk4pOM0c4i947kLjS8CuRhjS7dJ+dmflsaxaj/Ap93o9TZWquSitar5+QRTx+1OLh7 91VA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si9593165ilb.43.2021.09.24.01.09.14; Fri, 24 Sep 2021 01:09:29 -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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244596AbhIXII3 (ORCPT + 99 others); Fri, 24 Sep 2021 04:08:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53726 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S244482AbhIXIIZ (ORCPT ); Fri, 24 Sep 2021 04:08:25 -0400 X-UUID: ff31e5ce6db548059cce3611c1452241-20210924 X-UUID: ff31e5ce6db548059cce3611c1452241-20210924 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 177459825; Fri, 24 Sep 2021 16:06:48 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Sep 2021 16:06:46 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 24 Sep 2021 16:06:45 +0800 From: Zhiyong Tao To: , , , , CC: , , , , , , , , , , , , Subject: [PATCH v14 2/5] dt-bindings: pinctrl: mt8195: change pull up/down description Date: Fri, 24 Sep 2021 16:06:29 +0800 Message-ID: <20210924080632.28410-3-zhiyong.tao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210924080632.28410-1-zhiyong.tao@mediatek.com> References: <20210924080632.28410-1-zhiyong.tao@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For supporting SI units in "bias-pull-down" & "bias-pull-up", change pull up/down description and add "mediatek,rsel_resistance_in_si_unit" description. Signed-off-by: Zhiyong Tao --- .../bindings/pinctrl/pinctrl-mt8195.yaml | 86 ++++++++++++++++++- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml index 2f12ec59eee5..5f642bef72af 100644 --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml @@ -49,6 +49,12 @@ properties: description: The interrupt outputs to sysirq. maxItems: 1 + mediatek,rsel_resistance_in_si_unit: + type: boolean + description: | + Identifying i2c pins pull up/down type which is RSEL. It can support + RSEL define or si unit value(ohm) to set different resistance. + #PIN CONFIGURATION NODES patternProperties: '-pins$': @@ -85,9 +91,85 @@ 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. + oneOf: + - enum: [100, 101, 102, 103] + - description: mt8195 pull down PUPD/R0/R1 type define value. + - enum: [200, 201, 202, 203, 204, 205, 206, 207] + - description: mt8195 pull down RSEL type define value. + - enum: [75000, 5000] + - description: mt8195 pull down RSEL type si unit value(ohm). + + 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. + oneOf: + - enum: [100, 101, 102, 103] + - description: mt8195 pull up PUPD/R0/R1 type define value. + - enum: [200, 201, 202, 203, 204, 205, 206, 207] + - description: mt8195 pull up RSEL type define value. + - enum: [1000, 1500, 2000, 3000, 4000, 5000, 10000, 75000] + - description: mt8195 pull up RSEL type si unit value(ohm). + 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