linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: samsung: Allow pin value to be initialized using pinfunc.
@ 2013-11-19 17:15 Tomasz Figa
  2013-11-19 18:46 ` Stephen Warren
  0 siblings, 1 reply; 24+ messages in thread
From: Tomasz Figa @ 2013-11-19 17:15 UTC (permalink / raw)
  To: linux-arm-kernel

This patch extends the range of settings configurable via pinfunc API
to cover pin value as well. This allows configuration of default values
of pins.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt | 1 +
 drivers/pinctrl/pinctrl-samsung.c                             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
index fe34cbb..ed4cc9c 100644
--- a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
@@ -74,6 +74,7 @@ Required Properties:
   "samsung,pins" property of the child node. The following pin configuration
   properties are supported.
 
+  - samsung,pin-val: Initial value of pin output buffer.
   - samsung,pin-pud: Pull up/down configuration.
   - samsung,pin-drv: Drive strength configuration.
   - samsung,pin-pud-pdn: Pull up/down configuration in power down mode.
diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c
index c752de4..6b2194a 100644
--- a/drivers/pinctrl/pinctrl-samsung.c
+++ b/drivers/pinctrl/pinctrl-samsung.c
@@ -47,6 +47,7 @@ static struct pin_config {
 	{ "samsung,pin-drv", PINCFG_TYPE_DRV },
 	{ "samsung,pin-con-pdn", PINCFG_TYPE_CON_PDN },
 	{ "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN },
+	{ "samsung,pin-val", PINCFG_TYPE_DAT },
 };
 
 /* Global list of devices (struct samsung_pinctrl_drv_data) */
-- 
1.8.4.2

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-12-09 17:04 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 17:15 [PATCH] pinctrl: samsung: Allow pin value to be initialized using pinfunc Tomasz Figa
2013-11-19 18:46 ` Stephen Warren
2013-11-19 18:59   ` Doug Anderson
2013-11-19 19:16     ` Stephen Warren
2013-11-20  0:02       ` Kyungmin Park
2013-11-20  0:07         ` Stephen Warren
2013-11-20 12:51           ` Mark Brown
2013-11-25 14:34         ` Linus Walleij
2013-11-25 20:01           ` Kevin Bracey
2013-11-26  0:30             ` Tomasz Figa
2013-12-03  9:31               ` Linus Walleij
2013-12-03  9:33                 ` Tomasz Figa
2013-12-03  9:29             ` Linus Walleij
2013-12-05 15:07               ` Mark Brown
2013-12-05 15:11                 ` Tomasz Figa
2013-12-05 16:49                   ` Kevin Bracey
2013-12-05 17:03                     ` Tomasz Figa
2013-12-05 18:00                   ` Mark Brown
2013-12-09 10:22                 ` Linus Walleij
2013-12-09 17:04                   ` Mark Brown
2013-12-05 23:54               ` Stephen Warren
2013-12-09 12:57                 ` Linus Walleij
2013-11-20 14:57     ` Tomasz Figa
2013-11-20 13:38   ` Tomasz Figa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).