dt-binding: add generic macro for enable/disable pins configuration
Laxman Dewangan [Tue, 24 Dec 2013 13:19:26 +0000 (18:19 +0530)]
Add generic macro as TEGRA_PIN_{DISABLE/ENABLE} to disable/enable
the input, tristate, open-drain, lock, rcv-sel, high-speed mode,
schmitt etc.

Also add macro for pull up/down/none as per mainline.

Change-Id: Ia2d5cf665dfc0cf9cb7e4829e62915b9a7b82195
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/349448

include/dt-bindings/pinctrl/pinctrl-tegra.h

index 42516ae..15cbd38 100644 (file)
@@ -5,7 +5,15 @@
 #ifndef _DT_BINDINGS_PINCTRL_TEGRA_H
 #define _DT_BINDINGS_PINCTRL_TEGRA_H
 
-/* Input/outpue */
+/*
+ * Enable/disable for diffeent dt properties. This is applicable for
+ * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
+ * nvidia,lock, nvidia,rcv-sel, nvidia,high-speed-mode, nvidia,schmitt.
+ */
+#define TEGRA_PIN_DISABLE              0
+#define TEGRA_PIN_ENABLE               1
+
+/* Input/output */
 #define TEGRA_PIN_OUTPUT               0
 #define TEGRA_PIN_INPUT                        1
 
@@ -13,6 +21,9 @@
 #define TEGRA_PIN_PUPD_NORMAL          0
 #define TEGRA_PIN_PUPD_PULL_DOWN       1
 #define TEGRA_PIN_PUPD_PULL_UP         2
+#define TEGRA_PIN_PULL_NONE            0
+#define TEGRA_PIN_PULL_DOWN            1
+#define TEGRA_PIN_PULL_UP              2
 
 /* Tristate/normal */
 #define TEGRA_PIN_NORMAL               0