diff options
author | Vevek Venkatesan <vevekv@codeaurora.org> | 2016-09-30 21:29:22 +0530 |
---|---|---|
committer | Shantanu Jain <shjain@codeaurora.org> | 2016-10-14 14:37:26 +0530 |
commit | 1e5dde5a4cf503d7c37deb435defc6ad4b6712d8 (patch) | |
tree | d39b99067df90bc96aa204a0bd830de78a55f572 /Documentation | |
parent | 3ef7b5c53ec92b76f6a63c8bfa080f108cf456a4 (diff) |
input: misc: pat9125: add gpio configuration and pinctrl support
Pat9125 is a gpio driven i2c slave. This change adds the gpio
configuration and pinctrl support for pat9125 driver.
Change-Id: I2a9b379715622b5f010a5780ca481da7f9619400
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/input/pixart-pat9125-switch.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/pixart-pat9125-switch.txt b/Documentation/devicetree/bindings/input/pixart-pat9125-switch.txt index 1b68c695d2c5..54ba2be39f0c 100644 --- a/Documentation/devicetree/bindings/input/pixart-pat9125-switch.txt +++ b/Documentation/devicetree/bindings/input/pixart-pat9125-switch.txt @@ -15,6 +15,25 @@ Optional properties: - pixart,inverse-x : boolean, use this to invert the x data before sending it to input framework - pixart,inverse-y : boolean, use this to invert the y data before sending it to input framework - pixart,press-enabled : boolean, use this to enable detection of pressing the button + - pinctrl-names : This should be defined if a target uses pinctrl framework. + See "pinctrl" in Documentation/devicetree/bindings/pinctrl/msm-pinctrl.txt + It should specify the names of the configs that pinctrl can + install in driver. + Following are the pinctrl configs that can be installed: + "pmx_rot_switch_active" : Active configuration of pins, + it should specify active config + defined in pin groups of + interrupt gpio. + "pmx_rot_switch_suspend" : Disabled configuration of + pins, it should specify sleep + config defined in pin groups + of interrupt gpio. + "pmx_rot_switch_release" : Release configuration of + pins, it should specify release + config defined in pin groups of + interrupt gpio. + - pixart,irq-gpio : This should be defined if a target doesn't use pinctrl framework. + irq gpio, which is to provide interrupts to host, same as "interrupts" node. Required properties if 'pixart,press-enabled' DT property is defined: - pixart,press-keycode : keycode to be sent when press is detected by the driver. @@ -26,4 +45,10 @@ Example: interrupt-parent = <&msm_gpio>; interrupts = <98 0x2008>; pixart,irq-gpio = <&msm_gpio 98 0x2008>; + pinctrl-names = "pmx_rot_switch_active", + "pmx_rot_switch_suspend", + "pmx_rot_switch_release"; + pinctrl-0 = <&pix_int_active>; + pinctrl-1 = <&pix_int_suspend>; + pinctrl-2 = <&pix_release>; }; |