Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3658878pxv; Tue, 13 Jul 2021 00:18:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjZzFAh97QB1TNlif9nF5ZNdntuyknQvVwQY6mEV79gOfOWUzBiPaYIlLIO05VLABxEjpd X-Received: by 2002:a05:6e02:52:: with SMTP id i18mr1994498ilr.108.1626160728909; Tue, 13 Jul 2021 00:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626160728; cv=none; d=google.com; s=arc-20160816; b=IFX5RdV6Ef0AHYDIgraE3i2xzJq3BsReLn4MQ2uA2VGgmKzs7F4o7qxfG/ASj2I6WV a85ST8cxewU7KvXJwgqU5KQq2gcXlF2OI2oekU/Je7sDuXlZC7l6+m4f9BCeDXOeekdo XQm+EQXkxMsDEK2qFv8Wd+2X5qQtKBV6vjEdTiIucvInlvIi8BLsHhVRo8qd+Vc0dRQI PHJVE50tCsB7wFCeP7X9GX0iwPlKCYpa85JjgvOYMbTg9w8y8e+haWgQ5e56sSYHPxa9 8LmHoZLx431qzzfMsZH93hjJVfuoGGm9yca7ef13Pwo7teF55fKhB1aw6us8MEWm4m9I 2xBA== 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=v/rXhAg8/mS9EW+OBkg4YZ134yjPtz+YcrIsxDtxXHw=; b=Atdc1KSM4sXFw4+qI1YUDVaw7uxe3L+RA8N6+ILm1pEb7FwarGgkN9waDt5GLKfbx+ Ukc+42rrsbfwY3mw0B8SI3G6tVUXC4Kq6GMq9PzFwgi1aytB+hKZq6t30tm/H3RkT7du IOYPEDJoYguJCXfyGe5WwDuDsPXU7YptyQSzu3xZkvUD0OjrdtNKuNPXZ0BrIFkWqO9N YiwQQoadRtd+O5//UfqY3ZDvLDmgegwWTL/4NhfJftebbIuz+NHP1VIOs/edwGLI0maS z4Waj167j6oprBXgJ7Yu9ujvXMsmiwXQLjAXy5qm7E8IixadoYil8BZ6xWO/JLSk/D2r uDuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gdFmIqRJ; 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 x6si20607803iol.30.2021.07.13.00.18.33; Tue, 13 Jul 2021 00:18:48 -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=gdFmIqRJ; 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 S234103AbhGMHUw (ORCPT + 99 others); Tue, 13 Jul 2021 03:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233762AbhGMHUv (ORCPT ); Tue, 13 Jul 2021 03:20:51 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 357BAC0613E9 for ; Tue, 13 Jul 2021 00:18:02 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id r20so28446454ljd.10 for ; Tue, 13 Jul 2021 00:18:02 -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=v/rXhAg8/mS9EW+OBkg4YZ134yjPtz+YcrIsxDtxXHw=; b=gdFmIqRJGerDFfRedrGfJCYZTiEOVZPen6UFik8USN7wSEnDhX8+z7XGhUv1Xe1UET E60fQrM+rX8DuBoVnFZ+G3Kjv2Ny2c1X0zx9mmRF4HZnwKIPPcavSze3deQaq8cs/zzi E1JxLrPpNqdXrdD9/4sn9ONH67XXUg9JnnlSU= 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=v/rXhAg8/mS9EW+OBkg4YZ134yjPtz+YcrIsxDtxXHw=; b=HElTZgmGL5w1jis5I2ZJrT0Yh2q0kebLNl78E2KzW/uOdsdf/qGD0Kv0jQntcH8ZZ9 94daxPQhCkoD65pCEb1NweoeslUwsIsmJ5tWkhPreC7iGGDp8fVYnVjJlBqRxoENVwja pqRb3P3tBj9EfXi2wx4EQFnmGIilCmFCMssWWxDBjkNndR5k7fr+7SDkojBs1bu0PXL8 LojeZUA+XEZWQDuJ+VAZcW6M0+D+7dnNRjjaYXdvmanhsflDI5/5rPwCIG0cYYy6ZqLz TJ7GT8unSODQulUPFrrTqgqnHcGrZFLiFxjadsy64Ppi+dEwEZhH/KNo3G/XM0KCue3e ldGA== X-Gm-Message-State: AOAM532ef8IrFe+aAawt8z0rlpAOFrnobtnl0B+LFRkHgKaJzqfsNdhS 63HGYqcANdhQwN9BVB4Gq8oi9mjpoaoIHGVjME/0PQ== X-Received: by 2002:a2e:5c42:: with SMTP id q63mr2849499ljb.23.1626160680315; Tue, 13 Jul 2021 00:18:00 -0700 (PDT) MIME-Version: 1.0 References: <20210710081722.1828-1-zhiyong.tao@mediatek.com> <20210710081722.1828-2-zhiyong.tao@mediatek.com> In-Reply-To: <20210710081722.1828-2-zhiyong.tao@mediatek.com> From: Chen-Yu Tsai Date: Tue, 13 Jul 2021 15:17:49 +0800 Message-ID: Subject: Re: [PATCH v10 1/2] dt-bindings: pinctrl: mt8195: add rsel define To: Zhiyong Tao Cc: Rob Herring , Linus Walleij , mark.rutland@arm.com, Matthias Brugger , Sean Wang , srv_heupstream , hui.liu@mediatek.com, Eddie Huang , light.hsieh@mediatek.com, biao.huang@mediatek.com, hongzhou.yang@mediatek.com, sean.wang@mediatek.com, seiya.wang@mediatek.com, devicetree@vger.kernel.org, LKML , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Jul 10, 2021 at 4:17 PM Zhiyong Tao wrote: > > This patch adds rsel define for mt8195. > > Signed-off-by: Zhiyong Tao > --- > include/dt-bindings/pinctrl/mt65xx.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/dt-bindings/pinctrl/mt65xx.h b/include/dt-bindings/pinctrl/mt65xx.h > index 7e16e58fe1f7..f5934abcd1bd 100644 > --- a/include/dt-bindings/pinctrl/mt65xx.h > +++ b/include/dt-bindings/pinctrl/mt65xx.h > @@ -16,6 +16,15 @@ > #define MTK_PUPD_SET_R1R0_10 102 > #define MTK_PUPD_SET_R1R0_11 103 > > +#define MTK_PULL_SET_RSEL_000 200 > +#define MTK_PULL_SET_RSEL_001 201 > +#define MTK_PULL_SET_RSEL_010 202 > +#define MTK_PULL_SET_RSEL_011 203 > +#define MTK_PULL_SET_RSEL_100 204 > +#define MTK_PULL_SET_RSEL_101 205 > +#define MTK_PULL_SET_RSEL_110 206 > +#define MTK_PULL_SET_RSEL_111 207 > + Instead of all the obscure macros and the new custom "rsel" property, which BTW is not in the bindings, can't we just list the actual bias resistance of each setting? We could also migrate away from R1R0. Then we can specify the setting with the standard bias-pull-up/down properties [1]. Also, please ask internally if Mediatek could relicense all the header files that Mediatek has contributed under include/dt-bindings/pinctrl/ [2] to GPL-2.0 and BSD dual license. These files are part of the DT bindings and we really want them to be dual licensed as well, and not just the YAML files. Regards ChenYu [1] https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml#L37 [2] Note that a few files were contributed by other people > #define MTK_DRIVE_2mA 2 > #define MTK_DRIVE_4mA 4 > #define MTK_DRIVE_6mA 6 > -- > 2.18.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek