Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp485514pxb; Wed, 1 Sep 2021 03:29:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAnVTKh5z1EMtNbB5dBSmK/gHDMlDW1vmyN6qFTJjCETD84viYV67W1cEjTCvYNOp44HuD X-Received: by 2002:aa7:c2da:: with SMTP id m26mr35513238edp.351.1630492141892; Wed, 01 Sep 2021 03:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630492141; cv=none; d=google.com; s=arc-20160816; b=upogTduRauDQEg9NPntjXJWHgKSerMJ0fcrC1rmd7dr8jQOAGaawWKh0gLqYEltLf9 Hu3j8w3NlLZwcFqp2USdu+JeO9jsk4UB0KtLdPCGkFdtHgelPLk5mo6dafNeVEFq/Ay5 LBnG5dfv/+wdvavXn+CTj+EOrz22B+sxtxhexpQH4UY5YFZEpdGyicClI/jr9DJwbnxC cmY3WP+c9Hl9UxkAgXg2yDysCHmdse5RjYGF0q9h5/np9sa5t6QrBuvj3Eb+Ij6g+3Si qZR6mb5lO0u4ScJV+0a3+/5575pe9Wsa28r+akZl8GgBJ583aagd2OmWq/m/Kc2LAncv 9rkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mgYfR3/CpQ3YFz8SbMrcJmhQtblgI9cHByyIJ0goOBI=; b=gmytgPztoxGaafIWAd5Ws7TKCWapctp2KfnGJ0xtMfqP83pCTa6PLr4MyZpvL2IoJ9 K3oQq+6EAhf8hgCcb0x0bUYFa47Zx4TPl1TYCRI7rbH+Bn784yXyImItQDqQw9Y58cU5 SOWpSLCk0dcASFJJqBIdy02TkmW8B/EGQNocs9xYv5/CtI/VweZmRQav7ux64IPITYGP ElYs3h2GnuHG02f+Tbemp4JYJueZKKp4pq6zHxei7/41sKysyR2s1rg5WejU+drNfH80 nX9r6R/x4YDGa7v9T2UEBaBLyhADhOpNfqQ0aebLiZlaCFCSbBKKvEcQgEghRxMaV+AA mHYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eWVsHdCt; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do8si8748556ejc.520.2021.09.01.03.28.04; Wed, 01 Sep 2021 03:29:01 -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; dkim=pass header.i=@chromium.org header.s=google header.b=eWVsHdCt; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233168AbhIAKWs (ORCPT + 99 others); Wed, 1 Sep 2021 06:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbhIAKWr (ORCPT ); Wed, 1 Sep 2021 06:22:47 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95C82C061764 for ; Wed, 1 Sep 2021 03:21:50 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id l18so3933700lji.12 for ; Wed, 01 Sep 2021 03:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mgYfR3/CpQ3YFz8SbMrcJmhQtblgI9cHByyIJ0goOBI=; b=eWVsHdCtUIQxAlqIqaA9KKdn3ovd4zMoXEx2w4VxVZ4sy2vrn74BKX9DJH6nV6/1Al aLop/fzzMw45Lo6jMK04X/WVagNiH7iG2IYhIoKUvHwFiedVaFaXUiVBEdCcMUQwnJMd sVDmB0MR92tBXbGf2gdX/3C2Kc33dlgSVrhXc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mgYfR3/CpQ3YFz8SbMrcJmhQtblgI9cHByyIJ0goOBI=; b=ChzAu6YNHgY6OwhGs1s93o7NYru/JllCMfE7LczRzDMIxWNXz1xVwkiARrtVjTL7NV WkGSbfAxGrHklDRcjvDhk+rISinrP08KePbbFbImO/3WKETWJynNXtH+xUSLwJr3VKOO bpBQRiKOVHU0wpnF4vqKhAI+N+EJ6Qhn9EDOGh+36J4EYZh6J3NZQzenrUZuqgkD2b7i 8GpwHMhY3eTMyoC6bYKy/2Z0BoHCf7pxS+m2xDUxAWoijWA/87wKvgeWRBresvRHK6iK WkqwO8QRjXRo9o3K+eUgD488sj23rcv0JJkUTRRP6gZUlQFBjEqv0so+xgVarNp9QAB8 F8gQ== X-Gm-Message-State: AOAM533vy4Zyx7a5MBbg4EeK3bkTmMpdH4IpPUBYAfjjHjWbSe87qTgi dlmXArGnzje7zmpU43hiN/phkbo7nqbSQinL4yOK4Q== X-Received: by 2002:a2e:964b:: with SMTP id z11mr17242550ljh.91.1630491708890; Wed, 01 Sep 2021 03:21:48 -0700 (PDT) MIME-Version: 1.0 References: <20210830003603.31864-1-zhiyong.tao@mediatek.com> <20210830003603.31864-3-zhiyong.tao@mediatek.com> <1630461636.21764.1.camel@mhfsdcap03> In-Reply-To: <1630461636.21764.1.camel@mhfsdcap03> From: Chen-Yu Tsai Date: Wed, 1 Sep 2021 18:21:37 +0800 Message-ID: Subject: Re: [PATCH v11 2/4] dt-bindings: pinctrl: mt8195: change pull up/down description To: "zhiyong.tao" Cc: Rob Herring , Linus Walleij , Mark Rutland , Matthias Brugger , Sean Wang , srv_heupstream , hui.liu@mediatek.com, Eddie Huang , Light Hsieh , Biao Huang , Hongzhou Yang , Sean Wang , Seiya Wang , Devicetree List , LKML , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 1, 2021 at 10:01 AM zhiyong.tao wrote: > > On Tue, 2021-08-31 at 17:13 -0500, Rob Herring wrote: > > On Mon, Aug 30, 2021 at 08:36:01AM +0800, Zhiyong Tao wrote: > > > Change pull up/down description > > > > Every commit is a 'change'. Your commit msg should explain 'why', not > > what the diff is. > > > Hi robh, > we will add 'why' explanation in the commit msg in v12. > > > > > > > > Signed-off-by: Zhiyong Tao > > > --- > > > .../bindings/pinctrl/pinctrl-mt8195.yaml | 32 +++++++++++++++++-- > > > 1 file changed, 29 insertions(+), 3 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml > > > index 2f12ec59eee5..a341ed9f0095 100644 > > > --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml > > > +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml > > > @@ -85,9 +85,35 @@ 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-up: 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. 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. > > > > Sounds like constraints on the values. Please write a schema. > > > we will add a schema here in v12. Could the description be written to encourage device tree authors to use SI units instead of the macros? Thanks ChenYu > > Thanks > > > + > > > + 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. 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. > > > > > > bias-disable: true > > > > > > -- > > > 2.18.0 > > > > > > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek