Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6100750yba; Tue, 14 May 2019 01:30:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYLyjYEDEcBMRLub/TbGTBGbQvqokJ5vqeXWiaVQXuxW7/1qMHVUZpqLDG/xwO4tANDTmX X-Received: by 2002:aa7:9a95:: with SMTP id w21mr19697489pfi.248.1557822651277; Tue, 14 May 2019 01:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557822651; cv=none; d=google.com; s=arc-20160816; b=kSpEoIClnt4tNVcoB7akrklACYziV6Fjrn0vFQmtgURz/5pQJ6Gyq2709wUfGf6aZG BP6dc83gOsGXZ2QgPR6THrlI1q+ZfPJYg4x670LReFu7i4YaEuLaP/bOobCYiGaMte8g UMhInvw8eM3Ag8pomgDm5tiA2jjbyCxOMDE5umh9Yasb2fw5evK5qlU3eFXQSQWAx2vT x7BraTE4fgS63VxSsf96Q/Kkq7UI5mhU12Von6XE+ijBbkyPyzNmS7z65Legya3kNanp YsXm0KLLlEFdkXwsvB7aZmk+x1kkylgGAS37THQED+bsE7aqBkUU1C3FiULJieHNwLyA aEyg== 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=X0toZzy5jG06W74WS/hZf53CDr/smndRtb9GSpbhzgw=; b=HOokizu/7wclJptl9zqxaCKqQIQWGhExz7M8f5aYLu7zf3xd94JIpALHnmZ6mK5vAN YTE+WP9p/eV/8pcv1m5gAQdapfEFB3WSpNUGkXcZ9SI6CloKLnjeLt3mF+G1G5U7D/1Q sUa72qNz6b+I/sTJK1qaildy8ao9jqsDuasPUp0mB0SZHhGpb5An+3BIF1/0Gfl5FDh9 VdrlR7DMTNXa1EGzXVEY60Cb3FPtyzHlnpJR8v4MKsyKdLusEtT+brw1bxl9Dir4aa1U 0YKKdX3eWoaE02o5GxkLZ/RNPBThubT8rNU4frKEM1P+XgqAFvfIbs+47kiR/xxgvgph GMpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=DCcz3Yp6; 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 c15si19416122pgl.160.2019.05.14.01.30.37; Tue, 14 May 2019 01:30:51 -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=DCcz3Yp6; 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 S1726292AbfENI06 (ORCPT + 99 others); Tue, 14 May 2019 04:26:58 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51980 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfENI05 (ORCPT ); Tue, 14 May 2019 04:26:57 -0400 Received: by mail-wm1-f66.google.com with SMTP id o189so1857102wmb.1 for ; Tue, 14 May 2019 01:26:55 -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=X0toZzy5jG06W74WS/hZf53CDr/smndRtb9GSpbhzgw=; b=DCcz3Yp69wR3bZBKDn/QuVK0FvCSof8Ew0WzSEPM81nXrM6IGVV4Z378IW/wEmApc9 6rJYt5azj7d//VJx3fFlxx9csNHdvyMki7rvr5x0lXeY3yt4/TBV9idded8Kfj3wGnko zZVMKUlZf8rv79WH6OmPz8scKITVnTsJKQwfXSdwK0y5KG61Lqd1DXDQHF8y76Osrs7I timrhpRIfLeKoo3xSDFVYbgKZZPLMUW2NaoCeqDtvrYVz9+f7pxgnBO0ut49nHYqsWMp ikucev/DepoE0LeBL3uM7ZWS+hdInkxhqj33nX/o47Qnyegi6YG8MQGwk4yydf7LXlFg bEfA== 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=X0toZzy5jG06W74WS/hZf53CDr/smndRtb9GSpbhzgw=; b=CIBpx+Mif0VogfOXSCypZdestPBqY9xp1H+Mf0nIGBMwkl8WxcMMepA1m5ctK8uZ2Y knrz6LTWyJJmeHvli96Cj3rAdWap7NzScimX3Ddj198wA6R19eqxvvTcgEd228Sn1LI8 WzIOKmNZ93Lk6sZzde6kcWpYOgMNgL2c+LmOjPPHYInTAHWy2XBEa42ad/Z3mf2AJHzq wuwtdOP4anmbW0GNQ7xceeHxN5EAH8djN4/IdWEzMba8cWuBtZnaXNrnLXnNNqDqcgzU AspAP/NPf2EqexLOLSmH6ZUDNIpKfUO+x0B8xonmrWOVSe2SCPGKZ/i3bik7jAoUK1EE USDQ== X-Gm-Message-State: APjAAAX87+U6zPlBsGG9NF2fehbkEwmpTQvvoDpfJdsChLlis4e2fry/ TRe9RsIP1QTbgwt4j03wQRXlbw== X-Received: by 2002:a1c:21c1:: with SMTP id h184mr1792485wmh.78.1557822414947; Tue, 14 May 2019 01:26:54 -0700 (PDT) Received: from glaroque-ThinkPad-T480.home ([2a01:cb1d:379:8b00:1910:6694:7019:d3a]) by smtp.gmail.com with ESMTPSA id j190sm2450772wmb.19.2019.05.14.01.26.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 May 2019 01:26:53 -0700 (PDT) From: Guillaume La Roque To: linus.walleij@linaro.org, khilman@baylibre.com Cc: jbrunet@baylibre.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/6] Add drive-strength in Meson pinctrl driver Date: Tue, 14 May 2019 10:26:46 +0200 Message-Id: <20190514082652.20686-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-microamp". The change to do so would be minimal and could be benefit to other platforms later on. Cheers Guillaume Changes since v5: - restore Tested-by/Reviewed-by/Ack-by tags Changes since v4: - fix dt-binding documentation - rename drive-strength-uA to drive-strength-microamp in coverletter Changes since v3: - remove dev_err in meson_get_drive_strength - cleanup code Changes since v2: - rename driver-strength-uA property to drive-strength-microamp - 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 Tested-by: Jerome Brunet 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 | 180 ++++++++++++++---- drivers/pinctrl/meson/pinctrl-meson.h | 18 +- drivers/pinctrl/pinconf-generic.c | 2 + include/linux/pinctrl/pinconf-generic.h | 3 + 7 files changed, 193 insertions(+), 53 deletions(-) -- 2.17.1