Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp545094yba; Thu, 18 Apr 2019 05:49:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWqc7kWhFWkIT0UywD8XF78ABCMEkFtXL08TjDBmbupttbZIjXh5PZAIMhQT7y3FzIQGDQ X-Received: by 2002:a63:2b4c:: with SMTP id r73mr90151992pgr.181.1555591780774; Thu, 18 Apr 2019 05:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555591780; cv=none; d=google.com; s=arc-20160816; b=A2gUePle3QP/w8b7RBHlbgPCY1ocePblLE0JIU3hzjQoFzFkP4z2LnBKXg+JP/19SJ SW/G1sZnWcQ3L5xpni1KeZCLZF9/WYHxOxUUyPnyCv0xMoLeonjvkO0LSZbAh4exWbPm OespLY9qYf6031D4I1Xxxvl3lDtak5f95RX3ZneZceGED3FJlBmEelnGvM4v0FYz43Oi Au5HeQ5CSzxIUz5kOO8xe7rYyVIzZnKv112sxzsb/jCIeYqM+m+FIqlhR8R3iLz5kKjm 6vXxx9vV9gE76B8AvmxIOudzAanp6BLZ7cMELDVaGMoTW4oVczJxLI9wygtiEmJba6RM DzOg== 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=lEmzBEboKIGTezlbO3ot+XflyRscqj5u91q4CMrx2UE=; b=z94GZy3C1q/n98mFVelwdzwWuc/GpGupmh3bNXAkAY0GLBqI4GJnF+Tn4Kl+y+rezc ZOVc99jHe47hcHLWCJDcNJn7o+A1vkNn81GuhPWp9MThm9qq7n7yyXUzNKM/BWxFFBpK s2GZI6WJDLuu2nQLQORX/ZpH3mMR3a8WwGqTlLI33GAYvBwG2tzB/k69WFp0W7UfLUpd YXrUP9sZ7iOs4AtUH//UFugRhg5AsJ1e2eRFLH7KzbYXuFD6W2hKH6TDB2UpWgtDasR0 An94ql97DrbLkWcA63co3/sUQc2uxP0gqkz2WR9AgEJlrAnfy1LKODcLb3bYxgpSRs4G 5GDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=u4q3BTrL; 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 b9si2131802pla.275.2019.04.18.05.49.25; Thu, 18 Apr 2019 05:49:40 -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=u4q3BTrL; 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 S2389000AbfDRMsU (ORCPT + 99 others); Thu, 18 Apr 2019 08:48:20 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44117 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388436AbfDRMsE (ORCPT ); Thu, 18 Apr 2019 08:48:04 -0400 Received: by mail-wr1-f68.google.com with SMTP id w18so2795663wrv.11 for ; Thu, 18 Apr 2019 05:48:03 -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=lEmzBEboKIGTezlbO3ot+XflyRscqj5u91q4CMrx2UE=; b=u4q3BTrLMqXm/Udjmd/qNWIWU8LJmqNEWfZ3DyyFFKrNQpGn0lG0+w0L+C4tnUQydO 3AHjv8xfkLSJ6JAGPQP3IlDtzIMjv9uchYFdmG7PmUfvu0PNJmymrLHREDEacb4xoJx+ DrzfxAuWfPq0c6DktTV9NnyICRHLinKHWFkubv+TqtEXOZlNAAvLgHbIX7/1M74JdOFa YssBzaSYUNhlb7OuV1ttUIVstPqcYfH9g2pIiylu9qNqi6quFHZZPVzM68/rnKxw9ZDn lrRlgQVGZPuCl90Tdv5jMAW/0dhZI+huzzG9F9UkuLn/UdVcTIk1wKU3SsBZthLnyTeg p4sg== 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=lEmzBEboKIGTezlbO3ot+XflyRscqj5u91q4CMrx2UE=; b=HxIfEZVLcLUqBtuCD3ejfMm0cHsEQmCzxg0uHaQUyEQtZXTGFKc75tYYXNzj4J29oD 3hQRIKS+onMEnPq2/dfoAuZjZ3Ix6clifS04Uxowlu4r8wkXsbssEhl/VHrhu4TkQXfm SRts5RDt/HEA20XIOSUX7gWVHnlcGnEHJUgGOgXDPnhUnW+ywuNaHujd0UuUU1cQK7tQ YwJzRDpOX7Y8Vwo6xnTfDs/OQ3pAUopGnn5sBOe/8LxRvqcun/Nb2ClZxSgtczd+b9tu jWbyqGtOIDIGc/R6JPAcn7yFM+0lnlssBpN5Gg+XTAR0awhMlYNJIqtj3fm49KB2Cd3j qGOg== X-Gm-Message-State: APjAAAUVBEFf51AYLFuJiIfE3GIc+NZh/jNHKfTgqk1pepZrYkQjEQMt j9PY1CAV0WDkTkvNxaxjA8f0pg== X-Received: by 2002:adf:ee50:: with SMTP id w16mr38287929wro.293.1555591683176; Thu, 18 Apr 2019 05:48:03 -0700 (PDT) Received: from glaroque-ThinkPad-T480.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id q17sm1256823wrw.70.2019.04.18.05.48.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 05:48:02 -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 v2 2/4] pinctrl: generic: add new 'drive-strength-uA' property support Date: Thu, 18 Apr 2019 14:47:56 +0200 Message-Id: <20190418124758.24022-3-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190418124758.24022-1-glaroque@baylibre.com> References: <20190418124758.24022-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-uA 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..87393e9452b4 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-uA", 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