devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: dra: dt-bindings: Fix output pull up/down
@ 2014-10-31 10:52 Roger Quadros
  2014-10-31 13:50 ` Nishanth Menon
  2014-11-03 10:09 ` [PATCH v2] " Roger Quadros
  0 siblings, 2 replies; 11+ messages in thread
From: Roger Quadros @ 2014-10-31 10:52 UTC (permalink / raw)
  To: tony; +Cc: nm, balbi, linux-omap, devicetree, Roger Quadros

For PIN_OUTPUT_PULLUP and PIN_OUTPUT_PULLDOWN we must not set the
PULL_DIS bit which disables the PULLs.

While at that get rid for the PULL_ENA defination. It is misleading
as there is no PULL enable bit in the register. And a zero bit defination
makes no sense.

Fixes: 23d9cec07c58 (:pinctrl: dra: dt-bindings: Fix pull enable/disable")

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 include/dt-bindings/pinctrl/dra.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/include/dt-bindings/pinctrl/dra.h b/include/dt-bindings/pinctrl/dra.h
index 3d33794..71098e4 100644
--- a/include/dt-bindings/pinctrl/dra.h
+++ b/include/dt-bindings/pinctrl/dra.h
@@ -30,7 +30,6 @@
 #define MUX_MODE14	0xe
 #define MUX_MODE15	0xf
 
-#define PULL_ENA		(0 << 16)
 #define PULL_DIS		(1 << 16)
 #define PULL_UP			(1 << 17)
 #define INPUT_EN		(1 << 18)
@@ -40,12 +39,12 @@
 
 /* Active pin states */
 #define PIN_OUTPUT		(0 | PULL_DIS)
-#define PIN_OUTPUT_PULLUP	(PIN_OUTPUT | PULL_ENA | PULL_UP)
-#define PIN_OUTPUT_PULLDOWN	(PIN_OUTPUT | PULL_ENA)
+#define PIN_OUTPUT_PULLUP	(PULL_UP)
+#define PIN_OUTPUT_PULLDOWN	(0)
 #define PIN_INPUT		(INPUT_EN | PULL_DIS)
 #define PIN_INPUT_SLEW		(INPUT_EN | SLEWCONTROL)
-#define PIN_INPUT_PULLUP	(PULL_ENA | INPUT_EN | PULL_UP)
-#define PIN_INPUT_PULLDOWN	(PULL_ENA | INPUT_EN)
+#define PIN_INPUT_PULLUP	(INPUT_EN | PULL_UP)
+#define PIN_INPUT_PULLDOWN	(INPUT_EN)
 
 #endif
 
-- 
1.8.3.2


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

end of thread, other threads:[~2014-11-10 22:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-31 10:52 [PATCH] pinctrl: dra: dt-bindings: Fix output pull up/down Roger Quadros
2014-10-31 13:50 ` Nishanth Menon
2014-11-03  9:28   ` Roger Quadros
2014-11-03 10:09 ` [PATCH v2] " Roger Quadros
2014-11-03 14:30   ` Nishanth Menon
2014-11-03 14:44     ` Roger Quadros
2014-11-03 14:59       ` Nishanth Menon
2014-11-03 15:07         ` Roger Quadros
2014-11-03 17:56           ` Nishanth Menon
2014-11-05 17:10   ` Nishanth Menon
2014-11-10 22:29     ` Tony Lindgren

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).