diff options
author | Vipul Kumar Samar <vipulkumar.samar@st.com> | 2012-11-26 11:36:51 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-12-01 16:45:16 (GMT) |
commit | 86605cfe8c7c166999bc7476b17940c68bf2f8b7 (patch) | |
tree | 702c2b7e6c60f261aa353995c1792f1cb2eb6335 /Documentation/devicetree/bindings | |
parent | 8618b3b47c4590baf4ef3f241616914f4bb2a8a6 (diff) | |
download | linux-fsl-qoriq-86605cfe8c7c166999bc7476b17940c68bf2f8b7.tar.xz |
gpio: stmpe: Add DT support for stmpe gpio
This patch allows the STMPE GPIO driver to be successfully probed and
initialised when Device Tree support is enabled. Bindings are mentioned in
Documentation too.
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-stmpe.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt b/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt new file mode 100644 index 0000000..a0e4cf8 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt @@ -0,0 +1,18 @@ +STMPE gpio +---------- + +Required properties: + - compatible: "st,stmpe-gpio" + +Optional properties: + - st,norequest-mask: bitmask specifying which GPIOs should _not_ be requestable + due to different usage (e.g. touch, keypad) + +Node name must be stmpe_gpio and should be child node of stmpe node to which it +belongs. + +Example: + stmpe_gpio { + compatible = "st,stmpe-gpio"; + st,norequest-mask = <0x20>; //gpio 5 can't be used + }; |