Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp433346pxb; Mon, 16 Aug 2021 08:39:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwizf+BbRL1Ayjsq45zBW+JVOoE4M/1c/lCvwiB3LWKd7JJYpi3UTDjz+eZKgqjrg9LEIcW X-Received: by 2002:a5d:8506:: with SMTP id q6mr13243410ion.53.1629128384251; Mon, 16 Aug 2021 08:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629128384; cv=none; d=google.com; s=arc-20160816; b=jBRRsGh74gc0ZjnIqbK3N00HeG1qiKw8+dl+xUdASmqnnypdRzQ3Pf7fXu/KNPyNBV 0rBi4BcNZNKT9owZWvuvol6lwlEXg69zEachb5s5s2su8OwAFhDZypKNR6ln/MANyEFU 8zMzqqtyi3AsUBCezcFWKy+5+h9JLzFz/CRZHQOjvOef3lPOSP3w5RODVxGcJR8OyeV6 bmNF8YS1A1fzf8LQFNr08MFv/U8+iNujGPtefjGj/Ek9e6JI7Wvo3DQLk+kKERvObRrH gqth3Kl3wniqjCLD7pJCSaP9VfqSVMyM5co2V4uY90MmCanb/Bsmc1yaVMrCYj1+J/uq labA== 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=Bm8tYluwE2tHBRzqwzgJszhrItkJk+y3RCcuMDJTmI8=; b=aZIacKJiMCAEqkHQEWKIwUQmLBrX3Adct4FDLV9fO1Ap4+fb3R+urnVkL3MHvlUeXC JwIcwTonJbiLdbiiPMv6zlTYDxWX9EiPuqSnQK+sOCFvCI5ettry/JMQrlGNegvVDnnM dnoVeHzLJy4PbK2bYf2IJmOK5mjNozLPAFLyj1/Mz+jrTCmxqMrHYt9O/tae7Sl5aUYI xj4oL5ron8VI5jHXfPtAgQfxPZ0jZ5rHuMThkdh7RKDh3QYeXMNxi7HeHgCU2n9/xUGY DSH3u9em2MAAPE4DutidZl0cnAC0CJEoEcFN61KZucOUDEkQS016L3uC/8ILj9hWxXdu 9vqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OT95Md82; 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 o7si12987812ilt.86.2021.08.16.08.39.30; Mon, 16 Aug 2021 08:39:44 -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=OT95Md82; 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 S235241AbhHPPir (ORCPT + 99 others); Mon, 16 Aug 2021 11:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236434AbhHPPih (ORCPT ); Mon, 16 Aug 2021 11:38:37 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16710C0613C1 for ; Mon, 16 Aug 2021 08:38:04 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id x27so35310006lfu.5 for ; Mon, 16 Aug 2021 08:38:04 -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=Bm8tYluwE2tHBRzqwzgJszhrItkJk+y3RCcuMDJTmI8=; b=OT95Md82WHgRGyLWmxE6nitIx0C8BB1adlzRDuzRT9M2zqetzj87ra3kpFm3KgMYga 8RIHvMHWlEO+gCYykxVaQ3u+tQvAxFx9yTJkeOeM0wj3hI/3jYP76ODLd+t8d7vyCUu9 YqAXy0/NlJDrv+x2x/UfYn7oZho6vLBJ3zIdM= 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=Bm8tYluwE2tHBRzqwzgJszhrItkJk+y3RCcuMDJTmI8=; b=gWrX44woG8cRX/vQBjrAqTP19SUMIGemCLZzfI1OiIyJvpJ0xK8eq6XjSIQetnb4eo xPMKp8cXxQL1PcSiT3a0RpblXNwF00Nw05zz2+Fw4VfABsFKjCHJDH0mwSfCxtX+/ctl A9JwQLKFBWdbX2/RuNv28kTkpKLfGihX+lwg7IABw5wrXeNEkchwhmd90NkLk1sSEcv5 H4P9g3btdYR50r31DeN3SwdwC9dHiQ52eW0LBh1pRJ9EwEGutvqPJG1Rzy2MPdKu5boJ bwGnNALSGIUyIBhebwRDJ+g8UGqADSxBkpzxJLAbPyGsdxcepvRu6sLQVZWLQJ70Flwh ZXUg== X-Gm-Message-State: AOAM530biFoJDHWziyAOQ5weeyqVdi9JXCUL0DolqIuig6+MQMQOj8L2 llkOTIOQidmvY6TBY+96xtc5jlTUEWU/Q5vKBGafOw== X-Received: by 2002:ac2:51dc:: with SMTP id u28mr10792613lfm.444.1629128282504; Mon, 16 Aug 2021 08:38:02 -0700 (PDT) MIME-Version: 1.0 References: <20210710081722.1828-1-zhiyong.tao@mediatek.com> <20210710081722.1828-2-zhiyong.tao@mediatek.com> <1626940470.29611.9.camel@mhfsdcap03> <07388dac4e25e0f260725e8f80ba099d5aa80949.camel@mediatek.com> <4fd12d5c53f6492e5fa3ba94a78b9a149f5b6ed9.camel@mediatek.com> In-Reply-To: <4fd12d5c53f6492e5fa3ba94a78b9a149f5b6ed9.camel@mediatek.com> From: Chen-Yu Tsai Date: Mon, 16 Aug 2021 23:37:51 +0800 Message-ID: Subject: Re: [PATCH v10 1/2] dt-bindings: pinctrl: mt8195: add rsel define To: "zhiyong.tao" Cc: Linus Walleij , Rob Herring , 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 Mon, Aug 16, 2021 at 6:48 PM zhiyong.tao wrote: > > On Mon, 2021-08-16 at 14:10 +0800, Chen-Yu Tsai wrote: > > On Thu, Aug 5, 2021 at 7:02 AM Linus Walleij < > > linus.walleij@linaro.org> wrote: > > > > > > On Thu, Jul 29, 2021 at 11:43 AM Chen-Yu Tsai > > > wrote: > > > > On Thu, Jul 29, 2021 at 4:23 PM zhiyong.tao < > > > > zhiyong.tao@mediatek.com> wrote: > > > > > The rsel actual bias resistance of each setting is different in > > > > > different IC. we think that the define "MTK_PULL_SET_RSEL_000" > > > > > is more > > > > > common for all different IC. > > > > > > > > I see. I personally prefer having things clearly described. I can > > > > understand this might be an extra burden to support different > > > > chips > > > > with different parameters, though this should be fairly > > > > straightforward > > > > with lookup tables tied to the compatible strings. > > > > > > > > Let's see if Rob and Linus have anything to add. > > > > > > Not much. We have "soft pushed" for this to be described as generic > > > as possible, using SI units (ohms). But we also allow vendor- > > > specific > > > numbers in this attribute. Especially when reverse engineering SoCs > > > that the contributor don't really have specs on (example M1 Mac). > > > > > > The intent with the SI units is especially for people like you > > > folks working > > > with Chromium to be able to use different SoCs and not feel lost > > > to a forest of different ways of doing things and associated > > > mistakes because vendors have hopelessly idiomatic pin configs. > > > > I'll take that as "use SI units whenever possible and reasonable". > > ==> so It doesn't need to change the define, is it right? > we will keep the common define. Actually I think it would be possible and reasonable to use SI units in this case, since you are the vendor and have the resistor values to implement the support. Having different sets of values for different chips is nothing out of the ordinary. We already have to account for different number of pins and different pin functions. That is what compatible strings are for. Now if you have _many_ different sets of values within the same chip, that could make things more difficult. However the clearness of having the real values visible in the device tree would likely benefit both software and hardware engineers outside of Mediatek. That is what we should be aiming for. Regards ChenYu