Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4039792yba; Tue, 7 May 2019 11:05:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeaB8KfrLmGo2QIvre7QnD4Jn91npggiXWGOa7y2Gbw34lFN8kO/zl1lCeqnXQnmsJOM37 X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr41964530plp.241.1557252308631; Tue, 07 May 2019 11:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557252308; cv=none; d=google.com; s=arc-20160816; b=CxMs3XddaMdvZHLDUDhFC17/4oN7iT6KvQtuso08QxRRFNG1+KOtAxz7Eq9C4cmXEF CmbF+OupYHn7TKP7fi/K+1kTmovs4WQSi8GTpfmRlfOmzw2kQMTNy0DoHjfxK87ZHDAy wozhHLuofO+y5ZcgwZP6jmRLPmmN0bSNv6dDxbRDtYPnLnNDI6P0UHrn9gnffBBpWer1 xjlSrrPqZITHkyAkM8yX9wsWMZteKtzwClnm8zCoo5XAm0B+8EVEmCrWXI1NYyRXzH/p OicCLSX1SJTKUOwu3z22vawX0BEF+Vjcw9hSVTPELOV/7v8tcXr9tTTwgMagDtXy2X+B HNqg== 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=JPY4MNS2RU9Z7127GFID4Lx/B6dOG3nVMga0YqQtB8c=; b=ABENhDHeL0oiZBMWWxHmkN8Z2m0UcJB+RZfoWMRiObVoOEsPleMBEBQUDmOQPe94nm p09VskdH10Oww+Nuwi4rPEK+uaukmMh48K3gb98n8hF1nfBGAAPoa3PIuMpCvA14X+nC S+GQVgRfqjR9wYR2kSimuwdtXdk/BbCqW9MCK1LU7hi8JeAGB7V7GbD0ey3AmAl/m9aO e0i18XWYwpvPE4Z4HYIMWMf7EK9KrVqV4gxsofMm9ttl9EDUrnu2UaKL4+7C6M0ZfVi/ SovBz1CMitj7bI+qS5koGnO17rE7w437B99cW4sWwwlKesFIq8M0WreskFl7SLLW2z3d 6erw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=dEjPu79o; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si19570171pfd.80.2019.05.07.11.04.52; Tue, 07 May 2019 11:05: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=@googlemail.com header.s=20161025 header.b=dEjPu79o; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727643AbfEGSD2 (ORCPT + 99 others); Tue, 7 May 2019 14:03:28 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39106 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbfEGSD1 (ORCPT ); Tue, 7 May 2019 14:03:27 -0400 Received: by mail-ot1-f67.google.com with SMTP id o39so15810796ota.6; Tue, 07 May 2019 11:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JPY4MNS2RU9Z7127GFID4Lx/B6dOG3nVMga0YqQtB8c=; b=dEjPu79oBosxszWQphXSKUqe7G1xsSPgFhtqj4tKfyqpcctSiuhn/Fb66s9jXMolky 3/vX9dPKYZDNBS3w5AuB+6GiRdByvIdADIWDyE7qfX6CiEnXiQ1T7ivdnnJOwldqBkVc v4lg11BczqJr454iyBOORvN47uUdLjtHzwdH+LIoqXvoPLjAAJX7O+TDhzFG2LiiB3yh zQ4GjQsfw0RpbY3v/M46MMcHlhLjUYoVg74+42B5FPKdr3eIAnCirn378EZL8byrbbXO yf7c9bL7D7lktp6PPblQIUTjIK354FWIpLlgXoL0KCyS9maY19pcygF5NeXUlWJJjaRH WwDQ== 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=JPY4MNS2RU9Z7127GFID4Lx/B6dOG3nVMga0YqQtB8c=; b=sFzjQLDdHlZTDJRSXXqzz3jDzuK2cHNfnslWEz0kJ3keH9y7jTXsAK0IzEHytFaZ5F UhlW0UrwMBD3PoSTD3+o5GdHssQAy1tHe+inLjY9zLpxautUdMT0vBqFdqHgNxohe/YN 3ZzfLW0M3UNyz4LgZsMpp0F3q8DV9Ga73HX5kUnVCNEZpZJmU6Oe7SlCJQu2eDV0TG8l bAvTvijZecNLFgLpdE46lK9ZTTPcJy9UfQ2ZSjsN5hrNY2K2N6IxyVKdEd7ZYY0Syl0o 3izTJR3R2szPFQdkt9X8n3Q0XQnknkBWNHsYkfPrvtOcRwrPTxpFAv6Yjkdtf9CN1RXD 1RlQ== X-Gm-Message-State: APjAAAVRphbPiEuan0Eiyb9xCHwP0qinGSVZDoRyzozRrLwwOmc2NabK O2LLAZHphpFD1QwJ8K0edQUbdkTpvzHD2915UgY= X-Received: by 2002:a9d:4e97:: with SMTP id v23mr22088662otk.148.1557252207032; Tue, 07 May 2019 11:03:27 -0700 (PDT) MIME-Version: 1.0 References: <20190507115726.23714-1-glaroque@baylibre.com> In-Reply-To: <20190507115726.23714-1-glaroque@baylibre.com> From: Martin Blumenstingl Date: Tue, 7 May 2019 20:03:15 +0200 Message-ID: Subject: Re: [PATCH v3 0/6] Add drive-strength in Meson pinctrl driver To: Guillaume La Roque Cc: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, khilman@baylibre.com, linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org 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 Tue, May 7, 2019 at 1:57 PM Guillaume La Roque wrote: > > The purpose of this patchset is to add drive-strength support in meson pinconf > driver. This is a new feature that was added on the g12a. It is critical for us > to support this since many functions are failing with default pad drive-strength. > > The value achievable by the SoC are 0.5mA, 2.5mA, 3mA and 4mA and the DT property > 'drive-strength' is expressed in mA. > So this patch add another generic property "drive-strength-uA". The change to do so > would be minimal and could be benefit to other platforms later on. > > Cheers > Guillaume > > Changes since v2: > - update driver-strength-uA property to be compliant with DT documentation > - rework patch series for better understanding > - rework set_bias function > > Changes since v1: > - fix missing break > - implement new pinctrl generic property "drive-strength-uA" > > [1] https://lkml.kernel.org/r/20190314163725.7918-1-jbrunet@baylibre.com > > > Guillaume La Roque (6): > dt-bindings: pinctrl: add a 'drive-strength-microamp' property > pinctrl: generic: add new 'drive-strength-microamp' property support > dt-bindings: pinctrl: meson: Add drive-strength-microamp property > pinctrl: meson: Rework enable/disable bias part > pinctrl: meson: add support of drive-strength-microamp > pinctrl: meson: g12a: add DS bank value > > .../bindings/pinctrl/meson,pinctrl.txt | 4 + > .../bindings/pinctrl/pinctrl-bindings.txt | 3 + > drivers/pinctrl/meson/pinctrl-meson-g12a.c | 36 ++-- > drivers/pinctrl/meson/pinctrl-meson.c | 177 +++++++++++++++--- > drivers/pinctrl/meson/pinctrl-meson.h | 18 +- > drivers/pinctrl/pinconf-generic.c | 2 + > include/linux/pinctrl/pinconf-generic.h | 3 + > 7 files changed, 195 insertions(+), 48 deletions(-) I gave this a go on one of my Meson8m2 boards: [Meson8m2 doesn't support drive strength and still boots without any crashes or obvious regressions] Tested-by: Martin Blumenstingl