Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3648442yba; Tue, 7 May 2019 04:59:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLOrCg83AhEV/9WPqi3jevnr4Lep8fKm6AmUAw9Encmwx/JJT6jNYjTHM56WyMi/kwnKci X-Received: by 2002:a63:3fc1:: with SMTP id m184mr38541268pga.222.1557230353117; Tue, 07 May 2019 04:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557230353; cv=none; d=google.com; s=arc-20160816; b=bO1AyytOGmmZU/KqZYit/LtMiKfrf7SJoFdJOO6GATHhqLRr7zYtcmtO9qhQ3Nm5/m b6KHAiAFM0Z8FMpxVG2NpJnw/iyDdjcKOBDkmPJ9PJ577JYWt7RaXP+Z5h8lCm1Omzur V098S6Lcc+RHq4ZWm6n1ryTokz+Xa/pnGGaIu0+f8YmAWoukvg8CwA4jyc/ifztUqtZN 8IQDBkP99oooX0qITH/e1DLwNjT1C4/4eEQmOF9h2uLMyrAvLvUxUZM4hkvmge9VQCRV msuKEvp4Hw+rT+NUlJwJOIpXoGtMZn5+jwY7n9Hmnih+YnRCLsa+hjQumhE0jU00SRly BJ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=msbkGlp4GOhLlJp7h+ns/oU8AGbAhiOw2cYUQ/XgHZU=; b=XISjEX4zfNI7zg8czKhbm/czL9vSWqE7VVlRNslVwaOkJ2wqPK5ZliZ/kesatDEXU4 prG2U1zxDx/GbZpxGS8qTyHcCyXzO+mWWbxUFoeLvjpwrym8G2Rapa6OvO+uLITCOrMQ EN55KIvalK98sEtVOOLND5wwH+ahNfbOMG3iH53208eV2Y2FGX4ab7QbR4ghFnSKBW/C zropFydnCtaL2D3p6N3niIOxE0v3ojHOrI03rF+ABZN0UNkP26wq2AsecG8Q7ehc4wr0 0sa78ko525rJUuYTm1aSNHw/iWLlxZECWQ5aw4t/lD2Qm3CQHGg79sf93IgBUsMFTIev cbqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ORMdFSkR; 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 p22si18822856pgi.449.2019.05.07.04.58.57; Tue, 07 May 2019 04:59:13 -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=ORMdFSkR; 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 S1726644AbfEGL5e (ORCPT + 99 others); Tue, 7 May 2019 07:57:34 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46161 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfEGL5b (ORCPT ); Tue, 7 May 2019 07:57:31 -0400 Received: by mail-wr1-f68.google.com with SMTP id r7so21897562wrr.13 for ; Tue, 07 May 2019 04:57:30 -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:in-reply-to:references; bh=msbkGlp4GOhLlJp7h+ns/oU8AGbAhiOw2cYUQ/XgHZU=; b=ORMdFSkRCdyE+SnLSIff4rZDuaqF6Z4BCEyALlbtgoHAHAmrxvxoc8UQ5Mm0IttZ2y bYn74l0rcrSNtBns3VGvRRWqDbCvvZWqWpu+mc4qh08+nFy+bI3MqG06XfRHbcfw90ik XBKzMuBQanGYfYKhDzT48EWsEzx0cy0n8gMlN7GlGsg0AmJCxkxY15yrZQBJ8CwvEiSR H/5cfZTp4h+ALAidmMCPU0BqtitZXuyHBWFOY8zC1i+1254Qq7NjuH/x1pepalXjikhY 3mfsOM1SeBKOXOt0JtqeHAgXsPqyvjqAmsDghkcbESvfsHGnbnWtTXBs6ufzEKC2pkJ6 MaJQ== 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:in-reply-to :references; bh=msbkGlp4GOhLlJp7h+ns/oU8AGbAhiOw2cYUQ/XgHZU=; b=c553ZeC0cOYE3h12jo/uNeDXa+GatTHbdvmBUw19nLLBgXdebbQYlZ7pV2H1gvjqeI grph9otB3AqDk/qLmGrFsK/21rIPxopBSuohZXKikkZ/TgN/MfYRrVlAHRJZR48nY9NW PURvFY1vLGLpMkd94fLDvpbqXH3zON7E92He6j2IIWnWOTjFEWY2jgND2qw8QBQfBM8z YQKkWeDtVLE/Jf+7LNJmf1mANxetmwrhcNj6mk2w4PBK1A9YgmVTDjdrR2EjD6k4mKTC 6w7S3xGE+7HTrHRbXqz2sKM5qzIPP3+YA8AJ0QzjlsjZKPxDGNQpaMNljIHOOke6gqvs 2W0A== X-Gm-Message-State: APjAAAUQLzGVd11OKn3aGpPBfKfFraXO3imF7oO93MhXk9rFgTaMsJ3a 0Atw0t+MmBC5F0DjZp/DO4hwng== X-Received: by 2002:adf:ce07:: with SMTP id p7mr1929047wrn.47.1557230250332; Tue, 07 May 2019 04:57:30 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 04:57:29 -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 2/6] pinctrl: generic: add new 'drive-strength-microamp' property support Date: Tue, 7 May 2019 13:57:22 +0200 Message-Id: <20190507115726.23714-3-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190507115726.23714-1-glaroque@baylibre.com> References: <20190507115726.23714-1-glaroque@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add drive-strength-microamp property support to allow drive strength in uA Signed-off-by: Guillaume La Roque --- drivers/pinctrl/pinconf-generic.c | 2 ++ include/linux/pinctrl/pinconf-generic.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c index b4f7f8a458ea..d0cbdb1ad76a 100644 --- a/drivers/pinctrl/pinconf-generic.c +++ b/drivers/pinctrl/pinconf-generic.c @@ -39,6 +39,7 @@ static const struct pin_config_item conf_items[] = { PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL, false), PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL, false), PCONFDUMP(PIN_CONFIG_DRIVE_STRENGTH, "output drive strength", "mA", true), + PCONFDUMP(PIN_CONFIG_DRIVE_STRENGTH_UA, "output drive strength", "uA", true), PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "usec", true), PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false), PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL, false), @@ -167,6 +168,7 @@ static const struct pinconf_generic_params dt_params[] = { { "drive-open-source", PIN_CONFIG_DRIVE_OPEN_SOURCE, 0 }, { "drive-push-pull", PIN_CONFIG_DRIVE_PUSH_PULL, 0 }, { "drive-strength", PIN_CONFIG_DRIVE_STRENGTH, 0 }, + { "drive-strength-microamp", PIN_CONFIG_DRIVE_STRENGTH_UA, 0 }, { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 }, { "input-disable", PIN_CONFIG_INPUT_ENABLE, 0 }, { "input-enable", PIN_CONFIG_INPUT_ENABLE, 1 }, diff --git a/include/linux/pinctrl/pinconf-generic.h b/include/linux/pinctrl/pinconf-generic.h index 6c0680641108..72d06d6a3099 100644 --- a/include/linux/pinctrl/pinconf-generic.h +++ b/include/linux/pinctrl/pinconf-generic.h @@ -55,6 +55,8 @@ * push-pull mode, the argument is ignored. * @PIN_CONFIG_DRIVE_STRENGTH: the pin will sink or source at most the current * passed as argument. The argument is in mA. + * @PIN_CONFIG_DRIVE_STRENGTH_UA: the pin will sink or source at most the current + * passed as argument. The argument is in uA. * @PIN_CONFIG_INPUT_DEBOUNCE: this will configure the pin to debounce mode, * which means it will wait for signals to settle when reading inputs. The * argument gives the debounce time in usecs. Setting the @@ -112,6 +114,7 @@ enum pin_config_param { PIN_CONFIG_DRIVE_OPEN_SOURCE, PIN_CONFIG_DRIVE_PUSH_PULL, PIN_CONFIG_DRIVE_STRENGTH, + PIN_CONFIG_DRIVE_STRENGTH_UA, PIN_CONFIG_INPUT_DEBOUNCE, PIN_CONFIG_INPUT_ENABLE, PIN_CONFIG_INPUT_SCHMITT, -- 2.17.1