Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1026390yba; Thu, 9 May 2019 09:31:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC4UMUreVYiNWbOJ6AORxA4Ls/IdIKV/iNgNcGDSPlACmK304ieZOKqkawpmVSsNCR2x6f X-Received: by 2002:a05:6a00:cc:: with SMTP id e12mr6585545pfj.207.1557419497306; Thu, 09 May 2019 09:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557419497; cv=none; d=google.com; s=arc-20160816; b=EHJCJzFNlPsrUnr5coie/TdGr1aAlZqAhzizVY/EkE3ZjKFYhi94fXhOEQERFtJKOE rLJVx3gOfMT87ACBy2JWpSgYtHlO3quTuDIjW1VyW8gIY4Mdmav4h1uT5tLq2Eo+wyDm TjgNa5jn8CkS2VC3yhGuBTFOsbGwPGjFlHet/Y44CjMngRohJfCpLheGIMgYeU9pl+c6 s2OBP8c4IWbZ3u61Ku7RqygtBSvYrdMYgV+h/uzzaznR+jW9er551FfTP7lmcQ0YWqBs jXholdSUDCKN2eujxVxfZPnVuBcOGl6YxJTKDcMLy9pPXEPt2YQq+lhZWBmoH7ds5mi9 HFuw== 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=xnUcq849ljF3W1PVVaGBumjDSyHUcTVt7HVj2vrbpqs=; b=HQjGwScNJXTy9/Lr/XpL+FkZbBErT80pH656Y7i/eTR8Lqvks/AP11/JhqPn8hrCyd ktLAACQbpSQ49h9Jb9UYXKVb0nNmhP3QtZN5lwjnh3ZOiwhYADbxtVipePfbGQf2jw9z ZqXKyagHUzVsz7tK/HS0falHw7bVGxYOcQMN2KJEMU30CrJ1/7gopAX1LGISfX77RrD9 2DHdXmfgv75BAIEt9/9s0I2do2CXV0S30mrjO6senEofw8mwQ6A8lBRX+kVtXRct11DE 62elyZor+KcNKPBqEFEKq5d49cBhQPpPYV/lFk1iqAkqp675gFjtsG53o4eUZOIDdBIf Tt4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GTmpYoVk; 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 z124si3981001pfb.265.2019.05.09.09.31.21; Thu, 09 May 2019 09:31:37 -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=GTmpYoVk; 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 S1727404AbfEIQ3Y (ORCPT + 99 others); Thu, 9 May 2019 12:29:24 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43857 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbfEIQ3Y (ORCPT ); Thu, 9 May 2019 12:29:24 -0400 Received: by mail-wr1-f68.google.com with SMTP id r4so3895423wro.10 for ; Thu, 09 May 2019 09:29:23 -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=xnUcq849ljF3W1PVVaGBumjDSyHUcTVt7HVj2vrbpqs=; b=GTmpYoVkiFD9q5dllN+UTANfhfNppEO9k9r2mtPKdiNTKlSo2/K11Kc1DoLO3pzGzo +8oadDWMMF73u7uqsEZVKantnFEz5I1jvg8q9diJ6h67xa9PwPRxZeqN9qzkghbTPqKl Ejxg9meqYwvs8CCfmixifG+k1qEOibJwAnoXDZK57nBxIMlP4YQG/mYlfIVdmMxX9dWU MppYB4r7h8KEEcJBJndg79YL+AZwelfMkzB3PCvXTx5vdbxegozXDdM4wuWT2uw1nlZd ImyV2grmhzXcCDroeRpOWDhTsWt1pRy5VwtgGikKnh7mlrZDfohpGp1+5w9OPq0yooKl 270A== 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=xnUcq849ljF3W1PVVaGBumjDSyHUcTVt7HVj2vrbpqs=; b=o4j3EqIB/VfpBADepTE14ESAXbQKIsMq2kbdxs7EiiISjwysiRGUZq4bye+gJp5OmQ qBBSuhDe13w+ES64cOjUfTW1jgoPkEhs8AprWqnVl6/Q8F4EVKvkxMtrF8qBOwaRZkTR w7XaVj6HQZNlXrNE6Saqa1PXdjmOC9RK6jjsCjvEoh9TOYScXiQtTRrFIvOeMHS2OpnA gCjKudZ6Pw1+6SK5eOS8tJWu1HWInO12ShTDZ3+70U+N6iwmjBSDO8/yJRYRqKfXXBGs EpzimoT1SocetIucIdUQIvjwiaOuuyX2+mDLahfZE7GrqmGgF7OcfkUiceHTk4rOowsG wEqg== X-Gm-Message-State: APjAAAWQFAD91RABqeX/s+92El/ftKOkNFDpr6kOgxvDyuCqgTmCnpvO gb6b9I1+iMj7FtGfuC/Hwv0a+Q== X-Received: by 2002:a5d:4a92:: with SMTP id o18mr3791996wrq.80.1557419362487; Thu, 09 May 2019 09:29:22 -0700 (PDT) Received: from glaroque-ThinkPad-T480.home ([2a01:cb1d:379:8b00:1910:6694:7019:d3a]) by smtp.gmail.com with ESMTPSA id k2sm4116297wrg.22.2019.05.09.09.29.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 09:29:21 -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 v4 0/6] Add drive-strength in Meson pinctrl driver Date: Thu, 9 May 2019 18:29:14 +0200 Message-Id: <20190509162920.7054-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 v3: - remove dev_err in meson_get_drive_strength - cleanup code 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 | 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