Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp795593yba; Wed, 3 Apr 2019 20:42:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1KyUzxZXduTFENTb7BEsOSQeviuZhAaA5/mNRQs7qTgHjHFvtG4JpJ4U9Am4L5UEvfMq1 X-Received: by 2002:a63:5947:: with SMTP id j7mr3444299pgm.62.1554349328978; Wed, 03 Apr 2019 20:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554349328; cv=none; d=google.com; s=arc-20160816; b=P2yvmhEOQiO2ohqXR6IaKJMCgL00yLb+Ix0qGbukXHJzWu1TDwQwo3Qa9/m1oZZsHq EgHOavNQ+WCbVmrFj8SKz8X+sNn6h+QjrFxvoTLjV/7V15tM0GtLodf8LHKxLII+0MLA S4ZYLfzqKogAS98kofKPXzaJB5Z25hV2efxS2Ls8QJ5Qc8w/4YyNLFWB7alMR5cH4xZp cDl+spAb7YhUbMugMGCuFTJFlAXs/PBzSGPvSi0tB3c3DPqFY6L002OxtaaqGDaxcYW+ +jabIxk8kc8uBI70ZZFK5cLwyoiDrX5fLDkUGbaW2AkcwkMS9li5OOTMKDQpDLlyLnU6 XOXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1n3vNyf2Cpl+mI4a9w2n20PNikLsfrphaPgu96srNGI=; b=pGcbUnbvubidCUqDj+AJk/U4t1fTBOWLCWiSNOVyNwidoX7qyU8tuzVHE3/vi1kXc+ 66Ci1Z4LwlPcawsYhFDBKERAEVIOz9WN9a7RAWl7SmLmQxvtTcB3Yn5YJyEsu5RJQxIO L+qCbQSphaSvxSxiNUJ/mQIeBCQ8hmAVnDBiZSrVQCfR1DB2jDdCiC9a7sMXXIUcCwZW JXzcjtw8nCM2Uli/pp+a4bscD0l8AHtGc5ALin6U1E8rONo8qHO0sKSGGi6PEtjnxE4i sz6DGgIGhDsWPvzgMr7YOsRsmeaGQA85M82gBrlI4yqsETxujyloXdM2JMAuO/wPoBtD oE5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YfPok6IO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si16119751pfc.104.2019.04.03.20.41.53; Wed, 03 Apr 2019 20:42:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YfPok6IO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726535AbfDDDlS (ORCPT + 99 others); Wed, 3 Apr 2019 23:41:18 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40396 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfDDDlS (ORCPT ); Wed, 3 Apr 2019 23:41:18 -0400 Received: by mail-lj1-f193.google.com with SMTP id q66so735299ljq.7 for ; Wed, 03 Apr 2019 20:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1n3vNyf2Cpl+mI4a9w2n20PNikLsfrphaPgu96srNGI=; b=YfPok6IO8vKE7hBaL71PCRaGkCdMagS7QR2HypB6bqjTMLbGbXxs8V0p6VvgYogGLM nOBuBEYbEMW+50hO3gog9keaK1s+oz2Z4RmUOn21ajca+Ssrqe5QL1w0skk/Bzoh55ia Y/VKKRb+CPVtFLrLlInFm6X9mvTL0cwfewk02uDwnjLO/D9GBUE6g4Z7OfWkPIlrNjI6 pHtcDDNWQjNan+XGuFvtGDf9J+iofDu9O2KtR2xW32ByOuc2nmltR4n0GnXbeGiFtcmv 5fRAUaKKG0cTArcF9nR2pRbjH8rfRn1nQyVDbHj9PUuV6QZgn073JSXjLC0EJKNdkG9b mOBA== 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=1n3vNyf2Cpl+mI4a9w2n20PNikLsfrphaPgu96srNGI=; b=JKUgBwHT5DHqUhi807DFvg9/f807tIV0K6s3bOYHwcMbcof0hFaKmB7vyhJW9MoNnz W7tRrzGBkq2H2WIhfvyz/icb+16sT8vhYiVKgE5/zzKrqpBmeaxe5fcTO7vJL06wdnVI Ybr+LIKIUDjuusBhSbofHZch8XqKuNS5WPAh4N71g5ieg2+2bbb2yzScPezw8I3LP4y3 u3gQnEd7FoB+PENeJ3CXDZUn1aH7k4Or7/2OBpx7lj4AbZTzaXS/V3VjhRWtzBUUTIB/ oon3LyUyHtOyh98ynTKvvhoYCvBFcY9jsDEsxcHcLen7Y7L4lJBWknD3NWILO4pzlNZu Xx2w== X-Gm-Message-State: APjAAAXOL/A7I81zQOX7Y7hx+mMibB69xz7psgLvVm14jOkf3kAtswMx vw6E/rjRGJRn0QWkL327AzVOP8b3KKX8bXHeUkBDgQ== X-Received: by 2002:a2e:9d12:: with SMTP id t18mr1778098lji.163.1554349276108; Wed, 03 Apr 2019 20:41:16 -0700 (PDT) MIME-Version: 1.0 References: <20190314163725.7918-1-jbrunet@baylibre.com> In-Reply-To: <20190314163725.7918-1-jbrunet@baylibre.com> From: Linus Walleij Date: Thu, 4 Apr 2019 10:41:04 +0700 Message-ID: Subject: Re: [PATCH 0/2] pinctrl: meson: add g12a drive strength support To: Jerome Brunet , Rob Herring Cc: Kevin Hilman , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:ARM/Amlogic Meson..." , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , Guillaume La Roque Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 14, 2019 at 11:37 PM Jerome Brunet wrote: > Now the slightly annoying part :( > The value achievable by the SoC are 0.5mA, 2.5mA, 3mA and 4mA and the DT property > 'drive-strength' is expressed in mA. > > 1) Rounding down the value, we could be requesting a 0mA drive strength. > That would look weird. > 2) Rounding up, we can't distinguish between 2.5mA and 3mA > > To solve this issue in this in this v1, we chose to document that, on Amlogic, > drive-strength is expressed in uA instead of mA. > It works well and there is no impact on the other platforms but I'm not sure this > is really OK with the DT rules ? I want the DT people to say what they think about this. > Linus, if this is not OK with you, here are 2 other options we are > considering. We would be very interested to get your opinion on the matter: > > 1) instead the generic 'drive-strength' property, we could add an amlogic > specific property, 'amlogic,drive-strength'. It would be expressed in uA > and parsed in amlogic specific code. > I think this option is kind of overkill. Expressing drive strength in uA is > not really amlogic specific so it does not make much sense, but it would > work ... > > 2) Add another generic property "drive-strength-uA". The change to do so > would be minimal and could be benefit to other platforms later on. I would go for 2). But we really need input from bindings people on this. Yours, Linus Walleij