Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3648197yba; Tue, 7 May 2019 04:58:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbnaSx5maOpFb/gT7WqwHwf8LSGQjmcM9pDcUl9ZO+FiNaBm5QSTrwHzs9AeR+21iCjD+1 X-Received: by 2002:a65:5682:: with SMTP id v2mr39316358pgs.100.1557230335766; Tue, 07 May 2019 04:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557230335; cv=none; d=google.com; s=arc-20160816; b=W7a0MDnj6aj9lBUubDysFXkyfo34ZWwes2Jtsr98vJ6Qh5S40Pisog1KWH8WtmAZY3 qedM2U/hwPKY/AJl3+HlnziW1h2+1N7VTL9XYRJ4EnB6OMcTRWE18e4ZqntYlyC5h4Y8 EHKrgSJVM4AOn31idiY9H4hZcLVPILqfW6/gXD96ryQIlNG0kxKcX8MS9YoufUaBC9Xt ArWbRUwQA2K7oylXmiRt5+W/vPKIIRbEFJLMScjZHG2KPNK56q6yYmOSggIp+XClUyIp tDYK5/kw++cD8jLnXMQYJo3/Ix+CCRopMBqXiZyKeufL+LkFJkTXHexZxE4JBmtGwAWB 0avw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=OPHdfYWKRwJAQs5uJB7kF0RzPQn+beeGrm95NylS/7s=; b=MqWvVSYCQ99d4owFCSQ2Vl190M3WdgQ1SQT3lKcMQo74PIn1D5x3ivuwz1f495rlAC ZtXwH5aOHiXycmrT2xU3kn8q7u1/KFZdEBabZ1GY10u4Zs5gDhnUHNj7STKzSv1ZQOko nKDRCcfi8bNR19LVnuuHi+l4hcmWAeXsQ4Sb0S3MQLjC8+1kzlngk7i53c8/pe2FJi4s Zg03Oo+LsIAPByERxzDASBfq+UdniYb13kZ9ElQWTgjqWRCAcSaJNHgTIuea65lqPB5w YI5k3bSfWWmVi1ZCFSIqUYg3GJTjTCMJgr/FveAk/0cgnjV/LR+NIkst3hxW7MmgEcf6 ZuMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=x8IfvxSV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si7776889pgv.117.2019.05.07.04.58.40; Tue, 07 May 2019 04:58:55 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=x8IfvxSV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726529AbfEGL5a (ORCPT + 99 others); Tue, 7 May 2019 07:57:30 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50772 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfEGL53 (ORCPT ); Tue, 7 May 2019 07:57:29 -0400 Received: by mail-wm1-f68.google.com with SMTP id p21so20085654wmc.0 for ; Tue, 07 May 2019 04:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=OPHdfYWKRwJAQs5uJB7kF0RzPQn+beeGrm95NylS/7s=; b=x8IfvxSV8xEyOX6DuO+iRYAmA4ddSLYPKfR6dboTkoILy/QRKBArxlBAqvMLlcmJL1 /5D8PHaON0JpgYnLnNZnWq9uxuReXFmxTfcDj+3heSe1vSpK7rUgSOtcnqBuDb40cG8W DONlXDGPv3EnkrEbbGS0r8GTGdxvqbI5Rs5XAAjZoOIa8sj36Xmvbvpd8hGuEXmkVlXA kKUSswjcq87zaGBGK5mK3W9Cz9wP0qjY1Nc7vL857HnFB5qcKLNbMeNDbSo3uv05fbno KB5O8EZSr1mMGwCqRxSoVtld61l4K+vCXFWZyiYf8EauwQ4Qq5xWoxE1LSw2ed6XxKGE UPVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OPHdfYWKRwJAQs5uJB7kF0RzPQn+beeGrm95NylS/7s=; b=FL1ejbuHGH9swjrtlzPkaITq0qDZ3hm0Ap9L1X4oyeMokfYTTwf04JIkIvie64Y5WV iM155V5WTTofxf6a1Y0H9MV/piwU9kVR37VYRX6QqrAGIi0SE9ClajhMIWl0yH4PpWC8 JmHtVpKbXJFTQQXSay5PhrIUUUt0SsnMp8rmP79NEfrDWi5MhsRIithp6A/ljlYmKdvQ KVKJe74MD9iEnUIk7rhJqZ3I+u4RJgvNDLQpRdOEhGBycHEK/U4Lwp861jGMGPApAMVG nLAZonwc4fE4FWrFDb9LaGL9piWWafEdR/62OgJYu1ZACMJLOpGhQjONctXhDJwZrzOV ik8Q== X-Gm-Message-State: APjAAAWOj4FRxiGpURiWjiJufuJJTtgWSJKWNHeCVNrxWPutMNow10wU xYchyWqbjAuaLNVXYUsIB4rSxw== X-Received: by 2002:a1c:1903:: with SMTP id 3mr20479100wmz.103.1557230248087; Tue, 07 May 2019 04:57:28 -0700 (PDT) Received: from glaroque-ThinkPad-T480.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id s11sm7120274wrb.71.2019.05.07.04.57.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 04:57:27 -0700 (PDT) From: Guillaume La Roque To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, khilman@baylibre.com Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/6] Add drive-strength in Meson pinctrl driver Date: Tue, 7 May 2019 13:57:20 +0200 Message-Id: <20190507115726.23714-1-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1